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


PHP Kit::IsFilterPinned方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例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

 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

示例7: 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

示例8: displayPage

 public function displayPage()
 {
     $db =& $this->db;
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', 'LogGridForRefresh');
     Theme::Set('form_meta', '<input type="hidden" name="p" value="log"><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('log', 'Filter')) {
         $filter_pinned = 1;
         $filter_type = Session::Get('log', 'filter_type');
         $filter_page = Session::Get('log', 'filter_page');
         $filter_function = Session::Get('log', 'filter_function');
         $filter_display = Session::Get('log', 'filter_display');
         $filter_fromdt = Session::Get('log', 'filter_fromdt');
         $filter_seconds = Session::Get('log', 'filter_seconds');
         $filter_intervalTypeId = Session::Get('log', 'filter_intervalTypeId');
     } else {
         $filter_pinned = 0;
         $filter_type = 0;
         $filter_page = NULL;
         $filter_function = NULL;
         $filter_display = 0;
         $filter_fromdt = NULL;
         $filter_seconds = 120;
         $filter_intervalTypeId = 1;
     }
     // Two tabs
     $tabs = array();
     $tabs[] = FormManager::AddTab('general', __('General'));
     $tabs[] = FormManager::AddTab('advanced', __('Advanced'));
     $formFields = array();
     $formFields['general'][] = FormManager::AddCombo('filter_type', __('Type'), $filter_type, array(array('typeid' => 0, 'type' => 'All'), array('typeid' => 2, 'type' => 'Audit'), array('typeid' => 1, 'type' => 'Error')), 'typeid', 'type', NULL, 't');
     $formFields['general'][] = FormManager::AddCombo('filter_intervalTypeId', __('Interval'), $filter_intervalTypeId, array(array('intervalTypeid' => 1, 'intervalType' => __('Seconds')), array('intervalTypeid' => 60, 'intervalType' => __('Minutes')), array('intervalTypeid' => 3600, 'intervalType' => __('Hours'))), 'intervalTypeid', 'intervalType', NULL, 'i');
     $formFields['general'][] = FormManager::AddText('filter_seconds', __('Duration back'), $filter_seconds, NULL, 's');
     $formFields['general'][] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Advanced Tab
     $formFields['advanced'][] = FormManager::AddDatePicker('filter_fromdt', __('From Date'), $filter_fromdt, NULL, 't');
     $formFields['advanced'][] = FormManager::AddText('filter_page', __('Page'), $filter_page, NULL, 'p');
     $formFields['advanced'][] = FormManager::AddText('filter_function', __('Function'), $filter_function, NULL, 'f');
     // Display
     $displays = $this->user->DisplayList();
     array_unshift($displays, array('displayid' => 0, 'display' => 'All'));
     $formFields['advanced'][] = FormManager::AddCombo('filter_display', __('Display'), $filter_display, $displays, 'displayid', 'display', NULL, 't');
     // Call to render the template
     Theme::Set('header_text', __('Logs'));
     Theme::Set('form_tabs', $tabs);
     Theme::Set('form_fields_general', $formFields['general']);
     Theme::Set('form_fields_advanced', $formFields['advanced']);
     Theme::Render('grid_render');
 }
开发者ID:taphier,项目名称:xibo-cms,代码行数:53,代码来源:log.class.php

示例9: displayPage

 /**
  * Displays the page logic
  */
 function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('content', 'Filter')) {
         $filter_pinned = 1;
         $filter_name = Session::Get('content', 'filter_name');
         $filterId = Session::Get('content', 'fiterId');
         $filter_type = Session::Get('content', 'filter_type');
         $filter_retired = Session::Get('content', 'filter_retired');
         $filter_owner = Session::Get('content', 'filter_owner');
         $filter_duration_in_seconds = Session::Get('content', 'filter_duration_in_seconds');
         $showTags = Session::Get('content', 'showTags');
         $filter_showThumbnail = Session::Get('content', 'filter_showThumbnail');
     } else {
         $filter_pinned = 0;
         $filter_name = NULL;
         $filterId = NULL;
         $filter_type = NULL;
         $filter_retired = 0;
         $filter_owner = NULL;
         $filter_duration_in_seconds = 0;
         $filter_showThumbnail = 0;
         $showTags = 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="content"><input type="hidden" name="q" value="LibraryGrid">');
     $formFields = array();
     $formFields[] = FormManager::AddText('filter_name', __('Name'), $filter_name, NULL, 'n');
     $formFields[] = FormManager::AddText('filterId', __('ID'), $filterId, NULL, 'i');
     // Users we have permission to see
     $users = $this->user->userList();
     array_unshift($users, array('userid' => '', 'username' => 'All'));
     $formFields[] = FormManager::AddCombo('filter_owner', __('Owner'), $filter_owner, $users, 'userid', 'username', NULL, 'o');
     $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'));
     $formFields[] = FormManager::AddCombo('filter_type', __('Type'), $filter_type, $types, 'moduleid', 'module', NULL, 'y');
     $formFields[] = FormManager::AddCombo('filter_retired', __('Retired'), $filter_retired, array(array('retiredid' => 1, 'retired' => 'Yes'), array('retiredid' => 0, 'retired' => 'No')), 'retiredid', 'retired', NULL, 'r');
     $formFields[] = FormManager::AddCheckbox('filter_duration_in_seconds', __('Duration in Seconds'), $filter_duration_in_seconds, NULL, 's');
     $formFields[] = FormManager::AddCheckbox('showTags', __('Show Tags'), $showTags, NULL, 't');
     $formFields[] = FormManager::AddCheckbox('filter_showThumbnail', __('Show Thumbnails'), $filter_showThumbnail, NULL, 't');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Library'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:53,代码来源:content.class.php

示例10: displayPage

 /**
  * Display page logic
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('usergroup_form_add_url', 'index.php?p=group&q=GroupForm');
     Theme::Set('form_meta', '<input type="hidden" name="p" value="group"><input type="hidden" name="q" value="Grid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     // Default options
     if (Kit::IsFilterPinned('usergroup', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_name', Session::Get('usergroup', 'filter_name'));
     }
     // Render the Theme and output
     Theme::Render('usergroup_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:20,代码来源:group.class.php

示例11: displayPage

 public function displayPage()
 {
     $db =& $this->db;
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('form_meta', '<input type="hidden" name="p" value="log"><input type="hidden" name="q" value="Grid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     Theme::Set('truncate_url', 'index.php?p=log&q=TruncateForm');
     // Construct Filter Form
     if (Kit::IsFilterPinned('log', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_type', Session::Get('user', 'filter_type'));
         Theme::Set('filter_page', Session::Get('user', 'filter_page'));
         Theme::Set('filter_function', Session::Get('user', 'filter_function'));
         Theme::Set('filter_display', Session::Get('user', 'filter_display'));
         Theme::Set('filter_fromdt', Session::Get('user', 'filter_fromdt'));
         Theme::Set('filter_seconds', Session::Get('user', 'filter_seconds'));
     } else {
         Theme::Set('filter_type', '0');
         Theme::Set('filter_seconds', 120);
         Theme::Set('filter_page', '0');
         Theme::Set('filter_function', '0');
         Theme::Set('filter_display', 0);
     }
     // Lists
     $types = array(array('typeid' => '0', 'type' => 'All'), array('typeid' => 'audit', 'type' => 'Audit'), array('typeid' => 'error', 'type' => 'Error'));
     Theme::Set('type_field_list', $types);
     $pages = $db->GetArray("SELECT DISTINCT IFNULL(page, '-1') AS pageid, page FROM log ORDER BY 2");
     array_unshift($pages, array('pageid' => '0', 'page' => 'All'));
     Theme::Set('page_field_list', $pages);
     $functions = $db->GetArray("SELECT DISTINCT IFNULL(function, '-1') AS functionid, function FROM log ORDER BY 2");
     array_unshift($functions, array('functionid' => '0', 'function' => 'All'));
     Theme::Set('function_field_list', $functions);
     $displays = $db->GetArray('SELECT displayid, display FROM display WHERE licensed = 1 ORDER BY 2');
     array_unshift($displays, array('displayid' => 0, 'display' => 'All'));
     Theme::Set('display_field_list', $displays);
     // Render the Theme and output
     Theme::Render('log_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:41,代码来源:log.class.php

示例12: displayPage

 /**
  * Include display page template page based on sub page selected
  * @return
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('form_meta', '<input type="hidden" name="p" value="display"><input type="hidden" name="q" value="DisplayGrid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     // Default options
     if (Kit::IsFilterPinned('display', 'DisplayFilter')) {
         $filter_pinned = 1;
         $filter_displaygroup = Session::Get('display', 'filter_displaygroup');
         $filter_display = Session::Get('display', 'filter_display');
         $filterMacAddress = Session::Get('display', 'filterMacAddress');
         $filter_showView = Session::Get('display', 'filter_showView');
         $filterVersion = Session::Get('display', 'filterVersion');
         $filter_autoRefresh = Session::Get('display', 'filter_autoRefresh');
     } else {
         $filter_pinned = 0;
         $filter_displaygroup = NULL;
         $filter_display = NULL;
         $filterMacAddress = NULL;
         $filter_showView = 0;
         $filterVersion = NULL;
         $filter_autoRefresh = 0;
     }
     $formFields = array();
     $formFields[] = FormManager::AddCombo('filter_showView', __('View'), $filter_showView, array(array('key' => 0, 'value' => __('Default')), array('key' => 4, 'value' => __('Default with Description')), array('key' => 1, 'value' => __('Screen shot thumbnails')), array('key' => 2, 'value' => __('Screen shot thumbnails when Logged In')), array('key' => 3, 'value' => __('Extended Display Status'))), 'key', 'value', NULL, 't');
     $formFields[] = FormManager::AddText('filter_display', __('Name'), $filter_display, NULL, 'n');
     $formFields[] = FormManager::AddText('filterMacAddress', __('Mac Address'), $filterMacAddress, NULL, 'm');
     $displayGroups = $this->user->DisplayGroupList(0);
     array_unshift($displayGroups, array('displaygroupid' => '0', 'displaygroup' => 'All'));
     $formFields[] = FormManager::AddCombo('filter_displaygroup', __('Display Group'), $filter_displaygroup, $displayGroups, 'displaygroupid', 'displaygroup', NULL, 'd');
     $formFields[] = FormManager::AddText('filterVersion', __('Version'), $filterVersion, NULL, 'v');
     $formFields[] = FormManager::AddNumber('filter_autoRefresh', __('Auto Refresh'), $filter_autoRefresh, NULL, 'r');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $filter_pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Displays'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:45,代码来源:display.class.php

示例13: displayPage

 /**
  * Display page logic
  */
 function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('template', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_name', Session::Get('template', 'filter_name'));
         Theme::Set('filter_tags', Session::Get('template', 'filter_tags'));
         Theme::Set('filter_is_system', Session::Get('template', 'filter_is_system'));
     } else {
         Theme::Set('filter_is_system', -1);
     }
     $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="template"><input type="hidden" name="q" value="TemplateView">');
     // Field list for a "retired" dropdown list
     Theme::Set('is_system_field_list', array(array('is_systemid' => -1, 'is_system' => 'All'), array('is_systemid' => 1, 'is_system' => 'Yes'), array('is_systemid' => 0, 'is_system' => 'No')));
     // Call to render the template
     Theme::Render('template_page');
 }
开发者ID:abbeet,项目名称:server39,代码行数:25,代码来源:template.class.php

示例14: displayPage

 /**
  * Display the Resolution Page
  */
 function displayPage()
 {
     // Configure the theme
     $id = uniqid();
     Theme::Set('id', $id);
     Theme::Set('form_meta', '<input type="hidden" name="p" value="resolution"><input type="hidden" name="q" value="ResolutionGrid">');
     Theme::Set('filter_id', 'XiboFilterPinned' . uniqid('filter'));
     Theme::Set('pager', ResponseManager::Pager($id));
     if (Kit::IsFilterPinned('resolution', 'ResolutionFilter')) {
         $pinned = 1;
         $enabled = Session::Get('resolution', 'filterEnabled');
     } else {
         $enabled = 1;
         $pinned = 0;
     }
     $formFields = array();
     $formFields[] = FormManager::AddCombo('filterEnabled', __('Enabled'), $enabled, array(array('enabledid' => 1, 'enabled' => 'Yes'), array('enabledid' => 0, 'enabled' => 'No')), 'enabledid', 'enabled', NULL, 'e');
     $formFields[] = FormManager::AddCheckbox('XiboFilterPinned', __('Keep Open'), $pinned, NULL, 'k');
     // Call to render the template
     Theme::Set('header_text', __('Resolutions'));
     Theme::Set('form_fields', $formFields);
     Theme::Render('grid_render');
 }
开发者ID:fignew,项目名称:xibo-cms,代码行数:26,代码来源:resolution.class.php

示例15: displayPage

 public function displayPage()
 {
     $db =& $this->db;
     // Default options
     if (Kit::IsFilterPinned('mediamanager', 'Filter')) {
         Theme::Set('filter_pinned', 'checked');
         Theme::Set('filter_layout_name', Session::Get('mediamanager', 'filter_layout_name'));
         Theme::Set('filter_region_name', Session::Get('mediamanager', 'filter_region_name'));
         Theme::Set('filter_media_name', Session::Get('mediamanager', 'filter_media_name'));
         Theme::Set('filter_type', Session::Get('mediamanager', 'filter_type'));
     }
     $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">');
     // Module types filter
     $types = $db->GetArray("SELECT Module AS moduleid, Name AS module FROM `module` WHERE 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('homepage_mediamanager');
 }
开发者ID:abbeet,项目名称:server39,代码行数:23,代码来源:mediamanager.class.php


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