Ejemplo n.º 1
0
<?php

!defined('P_W') && exit('Forbidden');
InitGP(array('keyword'));
require_once R_P . "lib/adminsearch.class.php";
$searchpurview = new AdminSearch($keyword);
$result = $searchpurview->search();
include PrintEot('search');
exit;
Ejemplo n.º 2
0
 public static function Users($search_data = null, &$errors, $defaults = null)
 {
     $search = new AdminSearch($defaults);
     // Search by User
     $search->addSearchField('username', 'User Name', 'contains', '', 'basic');
     // Search by User
     $search->addSearchField('person_id', 'Person', 'select', '', 'advanced');
     $person = DataObjectFactory::Factory('User');
     $options = array('' => 'All');
     $cc = new ConstraintChain();
     $person->idField = 'person_id';
     $person->identifierField = 'person';
     $cc = new ConstraintChain();
     $cc->add(new Constraint('person_id', 'is not', 'NULL'));
     $people = $person->getAll($cc, FALSE, TRUE);
     $options += $people;
     $search->setOptions('person_id', $options);
     // Search by Access Enabled
     $search->addSearchField('access_enabled', 'access_enabled', 'select', 'TRUE', 'advanced');
     $search->setOptions('access_enabled', array('' => 'All', 'TRUE' => 'True', 'FALSE' => 'False'));
     $search->setSearchData($search_data, $errors, 'Users');
     return $search;
 }
Ejemplo n.º 3
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->buildComponentTitlesAndLinks();
 }
Ejemplo n.º 4
0
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-index.css', Pinhole::PACKAGE_ID));
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-tile.css', Pinhole::PACKAGE_ID));
 }
Ejemplo n.º 5
0
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/blorg/admin/styles/blorg-post-index-page.css', Blorg::PACKAGE_ID));
 }
Ejemplo n.º 6
0
 public function finalize()
 {
     parent::finalize();
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-tile.css', Pinhole::PACKAGE_ID));
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-geo-tag-search.css', Pinhole::PACKAGE_ID));
     $yui = new SwatYUI(array('fonts'));
     $this->layout->addHtmlHeadEntrySet($yui->getHtmlHeadEntrySet());
     $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/admin/styles/admin-layout.css', Admin::PACKAGE_ID));
 }