Ejemplo n.º 1
0
         $edittime = timetodate($edittime);
         $fromtime = timetodate($DT_TIME, 3);
         $days = $promo_amount && $promo_type == 1 ? $promo_amount : 365;
         $totime = timetodate($DT_TIME + 86400 * $days);
         $UG = cache_read('group-' . $groupid . '.php');
         $fee = $UG['fee'];
         $pay = $fee - $amount;
         if ($promo_amount) {
             $pay = $promo_type == 1 ? 0 : $pay - $promo_amount;
         }
         include tpl('grade_edit', $module);
     }
     break;
 case 'delete':
     $itemid or msg('请选择记录');
     $do->delete($itemid);
     dmsg('删除成功', $forward);
     break;
 case 'reject':
     $status = 1;
     $lists = $do->get_list('status=' . $status . $condition, $dorder[$order]);
     include tpl('grade', $module);
     break;
 case 'check':
     $status = 2;
     $lists = $do->get_list('status=' . $status . $condition, $dorder[$order]);
     include tpl('grade', $module);
     break;
 default:
     $status = 3;
     $lists = $do->get_list('status=' . $status . $condition, $dorder[$order]);