public function index()
 {
     check_login();
     $User = M('User');
     check_permittion('User');
     $data = $User->field('user_id,username,usertype,loginname,lastlogin,lastip')->order('lastlogin desc')->select();
     $this->assign('user_arr', $data);
     $this->assign('MODELID', 'LoginHistory');
     $this->display();
 }
 public function index()
 {
     check_login();
     check_permittion('ChartAnalyse');
     $this->assign('MODELID', 'ChartAnalyse');
     $this->display();
 }
예제 #3
0
 public function index()
 {
     check_login();
     check_permittion('Theme');
     $Pid = session('CURRENT_PROJECT');
     $place_theme = M('Place')->where('id=' . $Pid)->getField('theme');
     $this->assign('place_theme', $place_theme);
     $this->assign('MODELID', 'Theme');
     $this->display();
 }
예제 #4
0
 public function index()
 {
     $User = M('User');
     check_permittion('User');
     $data = $User->field('user_id,username,password,loginname,usertype,lastlogin')->select();
     $this->assign('delete_tip', '确认删除该用户?');
     $this->assign('user_arr', $data);
     $this->assign('MODELID', 'User');
     $this->display();
 }
예제 #5
0
 public function index()
 {
     check_login();
     check_permittion('News');
     $News = M("News");
     $data = $News->order('new_date desc')->select();
     $this->assign("news_arr", $data);
     $this->assign('MODELID', 'News');
     $this->display();
 }
예제 #6
0
 public function index()
 {
     check_login();
     check_permittion('Place');
     $Pid = session('CURRENT_PROJECT');
     $Place = M("Place");
     $data = $Place->where("id=" . $Pid)->select();
     $this->assign('place', $Pid);
     $this->assign('MODELID', 'Place');
     $this->assign("name", $data[0]['name']);
     $this->assign("cover", $data[0]['cover']);
     $this->display();
 }
 public function delete()
 {
     check_login();
     check_permittion('Comment');
     $comment_id = I("get.id");
     $Pid = session('CURRENT_PROJECT');
     $Comment = M("Comment");
     if ($Comment->where("place_id=" . $Pid)->where("comment_id=" . $comment_id)->delete()) {
         $this->success("删除成功");
     } else {
         $this->error("删除失败");
     }
 }
 public function index()
 {
     check_login();
     check_permittion('Resturant');
     $Pid = session('CURRENT_PROJECT');
     $Res = D("Resturant");
     $res_data = $Res->getData($Pid);
     $this->assign('place', $Pid);
     $this->assign('res_arr', $res_data);
     $this->assign('res_count', count($res_data));
     $this->assign('MODELID', 'Resturant');
     $this->display();
 }
예제 #9
0
 public function index()
 {
     check_login();
     check_permittion('Hotel');
     $Pid = session('CURRENT_PROJECT');
     $Hotel = D("Hotel");
     $hotel_data = $Hotel->getData($Pid);
     $photos = M("Photos")->where('place_id=' . $Pid)->select();
     $this->assign('img_arr', $photos);
     $this->assign('place', $Pid);
     $this->assign('hotel_arr', $hotel_data);
     $this->assign('MODELID', 'Hotel');
     $this->display();
 }
예제 #10
0
 public function index()
 {
     check_login();
     check_permittion('Photos');
     $Pid = session('CURRENT_PROJECT');
     $Photos = D("Photos");
     $img_cover = $Photos->getCover($Pid);
     $img_data = $Photos->getData($Pid);
     $this->assign('place', $Pid);
     $this->assign('img_arr', $img_data);
     $this->assign('img_count', count($img_data));
     $this->assign('MODELID', 'Photos');
     $this->display();
 }
예제 #11
0
 public function index()
 {
     check_login();
     check_permittion('Info');
     $Pid = session('CURRENT_PROJECT');
     $Info = D("Info");
     $data = $Info->getData($Pid);
     $id = M("Info")->field(id)->where('place_id=' . $Pid)->find();
     $this->assign('information', $data[$id['id']]['information']);
     $this->assign('ticket', $data[$id['id']]['ticket']);
     $this->assign('introduction', $data[$id['id']]['introduction']);
     $this->assign('location', $data[$id['id']]['location']);
     $this->assign('more', $data[$id['id']]['more']);
     $this->assign('place', $Pid);
     $this->assign('MODELID', 'Info');
     $this->display();
 }