Jonlin před 6 roky
rodič
revize
f8b113fe71
35 změnil soubory, kde provedl 1872 přidání a 585 odebrání
  1. 24 0
      application/admin/controller/AdminControl.php
  2. 62 0
      application/admin/controller/Contact.php
  3. 152 0
      application/admin/controller/DevelopmentCase.php
  4. 153 0
      application/admin/controller/DevelopmentServer.php
  5. 155 0
      application/admin/controller/LeaderTeam.php
  6. 147 0
      application/admin/controller/OurTeam.php
  7. 14 0
      application/admin/lang/zh-cn.php
  8. 83 0
      application/admin/view/contact/index.html
  9. 133 0
      application/admin/view/development_case/form.html
  10. 59 0
      application/admin/view/development_case/index.html
  11. 133 0
      application/admin/view/development_server/form.html
  12. 59 0
      application/admin/view/development_server/index.html
  13. 144 0
      application/admin/view/leader_team/form.html
  14. 64 0
      application/admin/view/leader_team/index.html
  15. 120 0
      application/admin/view/our_team/form.html
  16. 55 0
      application/admin/view/our_team/index.html
  17. 35 0
      application/common/model/Contact.php
  18. 70 0
      application/common/model/DevelopmentCase.php
  19. 70 0
      application/common/model/DevelopmentServer.php
  20. 70 0
      application/common/model/LeaderTeam.php
  21. 70 0
      application/common/model/OurTeam.php
  22. binární
      public/static/admin/images/logo.png
  23. binární
      public/static/home/images/team/1557911825.jpg
  24. binární
      public/static/home/images/team/1557911871.jpg
  25. binární
      public/static/home/images/team/1557911975.jpg
  26. binární
      public/static/home/images/team/1557912024.jpg
  27. binární
      public/static/home/images/team/1557912173.jpg
  28. binární
      public/static/home/images/team/1557912240.jpg
  29. binární
      public/static/home/images/team/1557912387.jpg
  30. binární
      public/static/home/images/team/1557912418.jpg
  31. 0 116
      runtime/temp/1c9c0105fce52cca48a9090cf1ab68a4.php
  32. 0 139
      runtime/temp/5b4e6916dcb7713b8c85a074c4d04c3c.php
  33. 0 47
      runtime/temp/a110d949b0dc53ec8bd6210a8df6a198.php
  34. 0 87
      runtime/temp/bfa59e1c5138f50307b54b7b66a51308.php
  35. 0 196
      runtime/temp/c19ac99b77135a08e0817e720be4a8c7.php

+ 24 - 0
application/admin/controller/AdminControl.php

@@ -134,6 +134,10 @@ class AdminControl extends Controller
                         'text' => lang('ds_config'),
                         'url' => url('Config/index'),
                     ),
+                    'contact' => array(
+                        'text' => lang('ds_contact'),
+                        'url' => url('Contact/index'),
+                    ),
                     'db' => array(
                         'text' => lang('ds_db'),
                         'url' => url('Db/index'),
@@ -149,6 +153,10 @@ class AdminControl extends Controller
 						'text' => lang('ds_config'),
 						'url' => url('Config/index'),
 					),
+                    'contact' => array(
+                        'text' => lang('ds_contact'),
+                        'url' => url('Contact/index'),
+                    ),
 					'db' => array(
 						'text' => lang('ds_db'),
 						'url' => url('Db/index'),
@@ -189,6 +197,22 @@ class AdminControl extends Controller
                         'text' => lang('ds_headnav'),
                         'url' => url('HeadNav/index'),
                     ),
+                    'case' => array(
+                        'text' => lang('ds_case'),
+                        'url' => url('DevelopmentCase/index'),
+                    ),
+                    'server' => array(
+                        'text' => lang('ds_server'),
+                        'url' => url('DevelopmentServer/index'),
+                    ),
+                    'leaderteam' => array(
+                        'text' => lang('ds_leaderteam'),
+                        'url' => url('LeaderTeam/index'),
+                    ),
+                    'ourteam' => array(
+                        'text' => lang('ds_ourteam'),
+                        'url' => url('OurTeam/index'),
+                    ),
                     'product' => array(
                         'text' => lang('ds_product'),
                         'url' => url('Product/index'),

+ 62 - 0
application/admin/controller/Contact.php

@@ -0,0 +1,62 @@
+<?php
+
+namespace app\admin\controller;
+
+use think\Lang;
+
+class Contact extends AdminControl {
+
+    public function _initialize() {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/config.lang.php');
+    }
+
+    /**
+     * 联系我们
+     * @return mixed
+     */
+    public function index() {
+        $model_contact = model('Contact');
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        if (!request()->isPost()) {
+            $contact = $model_contact->getContact();
+            $contact['update_time'] = date("Y-m-d h:i:s",$contact['update_time']);
+            $this->assign('contact', $contact);
+            $this->setAdminCurItem('index');
+            return $this->fetch();
+        } else {
+            $update_array = array();
+            $update_array['address'] = input('post.address');
+            $update_array['phone'] = input('post.phone');
+            $update_array['email'] = input('post.email');
+            $update_array['fax'] = input('post.fax');
+            $update_array['detail'] = input('post.detail');
+            $update_array['update_time'] = time();
+
+            $result = $model_contact->updateContact($update_array);
+            if ($result === 1) {
+                $this->log(lang('ds_edit') . lang('dis_dump'), 1);
+                $this->success('修改成功', 'Contact/index');
+            } else {
+                $this->log(lang('ds_edit') . lang('dis_dump'), 0);
+                $this->error(lang('修改失败'));
+            }
+        }
+    }
+
+    /**
+     * 获取卖家栏目列表,针对控制器下的栏目
+     */
+    protected function getAdminItemList() {
+        $menu_array = array(
+            array(
+                'name' => 'base',
+                'text' => lang('site_set'),
+                'url' => url('Admin/Config/index')
+            ),
+        );
+        return $menu_array;
+    }
+
+}

+ 152 - 0
application/admin/controller/DevelopmentCase.php

@@ -0,0 +1,152 @@
+<?php
+
+namespace app\admin\controller;
+use think\Lang;
+
+class DevelopmentCase extends AdminControl
+{
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/product.lang.php');
+    }
+
+    /**
+     * 开发案例
+     */
+    public function index(){
+        $model_Case = Model('DevelopmentCase');
+        $case_keywords = input('post.product_keywords');
+        $case_type = input('post.product_type');
+        $condition = array();
+        if($case_keywords){
+            $condition['product_keywords'] = $case_keywords;
+        }
+        if($case_type){
+            $condition['product_type'] = $case_type;
+        }
+        $case_list = $model_Case->getDevelopmentCase($condition,'*',10);
+        for($i=0;$i<count($case_list);$i++){
+            $case_list[$i]['add_time'] = date("Y-m-d h:i:s",$case_list[$i]['add_time']);
+            $case_list[$i]['update_time'] = date("Y-m-d h:i:s",$case_list[$i]['update_time']);
+        }
+
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $this->assign('case_list', $case_list);
+        //$this->assign('show_page', $Case_list->page_info->render());
+        $this->setAdminCurItem('index');
+        return $this->fetch();
+
+    }
+
+    /**
+     * 添加案例
+     * @return mixed
+     */
+    public function add()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        if (request()->isPost()) {
+            $data = array(
+                'name' => input('post.name'),
+                'sort' => input('post.sort'),
+                'type' => input('post.type'),
+                'add_time' => time(),
+                'update_time' => time(),
+                'status' => input('post.status'),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('DevelopmentCase')->addCase($data);
+            if ($result){
+                $this->success(lang('add_succ'), url('DevelopmentCase/index'));
+            }
+            $this->error(lang('add_fail'));
+        } else {
+            $case = array('status'=>1);
+            $this->assign('case', $case);
+            $this->setAdminCurItem('add');
+            return $this->fetch('form');
+        }
+    }
+
+    /**
+     * 修改案例
+     * @return mixed
+     */
+    public function edit()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $id = input('param.id');
+        if ($id <= 0) {
+            $this->error('系统错误');
+        }
+        $condition['id'] = $id;
+        if (request()->isPost()) {
+            $data = array(
+                'name' => input('post.name'),
+                'sort' => input('post.sort'),
+                'update_time' => time(),
+                'status' => input('post.status'),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('DevelopmentCase')->edit(['id' => $id], $data);
+            if ($result >= 0) {
+                $this->success(lang('edit_succ'), 'DevelopmentCase/index');
+            } else {
+                $this->error(lang('edit_fail'));
+            }
+        } else {
+
+            $case = model('DevelopmentCase')->getOneCase(['id' => $id]);
+            $this->assign('case', $case);
+            $this->setAdminCurItem('edit');
+            return $this->fetch('form');
+        }
+    }
+
+
+    /**
+     * 删除案例
+     * @return mixed
+     */
+    function del()
+    {
+        $id = intval(input('param.id'));
+        if ($id) {
+            $condition['id'] = $id;
+            $result = model('DevelopmentCase')->deleteCase($condition);
+            if ($result) {
+                ds_json_encode(10000, lang('del_succ'));
+            } else {
+                ds_json_encode(10001, lang('del_fail'));
+            }
+        } else {
+            ds_json_encode(10001, lang('param_error'));
+        }
+    }
+}

+ 153 - 0
application/admin/controller/DevelopmentServer.php

@@ -0,0 +1,153 @@
+<?php
+
+namespace app\admin\controller;
+use think\Lang;
+
+class DevelopmentServer extends AdminControl
+{
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/product.lang.php');
+    }
+
+    /**
+     * 开发服务
+     */
+    public function index(){
+        $model_Server = Model('DevelopmentServer');
+        $server_keywords = input('post.product_keywords');
+        $server_type = input('post.product_type');
+        $condition = array();
+        if($server_keywords){
+            $condition['product_keywords'] = $server_keywords;
+        }
+        if($server_type){
+            $condition['product_type'] = $server_type;
+        }
+        $server_list = $model_Server->getDevelopmentServer($condition,'*',10);
+        for($i=0;$i<count($server_list);$i++){
+            $server_list[$i]['add_time'] = date("Y-m-d h:i:s",$server_list[$i]['add_time']);
+            $server_list[$i]['update_time'] = date("Y-m-d h:i:s",$server_list[$i]['update_time']);
+        }
+
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $this->assign('server_list', $server_list);
+        //$this->assign('show_page', $Case_list->page_info->render());
+        $this->setAdminCurItem('index');
+        return $this->fetch();
+
+    }
+
+    /**
+     * 添加开发服务
+     * @return mixed
+     */
+    public function add()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        if (request()->isPost()) {
+            $data = array(
+                'name' => input('post.name'),
+                'sort' => input('post.sort'),
+                'detail' => input('post.detail'),
+                'add_time' => time(),
+                'update_time' => time(),
+                'status' => input('post.status'),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('DevelopmentServer')->add($data);
+            if ($result){
+                $this->success(lang('add_succ'), url('DevelopmentServer/index'));
+            }
+            $this->error(lang('add_fail'));
+        } else {
+            $server = array('status'=>1);
+            $this->assign('server', $server);
+            $this->setAdminCurItem('add');
+            return $this->fetch('form');
+        }
+    }
+
+    /**
+     * 修改开发服务
+     * @return mixed
+     */
+    public function edit()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $id = input('param.id');
+        if ($id <= 0) {
+            $this->error('系统错误');
+        }
+        $condition['id'] = $id;
+        if (request()->isPost()) {
+            $data = array(
+                'name' => input('post.name'),
+                'sort' => input('post.sort'),
+                'detail' => input('post.detail'),
+                'update_time' => time(),
+                'status' => input('post.status'),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('DevelopmentServer')->edit(['id' => $id], $data);
+            if ($result >= 0) {
+                $this->success(lang('edit_succ'), 'DevelopmentServer/index');
+            } else {
+                $this->error(lang('edit_fail'));
+            }
+        } else {
+
+            $server = model('DevelopmentServer')->getOneServer(['id' => $id]);
+            $this->assign('server', $server);
+            $this->setAdminCurItem('edit');
+            return $this->fetch('form');
+        }
+    }
+
+
+    /**
+     * 删除开发服务
+     * @return mixed
+     */
+    function del()
+    {
+        $id = intval(input('param.id'));
+        if ($id) {
+            $condition['id'] = $id;
+            $result = model('DevelopmentServer')->deleteServer($condition);
+            if ($result) {
+                ds_json_encode(10000, lang('del_succ'));
+            } else {
+                ds_json_encode(10001, lang('del_fail'));
+            }
+        } else {
+            ds_json_encode(10001, lang('param_error'));
+        }
+    }
+}

+ 155 - 0
application/admin/controller/LeaderTeam.php

@@ -0,0 +1,155 @@
+<?php
+
+namespace app\admin\controller;
+use think\Lang;
+
+class LeaderTeam extends AdminControl
+{
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/product.lang.php');
+    }
+
+    /**
+     * 领导团队列表
+     */
+    public function index(){
+        $model_leaderteam = Model('LeaderTeam');
+        $leaderteam_keywords = input('post.product_keywords');
+        $leaderteam_type = input('post.product_type');
+        $condition = array();
+        if($leaderteam_keywords){
+            $condition['product_keywords'] = $leaderteam_keywords;
+        }
+        if($leaderteam_type){
+            $condition['product_type'] = $leaderteam_type;
+        }
+        $leaderteam_list = $model_leaderteam->getLeaderTeam($condition,'*',10);
+        for($i=0;$i<count($leaderteam_list);$i++){
+            $leaderteam_list[$i]['add_time'] = date("Y-m-d h:i:s",$leaderteam_list[$i]['add_time']);
+            $leaderteam_list[$i]['update_time'] = date("Y-m-d h:i:s",$leaderteam_list[$i]['update_time']);
+        }
+
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $this->assign('leaderteam_list', $leaderteam_list);
+        //$this->assign('show_page', $Case_list->page_info->render());
+        $this->setAdminCurItem('index');
+        return $this->fetch();
+
+    }
+
+    /**
+     * 添加领导团队
+     * @return mixed
+     */
+    public function add()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        if (request()->isPost()) {
+            $data = array(
+                'name_ch' => input('post.name_ch'),
+                'name_en' => input('post.name_en'),
+                'gender' => input('post.gender'),
+                'age' => input('post.age'),
+                'position' => input('post.position'),
+                'info' => input('post.info'),
+                'add_time' => time(),
+                'update_time' => time(),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('LeaderTeam')->add($data);
+            if ($result){
+                $this->success(lang('add_succ'), url('LeaderTeam/index'));
+            }
+            $this->error(lang('add_fail'));
+        } else {
+            $this->setAdminCurItem('add');
+            return $this->fetch('form');
+        }
+    }
+
+    /**
+     * 修改领导团队信息
+     * @return mixed
+     */
+    public function edit()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $id = input('param.id');
+        if ($id <= 0) {
+            $this->error('系统错误');
+        }
+        $condition['id'] = $id;
+        if (request()->isPost()) {
+            $data = array(
+                'name_ch' => input('post.name_ch'),
+                'name_en' => input('post.name_en'),
+                'gender' => input('post.gender'),
+                'age' => input('post.age'),
+                'position' => input('post.position'),
+                'info' => input('post.info'),
+                'update_time' => time(),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('LeaderTeam')->edit(['id' => $id], $data);
+            if ($result >= 0) {
+                $this->success(lang('edit_succ'), 'LeaderTeam/index');
+            } else {
+                $this->error(lang('edit_fail'));
+            }
+        } else {
+
+            $leaderteam = model('LeaderTeam')->getOneleaderteam(['id' => $id]);
+            $this->assign('leaderteam', $leaderteam);
+            $this->setAdminCurItem('edit');
+            return $this->fetch('form');
+        }
+    }
+
+
+    /**
+     * 删除领导团队
+     * @return mixed
+     */
+    function del()
+    {
+        $id = intval(input('param.id'));
+        if ($id) {
+            $condition['id'] = $id;
+            $result = model('LeaderTeam')->deleteLeaderTeam($condition);
+            if ($result) {
+                ds_json_encode(10000, lang('del_succ'));
+            } else {
+                ds_json_encode(10001, lang('del_fail'));
+            }
+        } else {
+            ds_json_encode(10001, lang('param_error'));
+        }
+    }
+}

+ 147 - 0
application/admin/controller/OurTeam.php

@@ -0,0 +1,147 @@
+<?php
+
+namespace app\admin\controller;
+use think\Lang;
+
+class OurTeam extends AdminControl
+{
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/product.lang.php');
+    }
+
+    /**
+     * 我们的团队
+     */
+    public function index(){
+        $model_ourteam = Model('OurTeam');
+        $ourteam_keywords = input('post.product_keywords');
+        $ourteam_type = input('post.product_type');
+        $condition = array();
+        if($ourteam_keywords){
+            $condition['product_keywords'] = $ourteam_keywords;
+        }
+        if($ourteam_type){
+            $condition['product_type'] = $ourteam_type;
+        }
+        $ourteam_list = $model_ourteam->getOurTeam($condition,'*',10);
+        for($i=0;$i<count($ourteam_list);$i++){
+            $ourteam_list[$i]['add_time'] = date("Y-m-d h:i:s",$ourteam_list[$i]['add_time']);
+            $ourteam_list[$i]['update_time'] = date("Y-m-d h:i:s",$ourteam_list[$i]['update_time']);
+        }
+
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $this->assign('ourteam_list', $ourteam_list);
+        //$this->assign('show_page', $Case_list->page_info->render());
+        $this->setAdminCurItem('index');
+        return $this->fetch();
+
+    }
+
+    /**
+     * 添加团队
+     * @return mixed
+     */
+    public function add()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        if (request()->isPost()) {
+            $data = array(
+                'name' => input('post.name'),
+                'info' => input('post.info'),
+                'add_time' => time(),
+                'update_time' => time(),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('OurTeam')->add($data);
+            if ($result){
+                $this->success(lang('add_succ'), url('OurTeam/index'));
+            }
+            $this->error(lang('add_fail'));
+        } else {
+            $this->setAdminCurItem('add');
+            return $this->fetch('form');
+        }
+    }
+
+    /**
+     * 修改我们的团队
+     * @return mixed
+     */
+    public function edit()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $id = input('param.id');
+        if ($id <= 0) {
+            $this->error('系统错误');
+        }
+        $condition['id'] = $id;
+        if (request()->isPost()) {
+            $data = array(
+                'name' => input('post.name'),
+                'info' => input('post.info'),
+                'update_time' => time(),
+            );
+            $imgurl = DS_THEME_STYLE_URL . 'images/team';
+            $numurl = '/static/home/images/team';
+            $file = request()->file('image');
+            if($file){
+                $imgname = time().'.jpg';
+                $file = $file->setSaveName($imgname);//设置保存文件名
+                $imgo = $file->move($imgurl, $savename = $imgname, $replace = true);
+                if($imgo){
+                    $data['img_url'] =$numurl.'/'.$imgname;
+                }
+            }
+
+            $result = model('OurTeam')->edit(['id' => $id], $data);
+            if ($result >= 0) {
+                $this->success(lang('edit_succ'), 'OurTeam/index');
+            } else {
+                $this->error(lang('edit_fail'));
+            }
+        } else {
+
+            $ourteam = model('OurTeam')->getOneOurteam(['id' => $id]);
+            $this->assign('ourteam', $ourteam);
+            $this->setAdminCurItem('edit');
+            return $this->fetch('form');
+        }
+    }
+
+
+    /**
+     * 删除团队
+     * @return mixed
+     */
+    function del()
+    {
+        $id = intval(input('param.id'));
+        if ($id) {
+            $condition['id'] = $id;
+            $result = model('OurTeam')->deleteOurTeam($condition);
+            if ($result) {
+                ds_json_encode(10000, lang('del_succ'));
+            } else {
+                ds_json_encode(10001, lang('del_fail'));
+            }
+        } else {
+            ds_json_encode(10001, lang('param_error'));
+        }
+    }
+}

+ 14 - 0
application/admin/lang/zh-cn.php

@@ -15,6 +15,7 @@ $lang['ds_operation'] = '操作';
 $lang['ds_manage'] = '管理';
 $lang['ds_add'] = '添加';
 $lang['ds_edit'] = '编辑';
+$lang['ds_detail'] = '详情';
 $lang['ds_del'] = '删除';
 $lang['ds_reply'] = '回复';
 $lang['ds_search'] = '搜索';
@@ -64,7 +65,10 @@ $lang['ds_welcome'] = '欢迎界面';
 //基本设置
 $lang['ds_setting_manage'] = '系统设置';
 $lang['ds_config'] = '网站设置';
+$lang['ds_contact'] = '联系我们';
 $lang['ds_headnav'] = '网站头部导航栏设置';
+$lang['ds_case'] = '开发案例';
+$lang['ds_server'] = '开发服务';
 $lang['ds_wzconfig'] = '前台设置';
 $lang['ds_fzsconfig'] = '网站防灌水';
 $lang['ds_seoconfig'] = 'seo设置';
@@ -99,6 +103,8 @@ $lang['ds_admin_dlgroup'] = '权限删除';
 
 //内容管理
 $lang['ds_content_manage'] = '内容管理';
+$lang['ds_leaderteam'] = '领导团队';
+$lang['ds_ourteam'] = '我们的团队';
 $lang['ds_addcolumn'] = '栏目添加';
 $lang['ds_edcolumn'] = '栏目编辑';
 $lang['ds_dlcolumn'] = '栏目删除';
@@ -142,4 +148,12 @@ $lang['seo_title'] = 'SEO标题';
 $lang['seo_keywords'] = 'SEO关键字';
 $lang['seo_description'] = 'SEO描述';
 
+
+$lang['address'] = '公司地址';
+$lang['phone'] = '电话';
+$lang['email'] = '邮箱';
+$lang['fax'] = '传真';
+$lang['detail'] = '详情';
+$lang['update_time'] = '修改时间';
+
 ?>

+ 83 - 0
application/admin/view/contact/index.html

@@ -0,0 +1,83 @@
+{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form layui-form-pane" method="post">
+    <div class="layui-tab layui-tab-card">
+        <!--{include file="layout/admin_items" /}-->
+        <ul class="layui-tab-title">
+            <li>
+                <a href="index">联系我们</a>
+            </li>
+            <div class="tool-btns">
+                <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
+            </div>
+        </ul>
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+                <div class="layui-form-item">
+                    <label class="layui-form-label">{$Think.lang.address}</label>
+                    <div class="layui-input-inline">
+                        <input type="text" class="layui-input field-name" name="address" id="address" value="{$contact.address|default=''}" lay-verify="address" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">{$Think.lang.phone}</label>
+                    <div class="layui-input-inline">
+                        <input type="text" class="layui-input field-name" name="phone" id="phone" value="{$contact.phone|default=''}" lay-verify="phone" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                    </div>
+                </div>
+                <!-- //////////////////// -->
+                <div class="layui-form-item">
+                    <label class="layui-form-label">{$Think.lang.email}</label>
+                    <div class="layui-input-inline">
+                        <input type="text" class="layui-input field-name" name="email" id="email" value="{$contact.email|default=''}" lay-verify="email" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">{$Think.lang.fax}</label>
+                    <div class="layui-input-inline">
+                        <input type="text" class="layui-input field-name" name="fax" id="fax" value="{$contact.fax|default=''}" lay-verify="fax" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">{$Think.lang.detail}</label>
+                    <div class="layui-input-inline">
+                        <!--<input type="text" class="layui-input field-name" name="detail" id="detail" value="{$contact.detail|default=''}" lay-verify="detail" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />-->
+                        <textarea name="detail" id="" cols="35" rows="50"  style="resize:none" >{$contact.detail|default=''}</textarea>
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">{$Think.lang.update_time}</label>
+                    <div class="layui-input-inline">
+                        <input type="text" class="layui-input field-name" name="update_time" id="update_time" value="{$contact.update_time|default=''}" lay-verify="update_time" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <div class="layui-input-block">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}"/>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function () {
+        var form = layui.form;
+    });
+</script>
+<script>
+    //Demo
+    layui.use('form', function () {
+        var form = layui.form;
+
+        //监听提交
+        form.on('submit(formDemo)', function (data) {
+            layer.msg(JSON.stringify(data.field));
+            return false;
+        });
+    });
+</script>
+
+{/block}
+

+ 133 - 0
application/admin/view/development_case/form.html

@@ -0,0 +1,133 @@
+d{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form" method="post" enctype="multipart/form-data" >
+    <div class="layui-tab layui-tab-card">
+        {include file="layout/admin_items" /}
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+
+                <div class="layui-collapse">
+                    <div class="layui-colla-item">
+                        <h2 class="layui-colla-title">基本设置</h2>
+                        <div class="layui-colla-content layui-show">
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">案例名称</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="name" id="name" value="{$case.name|default=''}" lay-verify="name" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}案例名称" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">图片</label>
+                                <div class="layui-input-inline">
+                                    <input type="file" name="image" />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">分类</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="type" id="type" value="{$case.type|default=''}" lay-verify="sort" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}分类" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">排序</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="sort" id="sort" value="{$case.sort|default=''}" lay-verify="sort" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                                </div>
+                            </div>
+
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">状态</label>
+                                <div class="layui-input-inline">
+                                    <input type="checkbox" name="status" lay-skin="switch" lay-text="{$Think.lang.ds_yes}|{$Think.lang.ds_no}" value="1" {if condition="$case.status eq '1'"}checked{/if}>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+
+                <div class="layui-form-item mt20">
+                    <div class="layui-input-inline">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}" />
+                        <a class="layui-btn layui-btn-sm lay-btn-diy" href="javascript:history.go(-1)" style="background-color:#1E9FFF;height: 38px;line-height: 38px;padding: 0 18px;">返回</a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function () {
+        var form = layui.form;
+    });
+    layui.use('element', function () {
+        var element = layui.element;
+    });
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+        laydate.render({
+            elem: '#product_addtime'
+        });
+    });
+
+    function add_uploadedfile(file_data)
+    {
+        var newImg = '<li id="' + file_data.file_id + '"><img src="' + file_data.file_url + '"/><i class="delect layui-icon" title="插入编辑器" onclick="insert_editor(\''+file_data.file_url+'\')">&#xe654;</i><i class="insert layui-icon" title="删除图片" onclick="del_productpic(' + file_data.file_id + ')">&#xe640;</i></li>'
+        $('.selected_pic ul').prepend(newImg);
+    }
+
+
+    /**
+     * 插入编辑器
+     */
+    function insert_editor(file_path){
+        ue.execCommand('insertimage', {src:file_path});
+    }
+
+    function del_productpic(file_id)
+    {
+        layer.open({
+            content: '{$Think.lang.ds_confirm_cancel}',
+            yes: function(index, layero){
+                $.getJSON("{:url('pic/del')}",{file_id: + file_id,pic_type:'product'}, function(result){
+                    if(result){
+                        $('#' + file_id).remove();
+                        layer.msg('{$Think.lang.del_succ}');
+                        layer.close(index);
+                        return;
+                    }else{
+                        layer.msg('{$Think.lang.del_fail}');
+                        layer.close(index);
+                        return;
+                    }
+                });
+            }
+        });
+    }
+</script>
+<script type="text/javascript">
+    $("input#image").change(function () {
+        //console.log($(this).val());
+        if($(this).val() !=''){
+            $("form#upForm").ajaxSubmit({
+                url:"imgUp.php",
+                type:"post",
+                dataType:"json",
+                data:$(this).serialize(),
+                success:function (backData) {
+                    var $path=backData.uploaded_path;
+                    //console.log(backData);
+                    $("div.imgUp").css("backgroundImage","url("+$path+")");
+
+                },
+                error:function (e) {
+                    console.log(e);
+                }
+            })
+        }
+    })
+</script>
+{/block}
+
+

+ 59 - 0
application/admin/view/development_case/index.html

@@ -0,0 +1,59 @@
+{extend name="layout:home" /}
+{block name="container"}
+<div class="layui-tab layui-tab-card">
+    <ul class="layui-tab-title">
+        <li>
+            <a href="index">管理</a>
+        </li>
+        <li class="layui-this">
+            <a href="add">新增</a>
+        </li>
+        <div class="tool-btns">
+            <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
+        </div>
+    </ul>
+    <div class="layui-tab-content page-tab-content">
+        <table class="layui-table lay-even">
+            <colgroup>
+                <col width="100">
+                <col width="200">
+                <col width="100">
+                <col width="200">
+                <col width="200">
+                <col width="80">
+                <col width="240">
+                <col>
+            </colgroup>
+            <thead>
+            <tr>
+                <th>id</th>
+                <th>案例名称</th>
+                <th>排序</th>
+                <th>分类</th>
+                <th>修改时间</th>
+                <th>状态</th>
+                <th>{$Think.lang.ds_operation}</th>
+            </tr>
+            </thead>
+            <tbody>
+            {volist name="case_list" id="case" key="kk"}
+            <tr>
+                <td>{$case.id}</td>
+                <td>{$case.name}</td>
+                <td>{$case.sort}</td>
+                <td>{$case.type}</td>
+                <td>{$case.update_time}</td>
+                <td>{if $case.status==1}展示{else}未展示{/if}</td>
+                <td>
+                    <!--<a href="{:url('detail',['id'=>$case.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-detail"></i>{$Think.lang.ds_detail}</a>-->
+                    <a href="{:url('edit',['id'=>$case.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>{$Think.lang.ds_edit}</a>
+                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('{:url('del',['id'=>$case.id])}','{$Think.lang.ds_confirm_cancel}')"><i class="layui-icon layui-icon-delete"></i>{$Think.lang.ds_del}</a>
+                </td>
+            </tr>
+            {/volist}
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js"></script>
+{/block}

+ 133 - 0
application/admin/view/development_server/form.html

@@ -0,0 +1,133 @@
+d{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form" method="post" enctype="multipart/form-data" >
+    <div class="layui-tab layui-tab-card">
+        {include file="layout/admin_items" /}
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+
+                <div class="layui-collapse">
+                    <div class="layui-colla-item">
+                        <h2 class="layui-colla-title">基本设置</h2>
+                        <div class="layui-colla-content layui-show">
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">开发服务名称</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="name" id="name" value="{$server.name|default=''}" lay-verify="name" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}开发服务名称" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">图片</label>
+                                <div class="layui-input-inline">
+                                    <input type="file" name="image" />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">排序</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="sort" id="sort" value="{$server.sort|default=''}" lay-verify="sort" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}排序" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">详情</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="detail" id="detail" value="{$server.detail|default=''}" lay-verify="detail" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}详情" required />
+                                </div>
+                            </div>
+
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">状态</label>
+                                <div class="layui-input-inline">
+                                    <input type="checkbox" name="status" lay-skin="switch" lay-text="{$Think.lang.ds_yes}|{$Think.lang.ds_no}" value="1" {if condition="$server.status eq '1'"}checked{/if}>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+
+                <div class="layui-form-item mt20">
+                    <div class="layui-input-inline">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}" />
+                        <a class="layui-btn layui-btn-sm lay-btn-diy" href="javascript:history.go(-1)" style="background-color:#1E9FFF;height: 38px;line-height: 38px;padding: 0 18px;">返回</a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function () {
+        var form = layui.form;
+    });
+    layui.use('element', function () {
+        var element = layui.element;
+    });
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+        laydate.render({
+            elem: '#product_addtime'
+        });
+    });
+
+    function add_uploadedfile(file_data)
+    {
+        var newImg = '<li id="' + file_data.file_id + '"><img src="' + file_data.file_url + '"/><i class="delect layui-icon" title="插入编辑器" onclick="insert_editor(\''+file_data.file_url+'\')">&#xe654;</i><i class="insert layui-icon" title="删除图片" onclick="del_productpic(' + file_data.file_id + ')">&#xe640;</i></li>'
+        $('.selected_pic ul').prepend(newImg);
+    }
+
+
+    /**
+     * 插入编辑器
+     */
+    function insert_editor(file_path){
+        ue.execCommand('insertimage', {src:file_path});
+    }
+
+    function del_productpic(file_id)
+    {
+        layer.open({
+            content: '{$Think.lang.ds_confirm_cancel}',
+            yes: function(index, layero){
+                $.getJSON("{:url('pic/del')}",{file_id: + file_id,pic_type:'product'}, function(result){
+                    if(result){
+                        $('#' + file_id).remove();
+                        layer.msg('{$Think.lang.del_succ}');
+                        layer.close(index);
+                        return;
+                    }else{
+                        layer.msg('{$Think.lang.del_fail}');
+                        layer.close(index);
+                        return;
+                    }
+                });
+            }
+        });
+    }
+</script>
+<script type="text/javascript">
+    $("input#image").change(function () {
+        //console.log($(this).val());
+        if($(this).val() !=''){
+            $("form#upForm").ajaxSubmit({
+                url:"imgUp.php",
+                type:"post",
+                dataType:"json",
+                data:$(this).serialize(),
+                success:function (backData) {
+                    var $path=backData.uploaded_path;
+                    //console.log(backData);
+                    $("div.imgUp").css("backgroundImage","url("+$path+")");
+
+                },
+                error:function (e) {
+                    console.log(e);
+                }
+            })
+        }
+    })
+</script>
+{/block}
+
+

+ 59 - 0
application/admin/view/development_server/index.html

@@ -0,0 +1,59 @@
+{extend name="layout:home" /}
+{block name="container"}
+<div class="layui-tab layui-tab-card">
+    <ul class="layui-tab-title">
+        <li>
+            <a href="index">管理</a>
+        </li>
+        <li class="layui-this">
+            <a href="add">新增</a>
+        </li>
+        <div class="tool-btns">
+            <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
+        </div>
+    </ul>
+    <div class="layui-tab-content page-tab-content">
+        <table class="layui-table lay-even">
+            <colgroup>
+                <col width="100">
+                <col width="200">
+                <col width="100">
+                <col width="200">
+                <col width="200">
+                <col width="80">
+                <col width="240">
+                <col>
+            </colgroup>
+            <thead>
+            <tr>
+                <th>id</th>
+                <th>名称</th>
+                <th>排序</th>
+                <th>详情</th>
+                <th>添加时间</th>
+                <th>状态</th>
+                <th>{$Think.lang.ds_operation}</th>
+            </tr>
+            </thead>
+            <tbody>
+            {volist name="server_list" id="server" key="kk"}
+            <tr>
+                <td>{$server.id}</td>
+                <td>{$server.name}</td>
+                <td>{$server.sort}</td>
+                <td>{$server.detail}</td>
+                <td>{$server.add_time}</td>
+                <td>{if $server.status==1}开启{else}关闭{/if}</td>
+                <td>
+                    <!--<a href="{:url('detail',['id'=>$server.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-detail"></i>{$Think.lang.ds_detail}</a>-->
+                    <a href="{:url('edit',['id'=>$server.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>{$Think.lang.ds_edit}</a>
+                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('{:url('del',['id'=>$server.id])}','{$Think.lang.ds_confirm_cancel}')"><i class="layui-icon layui-icon-delete"></i>{$Think.lang.ds_del}</a>
+                </td>
+            </tr>
+            {/volist}
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js"></script>
+{/block}

+ 144 - 0
application/admin/view/leader_team/form.html

@@ -0,0 +1,144 @@
+d{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form" method="post" enctype="multipart/form-data" >
+    <div class="layui-tab layui-tab-card">
+        {include file="layout/admin_items" /}
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+
+                <div class="layui-collapse">
+                    <div class="layui-colla-item">
+                        <h2 class="layui-colla-title">基本设置</h2>
+                        <div class="layui-colla-content layui-show">
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">中文名称</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="name_ch" id="name_ch" value="{$leaderteam.name_ch|default=''}" lay-verify="name_ch" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}中文名称" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">英文名称</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="name_en" id="name_en" value="{$leaderteam.name_en|default=''}" lay-verify="name_en" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}英文名称" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">性别</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="gender" id="gender" value="{$leaderteam.gender|default=''}" lay-verify="gender" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}性别" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">年龄</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="age" id="age" value="{$leaderteam.age|default=''}" lay-verify="age" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}年龄" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">图片</label>
+                                <div class="layui-input-inline">
+                                    <input type="file" name="image" />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">职位</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="position" id="position" value="{$leaderteam.position|default=''}" lay-verify="position" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}职位" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">简介</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="info" id="info" value="{$leaderteam.info|default=''}" lay-verify="info" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}简介" required />
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+
+                <div class="layui-form-item mt20">
+                    <div class="layui-input-inline">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}" />
+                        <a class="layui-btn layui-btn-sm lay-btn-diy" href="javascript:history.go(-1)" style="background-color:#1E9FFF;height: 38px;line-height: 38px;padding: 0 18px;">返回</a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function () {
+        var form = layui.form;
+    });
+    layui.use('element', function () {
+        var element = layui.element;
+    });
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+        laydate.render({
+            elem: '#product_addtime'
+        });
+    });
+
+    function add_uploadedfile(file_data)
+    {
+        var newImg = '<li id="' + file_data.file_id + '"><img src="' + file_data.file_url + '"/><i class="delect layui-icon" title="插入编辑器" onclick="insert_editor(\''+file_data.file_url+'\')">&#xe654;</i><i class="insert layui-icon" title="删除图片" onclick="del_productpic(' + file_data.file_id + ')">&#xe640;</i></li>'
+        $('.selected_pic ul').prepend(newImg);
+    }
+
+
+    /**
+     * 插入编辑器
+     */
+    function insert_editor(file_path){
+        ue.execCommand('insertimage', {src:file_path});
+    }
+
+    function del_productpic(file_id)
+    {
+        layer.open({
+            content: '{$Think.lang.ds_confirm_cancel}',
+            yes: function(index, layero){
+                $.getJSON("{:url('pic/del')}",{file_id: + file_id,pic_type:'product'}, function(result){
+                    if(result){
+                        $('#' + file_id).remove();
+                        layer.msg('{$Think.lang.del_succ}');
+                        layer.close(index);
+                        return;
+                    }else{
+                        layer.msg('{$Think.lang.del_fail}');
+                        layer.close(index);
+                        return;
+                    }
+                });
+            }
+        });
+    }
+</script>
+<script type="text/javascript">
+    $("input#image").change(function () {
+        //console.log($(this).val());
+        if($(this).val() !=''){
+            $("form#upForm").ajaxSubmit({
+                url:"imgUp.php",
+                type:"post",
+                dataType:"json",
+                data:$(this).serialize(),
+                success:function (backData) {
+                    var $path=backData.uploaded_path;
+                    //console.log(backData);
+                    $("div.imgUp").css("backgroundImage","url("+$path+")");
+
+                },
+                error:function (e) {
+                    console.log(e);
+                }
+            })
+        }
+    })
+</script>
+{/block}
+
+

+ 64 - 0
application/admin/view/leader_team/index.html

@@ -0,0 +1,64 @@
+{extend name="layout:home" /}
+{block name="container"}
+<div class="layui-tab layui-tab-card">
+    <ul class="layui-tab-title">
+        <li>
+            <a href="index">管理</a>
+        </li>
+        <li class="layui-this">
+            <a href="add">新增</a>
+        </li>
+        <div class="tool-btns">
+            <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
+        </div>
+    </ul>
+    <div class="layui-tab-content page-tab-content">
+        <table class="layui-table lay-even">
+            <colgroup>
+                <col width="50">
+                <col width="60">
+                <col width="60">
+                <col width="60">
+                <col width="60">
+                <col width="200">
+                <col width="180">
+                <col width="100">
+                <col width="160">
+                <col>
+            </colgroup>
+            <thead>
+            <tr>
+                <th>id</th>
+                <th>姓名</th>
+                <th>性别</th>
+                <th>年龄</th>
+                <th>职位</th>
+                <th>简介</th>
+                <th>修改时间</th>
+                <th>图片</th>
+                <th>{$Think.lang.ds_operation}</th>
+            </tr>
+            </thead>
+            <tbody>
+            {volist name="leaderteam_list" id="leaderteam" key="kk"}
+            <tr>
+                <td>{$leaderteam.id}</td>
+                <td>{$leaderteam.name_ch}</td>
+                <td>{$leaderteam.gender}</td>
+                <td>{$leaderteam.age}</td>
+                <td>{$leaderteam.position}</td>
+                <td>{$leaderteam.info}</td>
+                <td>{$leaderteam.update_time}</td>
+                <td><img src="{$leaderteam.img_url}" alt=""></td>
+                <td>
+                    <a href="{:url('edit',['id'=>$leaderteam.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>{$Think.lang.ds_edit}</a>
+                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('{:url('del',['id'=>$leaderteam.id])}','{$Think.lang.ds_confirm_cancel}')"><i class="layui-icon layui-icon-delete"></i>{$Think.lang.ds_del}</a>
+                </td>
+            </tr>
+            {/volist}
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js"></script>
+{/block}

+ 120 - 0
application/admin/view/our_team/form.html

@@ -0,0 +1,120 @@
+d{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form" method="post" enctype="multipart/form-data" >
+    <div class="layui-tab layui-tab-card">
+        {include file="layout/admin_items" /}
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+
+                <div class="layui-collapse">
+                    <div class="layui-colla-item">
+                        <h2 class="layui-colla-title">基本设置</h2>
+                        <div class="layui-colla-content layui-show">
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">名称</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="name" id="name" value="{$ourteam.name|default=''}" lay-verify="name" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}名称" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">图片</label>
+                                <div class="layui-input-inline">
+                                    <input type="file" name="image" />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">简介</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="info" id="info" value="{$ourteam.info|default=''}" lay-verify="info" autocomplete="off" placeholder="{$Think.lang.ds_please_enter}简介" required />
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+
+                <div class="layui-form-item mt20">
+                    <div class="layui-input-inline">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}" />
+                        <a class="layui-btn layui-btn-sm lay-btn-diy" href="javascript:history.go(-1)" style="background-color:#1E9FFF;height: 38px;line-height: 38px;padding: 0 18px;">返回</a>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function () {
+        var form = layui.form;
+    });
+    layui.use('element', function () {
+        var element = layui.element;
+    });
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+        laydate.render({
+            elem: '#product_addtime'
+        });
+    });
+
+    function add_uploadedfile(file_data)
+    {
+        var newImg = '<li id="' + file_data.file_id + '"><img src="' + file_data.file_url + '"/><i class="delect layui-icon" title="插入编辑器" onclick="insert_editor(\''+file_data.file_url+'\')">&#xe654;</i><i class="insert layui-icon" title="删除图片" onclick="del_productpic(' + file_data.file_id + ')">&#xe640;</i></li>'
+        $('.selected_pic ul').prepend(newImg);
+    }
+
+
+    /**
+     * 插入编辑器
+     */
+    function insert_editor(file_path){
+        ue.execCommand('insertimage', {src:file_path});
+    }
+
+    function del_productpic(file_id)
+    {
+        layer.open({
+            content: '{$Think.lang.ds_confirm_cancel}',
+            yes: function(index, layero){
+                $.getJSON("{:url('pic/del')}",{file_id: + file_id,pic_type:'product'}, function(result){
+                    if(result){
+                        $('#' + file_id).remove();
+                        layer.msg('{$Think.lang.del_succ}');
+                        layer.close(index);
+                        return;
+                    }else{
+                        layer.msg('{$Think.lang.del_fail}');
+                        layer.close(index);
+                        return;
+                    }
+                });
+            }
+        });
+    }
+</script>
+<script type="text/javascript">
+    $("input#image").change(function () {
+        //console.log($(this).val());
+        if($(this).val() !=''){
+            $("form#upForm").ajaxSubmit({
+                url:"imgUp.php",
+                type:"post",
+                dataType:"json",
+                data:$(this).serialize(),
+                success:function (backData) {
+                    var $path=backData.uploaded_path;
+                    //console.log(backData);
+                    $("div.imgUp").css("backgroundImage","url("+$path+")");
+
+                },
+                error:function (e) {
+                    console.log(e);
+                }
+            })
+        }
+    })
+</script>
+{/block}
+
+

+ 55 - 0
application/admin/view/our_team/index.html

@@ -0,0 +1,55 @@
+{extend name="layout:home" /}
+{block name="container"}
+<div class="layui-tab layui-tab-card">
+    <ul class="layui-tab-title">
+        <li>
+            <a href="index">管理</a>
+        </li>
+        <li class="layui-this">
+            <a href="add">新增</a>
+        </li>
+        <div class="tool-btns">
+            <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
+        </div>
+    </ul>
+    <div class="layui-tab-content page-tab-content">
+        <table class="layui-table lay-even">
+            <colgroup>
+                <col width="100">
+                <col width="200">
+                <col width="200">
+                <col width="200">
+                <col width="100">
+                <col width="200">
+                <col>
+            </colgroup>
+            <thead>
+            <tr>
+                <th>id</th>
+                <th>姓名</th>
+                <th>简介</th>
+                <th>修改时间</th>
+                <th>图片</th>
+                <th>{$Think.lang.ds_operation}</th>
+            </tr>
+            </thead>
+            <tbody>
+            {volist name="ourteam_list" id="ourteam" key="kk"}
+            <tr>
+                <td>{$ourteam.id}</td>
+                <td>{$ourteam.name}</td>
+                <td>{$ourteam.info}</td>
+                <td>{$ourteam.update_time}</td>
+                <td><img src="{$ourteam.img_url}" alt=""></td>
+                <td>
+                    <a href="{:url('edit',['id'=>$ourteam.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>{$Think.lang.ds_edit}</a>
+                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('{:url('del',['id'=>$ourteam.id])}','{$Think.lang.ds_confirm_cancel}')"><i class="layui-icon layui-icon-delete"></i>{$Think.lang.ds_del}</a>
+                </td>
+            </tr>
+            {/volist}
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js"></script>
+{/block}

+ 35 - 0
application/common/model/Contact.php

@@ -0,0 +1,35 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class Contact extends Model
+{
+    /**
+     * 读取联系我们信息
+     *
+     * @param string $name 系统设置信息名称
+     * @return array 数组格式的返回结果
+     */
+    public function getContact()
+    {
+        $result = db('contact')->select();
+        if (is_array($result) and is_array($result[0])) {
+            return $result[0];
+        }
+        return false;
+    }
+
+
+    /**
+     * 修改联系我们信息
+     */
+    public function updateContact( $update)
+    {
+        return db('contact')->where('id','1')->update($update);
+    }
+
+}
+
+?>

+ 70 - 0
application/common/model/DevelopmentCase.php

@@ -0,0 +1,70 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class DevelopmentCase extends Model
+{
+    public $page_info;
+
+    /**
+     * 获取单个案例内容
+     */
+    public function getOneCase($condition, $field = '*')
+    {
+        return db('case')->field($field)->where($condition)->find();
+    }
+
+
+
+    /**
+     * 开发案例列表
+     */
+    public function getDevelopmentCase($condition, $field = '*', $page = 0, $order = 'sort', $limit = '')
+    {
+        if ($limit) {
+            return db('case')->where($condition)->field($field)->order($order)->page($page)->limit($limit)->select();
+        } else {
+            $res = db('case')->where($condition)->field($field)->order($order)->paginate($page);
+            $this->page_info = $res;
+            return $res->items();
+        }
+    }
+    /**
+     * 新增案例
+     */
+    public function addCase($param)
+    {
+        return db('case')->insertGetId($param);
+    }
+
+    /**
+     * 修改案例
+     */
+    public function edit($condition, $update)
+    {
+        return db('case')->where($condition)->update($update);
+    }
+
+    /**
+     * 删除案例
+     * @param unknown $condition
+     * @return boolean
+     */
+    public function deleteCase($condition)
+    {
+        $case_array = $this->getDevelopmentCase($condition, 'id');
+        $id_array = array();
+        foreach ($case_array as $value) {
+            $id_array[] = $value['id'];
+            // @unlink(BASE_UPLOAD_PATH . DS . ATTACH_PRODUCT . DS . $value['product_img']);
+        }
+        return db('case')->where(array('id' => array('in', $id_array)))->delete();
+    }
+
+
+
+}
+
+?>

+ 70 - 0
application/common/model/DevelopmentServer.php

@@ -0,0 +1,70 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class DevelopmentServer extends Model
+{
+    public $page_info;
+
+    /**
+     * 获取单个开发服务内容
+     */
+    public function getOneServer($condition, $field = '*')
+    {
+        return db('development_server')->field($field)->where($condition)->find();
+    }
+
+
+
+    /**
+     * 开发服务列表
+     */
+    public function getDevelopmentServer($condition, $field = '*', $page = 0, $order = 'sort', $limit = '')
+    {
+        if ($limit) {
+            return db('development_server')->where($condition)->field($field)->order($order)->page($page)->limit($limit)->select();
+        } else {
+            $res = db('development_server')->where($condition)->field($field)->order($order)->paginate($page);
+            $this->page_info = $res;
+            return $res->items();
+        }
+    }
+    /**
+     * 新增开发服务
+     */
+    public function add($param)
+    {
+        return db('development_server')->insertGetId($param);
+    }
+
+    /**
+     * 修改开发服务
+     */
+    public function edit($condition, $update)
+    {
+        return db('development_server')->where($condition)->update($update);
+    }
+
+    /**
+     * 删除开发服务
+     * @param unknown $condition
+     * @return boolean
+     */
+    public function deleteServer($condition)
+    {
+        $case_array = $this->getDevelopmentServer($condition, 'id');
+        $id_array = array();
+        foreach ($case_array as $value) {
+            $id_array[] = $value['id'];
+            // @unlink(BASE_UPLOAD_PATH . DS . ATTACH_PRODUCT . DS . $value['product_img']);
+        }
+        return db('development_server')->where(array('id' => array('in', $id_array)))->delete();
+    }
+
+
+
+}
+
+?>

+ 70 - 0
application/common/model/LeaderTeam.php

@@ -0,0 +1,70 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class LeaderTeam extends Model
+{
+    public $page_info;
+
+    /**
+     * 获取单个领导团队信息
+     */
+    public function getOneleaderteam($condition, $field = '*')
+    {
+        return db('leader_team')->field($field)->where($condition)->find();
+    }
+
+
+
+    /**
+     * 领导团队列表
+     */
+    public function getLeaderTeam($condition, $field = '*', $page = 0, $order = 'add_time', $limit = '')
+    {
+        if ($limit) {
+            return db('leader_team')->where($condition)->field($field)->order($order)->page($page)->limit($limit)->select();
+        } else {
+            $res = db('leader_team')->where($condition)->field($field)->order($order)->paginate($page);
+            $this->page_info = $res;
+            return $res->items();
+        }
+    }
+    /**
+     * 新增领导团队
+     */
+    public function add($param)
+    {
+        return db('leader_team')->insertGetId($param);
+    }
+
+    /**
+     * 修改领导团队信息
+     */
+    public function edit($condition, $update)
+    {
+        return db('leader_team')->where($condition)->update($update);
+    }
+
+    /**
+     * 删除领导团队
+     * @param unknown $condition
+     * @return boolean
+     */
+    public function deleteLeaderTeam($condition)
+    {
+        $leaderteam_array = $this->getLeaderTeam($condition, 'id');
+        $id_array = array();
+        foreach ($leaderteam_array as $value) {
+            $id_array[] = $value['id'];
+            // @unlink(BASE_UPLOAD_PATH . DS . ATTACH_PRODUCT . DS . $value['product_img']);
+        }
+        return db('leader_team')->where(array('id' => array('in', $id_array)))->delete();
+    }
+
+
+
+}
+
+?>

+ 70 - 0
application/common/model/OurTeam.php

@@ -0,0 +1,70 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class OurTeam extends Model
+{
+    public $page_info;
+
+    /**
+     * 获取单个我们的团队信息
+     */
+    public function getOneOurteam($condition, $field = '*')
+    {
+        return db('our_team')->field($field)->where($condition)->find();
+    }
+
+
+
+    /**
+     * 我们的团队列表
+     */
+    public function getOurTeam($condition, $field = '*', $page = 0, $order = 'add_time', $limit = '')
+    {
+        if ($limit) {
+            return db('our_team')->where($condition)->field($field)->order($order)->page($page)->limit($limit)->select();
+        } else {
+            $res = db('our_team')->where($condition)->field($field)->order($order)->paginate($page);
+            $this->page_info = $res;
+            return $res->items();
+        }
+    }
+    /**
+     * 新增团队
+     */
+    public function add($param)
+    {
+        return db('our_team')->insertGetId($param);
+    }
+
+    /**
+     * 修改我们的团队信息
+     */
+    public function edit($condition, $update)
+    {
+        return db('our_team')->where($condition)->update($update);
+    }
+
+    /**
+     * 删除团队
+     * @param unknown $condition
+     * @return boolean
+     */
+    public function deleteOurTeam($condition)
+    {
+        $ourteam_array = $this->getOurTeam($condition, 'id');
+        $id_array = array();
+        foreach ($ourteam_array as $value) {
+            $id_array[] = $value['id'];
+            // @unlink(BASE_UPLOAD_PATH . DS . ATTACH_PRODUCT . DS . $value['product_img']);
+        }
+        return db('our_team')->where(array('id' => array('in', $id_array)))->delete();
+    }
+
+
+
+}
+
+?>

binární
public/static/admin/images/logo.png


binární
public/static/home/images/team/1557911825.jpg


binární
public/static/home/images/team/1557911871.jpg


binární
public/static/home/images/team/1557911975.jpg


binární
public/static/home/images/team/1557912024.jpg


binární
public/static/home/images/team/1557912173.jpg


binární
public/static/home/images/team/1557912240.jpg


binární
public/static/home/images/team/1557912387.jpg


binární
public/static/home/images/team/1557912418.jpg


+ 0 - 116
runtime/temp/1c9c0105fce52cca48a9090cf1ab68a4.php

@@ -1,116 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:86:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\wlcome\index.html";i:1557480234;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;}*/ ?>
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="utf-8">
-        <meta http-equiv="X-UA-Compatible" content="IE=edge">
-        <title>安全猫官网</title>
-        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
-        <!-- Bootstrap 3.3.7 -->
-        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
-        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
-        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
-        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
-        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
-        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
-        <script type="text/javascript">
-            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
-            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
-            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
-            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
-            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
-            layui.use('layer', function () {
-                var layer = layui.layer;
-            });
-        </script>
-    </head>
-    <body>
-        
-<div class="layui-tab-content page-tab-content">
-    <h1><?php echo \think\Lang::get('wel_version_info'); ?></h1>
-    <table class="layui-table lay-even">
-        <colgroup>
-            <col width="300">
-            <col width="530">
-        </colgroup>
-        <tbody>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_version'); ?></td>
-            <td><?php echo $statistics['version']; ?></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_install_date'); ?></td>
-            <td><?php if(!(empty($statistics['setup_date']) || (($statistics['setup_date'] instanceof \think\Collection || $statistics['setup_date'] instanceof \think\Paginator ) && $statistics['setup_date']->isEmpty()))): ?>$statistics['setup_date']<?php else: ?><?php echo \think\Lang::get('temporary_installation'); endif; ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_program_development'); ?></td>
-            <td><?php echo \think\Lang::get('wel_deshangwangluo'); ?></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_all_right_reserved'); ?></td>
-            <td><?php echo \think\Lang::get('wel_piracy_must_be_studied'); ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_aboutus_website'); ?></td>
-            <td><a href="http://www.csdeshang.com" target="_blank"><?php echo \think\Lang::get('aboutus_website'); ?></a></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_aboutus_bbs'); ?></td>
-            <td><a href="http://bbs.csdeshang.com" target="_blank"><?php echo \think\Lang::get('wel_communication_bbs'); ?></a></td>
-        </tr>
-        </tbody>
-    </table>
-
-    <h1><?php echo \think\Lang::get('wel_sys_info'); ?></h1>
-    <table class="layui-table lay-even">
-        <colgroup>
-            <col width="300">
-            <col width="530">
-        </colgroup>
-        <tbody>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_thinkphp_version'); ?></td>
-            <td><?php echo THINK_VERSION; ?></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_class_library_file_suffix'); ?></td>
-            <td><?php echo EXT; ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_server_os'); ?></td>
-            <td><?php echo $statistics['os']; ?></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_server_domain_ip'); ?></td>
-            <td><?php echo $statistics['domain']; ?> [ <?php echo $statistics['ip']; ?> ]</td>
-        </tr>
-        <tr>
-            <td class="gray_bg">WEB <?php echo \think\Lang::get('wel_server'); ?></td>
-            <td><?php echo $statistics['web_server']; ?></td>
-            <td class="gray_bg">PHP <?php echo \think\Lang::get('wel_version'); ?></td>
-            <td><?php echo $statistics['php_version']; ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg">MYSQL <?php echo \think\Lang::get('wel_version'); ?></td>
-            <td><?php echo $statistics['sql_version']; ?></td>
-            <td class="gray_bg">GD <?php echo \think\Lang::get('wel_version'); ?></td>
-            <td><?php echo $statistics['gdinfo']; ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_file_uplode_limit'); ?></td>
-            <td><?php echo $statistics['fileupload']; ?></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_max_occupied_memory'); ?></td>
-            <td><?php echo $statistics['memory_limit']; ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_max_ex_time'); ?></td>
-            <td><?php echo $statistics['max_ex_time']; ?></td>
-            <td class="gray_bg"><?php echo \think\Lang::get('wel_safe_mode'); ?></td>
-            <td><?php echo $statistics['safe_mode']; ?></td>
-        </tr>
-        <tr>
-            <td class="gray_bg">Zlib <?php echo \think\Lang::get('wel_support'); ?></td>
-            <td><?php echo $statistics['zlib']; ?></td>
-            <td class="gray_bg">Curl <?php echo \think\Lang::get('wel_support'); ?></td>
-            <td><?php echo $statistics['curl']; ?></td>
-        </tr>
-        </tbody>
-    </table>
-</div>
-
-
-    </body>
-</html>
-
-
-

+ 0 - 139
runtime/temp/5b4e6916dcb7713b8c85a074c4d04c3c.php

@@ -1,139 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:87:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\head_nav\form.html";i:1557742416;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;s:82:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\admin_items.html";i:1557480234;}*/ ?>
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="utf-8">
-        <meta http-equiv="X-UA-Compatible" content="IE=edge">
-        <title>安全猫官网</title>
-        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
-        <!-- Bootstrap 3.3.7 -->
-        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
-        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
-        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
-        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
-        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
-        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
-        <script type="text/javascript">
-            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
-            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
-            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
-            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
-            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
-            layui.use('layer', function () {
-                var layer = layui.layer;
-            });
-        </script>
-    </head>
-    <body>
-        
-<form class="layui-form" method="post" enctype="multipart/form-data" >
-    <div class="layui-tab layui-tab-card">
-        <?php if($admin_item): ?>
-<ul class="layui-tab-title">
-    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): if(array_intersect(explode(" ",str_replace("/", ".",substr($item['url'],7,-5))),$allpower) || array_intersect(explode(" ",str_replace("/", ".",substr($item['url'],31,-16))),$allpower)): ?>
-    <li <?php if($item['name'] == $curitem): ?>class="layui-this" <?php endif; ?>>
-    <a href="<?php echo $item['url']; ?>"><?php echo $item['text']; ?></a>
-    <?php endif; ?>
-    </li>
-    <?php endforeach; endif; else: echo "" ;endif; ?>
-    <div class="tool-btns">
-        <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></i></a>
-    </div>
-</ul>
-<?php endif; ?>
-        <div class="layui-tab-content page-tab-content">
-            <div class="layui-tab-item layui-show ">
-
-                <div class="layui-collapse">
-                    <div class="layui-colla-item">
-                        <h2 class="layui-colla-title">基本设置</h2>
-                        <div class="layui-colla-content layui-show">
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">导航栏名称</label>
-                                <div class="layui-input-inline">
-                                    <input type="text" class="layui-input field-name" name="nav_name" id="nav_name" value="<?php echo (isset($headnav['nav_name']) && ($headnav['nav_name'] !== '')?$headnav['nav_name']:''); ?>" lay-verify="nav_name" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?>导航栏名称" required />
-                                </div>
-                            </div>
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">排序</label>
-                                <div class="layui-input-inline">
-                                    <input type="text" class="layui-input field-name" name="nav_sort" id="nav_sort" value="<?php echo (isset($headnav['nav_sort']) && ($headnav['nav_sort'] !== '')?$headnav['nav_sort']:''); ?>" lay-verify="nav_sort" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?>排序" required />
-                                </div>
-                            </div>
-
-                            <div class="layui-form-item">
-                                <label class="layui-form-label">状态</label>
-                                <div class="layui-input-inline">
-                                    <input type="checkbox" name="status" lay-skin="switch" lay-text="<?php echo \think\Lang::get('ds_yes'); ?>|<?php echo \think\Lang::get('ds_no'); ?>" value="1" <?php if($headnav['status'] == '1'): ?>checked<?php endif; ?>>
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-
-                </div>
-
-                <div class="layui-form-item mt20">
-                    <div class="layui-input-inline">
-                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="<?php echo lang('ds_submit'); ?>" />
-                        <a class="layui-btn layui-btn-sm lay-btn-diy" href="javascript:history.go(-1)" style="background-color:#1E9FFF;height: 38px;line-height: 38px;padding: 0 18px;">返回</a>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</form>
-<script>
-    layui.use('form', function () {
-        var form = layui.form;
-    });
-    layui.use('element', function () {
-        var element = layui.element;
-    });
-    layui.use('laydate', function(){
-        var laydate = layui.laydate;
-        laydate.render({
-            elem: '#product_addtime'
-        });
-    });
-
-    function add_uploadedfile(file_data)
-    {
-        var newImg = '<li id="' + file_data.file_id + '"><img src="' + file_data.file_url + '"/><i class="delect layui-icon" title="插入编辑器" onclick="insert_editor(\''+file_data.file_url+'\')">&#xe654;</i><i class="insert layui-icon" title="删除图片" onclick="del_productpic(' + file_data.file_id + ')">&#xe640;</i></li>'
-        $('.selected_pic ul').prepend(newImg);
-    }
-
-
-    /**
-     * 插入编辑器
-     */
-    function insert_editor(file_path){
-        ue.execCommand('insertimage', {src:file_path});
-    }
-
-    function del_productpic(file_id)
-    {
-        layer.open({
-            content: '<?php echo \think\Lang::get('ds_confirm_cancel'); ?>',
-            yes: function(index, layero){
-                $.getJSON("<?php echo url('pic/del'); ?>",{file_id: + file_id,pic_type:'product'}, function(result){
-                    if(result){
-                        $('#' + file_id).remove();
-                        layer.msg('<?php echo \think\Lang::get('del_succ'); ?>');
-                        layer.close(index);
-                        return;
-                    }else{
-                        layer.msg('<?php echo \think\Lang::get('del_fail'); ?>');
-                        layer.close(index);
-                        return;
-                    }
-                });
-            }
-        });
-    }
-</script>
-
-    </body>
-</html>
-
-
-

+ 0 - 47
runtime/temp/a110d949b0dc53ec8bd6210a8df6a198.php

@@ -1,47 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:66:"C:\phpStudy\PHPTutorial\WWW\aqm-web\thinkphp\tpl\dispatch_jump.tpl";i:1557480235;}*/ ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
-    <title>跳转提示</title>
-    <style type="text/css">
-        *{ padding: 0; margin: 0; }
-        body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }
-        .system-message{ padding: 24px 48px; }
-        .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
-        .system-message .jump{ padding-top: 10px; }
-        .system-message .jump a{ color: #333; }
-        .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px; }
-        .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
-    </style>
-</head>
-<body>
-    <div class="system-message">
-        <?php switch ($code) {case 1:?>
-            <h1>:)</h1>
-            <p class="success"><?php echo(strip_tags($msg));?></p>
-            <?php break;case 0:?>
-            <h1>:(</h1>
-            <p class="error"><?php echo(strip_tags($msg));?></p>
-            <?php break;} ?>
-        <p class="detail"></p>
-        <p class="jump">
-            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
-        </p>
-    </div>
-    <script type="text/javascript">
-        (function(){
-            var wait = document.getElementById('wait'),
-                href = document.getElementById('href').href;
-            var interval = setInterval(function(){
-                var time = --wait.innerHTML;
-                if(time <= 0) {
-                    location.href = href;
-                    clearInterval(interval);
-                };
-            }, 1000);
-        })();
-    </script>
-</body>
-</html>

+ 0 - 87
runtime/temp/bfa59e1c5138f50307b54b7b66a51308.php

@@ -1,87 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:88:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\head_nav\index.html";i:1557738638;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;}*/ ?>
-<!DOCTYPE html>
-<html>
-    <head>
-        <meta charset="utf-8">
-        <meta http-equiv="X-UA-Compatible" content="IE=edge">
-        <title>安全猫官网</title>
-        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
-        <!-- Bootstrap 3.3.7 -->
-        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
-        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
-        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
-        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
-        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
-        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
-        <script type="text/javascript">
-            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
-            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
-            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
-            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
-            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
-            layui.use('layer', function () {
-                var layer = layui.layer;
-            });
-        </script>
-    </head>
-    <body>
-        
-<div class="layui-tab layui-tab-card">
-    <ul class="layui-tab-title">
-        <li>
-            <a href="index">管理</a>
-        </li>
-        <li class="layui-this">
-            <a href="addHeadNav">新增</a>
-        </li>
-        <div class="tool-btns">
-            <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
-        </div>
-    </ul>
-    <div class="layui-tab-content page-tab-content">
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="100">
-                <col width="150">
-                <col width="100">
-                <col width="200">
-                <col width="200">
-                <col>
-            </colgroup>
-            <thead>
-            <tr>
-                <th>id</th>
-                <th>导航栏名称</th>
-                <th>排序</th>
-                <th>添加时间</th>
-                <th>修改时间</th>
-                <th>状态</th>
-                <th><?php echo \think\Lang::get('ds_operation'); ?></th>
-            </tr>
-            </thead>
-            <tbody>
-            <?php if(is_array($headnav_list) || $headnav_list instanceof \think\Collection || $headnav_list instanceof \think\Paginator): $kk = 0; $__LIST__ = $headnav_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$headnav): $mod = ($kk % 2 );++$kk;?>
-            <tr>
-                <td><?php echo $headnav['id']; ?></td>
-                <td><?php echo $headnav['nav_name']; ?></td>
-                <td><?php echo $headnav['nav_sort']; ?></td>
-                <td><?php echo $headnav['nav_add_time']; ?></td>
-                <td><?php echo $headnav['nav_update_time']; ?></td>
-                <td><?php if($headnav['status']==1): ?>使用中<?php else: ?>未使用<?php endif; ?></td>
-                <td>
-                    <a href="<?php echo url('edit',['id'=>$headnav['id']]); ?>" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
-                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('<?php echo url('del',['id'=>$headnav['id']]); ?>','<?php echo \think\Lang::get('ds_confirm_cancel'); ?>')"><i class="layui-icon layui-icon-delete"></i><?php echo \think\Lang::get('ds_del'); ?></a>
-                </td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; ?>
-            </tbody>
-        </table>
-    </div>
-</div>
-<script type="text/javascript" src="<?php echo ADMIN_SITE_ROOT; ?>/js/jquery.edit.js"></script>
-
-    </body>
-</html>
-
-
-

+ 0 - 196
runtime/temp/c19ac99b77135a08e0817e720be4a8c7.php

@@ -1,196 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:85:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\index\index.html";i:1557717134;}*/ ?>
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/html">
-<head>
-    <meta charset="utf-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <title>安全猫官网</title>
-    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
-    <!-- Bootstrap 3.3.7 -->
-    <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
-    <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
-    <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
-    <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
-    <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
-    <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
-    <script type="text/javascript">
-        var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
-        var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
-        var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
-        var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
-        var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
-    </script>
-</head>
-<body>
-<style type="text/css">
-    .layui-tab {
-        position: absolute;
-        left: 0;
-        top: 0;
-        height: 100%;
-        width: 100%;
-        z-index: 10;
-        margin: 0;
-        border: none;
-        overflow: hidden;
-    }
-
-    .layui-tab-content {
-        padding: 0;
-        height: 100%;
-    }
-
-    .layui-tab-item {
-        height: 100%;
-    }
-    .treeview .admin-nav-item{
-            color: #a7b1c2 !important;
-            padding-left: 5px;
-    }
-    .treeview .admin-nav-item:hover{
-            color: #fff !important;
-    }
-</style>
-<div class="admincp-header">
-    <div class="logo">
-        <img width="200" src="<?php echo ADMIN_SITE_ROOT; ?>/images/backlogo.png"/>
-    </div>
-    <div class="navbar">
-        <ul class="fr" style="float:right" id="nav">
-            <li>
-                <span><?php echo \think\Lang::get('ds_shalom'); ?>,<?php echo \think\Session::get('admin_name'); ?></span>
-                <dl class="layui-nav-child"> <!-- 二级菜单 -->
-                    <dd><a href="javascript:dsLayerOpen('<?php echo url('Index/modifypw'); ?>','<?php echo \think\Lang::get('ds_change_password'); ?>')"><?php echo \think\Lang::get('ds_change_password'); ?></a></dd>
-                    <dd><a href="<?php echo url('Login/logout'); ?>"><?php echo \think\Lang::get('ds_safe_withdrawing'); ?></a></dd>
-                </dl>
-            </li>
-            <li><a href="javascript:dsLayerConfirm('<?php echo url('Index/clear'); ?>','<?php echo \think\Lang::get('ds_clear_cache_confirm'); ?>')"><?php echo \think\Lang::get('ds_clear_cache'); ?></a></li>
-        </ul>
-    </div>
-</div>
-<div class="admincp-container">
-    <div class="admincp-container-left">
-        <ul class="sidebar-menu" id="gloMenu">
-            <?php if(is_array($menu_list) || $menu_list instanceof \think\Collection || $menu_list instanceof \think\Paginator): if( count($menu_list)==0 ) : echo "" ;else: foreach($menu_list as $fe_menu=>$menu): if(!empty($menu['children'])): ?>
-            <li class="treeview">
-                <div class="title" id="navT"><i class="iconfont icon-<?php echo $fe_menu; ?>"></i><span class="title-txt"> <?php echo $menu['text']; ?></span><span class="layui-nav-more"></span></div>
-                <ul class="treeview-menu" id="navC" style="display:none;">
-                    <?php if(is_array($menu['children']) || $menu['children'] instanceof \think\Collection || $menu['children'] instanceof \think\Paginator): if( count($menu['children'])==0 ) : echo "" ;else: foreach($menu['children'] as $fe_submenu=>$submenu): if(array_intersect(explode("/",substr($submenu['url'],7,-5)),$gupinfo)): ?>
-                        <li><a data-id="<?php echo $fe_menu; ?>-<?php echo $fe_submenu; ?>" href="<?php echo $submenu['url']; ?>" class="admin-nav-item"><?php echo $submenu['text']; ?></a></li>
-                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
-                </ul>
-            </li>
-            <?php else: ?>
-                <li class="treeview">
-                    <div class="title" id="navT"><i class="iconfont icon-<?php echo $fe_menu; ?>"></i><a data-id="<?php echo $fe_menu; ?>" href="<?php echo $menu['url']; ?>" class="admin-nav-item"><?php echo $menu['text']; ?></a></div>
-                </li>
-            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
-        </ul>
-    </div>
-
-    <div class="admincp-container-right">
-        <div class="layui-tab layui-tab-card" lay-filter="dsTab" lay-allowclose="true">
-            <ul class="layui-tab-title">
-                <li class="layui-this" lay-id="0">
-                    <cite><?php echo \think\Lang::get('ds_welcome'); ?></cite>
-                </li>
-            </ul>
-            <div class="layui-tab-content">
-                <div class="layui-tab-item layui-show">
-                    <iframe lay-id="0" src="<?php echo url('Wlcome/index'); ?>" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
-                </div>
-            </div>
-        </div>
-    </div>
-    
-</div>
-<script type="text/javascript">
-    var width =document.body.clientWidth;
-    var changesmall =function(){
-        if($(".admincp-container-left").css("width")=="200px"){
-            $(".admincp-container-left").css("width","55px");
-            $("#layout-center").css({"position":"absolute","left":"55px","width":(width-55)+"px"});
-            $(".title").attr('title',$(".title .title-txt").html())
-            $(".title .title-txt").css("display","none");
-            $('.admincp-container-right').css("left","55px");
-        }else{
-            $(".admincp-container-left").css("width","200px");
-            $("#layout-center").css({"position":"absolute","left":"130px","width":(width-130)+"px"});
-            $(".title").attr('title',"")
-            $(".title span").css("display","inline-block");
-            $('.admincp-container-right').css("left","200px");
-        }
-    }
-
-</script>
-<script type="text/javascript">
-    layui.use(['jquery', 'element', 'layer'], function () {
-        var $ = layui.jquery, element = layui.element, layer = layui.layer;
-        $('.layui-tab-content').height($(window).height() - 145);
-        var tab = {
-            add: function (title, url, id) {
-                element.tabAdd('dsTab', {
-                    title: title,
-                    content: '<iframe width="100%" height="100%" lay-id="' + id + '" frameborder="0" src="' + url + '" scrolling="yes" class="x-iframe"></iframe>',
-                    id: id
-                });
-            }, change: function (id) {
-                element.tabChange('dsTab', id);
-            }
-        };
-        $('.admin-nav-item').click(function (event) {
-            var that = $(this);
-            if ($('iframe[src="' + that.attr('href') + '"]')[0]) {
-                tab.change(that.attr('data-id'));
-                event.stopPropagation();
-                return false;
-            }
-            if ($('iframe').length == 20) {
-                layer.msg('最多可打开20个标签页');
-                return false;
-            }
-            that.css({color: '#fff'});
-            tab.add(that.text(), that.attr('href'), that.attr('data-id'));
-            tab.change(that.attr('data-id'));
-            event.stopPropagation();
-            return false;
-        });
-        $(document).on('click', '.layui-tab-close', function () {
-            $('.layui-nav-child a[data-id="' + $(this).parent('li').attr('lay-id') + '"]').css({color: 'rgba(255,255,255,.7)'});
-        });
-    });
-    $('#gloMenu').on('click', '#navT', function () {
-        var parent = $(this).closest('li');
-        var index = parent.index();
-        if (parent.find('#navC').find('li').length) {
-            if (parent.hasClass('open')) {
-                parent.find('#navC').stop(true).slideUp(300, function () {
-                    parent.removeClass('open')
-                });
-            } else {
-                var openLi = $('.sidebar-menu').find('li.open');
-                openLi.removeClass('open').find('#navC').stop(true).slideUp(300);
-                parent.addClass('open').find('#navC').stop(true).slideDown(300);
-            }
-        }
-    })
-    $('#nav').on('click', '#nav1', function () {
-        var parent = $(this).closest('li');
-        var index = parent.index();
-        if (parent.find('#nav2').find('li').length) {
-            if (parent.hasClass('open')) {
-                parent.find('#nav2').stop(true).slideUp(300, function () {
-                    parent.removeClass('open')
-                });
-            } else {
-                var openLi = $('.sidebar-menu').find('li.open');
-                openLi.removeClass('open').find('#nav2').stop(true).slideUp(300);
-                parent.addClass('open').find('#nav2').stop(true).slideDown(300);
-            }
-        }
-    })
-</script>
-</body>
-
-
-</html>