$_typeid_val) { $_typeid_val = intval($_typeid_val); if (empty($_typeid_val)) { continue; } if (empty($_table_name)) { $_selfcate = \Common\Lib\Category::getSelf(get_category(10), $_typeid_val); $_table_name = strtolower($_selfcate['table_name']); } $_typeid_ids = \Common\Lib\Category::getChildsId(get_category(10), $_typeid_val, true); $ids_arr = array_merge($ids_arr,$_typeid_ids); } $ids_arr = array_unique($ids_arr); if ($_table_name == '') { $_table_name = 'article'; } $where = array($_table_name.'.delete_status' => 0, 'cate_status' => array('LT',2)); if (!empty($ids_arr)) { $where[$_table_name.'.cid'] = array('IN',$ids_arr); } }else { $_table_name = 'article'; $where = array($_table_name.'.delete_status' => 0, 'cate_status' => array('LT',2)); } if (0 > 0 && 0 > 0) { $where[$_table_name.'.point'] = array('between',array(0,0)); }else if (0 > 0) { $where[$_table_name.'.point'] = array('EGT', 0); }else if (0 > 0) { $where[$_table_name.'.point'] = array('ELT', 0); } if(0 == 1) { $where[$_table_name.'.audit_status'] = 0; } else if(0 == 2) { } else { $where[$_table_name.'.audit_status'] = 1; } if ($_keyword != '') { $where[$_table_name.'.title'] = array('like','%'.$_keyword.'%'); } if (0 > 0) { $where['_string'] = $_table_name.'.flag & 0 = 0 '; } if (!empty($_GET['p1'])) { $where[$_table_name.'.p1'] = ['like','%'.$_GET['p1'].'%']; } if (!empty($_GET['p2'])) { $where[$_table_name.'.p2'] = ['like','%'.$_GET['p2'].'%']; } if (!empty($_GET['p3'])) { $where[$_table_name.'.p3'] = ['like','%'.$_GET['p3'].'%']; } if (!empty($_GET['p4'])) { $where[$_table_name.'.p4'] = ['like','%'.$_GET['p4'].'%']; } if (!empty($_GET['p5'])) { $where[$_table_name.'.p5'] = ['like','%'.$_GET['p5'].'%']; } if (!empty($_GET['p6'])) { $where[$_table_name.'.p6'] = ['like','%'.$_GET['p6'].'%']; } if (!empty($_GET['p7'])) { $where[$_table_name.'.p7'] = ['like','%'.$_GET['p7'].'%']; } if (!empty($_GET['p8'])) { $where[$_table_name.'.p8'] = ['like','%'.$_GET['p8'].'%']; } if (!empty($_GET['p9'])) { $where[$_table_name.'.p9'] = ['like','%'.$_GET['p9'].'%']; } if (!empty($_GET['p10'])) { $where[$_table_name.'.p10'] = ['like','%'.$_GET['p10'].'%']; } if (!empty($_GET['p11'])) { $where[$_table_name.'.p11'] = ['like','%'.$_GET['p11'].'%']; } if (!empty($_GET['p12'])) { $where[$_table_name.'.p12'] = ['like','%'.$_GET['p12'].'%']; } if (!empty($_GET['p13'])) { $where[$_table_name.'.p13'] = ['like','%'.$_GET['p13'].'%']; } if (!empty($_GET['p14'])) { $where[$_table_name.'.p14'] = ['like','%'.$_GET['p14'].'%']; } if (!empty($_GET['p15'])) { $where[$_table_name.'.p15'] = ['like','%'.$_GET['p15'].'%']; } if (!empty($_GET['p16'])) { $where[$_table_name.'.p16'] = ['like','%'.$_GET['p16'].'%']; } if (!empty($_GET['key'])) { $where[$_table_name.'.title'] = ['like','%'.$_GET['key'].'%']; } if (!empty($_table_name) && $_table_name != 'page') { if (10 > 0) { $count = D2('ArcView',"$_table_name")->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 10, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_list = D2('ArcView',"$_table_name")->nofield('picture_urls')->where($where)->order("point DESC,id DESC")->limit($limit)->select(); if (empty($_list)) { $_list = array(); } }else { $_list = array(); } foreach($_list as $autoindex => $list): $_jumpflag = ($list['flag'] & B_JUMP) == B_JUMP? true : false; $list['url'] = get_content_url($list['id'], $list['cid'], $list['ename'], $_jumpflag, $list['jump_url']); if(0) $list['title'] = str2sub($list['title'], 0, 0); if(0) $list['description'] = str2sub($list['description'], 0, 0); if(isset($list['picture_urls'])) $list['picture_urls'] = get_picture_array($list['picture_urls']); ?>
$_typeid_val) { $_typeid_val = intval($_typeid_val); if (empty($_typeid_val)) { continue; } if (empty($_table_name)) { $_selfcate = \Common\Lib\Category::getSelf(get_category(10), $_typeid_val); $_table_name = strtolower($_selfcate['table_name']); } $_typeid_ids = \Common\Lib\Category::getChildsId(get_category(10), $_typeid_val, true); $ids_arr = array_merge($ids_arr,$_typeid_ids); } $ids_arr = array_unique($ids_arr); if ($_table_name == '') { $_table_name = 'article'; } $where = array($_table_name.'.delete_status' => 0, 'cate_status' => array('LT',2)); if (!empty($ids_arr)) { $where[$_table_name.'.cid'] = array('IN',$ids_arr); } }else { $_table_name = 'article'; $where = array($_table_name.'.delete_status' => 0, 'cate_status' => array('LT',2)); } if (0 > 0 && 0 > 0) { $where[$_table_name.'.point'] = array('between',array(0,0)); }else if (0 > 0) { $where[$_table_name.'.point'] = array('EGT', 0); }else if (0 > 0) { $where[$_table_name.'.point'] = array('ELT', 0); } if(0 == 1) { $where[$_table_name.'.audit_status'] = 0; } else if(0 == 2) { } else { $where[$_table_name.'.audit_status'] = 1; } if ($_keyword != '') { $where[$_table_name.'.title'] = array('like','%'.$_keyword.'%'); } if (0 > 0) { $where['_string'] = $_table_name.'.flag & 0 = 0 '; } if (!empty($_GET['p1'])) { $where[$_table_name.'.p1'] = ['like','%'.$_GET['p1'].'%']; } if (!empty($_GET['p2'])) { $where[$_table_name.'.p2'] = ['like','%'.$_GET['p2'].'%']; } if (!empty($_GET['p3'])) { $where[$_table_name.'.p3'] = ['like','%'.$_GET['p3'].'%']; } if (!empty($_GET['p4'])) { $where[$_table_name.'.p4'] = ['like','%'.$_GET['p4'].'%']; } if (!empty($_GET['p5'])) { $where[$_table_name.'.p5'] = ['like','%'.$_GET['p5'].'%']; } if (!empty($_GET['p6'])) { $where[$_table_name.'.p6'] = ['like','%'.$_GET['p6'].'%']; } if (!empty($_GET['p7'])) { $where[$_table_name.'.p7'] = ['like','%'.$_GET['p7'].'%']; } if (!empty($_GET['p8'])) { $where[$_table_name.'.p8'] = ['like','%'.$_GET['p8'].'%']; } if (!empty($_GET['p9'])) { $where[$_table_name.'.p9'] = ['like','%'.$_GET['p9'].'%']; } if (!empty($_GET['p10'])) { $where[$_table_name.'.p10'] = ['like','%'.$_GET['p10'].'%']; } if (!empty($_GET['p11'])) { $where[$_table_name.'.p11'] = ['like','%'.$_GET['p11'].'%']; } if (!empty($_GET['p12'])) { $where[$_table_name.'.p12'] = ['like','%'.$_GET['p12'].'%']; } if (!empty($_GET['p13'])) { $where[$_table_name.'.p13'] = ['like','%'.$_GET['p13'].'%']; } if (!empty($_GET['p14'])) { $where[$_table_name.'.p14'] = ['like','%'.$_GET['p14'].'%']; } if (!empty($_GET['p15'])) { $where[$_table_name.'.p15'] = ['like','%'.$_GET['p15'].'%']; } if (!empty($_GET['p16'])) { $where[$_table_name.'.p16'] = ['like','%'.$_GET['p16'].'%']; } if (!empty($_GET['key'])) { $where[$_table_name.'.title'] = ['like','%'.$_GET['key'].'%']; } if (!empty($_table_name) && $_table_name != 'page') { if (10 > 0) { $count = D2('ArcView',"$_table_name")->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 10, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_list = D2('ArcView',"$_table_name")->nofield('picture_urls')->where($where)->order("point DESC,id DESC")->limit($limit)->select(); if (empty($_list)) { $_list = array(); } }else { $_list = array(); } foreach($_list as $autoindex => $list): $_jumpflag = ($list['flag'] & B_JUMP) == B_JUMP? true : false; $list['url'] = get_content_url($list['id'], $list['cid'], $list['ename'], $_jumpflag, $list['jump_url']); if(0) $list['title'] = str2sub($list['title'], 0, 0); if(0) $list['description'] = str2sub($list['description'], 0, 0); if(isset($list['picture_urls'])) $list['picture_urls'] = get_picture_array($list['picture_urls']); ?>- ">"
alt="">