/** * 获取某列数据 */ public function get() { \Core\View::script('/manage/js/ajaxfileupload.js'); $slide_id = \Core\URI::kv('id'); $v = new \Core\Validation(); $v->required($slide_id)->message('参数错误'); if (!$v->has_error()) { $this->view->content = view('slide/get.php'); $this->view->content->data = new \DB\Mall\Slide($slide_id); } }
/** * 积分流水 */ public function record() { \Core\View::css('/manage/tablescroll/css/style.css'); \Core\View::script('/manage/tablescroll/js/jquery.tablescroll.js'); $user_id = \Core\URI::kv('user_id'); $user = \DB\Account\User::row(array('user_id' => $user_id)); if ($user) { $this->view->content = view('user/record.php'); } else { redirect(\Core\URI::a2p(array('user' => 'index'))); } }
/** * 获取某列数据 */ public function get() { \Core\View::script('/manage/js/ajaxfileupload.js'); \Core\View::script('/manage/editor/js/libs/beautify/beautify-html.js'); \Core\View::script('/manage/editor/js/froala_editor.min.js'); \Core\View::script('/manage/editor/js/plugins/tables.min.js'); \Core\View::script('/manage/editor/js/plugins/colors.min.js'); \Core\View::script('/manage/editor/js/plugins/fonts/fonts.min.js'); \Core\View::script('/manage/editor/js/plugins/fonts/font_family.min.js'); \Core\View::script('/manage/editor/js/plugins/block_styles.min.js'); \Core\View::script('/manage/editor/js/plugins/fonts/font_size.min.js'); \Core\View::script('/manage/editor/js/plugins/video.min.js'); \Core\View::css('/manage/editor/css/font-awesome.min.css'); \Core\View::css('/manage/editor/css/froala_editor.min.css'); \Core\View::css('/manage/editor/css/froala_reset.min.css'); $goods_id = \Core\URI::kv('id'); $v = new \Core\Validation(); $v->required($goods_id)->message('参数错误'); if (!$v->has_error()) { $this->view->content = view('goods/get.php'); $this->view->content->data = new \DB\Mall\Goods($goods_id); } }
<title><?php echo \Core\View::$title; ?> </title> <link rel="stylesheet" href="/manage/bootstrap/css/bootstrap.css"> <link rel="stylesheet" href="/manage/bootstrap/css/bootstrap-theme.min.css"> <link rel="stylesheet" href="/manage/css/style.css"> <script type="text/javascript" src="/manage/js/jquery-1.11.min.js"></script> <script type="text/javascript" src="/manage/bootstrap/js/bootstrap.min.js"></script> <script type="text/javascript" src="/manage/js/jquery.form.js"></script> <script type="text/javascript" src="/manage/js/common.js"></script> <script type="text/javascript" src="/manage/js/kindeditor.js"></script> <?php echo \Core\View::css(); echo \Core\View::script(); ?> </head> <body> <div class="container" style="padding: 0px 15px; width: 100%;"> <div class="row"> <div class="col-md-2" id="nav-panel"> <?php $admin = \Model\Authorize\Admin::login_admin(); ?> <div class="manager"> <div class="media" style="padding:18px 0px 0px 18px;"> <a class="pull-left" href="<?php echo \Core\URI::a2p(array('account' => 'index')); ?>
/** * 获取某列数据 */ public function get() { \Core\View::script('/manage/js/ajaxfileupload.js'); $id = \Core\URI::kv('id'); $v = new \Core\Validation(); $v->required($id)->message('参数错误'); if (!$v->has_error()) { $this->view->content = view('admin/get.php'); $this->view->content->row = new \DB\Authorize\Admin($id); } }
/** * 搜索用户考勤 */ public function search() { \Core\View::css('/manage/daterange/font-awesome.min.css'); \Core\View::css('/manage/daterange/daterangepicker-bs3.css'); \Core\View::script('/manage/daterange/moment.js'); \Core\View::script('/manage/daterange/daterangepicker.js'); \Core\View::css('/manage/tablescroll/css/style.css'); \Core\View::script('/manage/tablescroll/js/jquery.tablescroll.js'); $order_id = \Core\URI::kv('order_id'); $page = \Core\URI::kv('page', 1); $this->view->content = view('order/index.php'); $limit = 12; $offset = ($page - 1) * $limit; $where = array("order_id like '{$order_id}%' or user_mobile like '{$order_id}%'"); $this->view->content->rows = \Db\Trade\Order::fetch($where, $limit, $offset, array('hurry_time' => 'desc', 'create_time' => 'desc')); $this->view->content->page = new \Model\Page($page, \DB\Trade\Order::count($where), $limit); $this->view->content->order_id = $order_id; }