本文整理汇总了PHP中Common::getWebList方法的典型用法代码示例。如果您正苦于以下问题:PHP Common::getWebList方法的具体用法?PHP Common::getWebList怎么用?PHP Common::getWebList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Common
的用法示例。
在下文中一共展示了Common::getWebList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'index') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('advertise', $user_action);
}
}
if ($action == 'add') {
Common::getUserRight('advertise', 'sadd');
}
if ($action == 'edit') {
Common::getUserRight('advertise', 'smodify');
}
if ($action == 'ajax_save') {
Common::getUserRight('advertise', 'smodify');
}
$this->assign('cmsurl', URL::site());
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
}
示例2: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'index') {
Common::getUserRight('footernav', 'slook');
}
if ($action == 'addnav') {
Common::getUserRight('footernav', 'sadd');
}
if ($action == 'editnav') {
Common::getUserRight('footernav', 'smodify');
}
if ($action == 'ajax_del') {
Common::getUserRight('footernav', 'sdelete');
}
if ($action == 'ajax_savefooternav') {
Common::getUserRight('footernav', 'sdelete');
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->parentkey = $this->params['parentkey'];
$this->itemid = $this->params['itemid'];
$weblist = Common::getWebList();
$this->assign('weblist', $weblist);
$this->assign('helpico', Common::getIco('help'));
$this->model = new Model_FooterNav();
}
示例3: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'store') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('module', $user_action);
}
}
if ($action == 'index') {
Common::getUserRight('module', 'slook');
}
if ($action == 'list') {
Common::getUserRight('module', 'slook');
}
if ($action == 'add') {
Common::getUserRight('module', 'smodify');
}
if ($action == 'ajax_add_save' || $action == 'ajax_edit_save') {
Common::getUserRight('module', 'smodify');
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$weblist = Common::getWebList();
$this->assign('weblist', $weblist);
}
示例4: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'index') {
Common::getUserRight('site', 'slook');
}
if ($action == 'add') {
Common::getUserRight('site', 'sadd');
}
if ($action == 'ajax_addsave') {
Common::getUserRight('site', 'smodify');
}
if ($action == 'ajax_editsave') {
Common::getUserRight('site', 'smodify');
}
if ($action == 'ajax_del') {
Common::getUserRight('site', 'smodify');
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->parentkey = $this->params['parentkey'];
$this->itemid = $this->params['itemid'];
$weblist = Common::getWebList();
$this->assign('weblist', $weblist);
$this->assign('helpico', Common::getIco('help'));
}
示例5: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'article') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('article', $user_action);
}
} else {
if ($action == 'add') {
Common::getUserRight('article', 'sadd');
} else {
if ($action == 'edit') {
Common::getUserRight('article', 'smodify');
} else {
if ($action == 'ajax_save') {
Common::getUserRight('article', 'smodify');
}
}
}
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
$this->assign('templetlist', Common::getUserTemplteList('article_show'));
//获取上传的用户模板
}
示例6: before
public function before()
{
parent::before();
//$this->request->controller,
$action = $this->request->action();
if ($action == 'line') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('line', $user_action);
}
} else {
if ($action == 'add') {
Common::getUserRight('line', 'sadd');
} else {
if ($action == 'edit') {
Common::getUserRight('line', 'smodify');
} else {
if ($action == 'day') {
$param = $this->params['action'];
$right = array('add' => 'slook', 'save' => 'smodify', 'del' => 'sdelete');
$user_action = $right[$param] ? $right[$param] : 'slook';
if (!empty($user_action)) {
Common::getUserRight('lineday', $user_action);
}
} else {
if ($action == 'price') {
$param = $this->params['action'];
$right = array('add' => 'slook', 'save' => 'smodify', 'del' => 'sdelete');
$user_action = $right[$param] ? $right[$param] : 'slook';
if (!empty($user_action)) {
Common::getUserRight('lineprice', $user_action);
}
} else {
if ($action == 'content') {
$param = $this->params['action'];
$right = array('save' => 'smodify');
$user_action = $right[$param] ? $right[$param] : 'slook';
if (!empty($user_action)) {
Common::getUserRight('linejieshao', $user_action);
}
} else {
if ($action == 'ajax_linesave') {
Common::getUserRight('line', 'smodify');
}
}
}
}
}
}
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
$this->assign('sysjiaotong', $this->jiaotong);
//交通
$this->assign('templetlist', Common::getUserTemplteList('line_show'));
}
示例7: before
public function before()
{
parent::before();
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
$this->basefolder = BASEPATH . '/templets/smore/uploadtemplets/';
}
示例8: before
public function before()
{
parent::before();
Common::getUserRight('exchange', 'smodify');
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
}
示例9: before
public function before()
{
parent::before();
Common::getUserRight('databack', 'smodify');
$this->assign('cmsurl', URL::site());
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
}
示例10: action_index
/**
* 图片首页
*/
public function action_index()
{
global $cfg_public_url;
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->parentkey = $this->params['parentkey'];
$this->itemid = $this->params['itemid'];
$weblist = Common::getWebList();
$this->assign('weblist', $weblist);
$this->assign('pulic', $cfg_public_url);
$this->display('stourtravel/image/index');
}
示例11: before
public function before()
{
parent::before();
$session = Session::instance();
$roleid = $session->get('roleid');
if ($roleid != 1) {
exit(__('onlysys'));
}
$this->assign('cmsurl', URL::site());
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
}
示例12: before
public function before()
{
parent::before();
$action = $this->request->action();
Common::getUserRight('kefu', 'smodify');
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->parentkey = $this->params['parentkey'];
$this->itemid = $this->params['itemid'];
$weblist = Common::getWebList();
$this->assign('weblist', $weblist);
$this->assign('helpico', Common::getIco('help'));
}
示例13: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'car') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('car', $user_action);
}
} else {
if ($action == 'add') {
Common::getUserRight('car', 'sadd');
} else {
if ($action == 'edit') {
Common::getUserRight('car', 'smodify');
} else {
if ($action == 'kind') {
$param = $this->params['action'];
$right = array('add' => 'sadd', 'save' => 'smodify', 'del' => 'sdelete');
$user_action = $right[$param] ? $right[$param] : 'slook';
if (!empty($user_action)) {
Common::getUserRight('cartype', $user_action);
}
} else {
if ($action == 'price') {
$param = $this->params['action'];
$right = array('add' => 'sadd', 'save' => 'smodify', 'del' => 'sdelete');
$user_action = $right[$param] ? $right[$param] : 'slook';
if (!empty($user_action)) {
Common::getUserRight('carprice', $user_action);
}
} else {
if ($action == 'ajax_carsave') {
Common::getUserRight('car', 'smodify');
}
}
}
}
}
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
$this->assign('carkindidlist', ORM::factory('car_kind')->where('webid=0')->get_all());
$this->assign('templetlist', Common::getUserTemplteList('car_show'));
//获取上传的用户模板
}
示例14: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'list') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('help', $user_action);
}
} else {
if ($action == 'add') {
Common::getUserRight('help', 'sadd');
} else {
if ($action == 'edit') {
Common::getUserRight('help', 'smodify');
} else {
if ($action == 'ajax_save') {
Common::getUserRight('help', 'smodify');
} else {
if ($action == 'kind') {
$op = $this->params['action'];
if ($op == 'add') {
Common::getUserRight('helpattr', 'sadd');
} else {
if ($op == 'save') {
Common::getUserRight('helpattr', 'smodify');
} else {
if ($op == 'del') {
Common::getUserRight('helpattr', 'sdelete');
} else {
Common::getUserRight('helpattr', 'slook');
}
}
}
}
}
}
}
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
$allmodule = ORM::factory('Model')->get_all();
foreach ($allmodule as $item) {
$this->type_arr[$item['id']] = $item['modulename'];
}
}
示例15: before
public function before()
{
parent::before();
$action = $this->request->action();
if ($action == 'list') {
$param = $this->params['action'];
$right = array('read' => 'slook', 'save' => 'smodify', 'delete' => 'sdelete', 'update' => 'smodify');
$user_action = $right[$param];
if (!empty($user_action)) {
Common::getUserRight('ticket', $user_action);
}
}
$this->assign('parentkey', $this->params['parentkey']);
$this->assign('itemid', $this->params['itemid']);
$this->assign('weblist', Common::getWebList());
}