public function article_listAct()
 {
     $this->_set_page();
     $data = D('WstContent')->ArticleList($this->_page, $this->_pagesize, $_REQUEST);
     $count = $data['count'];
     $param = array('result' => $data['data'], 'count' => $count, 'listvar' => 'list', 'template' => 'Article:article_listlib');
     $other = 'name:$("input[name=add_date]").val(),status:$("#status option:selected").val()';
     $this->_cjax_page($param);
     //表单顶部html以及底部html
     $top_html = cjax_table_top(array('field_name' => '', 'field_title' => ''));
     $bottom_html = cjax_table_bottom(array('count' => $count, 'other' => $other));
     $this->assign('top_html', $top_html);
     $this->assign('bottom_html', $bottom_html);
     //树状栏目
     $result = D("WstSort")->field('sortid as id,sortname as name,parentid')->order(array("sortid" => "ASC"))->select();
     $result = string_gb2312_to_utf8($result);
     $tree = new p\Tree();
     $parentid = intval(I("get.parentid"));
     foreach ($result as $r) {
         $r['selected'] = $r['id'] == $parentid ? 'selected' : '';
         $array[] = $r;
     }
     $str = "<option value='\$id' \$selected>\$spacer \$name</option>";
     $tree->init($array);
     $select_categorys = $tree->get_tree(0, $str);
     $this->assign("select_categorys", $select_categorys);
     $this->display();
 }
 /**
  * 栏目列表
  */
 public function indexAct()
 {
     $this->_set_page();
     $data = D("WstSort")->sortList($this->_page, $this->_pagesize, $_POST);
     $count = $data['count'];
     $param = array('result' => $data['data'], 'count' => $count, 'listvar' => 'list', 'template' => 'Category:indexlib');
     $other = 'name:$("input[name=add_date]").val(),status:$("#status option:selected").val()';
     $this->_cjax_page($param);
     //表单顶部html以及底部html
     $top_html = cjax_table_top(array('field_name' => '', 'field_title' => ''));
     $bottom_html = cjax_table_bottom(array('count' => $count, 'other' => $other));
     $this->assign('top_html', $top_html);
     $this->assign('bottom_html', $bottom_html);
     $this->display();
 }
示例#3
0
 /**
  * 票订单
  */
 public function ticketOrderAct()
 {
     $this->_set_page();
     $data = D('TicketOrder')->orderList($this->_page, $this->_pagesize, $_POST);
     $count = $data['count'];
     $param = array('result' => $data['data'], 'count' => $count, 'listvar' => 'list', 'template' => 'Order:ticketOrderlib');
     $other = 'name:$("input[name=add_date]").val(),status:$("#status option:selected").val()';
     $this->_cjax_page($param);
     //表单顶部html以及底部html
     $top_html = cjax_table_top(array('field_name' => '', 'field_title' => ''));
     $bottom_html = cjax_table_bottom(array('count' => $count, 'other' => $other));
     $this->assign('top_html', $top_html);
     $this->assign('bottom_html', $bottom_html);
     $status = \Admin\Model\TicketOrderModel::$orderStatus;
     $this->assign('status', $status);
     $this->display();
 }
示例#4
0
 /**
  * 变更药店白名单用户
  */
 public function changeStoreWhiteListAct()
 {
     $this->_set_page();
     $title = I('post.title');
     $list = D('ChangestoreWhitelist')->getAllChangeStoreWhiteListData($this->_page, $this->_pagesize, $title);
     $count = $list['count'];
     $param = array('result' => $list['data'], 'count' => $count, 'listvar' => 'list', 'template' => 'Libfetch:changestoreWhitelistlib');
     $this->_cjax_page($param);
     //表单顶部html以及底部html
     $top_html = cjax_table_top(array('field_name' => 'title', 'field_title' => '昵称/姓名/手机号'));
     $bottom_html = cjax_table_bottom(array('count' => $count, 'field_name' => 'title'));
     $this->assign('top_html', $top_html);
     $this->assign('bottom_html', $bottom_html);
     $this->display();
 }
 /**
  * 链接管理
  */
 public function linkAct()
 {
     $this->_set_page();
     $data = D("WstLink")->dataList($this->_page, $this->_pagesize, $_POST);
     $count = $data['count'];
     $param = array('result' => $data['data'], 'count' => $count, 'listvar' => 'list', 'template' => 'Gkml:linklib');
     $other = 'linkname:$("input[name=linkname]").val()';
     $this->_cjax_page($param);
     //表单顶部html以及底部html
     $top_html = cjax_table_top(array('field_name' => '', 'field_title' => ''));
     $bottom_html = cjax_table_bottom(array('count' => $count, 'other' => $other));
     $this->assign('top_html', $top_html);
     $this->assign('bottom_html', $bottom_html);
     $this->display();
 }