本文整理汇总了PHP中Action::page方法的典型用法代码示例。如果您正苦于以下问题:PHP Action::page方法的具体用法?PHP Action::page怎么用?PHP Action::page使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Action
的用法示例。
在下文中一共展示了Action::page方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: collect
public function collect()
{
parent::page(20, $this->_goods);
$this->_tpl->assign('FrontTenNav', $this->_nav->findFrontTenNav());
$this->_tpl->assign('collectGoods', $this->_goods->collectGoods());
$this->_tpl->display(SMARTY_FRONT . 'public/member_collect.tpl');
}
示例2: show
private function show()
{
parent::page($this->_model->getPremissionTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', '权限列表');
$this->_tpl->assign('AllPremission', $this->_model->getAllLimitPremission());
}
示例3: show
private function show()
{
parent::page($this->_model->getUserTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', 'Member List');
$_object = $this->_model->getAllUser();
foreach ($_object as $_value) {
switch ($_value->state) {
case 0:
$_value->state = 'disabled member';
break;
case 1:
$_value->state = 'member to be approved';
break;
case 2:
$_value->state = 'junior member';
break;
case 3:
$_value->state = 'senior member';
break;
case 4:
$_value->state = 'vip member';
break;
}
}
$this->_tpl->assign('AllUser', $_object);
}
示例4: adminShow
private function adminShow()
{
parent::page($this->model->getAdminAllCommentTotal(), 5);
$article = new articleModel();
$user = new userModel();
//Tools::dump($this->model->getAdminAllComment());
$data = $this->model->getAdminAllComment();
foreach ($data as $value) {
$article->id = $value->aid;
$oneArticle = $article->getOneArticle();
//Tools::dump($oneArticle);
$value->title = $oneArticle->title;
switch ($value->state) {
case 0:
$value->state = "<span style='color:red;'>[否]</span>\r\n\t\t\t\t\t\t\t<a href='?a=comment&action=state&flag=show&id=" . $value->id . "'>通过</a>";
break;
case 1:
$value->state = "<span style='color:green;'>[是]</span>\r\n\t\t\t\t\t\t\t<a href='?a=comment&action=state&flag=hide&id=" . $value->id . "'>否决</a>\t";
}
$user->id = $value->uid;
$oneUser = $user->getOneUserByID();
$value->username = $oneUser->username;
}
$this->smarty->assign("data", $data);
$this->smarty->assign("show", true);
}
示例5: showComment
private function showComment()
{
if (isset($_GET['cid'])) {
parent::__construct($this->_tpl, new CommentModel());
$this->_model->cid = $_GET['cid'];
$_content = new ContentModel();
$_content->id = $_GET['cid'];
if (!$_content->getOneContent()) {
Tool::alertBack('comment not existing');
}
parent::page($this->_model->getCommentTotal());
$_object = $this->_model->getAllComment();
$_object2 = $this->_model->getHotThreeComment();
$_object3 = $_content->getHotTwentyComment();
$this->setObject($_object);
$this->setObject($_object2);
$this->_tpl->assign('titlec', $_content->getOneContent()->title);
$this->_tpl->assign('info', $_content->getOneContent()->info);
$this->_tpl->assign('id', $_content->getOneContent()->id);
$this->_tpl->assign('cid', $this->_model->cid);
$this->_tpl->assign('AllComment', $_object);
$this->_tpl->assign('HotThreeComment', $_object2);
$this->_tpl->assign('HotTwentyComment', $_object3);
} else {
Tool::alertBack('illegal act');
}
}
示例6: show
private function show()
{
parent::page($this->_model->getNavTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', 'Navigation List');
$this->_tpl->assign('AllNav', $this->_model->getAllNav());
}
示例7: show
private function show()
{
parent::page($this->_model->getUserTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', '会员列表');
$_object = $this->_model->getAllUser();
foreach ($_object as $_value) {
switch ($_value->state) {
case 0:
$_value->state = '被封杀的会员';
break;
case 1:
$_value->state = '待审核的会员';
break;
case 2:
$_value->state = '初级会员';
break;
case 3:
$_value->state = '中级会员';
break;
case 4:
$_value->state = '高级会员';
break;
case 5:
$_value->state = 'VIP会员';
break;
}
}
$this->_tpl->assign('AllUser', $_object);
}
示例8: show
private function show()
{
parent::page($this->_model->getLevelTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', 'Level List');
$this->_tpl->assign('AllLevel', $this->_model->getAllLimitLevel());
}
示例9: show
private function show()
{
parent::page($this->_model->getLinkTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', '友情链接列表');
$_object = $this->_model->getAllLink();
Tool::subStr($_object, 'weburl', 20, 'utf-8');
Tool::subStr($_object, 'logourl', 20, 'utf-8');
if ($_object) {
foreach ($_object as $_value) {
switch ($_value->type) {
case 1:
$_value->type = '文字链接';
break;
case 2:
$_value->type = 'Logo链接';
break;
}
if (empty($_value->state)) {
$_value->state = '<span class="red">[未审核]</span> | <a href="link.php?action=state&type=ok&id=' . $_value->id . '">通过</a>';
} else {
$_value->state = '<span class="green">[已通过]</span> | <a href="link.php?action=state&type=cancel&id=' . $_value->id . '">取消</a>';
}
}
}
$this->_tpl->assign('AllLink', $_object);
}
示例10: show
private function show()
{
parent::page($this->model->getAllCategoryTotal());
$data = $this->model->getAllCategory();
$this->smarty->assign("data", $data);
$this->smarty->assign("show", true);
}
示例11: show
private function show()
{
parent::page($this->_model->getManageTotal());
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', '管理员列表');
$this->_tpl->assign('AllManage', $this->_model->getAllManage());
}
示例12: index
public function index()
{
parent::page();
if (isset($_GET['sid'])) {
$this->_tpl->assign('OneNav', $this->_model->findOne());
}
$this->_tpl->assign('AllNav', $this->_model->findAll());
$this->_tpl->display(SMARTY_ADMIN . 'nav/show.tpl');
}
示例13: show
private function show()
{
parent::page($this->_model->getContentTotal(), PAGE_SIZE);
$this->_tpl->assign('show', true);
$this->_tpl->assign('title', '内容列表');
$_reg = '';
if (isset($_GET['p']) && is_numeric($_GET['p'])) {
$_reg = 'AND r.pid=' . $_GET['p'];
$this->_tpl->assign('pid', $_GET['p']);
}
$this->_model->reg = $_reg;
$this->_tpl->assign('AllContent', $this->_model->getAllContent());
$this->getMenu();
}
示例14: index
public function index()
{
parent::page(15, $this->_goods);
$this->_tpl->assign('ListGoods', $this->_goods->findListGoods());
$this->_tpl->assign('FrontNav', $this->_nav->findFrontNav());
$this->_tpl->assign('FrontTenNav', $this->_nav->findFrontTenNav());
$this->_tpl->assign('FrontPrice', $this->_nav->findFrontPrice());
$this->_tpl->assign('FrontBrand', $this->_nav->findFrontBrand());
$this->_tpl->assign('FrontAttr', $this->_nav->findFrontAttr());
$this->_tpl->assign('FrontRecord', $this->_goods->getRecord());
$this->_tpl->assign('NavSort', $this->_goods->navSort());
$this->_tpl->assign('url', Tool::getUrl());
$this->_tpl->display(SMARTY_FRONT . 'public/list.tpl');
}
示例15: index
public function index()
{
parent::page(20, $this->_commend);
parent::page(20, $this->_record);
$this->_tpl->assign('Commend', $this->_commend->findDetailsCommend());
$this->_tpl->assign('FrontNav', $this->_nav->findFrontNav());
$this->_tpl->assign('FrontTenNav', $this->_nav->findFrontTenNav());
$this->_tpl->assign('FrontGoods', $this->_goods->findDetailsGoods());
$this->_tpl->assign('attrType', $this->_attr->getAttrType());
$this->_tpl->assign('record', $this->_record->findDetailsRecord());
$this->_tpl->assign('FrontRecord', $this->_goods->getRecord());
$this->_tpl->assign('NavSort', $this->_goods->navSort());
$this->_tpl->assign('domain', Tool::getDomain());
$this->_tpl->display(SMARTY_FRONT . 'public/details.tpl');
}