$item = array_merge($item, $temparr); } $item['dateline'] = sgmdate($item['dateline']); } $categorylistarr = getmodelcategory($nameid); $categorylistarr[0] = array('pre' => '', 'name' => '------'); $resultmodelcolumns = array(); if ($cacheinfo['models']['mid'] > 0) { $query = $_SGLOBAL['db']->query('SELECT * FROM ' . tname('modelcolumns') . ' WHERE mid = \'' . $cacheinfo['models']['mid'] . '\' AND allowshow = \'1\' ORDER BY displayorder, id'); while ($result = $_SGLOBAL['db']->fetch_array($query)) { $resultmodelcolumns[] = $result; } } //qwl add $newret = $defaultmval = $defaultfval = $defaultvval = array(); $feileisetting = getmodelcachecategory($cacheinfo['categoryarr']); foreach ($feileisetting as $clkey => $clarr) { $filterm = $filterf = $filterv = array(); $promodels = explode("\r\n", $clarr['pmodulesname']); $profocus = explode("\r\n", $clarr['pfocuson']); $proversion = explode("\r\n", $clarr['pversion']); // foreach ($promodels as $mmval) { if (!empty($mmval)) { $filterm[] = $mmval; } } foreach ($profocus as $ffval) { if (!empty($ffval)) { $filterf[] = $ffval; }
$fromdate = $todate = ''; $export = !empty($_GET['export']) ? trim($_GET['export']) : ''; $_GET['name'] = !empty($_GET['name']) ? trim($_GET['name']) : ''; $_GET['mo_catid'] = !empty($_GET['mo_catid']) ? intval($_GET['mo_catid']) : ''; $cacheinfo = getmodelinfoall('modelname', $_GET['name']); $channel = $_GET['name']; if (!checkperm('allowview')) { showmessage('no_permission'); } if (empty($cacheinfo['models']) || in_array($_GET['name'], $_SCONFIG['closechannels'])) { showmessage('visit_the_channel_does_not_exist', S_URL); } $modelsinfoarr = $cacheinfo['models']; $columnsinfoarr = $cacheinfo['columns']; $categories = $cacheinfo['categories']; $clistarr = getmodelcachecategory($cacheinfo['categoryarr']); foreach ($clistarr as $key => $value) { $categorylistarr[$key] = $value['pre'] . $value['name']; if (!empty($_GET['mo_catid']) && $value['upid'] == $_GET['mo_catid']) { $childcategories[] = $value; } } $orders = array('0' => $lang['check_order'], '1' => $lang['model_dateline_desc'], '2' => $lang['model_dateline_asc'], '3' => $lang['model_viewnum_desc'], '4' => $lang['model_viewnum_asc'], '5' => $lang['model_rates_desc'], '6' => $lang['model_rates_asc'], '7' => $lang['model_grade_desc'], '8' => $lang['model_grade_asc']); $orderbyarr = array('0' => 'i.itemid DESC', '1' => 'i.dateline DESC', '2' => 'i.dateline ASC', '3' => 'i.viewnum DESC', '4' => 'i.viewnum ASC', '5' => 'i.rates DESC', '6' => 'i.rates ASC', '7' => 'i.grade DESC', '8' => 'i.grade ASC'); $gradearr = array('0' => $lang['general_state_0'], '1' => $alang['check_grade_1'], '2' => $alang['check_grade_2'], '3' => $alang['check_grade_3'], '4' => $alang['check_grade_4'], '5' => $alang['check_grade_5'], '6' => $alang['check_grade_6'], '7' => $alang['check_grade_7']); if (!empty($_SCONFIG['checkgrade'])) { $newgradearr = explode("\t", $_SCONFIG['checkgrade']); for ($i = 0; $i < count($newgradearr); $i++) { if (!empty($newgradearr[$i])) { $gradearr[$i + 1] = $newgradearr[$i]; }