']['firsttitle_max'] = $_component_params['18994cf6afc653f6']['firsttitle_max'] ?? -1; if ($_component_params['18994cf6afc653f6']['isfirsttitle']) { $_where[] = 'firsttitle > 0 '; } if ($_component_params['18994cf6afc653f6']['firsttitle_min'] >= 0) { $_where[] = 'firsttitle >= ' . $_component_params['18994cf6afc653f6']['firsttitle_min']; } if ($_component_params['18994cf6afc653f6']['firsttitle_max'] > 0) { $_where[] = 'firsttitle <= ' . $_component_params['18994cf6afc653f6']['firsttitle_max']; } if (!empty($_component_params['18994cf6afc653f6']['firsttitle_range'])) { $_where[] = 'firsttitle IN( ' . implode(',',explode(',',$_component_params['18994cf6afc653f6']['firsttitle_range'])).')'; } if ($_component_params['18994cf6afc653f6']['firsttitle'] > -1) { $_where[] = 'firsttitle = ' . $_component_params['18994cf6afc653f6']['firsttitle']; } //置顶级别 $_component_params['18994cf6afc653f6']['istop'] = (bool)($_component_params['18994cf6afc653f6']['istop'] ?? false); $_component_params['18994cf6afc653f6']['top'] = $_component_params['18994cf6afc653f6']['top'] ?? -1; $_component_params['18994cf6afc653f6']['top_range'] = $_component_params['18994cf6afc653f6']['top_range'] ?? ''; $_component_params['18994cf6afc653f6']['top_min'] = $_component_params['18994cf6afc653f6']['top_min'] ?? -1; $_component_params['18994cf6afc653f6']['top_max'] = $_component_params['18994cf6afc653f6']['top_max'] ?? -1; if ($_component_params['18994cf6afc653f6']['istop']) { $_where[] = 'istop > 0 '; } if ($_component_params['18994cf6afc653f6']['top_min'] >= 0) { $_where[] = 'istop >= ' . $_component_params['18994cf6afc653f6']['top_min']; } if ($_component_params['18994cf6afc653f6']['top_max'] > 0) { $_where[] = 'istop <= ' . $_component_params['18994cf6afc653f6']['top_max']; } if (!empty($_component_params['18994cf6afc653f6']['top_range'])) { $_where[] = 'istop IN( ' . implode(',',explode(',',$_component_params['18994cf6afc653f6']['top_range'])).')'; } if ($_component_params['18994cf6afc653f6']['top'] > -1) { $_where[] = 'istop = ' . $_component_params['18994cf6afc653f6']['top']; } //推荐级别 $_component_params['18994cf6afc653f6']['isgood'] = (bool)($_component_params['18994cf6afc653f6']['isgood'] ?? false); $_component_params['18994cf6afc653f6']['good'] = $_component_params['18994cf6afc653f6']['good'] ?? -1; $_component_params['18994cf6afc653f6']['good_range'] = $_component_params['18994cf6afc653f6']['good_range'] ?? ''; $_component_params['18994cf6afc653f6']['good_min'] = $_component_params['18994cf6afc653f6']['good_min'] ?? -1; $_component_params['18994cf6afc653f6']['good_max'] = $_component_params['18994cf6afc653f6']['good_max'] ?? -1; if ($_component_params['18994cf6afc653f6']['isgood']) { $_where[] = 'isgood > 0 '; } if ($_component_params['18994cf6afc653f6']['good_min'] >= 0) { $_where[] = 'isgood >= ' . $_component_params['18994cf6afc653f6']['good_min']; } if ($_component_params['18994cf6afc653f6']['good_max'] > 0) { $_where[] = 'isgood <= ' . $_component_params['18994cf6afc653f6']['good_max']; } if (!empty($_component_params['18994cf6afc653f6']['good_range'])) { $_where[] = 'isgood IN( ' . implode(',',explode(',',$_component_params['18994cf6afc653f6']['good_range'])).')'; } if ($_component_params['18994cf6afc653f6']['good'] > -1) { $_where[] = 'isgood = ' . $_component_params['18994cf6afc653f6']['good']; } //处理时间限定开始 if (!empty($_component_params['18994cf6afc653f6']['day'])) { $_where[] = 'newstime >= ( UNIX_TIMESTAMP() - ' . $_component_params['18994cf6afc653f6']['day'] . '*86400 )'; } $_where_str = implode(' and ', $_where); //var_dump($_where_str); //处理时间限定结束 $_rows = get_ecms_info( $_component_params['18994cf6afc653f6']['classid'], $_component_params['18994cf6afc653f6']['num'], $_component_params['18994cf6afc653f6']['len'], $_component_params['18994cf6afc653f6']['haveclass'], $_component_params['18994cf6afc653f6']['enews'], $_component_params['18994cf6afc653f6']['tplid'], $_component_params['18994cf6afc653f6']['doing'], $_where_str, $_component_params['18994cf6afc653f6']['order'] ); $_component_params['18994cf6afc653f6']['wrap'] = isset($_component_params['18994cf6afc653f6']['wrap']) ? $_component_params['18994cf6afc653f6']['wrap'] : 1; if ($_component_params['18994cf6afc653f6']['wrap']) { $_component_class['18994cf6afc653f6'] .= ' flex-wrap'; } else { $_component_class['18994cf6afc653f6'] .= ' flex-nowrap'; } if ($_component_params['18994cf6afc653f6']['cols'] > 1 || $_component_params['18994cf6afc653f6']['rows'] > 1) { $_component_class['18994cf6afc653f6'] .= ' !grid gap-2 grid-flow-col'; } $_component_params['18994cf6afc653f6']['cols'] = isset($_component_params['18994cf6afc653f6']['cols']) ? $_component_params['18994cf6afc653f6']['cols'] : 0; if ($_component_params['18994cf6afc653f6']['cols'] > 1) { $_component_class['18994cf6afc653f6'] .= ' !grid-cols-' . $_component_params['18994cf6afc653f6']['cols']; } $_component_params['18994cf6afc653f6']['rows'] = isset($_component_params['18994cf6afc653f6']['rows']) ? $_component_params['18994cf6afc653f6']['rows'] : 0; if ($_component_params['18994cf6afc653f6']['rows'] > 1) { $_component_class['18994cf6afc653f6'] .= ' !grid-rows-' . $_component_params['18994cf6afc653f6']['rows']; } ?>
广告
广告
热点文章
今日畜牧一览:
广告
热点文章
大家都在谈:
热点文章
图片推荐:
热门报告
图片新闻