itle_min'] ?? -1; $_component_params['c31fd2dd7b4d4cba']['firsttitle_max'] = $_component_params['c31fd2dd7b4d4cba']['firsttitle_max'] ?? -1; if ($_component_params['c31fd2dd7b4d4cba']['isfirsttitle']) { $_where[] = 'firsttitle > 0 '; } if ($_component_params['c31fd2dd7b4d4cba']['firsttitle_min'] >= 0) { $_where[] = 'firsttitle >= ' . $_component_params['c31fd2dd7b4d4cba']['firsttitle_min']; } if ($_component_params['c31fd2dd7b4d4cba']['firsttitle_max'] > 0) { $_where[] = 'firsttitle <= ' . $_component_params['c31fd2dd7b4d4cba']['firsttitle_max']; } if (!empty($_component_params['c31fd2dd7b4d4cba']['firsttitle_range'])) { $_where[] = 'firsttitle IN( ' . implode(',',explode(',',$_component_params['c31fd2dd7b4d4cba']['firsttitle_range'])).')'; } if ($_component_params['c31fd2dd7b4d4cba']['firsttitle'] > -1) { $_where[] = 'firsttitle = ' . $_component_params['c31fd2dd7b4d4cba']['firsttitle']; } //置顶级别 $_component_params['c31fd2dd7b4d4cba']['istop'] = (bool)($_component_params['c31fd2dd7b4d4cba']['istop'] ?? false); $_component_params['c31fd2dd7b4d4cba']['top'] = $_component_params['c31fd2dd7b4d4cba']['top'] ?? -1; $_component_params['c31fd2dd7b4d4cba']['top_range'] = $_component_params['c31fd2dd7b4d4cba']['top_range'] ?? ''; $_component_params['c31fd2dd7b4d4cba']['top_min'] = $_component_params['c31fd2dd7b4d4cba']['top_min'] ?? -1; $_component_params['c31fd2dd7b4d4cba']['top_max'] = $_component_params['c31fd2dd7b4d4cba']['top_max'] ?? -1; if ($_component_params['c31fd2dd7b4d4cba']['istop']) { $_where[] = 'istop > 0 '; } if ($_component_params['c31fd2dd7b4d4cba']['top_min'] >= 0) { $_where[] = 'istop >= ' . $_component_params['c31fd2dd7b4d4cba']['top_min']; } if ($_component_params['c31fd2dd7b4d4cba']['top_max'] > 0) { $_where[] = 'istop <= ' . $_component_params['c31fd2dd7b4d4cba']['top_max']; } if (!empty($_component_params['c31fd2dd7b4d4cba']['top_range'])) { $_where[] = 'istop IN( ' . implode(',',explode(',',$_component_params['c31fd2dd7b4d4cba']['top_range'])).')'; } if ($_component_params['c31fd2dd7b4d4cba']['top'] > -1) { $_where[] = 'istop = ' . $_component_params['c31fd2dd7b4d4cba']['top']; } //推荐级别 $_component_params['c31fd2dd7b4d4cba']['isgood'] = (bool)($_component_params['c31fd2dd7b4d4cba']['isgood'] ?? false); $_component_params['c31fd2dd7b4d4cba']['good'] = $_component_params['c31fd2dd7b4d4cba']['good'] ?? -1; $_component_params['c31fd2dd7b4d4cba']['good_range'] = $_component_params['c31fd2dd7b4d4cba']['good_range'] ?? ''; $_component_params['c31fd2dd7b4d4cba']['good_min'] = $_component_params['c31fd2dd7b4d4cba']['good_min'] ?? -1; $_component_params['c31fd2dd7b4d4cba']['good_max'] = $_component_params['c31fd2dd7b4d4cba']['good_max'] ?? -1; if ($_component_params['c31fd2dd7b4d4cba']['isgood']) { $_where[] = 'isgood > 0 '; } if ($_component_params['c31fd2dd7b4d4cba']['good_min'] >= 0) { $_where[] = 'isgood >= ' . $_component_params['c31fd2dd7b4d4cba']['good_min']; } if ($_component_params['c31fd2dd7b4d4cba']['good_max'] > 0) { $_where[] = 'isgood <= ' . $_component_params['c31fd2dd7b4d4cba']['good_max']; } if (!empty($_component_params['c31fd2dd7b4d4cba']['good_range'])) { $_where[] = 'isgood IN( ' . implode(',',explode(',',$_component_params['c31fd2dd7b4d4cba']['good_range'])).')'; } if ($_component_params['c31fd2dd7b4d4cba']['good'] > -1) { $_where[] = 'isgood = ' . $_component_params['c31fd2dd7b4d4cba']['good']; } //处理时间限定开始 if (!empty($_component_params['c31fd2dd7b4d4cba']['day'])) { $_where[] = 'newstime >= ( UNIX_TIMESTAMP() - ' . $_component_params['c31fd2dd7b4d4cba']['day'] . '*86400 )'; } $_where_str = implode(' and ', $_where); //var_dump($_where_str); //处理时间限定结束 $_rows = get_ecms_info( $_component_params['c31fd2dd7b4d4cba']['classid'], $_component_params['c31fd2dd7b4d4cba']['num'], $_component_params['c31fd2dd7b4d4cba']['len'], $_component_params['c31fd2dd7b4d4cba']['haveclass'], $_component_params['c31fd2dd7b4d4cba']['enews'], $_component_params['c31fd2dd7b4d4cba']['tplid'], $_component_params['c31fd2dd7b4d4cba']['doing'], $_where_str, $_component_params['c31fd2dd7b4d4cba']['order'] ); $_component_params['c31fd2dd7b4d4cba']['wrap'] = isset($_component_params['c31fd2dd7b4d4cba']['wrap']) ? $_component_params['c31fd2dd7b4d4cba']['wrap'] : 1; if ($_component_params['c31fd2dd7b4d4cba']['wrap']) { $_component_class['c31fd2dd7b4d4cba'] .= ' flex-wrap'; } else { $_component_class['c31fd2dd7b4d4cba'] .= ' flex-nowrap'; } if ($_component_params['c31fd2dd7b4d4cba']['cols'] > 1 || $_component_params['c31fd2dd7b4d4cba']['rows'] > 1) { $_component_class['c31fd2dd7b4d4cba'] .= ' !grid gap-2 grid-flow-col'; } $_component_params['c31fd2dd7b4d4cba']['cols'] = isset($_component_params['c31fd2dd7b4d4cba']['cols']) ? $_component_params['c31fd2dd7b4d4cba']['cols'] : 0; if ($_component_params['c31fd2dd7b4d4cba']['cols'] > 1) { $_component_class['c31fd2dd7b4d4cba'] .= ' !grid-cols-' . $_component_params['c31fd2dd7b4d4cba']['cols']; } $_component_params['c31fd2dd7b4d4cba']['rows'] = isset($_component_params['c31fd2dd7b4d4cba']['rows']) ? $_component_params['c31fd2dd7b4d4cba']['rows'] : 0; if ($_component_params['c31fd2dd7b4d4cba']['rows'] > 1) { $_component_class['c31fd2dd7b4d4cba'] .= ' !grid-rows-' . $_component_params['c31fd2dd7b4d4cba']['rows']; } ?>

大家爱看:

热门报告