Example #1
0
     } else {
         $lists = $do->get_list('status=1' . $condition, $dorder[$order]);
         $menuid = 4;
         include tpl('index', $module);
     }
     break;
 case 'expire':
     if (isset($refresh)) {
         if (isset($extend)) {
             $days = isset($days) ? intval($days) : 0;
             $days or msg('请填写天数');
             $itemid or msg('请选择信息');
             foreach ($itemid as $v) {
                 $db->query("UPDATE {$table} SET totime=totime+{$days}*86400,status=3 WHERE itemid='{$v}' AND totime>0");
             }
             $do->expire();
             dmsg('延时成功', $forward);
         } else {
             $do->expire();
             dmsg('刷新成功', $forward);
         }
     } else {
         $lists = $do->get_list('status=4' . $condition, $dorder[$order]);
         $menuid = 3;
         include tpl('index', $module);
     }
     break;
 case 'check':
     if ($itemid && !$psize) {
         $do->check($itemid);
         dmsg('审核成功', $forward);