Esempio n. 1
0
 function show()
 {
     $pid = intval($_GET[pid]);
     $project = new ProjectModel();
     $pro = $project->getby_pid($pid);
     if ($pro[uid] != $_SESSION['uid']) {
         cpmsg("无权限", 'error', "?m=xing");
         exit;
     }
     $xing = new XingModel();
     $browsers = $xing->get_browsers($pid);
     include view_file();
 }
Esempio n. 2
0
 /**
  * 批量删除
  */
 function dels()
 {
     foreach ($_POST['delarr'] as $bid) {
         $bid = intval($bid);
         if ($bid) {
             $xing = new XingModel();
             $info = new InfoModel($bid);
             if ($xing->del_browser($bid)) {
                 $info->del();
             } else {
             }
         }
     }
     cpmsg("删除成功");
 }