当前位置: 首页>>代码示例>>PHP>>正文


PHP AdminPage类代码示例

本文整理汇总了PHP中AdminPage的典型用法代码示例。如果您正苦于以下问题:PHP AdminPage类的具体用法?PHP AdminPage怎么用?PHP AdminPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AdminPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: laikas

 public function laikas()
 {
     $page = new AdminPage();
     $panel = new TvarkymoPrognozavimas();
     $page->addToContainer(2, $panel->getHtml());
     $page->pagePrint();
 }
开发者ID:remarco-mif,项目名称:ppos,代码行数:7,代码来源:ManageAdmin.php

示例2: on_get_create_form

 public static function on_get_create_form(Context $ctx)
 {
     $node = Node::create('type', array('parent_id' => $parent_id, 'isdictionary' => true));
     $schema = $node->getFormFields();
     unset($schema['tags']);
     // unset($schema['fields']);
     $schema['isdictionary'] = new HiddenControl(array('value' => 'isdictionary', 'default' => 1));
     $form = $schema->getForm();
     $form->title = t('Добавление справочника');
     $form->addClass('tabbed');
     $form->action = "?q=nodeapi.rpc&action=create&type=type&destination=admin/content/dict";
     $form->addControl(new SubmitControl(array('text' => t('Добавить'))));
     $page = new AdminPage(html::em('content', array('name' => 'create'), $form->getXML($node)));
     return $page->getResponse($ctx);
 }
开发者ID:umonkey,项目名称:molinos-cms,代码行数:15,代码来源:class.dictadmin.php

示例3: submenu

 public static function submenu(Context $ctx, $query, array $pathinfo)
 {
     AdminPage::checkperm($ctx, $pathinfo);
     $router = new Router();
     $router->poll($ctx);
     $menu = new AdminMenu($router->getStatic());
     if (false === ($submenu = $menu->getSubMenu($ctx))) {
         throw new PageNotFoundException();
     }
     if (false === ($content = $submenu->getXML($ctx, 'content', array('type' => 'submenu')))) {
         throw new PageNotFoundException();
     }
     $page = new AdminPage($content);
     return $page->getResponse($ctx);
 }
开发者ID:umonkey,项目名称:molinos-cms,代码行数:15,代码来源:class.adminui.php

示例4: getHTML

 public function getHTML($preset = null, array $options = array())
 {
     $this->setUp($preset);
     $data = $this->getData();
     $output = $data;
     $output .= $this->getPager();
     if ($raw = !empty($options['#raw'])) {
         unset($options['#raw']);
     }
     $options = array_merge(array('name' => 'list', 'title' => $this->title, 'preset' => $preset ? $preset : 'default', 'search' => $this->hidesearch ? null : 'yes', 'type' => $this->getType(), 'addlink' => $this->addlink, 'author' => $this->ctx->get('author')), $options);
     $output = html::em('content', $options, $output);
     if ($raw) {
         return $output;
     }
     $page = new AdminPage($output);
     return $page->getResponse($this->ctx);
 }
开发者ID:umonkey,项目名称:molinos-cms,代码行数:17,代码来源:class.adminlisthandler.php

示例5: serve

 /**
  * Вывод административной страницы. Вызывает обработчик, указанный в next,
  * предварительно проверив права пользователя.
  */
 public static function serve(Context $ctx, $path, array $pathinfo)
 {
     if (class_exists('APIStream')) {
         APIStream::init($ctx);
     }
     try {
         self::checkperm($ctx, $pathinfo);
         if (!$ctx->user->id and empty($pathinfo['anonymous'])) {
             throw new UnauthorizedException();
         }
         if (empty($pathinfo['next'])) {
             if (!empty($pathinfo['xsl'])) {
                 $pathinfo['next'] = 'AdminPage::xsltonly';
             } else {
                 throw new RuntimeException(t('Не указан обработчик для страницы %path (параметр <tt>next</tt>).', array('%path' => $path)));
             }
         }
         if (!is_callable($pathinfo['next'])) {
             throw new RuntimeException(t('Неверный обработчик для страницы %path (<tt>%next()</tt>).', array('%path' => $path, '%next' => $pathinfo['next'])));
         }
         $args = func_get_args();
         $output = call_user_func_array($pathinfo['next'], $args);
         if (!$output instanceof Response) {
             $xsl = empty($pathinfo['xsl']) ? null : implode(DIRECTORY_SEPARATOR, explode('/', $pathinfo['xsl']));
             $tmp = new AdminPage($output, $xsl);
             $output = $tmp->getResponse($ctx);
         }
         return $output;
     } catch (NotConnectedException $e) {
         Logger::trace($e);
         if (is_dir(os::path('lib', 'modules', 'install'))) {
             $ctx->redirect('install?destination=' . urlencode(MCMS_REQUEST_URI));
         } else {
             throw new RuntimeException('Система не проинсталлирована и модуля install нет.');
         }
     } catch (Exception $e) {
         Logger::trace($e);
         $data = array('status' => 500, 'error' => get_class($e), 'message' => $e->getMessage(), 'version' => MCMS_VERSION, 'release' => MCMS_RELEASE, 'base' => $ctx->url()->getBase($ctx), 'prefix' => MCMS_SITE_FOLDER . '/themes', 'back' => urlencode(MCMS_REQUEST_URI), 'next' => urlencode($ctx->get('destination')), 'clean' => !empty($_GET['__cleanurls']));
         if ($e instanceof UserErrorException) {
             $data['status'] = $e->getCode();
         }
         $xsl = os::path('lib', 'modules', 'admin', 'template.xsl');
         xslt::transform(html::em('page', $data), $xsl)->send();
     }
 }
开发者ID:umonkey,项目名称:molinos-cms,代码行数:49,代码来源:class.adminpage.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addGet('filter,term', 'searchForJqueryUI');
     $this->addPost('filter,term', 'searchForJqueryUI');
     $this->addGet('query,start,limit,callback', 'search');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:search.php

示例7: buildNavBar

 protected function buildNavBar()
 {
     parent::buildNavBar();
     $this->navbar->popEntry();
     $this->navbar->addEntry(new SwatNavBarEntry($this->getComponentTitle(), $this->getComponentName()));
     $this->navbar->addEntry(new SwatNavBarEntry($this->tag->title));
 }
开发者ID:nburka,项目名称:blorg,代码行数:7,代码来源:Details.php

示例8: Exception

 function __construct(ISblamServices $s)
 {
     parent::__construct($s);
     if (!function_exists('apc_cache_info')) {
         throw new Exception("APC not installed");
     }
 }
开发者ID:bitemyapp,项目名称:Sblam,代码行数:7,代码来源:apc.php

示例9: save

 function save()
 {
     global $plugins;
     //Special considerations for the Google 404
     $aa404 = false;
     foreach ($plugins as $value) {
         if (isset($value['id']) && isset($_POST[$value['id']]) && !empty($_POST[$value['id']])) {
             if (strpos($_POST[$value['id']], "aagoog404") !== false) {
                 $aa404 = true;
             }
         }
     }
     if ($aa404) {
         if (!class_exists('AskApacheGoogle404')) {
             require_once TEMPLATEPATH . "/plugins/askapache-google-404/askapache-google-404.php";
         }
         $tmp = new AskApacheGoogle404();
         $tmp->activate();
     } else {
         if (!class_exists('AskApacheGoogle404')) {
             require_once TEMPLATEPATH . "/plugins/askapache-google-404/askapache-google-404.php";
         }
         $tmp = new AskApacheGoogle404();
         $tmp->deactivate();
     }
     parent::save();
 }
开发者ID:EddieRingle,项目名称:wicketpixie,代码行数:27,代码来源:wipi-plugins.php

示例10: header

 function __construct()
 {
     parent::__construct();
     if (isset($_POST['name'])) {
         $this->error = $this->processForm();
         if (!$this->error) {
             header("Location: " . $this->SUCCESS_REDIRECT_PAGE);
             //Redirect to admin menu, if succeeded
         }
     } else {
         if (isset($_POST['reset_data'])) {
             $this->error = $this->processResetForm();
             if (!$this->error) {
                 header("Location: " . $this->SUCCESS_REDIRECT_PAGE);
                 //Redirect to admin menu, if succeeded
             } else {
                 if ($this->error == "project_deleted") {
                     header("Location: " . $this->LOGOUT_REDIRECT_PAGE);
                     //Redirect to admin menu, if succeeded
                 }
             }
         }
     }
     $this->setTitle(sprintf(Messages::getString('ManageProjectPage.Title'), $this->project->getName()));
     $this->menu = array(Messages::getString('General.AdminMenu') => "admin.php") + $this->menu;
 }
开发者ID:BackupTheBerlios,项目名称:reson-svn,代码行数:26,代码来源:ManageProjectPage.php

示例11: build

 public function build()
 {
     parent::build();
     header('Content-Type: ' . $this->photo->getMimeType($this->dimension_shortname));
     readfile($this->photo->getFilePath($this->dimension_shortname));
     exit;
 }
开发者ID:gauthierm,项目名称:pinhole,代码行数:7,代码来源:Loader.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addPost('node', 'getData');
     $this->addPost('method,path,title', 'call');
     $this->addPost('method,path', 'call');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:index.php

示例13: buildInternal

 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildMessages();
     $this->buildSiteSettingsView();
     $this->buildAdSettingsView();
 }
开发者ID:nburka,项目名称:blorg,代码行数:7,代码来源:Index.php

示例14: array

 function __construct()
 {
     parent::__construct();
     $this->setTitle(sprintf("Enter results for %s:", $this->project->getName()));
     $this->menu = array("Admin Menu" => "admin.php") + $this->menu;
     $this->db = Database::getInstance();
 }
开发者ID:BackupTheBerlios,项目名称:reson-svn,代码行数:7,代码来源:EnterDataPage.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addGet('id', 'showAliases');
     $this->addPost('id,aliasId,delete', 'delete');
     $this->addPost('id,url,submit', 'add');
 }
开发者ID:gudwin,项目名称:extasy,代码行数:7,代码来源:aliases.php


注:本文中的AdminPage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。