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


PHP Theme::Render方法代码示例

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


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

示例1: displayPage

 function displayPage()
 {
     Theme::Set('version', VERSION);
     Theme::Set('text', Theme::RenderReturn('about_text'));
     // Render the Theme and output
     Theme::Render('about_page');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:7,代码来源:license.class.php

示例2: displayPage

 function displayPage()
 {
     $db =& $this->db;
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('form_meta', '<input type="hidden" name="p" value="sessions"><input type="hidden" name="q" value="Grid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     // Construct Filter Form
     if (Kit::IsFilterPinned('sessions', 'Filter')) {
         $filter_pinned = 1;
         $filter_type = Session::Get('sessions', 'filter_type');
         $filter_fromdt = Session::Get('sessions', 'filter_fromdt');
     } else {
         $filter_pinned = 0;
         $filter_type = '0';
         $filter_fromdt = NULL;
     }
     $formFields = array();
     $formFields[] = FormManager::AddDatePicker('filter_fromdt', __('From Date'), $filter_fromdt, NULL, 't');
     $formFields[] = FormManager::AddCombo('filter_type', __('Type'), $filter_type, array(array('typeid' => '0', 'type' => 'All'), array('typeid' => 'active', 'type' => 'Active'), array('typeid' => 'guest', 'type' => 'Guest'), array('typeid' => 'expired', 'type' => 'Expired')), 'typeid', 'type', NULL, 'd');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Sessions'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:28,代码来源:sessions.class.php

示例3: displayPage

 public function displayPage()
 {
     // Configure the theme
     Theme::Set('id', 'LogGridForRefresh');
     Theme::Set('form_meta', '<input type="hidden" name="p" value="auditlog"><input type="hidden" name="q" value="Grid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager('LogGridForRefresh'));
     // Construct Filter Form
     if (Kit::IsFilterPinned('auditlog', 'Filter')) {
         $filter_pinned = 1;
         $filterFromDt = Session::Get('auditlog', 'filterFromDt');
         $filterToDt = Session::Get('auditlog', 'filterToDt');
         $filterUser = Session::Get('auditlog', 'filterUser');
         $filterEntity = Session::Get('auditlog', 'filterEntity');
     } else {
         $filter_pinned = 0;
         $filterFromDt = NULL;
         $filterToDt = NULL;
         $filterUser = NULL;
         $filterEntity = NULL;
     }
     // Fields
     $formFields = array();
     $formFields[] = FormManager::AddDatePicker('filterFromDt', __('From Date'), $filterFromDt, NULL, 'f');
     $formFields[] = FormManager::AddDatePicker('filterToDt', __('To Date'), $filterToDt, NULL, 't');
     $formFields[] = FormManager::AddText('filterUser', __('User'), $filterUser, NULL, 'u');
     $formFields[] = FormManager::AddText('filterEntity', __('Entity'), $filterEntity, NULL, 'e');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Audit Trail'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:33,代码来源:auditlog.class.php

示例4: displayPage

 public function displayPage()
 {
     $subpage = Kit::GetParam('sp', _GET, _WORD, '');
     // Configure the theme
     $id = uniqid();
     // Different pages for data entry and admin
     if ($subpage == 'DataEntry') {
         Theme::Set('id', 'DataEntryGrid');
         $dataSetId = Kit::GetParam('datasetid', _GET, _INT);
         $dataSet = Kit::GetParam('dataset', _GET, _STRING);
         Theme::Set('form_meta', '<input type="hidden" name="p" value="dataset"><input type="hidden" name="q" value="DataSetDataForm"><input type="hidden" name="datasetid" value="' . $dataSetId . '"><input type="hidden" name="dataset" value="' . $dataSet . '">');
         // Call to render the template
         Theme::Set('header_text', $dataSet);
         Theme::Set('form_fields', array());
         Theme::Render('grid_render');
     } else {
         $id = uniqid();
         Theme::Set('id', $id);
         Theme::Set('form_meta', '<input type="hidden" name="p" value="dataset"><input type="hidden" name="q" value="DataSetGrid">');
         Theme::Set('pager', ResponseManager::Pager($id));
         // Call to render the template
         Theme::Set('header_text', __('DataSets'));
         Theme::Set('form_fields', array());
         Theme::Render('grid_render');
     }
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:26,代码来源:dataset.class.php

示例5: displayPage

 /**
  * Controls which pages are to be displayed
  * @return 
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('displaygroup_form_add_url', 'index.php?p=displaygroup&q=AddForm');
     Theme::Set('form_meta', '<input type="hidden" name="p" value="user"><input type="hidden" name="q" value="UserGrid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     if (Kit::IsFilterPinned('user_admin', 'Filter')) {
         $filter_pinned = 1;
         $filter_username = Session::Get('user_admin', 'filter_username');
         $filter_usertypeid = Session::Get('user_admin', 'filter_usertypeid');
         $filterRetired = Session::Get('user_admin', 'filterRetired');
     } else {
         $filter_pinned = 0;
         $filter_username = NULL;
         $filter_usertypeid = NULL;
         $filterRetired = 0;
     }
     $formFields = array();
     $formFields[] = FormManager::AddText('filter_username', __('Name'), $filter_username, NULL, 'n');
     $usertypes = $this->db->GetArray("SELECT usertypeID, usertype FROM usertype ORDER BY usertype");
     array_unshift($usertypes, array('usertypeID' => 0, 'usertype' => 'All'));
     $formFields[] = FormManager::AddCombo('filter_usertypeid', __('User Type'), $filter_usertypeid, $usertypes, 'usertypeID', 'usertype', NULL, 't');
     $formFields[] = FormManager::AddCombo('filterRetired', __('Retired?'), $filterRetired, array(array('retiredId' => -1, 'retired' => 'All'), array('retiredId' => 1, 'retired' => 'Yes'), array('retiredId' => 0, 'retired' => 'No')), 'retiredId', 'retired', NULL, 'r');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Users'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:36,代码来源:user.class.php

示例6: displayPage

 /**
  * Displays the page logic
  */
 function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('content', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_name', Session::Get('content', 'filter_name'));
         Theme::Set('filter_type', Session::Get('content', 'filter_type'));
         Theme::Set('filter_retired', Session::Get('content', 'filter_retired'));
         Theme::Set('filter_owner', Session::Get('content', 'filter_owner'));
         Theme::Set('filter_duration_in_seconds', Session::Get('content', 'filter_duration_in_seconds'));
         Theme::Set('filter_duration_in_seconds_checked', Theme::Get('filter_duration_in_seconds') == 1 ? 'checked' : '');
     } else {
         Theme::Set('filter_retired', 0);
         Theme::Set('filter_duration_in_seconds', 0);
     }
     Theme::Set('library_form_add_url', 'index.php?p=content&q=displayForms');
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     Theme::Set('form_meta', '<input type="hidden" name="p" value="content"><input type="hidden" name="q" value="LibraryGrid">');
     // Field list for a "retired" dropdown list
     Theme::Set('retired_field_list', array(array('retiredid' => 1, 'retired' => 'Yes'), array('retiredid' => 0, 'retired' => 'No')));
     // Field list for a "owner" dropdown list
     Theme::Set('owner_field_list', $db->GetArray("SELECT 0 AS UserID, 'All' AS UserName UNION SELECT DISTINCT user.UserID, user.UserName FROM `media` INNER JOIN `user` ON media.UserID = user.UserID "));
     // Module types filter
     $types = $db->GetArray("SELECT Module AS moduleid, Name AS module FROM `module` WHERE RegionSpecific = 0 AND Enabled = 1 ORDER BY 2");
     array_unshift($types, array('moduleid' => '', 'module' => 'All'));
     Theme::Set('module_field_list', $types);
     // Call to render the template
     Theme::Render('library_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:36,代码来源:content.class.php

示例7: displayPage

 public function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('mediamanager', 'Filter')) {
         $filter_pinned = 1;
         $filter_layout_name = Session::Get('mediamanager', 'filter_layout_name');
         $filter_region_name = Session::Get('mediamanager', 'filter_region_name');
         $filter_media_name = Session::Get('mediamanager', 'filter_media_name');
         $filter_type = Session::Get('mediamanager', 'filter_type');
     } else {
         $filter_pinned = 0;
         $filter_layout_name = NULL;
         $filter_region_name = NULL;
         $filter_media_name = NULL;
         $filter_type = 0;
     }
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     Theme::Set('form_meta', '<input type="hidden" name="p" value="mediamanager"><input type="hidden" name="q" value="MediaManagerGrid">');
     $formFields = array();
     $formFields[] = FormManager::AddText('filter_layout_name', __('Layout'), $filter_layout_name, NULL, 'l');
     $formFields[] = FormManager::AddText('filter_region_name', __('Region'), $filter_region_name, NULL, 'r');
     $formFields[] = FormManager::AddText('filter_media_name', __('Media'), $filter_media_name, NULL, 'm');
     $types = $db->GetArray("SELECT moduleid AS moduleid, Name AS module FROM `module` WHERE Enabled = 1 ORDER BY 2");
     array_unshift($types, array('moduleid' => 0, 'module' => 'All'));
     $formFields[] = FormManager::AddCombo('filter_type', __('Type'), $filter_type, $types, 'moduleid', 'module', NULL, 't');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Media Manager'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:taphier,项目名称:xibo-cms,代码行数:35,代码来源:mediamanager.class.php

示例8: displayPage

 /**
  * Controls which pages are to be displayed
  * @return 
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('displaygroup_form_add_url', 'index.php?p=displaygroup&q=AddForm');
     Theme::Set('form_meta', '<input type="hidden" name="p" value="user"><input type="hidden" name="q" value="UserGrid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     // Button URL's
     Theme::Set('user_form_add_url', 'index.php?p=user&q=DisplayForm');
     Theme::Set('myapplications_form_add_url', 'index.php?p=user&q=MyApplications');
     if (Kit::IsFilterPinned('user', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_username', Session::Get('user', 'filter_username'));
         Theme::Set('filter_usertypeid', Session::Get('user', 'filter_usertypeid'));
     } else {
         Theme::Set('filter_usertypeid', 0);
     }
     // List of Displays this user has permission for
     $usertypes = $this->db->GetArray("SELECT usertypeID, usertype FROM usertype ORDER BY usertype");
     array_unshift($usertypes, array('usertypeID' => 0, 'usertype' => 'All'));
     Theme::Set('usertype_field_list', $usertypes);
     // Render the Theme and output
     Theme::Render('user_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:30,代码来源:user.class.php

示例9: displayPage

 /**
  * Display page logic
  */
 function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('template', 'Filter')) {
         $pinned = 1;
         $name = Session::Get('template', 'filter_name');
         $tags = Session::Get('template', 'filter_tags');
         $showThumbnail = Session::Get('template', 'showThumbnail');
     } else {
         $pinned = 0;
         $name = '';
         $tags = '';
         $showThumbnail = 1;
     }
     $id = uniqid();
     Theme::Set('header_text', __('Templates'));
     Theme::Set('id', $id);
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     Theme::Set('form_meta', '<input type="hidden" name="p" value="template"><input type="hidden" name="q" value="TemplateView">');
     $formFields = array();
     $formFields[] = FormManager::AddText('filter_name', __('Name'), $name, NULL, 'n');
     $formFields[] = FormManager::AddText('filter_tags', __('Tags'), $tags, NULL, 't');
     $formFields[] = FormManager::AddCheckbox('showThumbnail', __('Show Thumbnails'), $showThumbnail, NULL, 't');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $pinned, NULL, 'k');
     Theme::Set('form_fields', $formFields);
     // Call to render the template
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:33,代码来源:template.class.php

示例10: displayPage

 function displayPage()
 {
     // Set some information about the form
     Theme::Set('form_id', 'SettingsForm');
     Theme::Set('form_action', 'index.php?p=admin&q=Edit');
     $libraryLimit = Config::GetSetting('LIBRARY_SIZE_LIMIT_KB');
     // Get all of the settings in an array
     $settings = Config::GetAll(NULL, array('userSee' => 1));
     $currentCategory = '';
     $catagories = array();
     $formFields = array();
     // Go through each setting, validate it and add it to the array
     foreach ($settings as $setting) {
         if ($currentCategory != $setting['cat']) {
             $currentCategory = $setting['cat'];
             $catagories[] = array('tabId' => $setting['cat'], 'tabName' => ucfirst($setting['cat']));
         }
         // Are there any options
         $options = NULL;
         if (!empty($setting['options'])) {
             // Change to an id=>value array
             foreach (explode('|', Kit::ValidateParam($setting['options'], _HTMLSTRING)) as $tempOption) {
                 $options[] = array('id' => $tempOption, 'value' => $tempOption);
             }
         }
         // Validate the current setting
         if ($setting['type'] == 'checkbox' && isset($setting['value'])) {
             $validated = $setting['value'];
         } else {
             if (isset($setting['value'])) {
                 $validated = Kit::ValidateParam($setting['value'], $setting['type']);
             } else {
                 $validated = $setting['default'];
             }
         }
         // Time zone type requires special handling.
         if ($setting['fieldType'] == 'timezone') {
             $options = $this->TimeZoneDropDown($validated);
         }
         // Get a list of settings and assign them to the settings field
         $formFields[] = array('name' => $setting['setting'], 'type' => $setting['type'], 'fieldType' => $setting['fieldType'], 'helpText' => $setting['helptext'], 'title' => $setting['title'], 'options' => $options, 'validation' => $setting['validation'], 'value' => $validated, 'enabled' => $setting['userChange'], 'catId' => $setting['cat'], 'cat' => ucfirst($setting['cat']));
     }
     Theme::Set('cats', $catagories);
     Theme::Set('form_fields', $formFields);
     // Provide some bandwidth and library information to the theme.
     // Library Size in Bytes
     $fileSize = $this->db->GetSingleValue('SELECT IFNULL(SUM(FileSize), 0) AS SumSize FROM media', 'SumSize', _INT);
     $limitPcnt = $libraryLimit > 0 ? $fileSize / ($libraryLimit * 1024) * 100 : '';
     Theme::Set('library_info', $this->FormatByteSize($fileSize) . ($libraryLimit > 0 ? sprintf(__(' / %d %% of %s'), $limitPcnt, $this->FormatByteSize($libraryLimit * 1024)) : ''));
     // Monthly bandwidth - optionally tested against limits
     $xmdsLimit = Config::GetSetting('MONTHLY_XMDS_TRANSFER_LIMIT_KB');
     $startOfMonth = strtotime(date('m') . '/01/' . date('Y') . ' 00:00:00');
     $sql = sprintf('SELECT IFNULL(SUM(Size), 0) AS BandwidthUsage FROM `bandwidth` WHERE Month > %d AND Month < %d', $startOfMonth, $startOfMonth + 86400 * 2);
     $bandwidthUsage = $this->db->GetSingleValue($sql, 'BandwidthUsage', _INT);
     $usagePcnt = $xmdsLimit > 0 ? (double) $bandwidthUsage / ($xmdsLimit * 1024) * 100 : '';
     Theme::Set('bandwidth_info', $this->FormatByteSize($bandwidthUsage) . ($xmdsLimit > 0 ? sprintf(__(' / %d %% of %s'), $usagePcnt, $this->FormatByteSize($xmdsLimit * 1024)) : ''));
     // Render the Theme and output
     Theme::Render('settings_page');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:59,代码来源:admin.class.php

示例11: displayPage

 function displayPage()
 {
     $db =& $this->db;
     $user =& $this->user;
     $error = Kit::GetParam('ErrorMessage', _SESSION, _HTMLSTRING, __('Unknown Error'));
     Theme::Set('ErrorMessage', $error);
     Theme::Render('error');
 }
开发者ID:taphier,项目名称:xibo-cms,代码行数:8,代码来源:error.class.php

示例12: displayPage

 function displayPage()
 {
     // Set some information about the form
     Theme::Set('form_id', 'SettingsForm');
     Theme::Set('form_action', 'index.php?p=group&q=Delete');
     Theme::Set('settings_help_button_url', HelpManager::Link('Content', 'Config'));
     Theme::Set('settings_form', $this->display_settings());
     // Render the Theme and output
     Theme::Render('settings_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:10,代码来源:admin.class.php

示例13: displayPage

 /**
  * Display the module page
  * @return
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('form_meta', '<input type="hidden" name="p" value="module"><input type="hidden" name="q" value="Grid">');
     Theme::Set('pager', ResponseManager::Pager($id));
     // Render the Theme and output
     Theme::Render('module_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:14,代码来源:module.class.php

示例14: displayPage

 function displayPage()
 {
     $db =& $this->db;
     $user =& $this->user;
     $config = new Config();
     // Configure the theme
     Theme::Set('environment_check', $config->CheckEnvironment());
     Theme::Set('collect_data_url', 'index.php?p=fault&q=CollectData');
     // Render the Theme and output
     Theme::Render('fault_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:11,代码来源:fault.class.php

示例15: displayPage

 /**
  * No display page functionaility
  * @return
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('help_form_add_url', 'index.php?p=help&q=AddForm');
     Theme::Set('form_meta', '<input type="hidden" name="p" value="help"><input type="hidden" name="q" value="Grid">');
     Theme::Set('pager', ResponseManager::Pager($id));
     // Render the Theme and output
     Theme::Render('help_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:15,代码来源:help.class.php


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