<?php
-require_once 'Horde/Form.php';
-
/**
* DeliverableClientSelector - Form for selecting client on deliverables screen
*
*/
/**
- * Horde_Form
- */
-require_once 'Horde/Form.php';
-
-/**
* ExportForm:: is the export form which appears with search results on
* the search screen.
*
function ExportForm(&$vars)
{
- global $perms;
+ $perms = $GLOBALS['injector']->getInstance('Horde_Perms');;
parent::Horde_Form($vars, _("Export Search Results"));
*
*/
-/** Horde_Array */
-require_once 'Horde/Array.php';
-
-/** Horde_Form */
-require_once 'Horde/Form.php';
-
/**
* Hermes time search form.
*
function SearchForm(&$vars)
{
parent::Horde_Form($vars, _("Search For Time"));
+ $perms = $GLOBALS['injector']->getInstance('Horde_Perms');
- if ($GLOBALS['perms']->hasPermission('hermes:review', $GLOBALS['registry']->getAuth(), Horde_Perms::SHOW)) {
+ if ($perms->hasPermission('hermes:review', $GLOBALS['registry']->getAuth(), Horde_Perms::SHOW)) {
$type = Hermes::getEmployeesType();
$this->addVariable(_("Employees"), 'employees', $type[0], false,
false, null, $type[1]);
return null;
}
$this->getInfo($vars, $info);
+ $perms = $GLOBALS['injector']->getInstance('Horde_Perms');
$criteria = array();
- if ($GLOBALS['perms']->hasPermission('hermes:review', $GLOBALS['registry']->getAuth(), Horde_Perms::SHOW)) {
+ if ($perms->hasPermission('hermes:review', $GLOBALS['registry']->getAuth(), Horde_Perms::SHOW)) {
if (!empty($info['employees'])) {
$auth = Horde_Auth::singleton($GLOBALS['conf']['auth']['driver']);
if (!$auth->capabilities['list']) {
* did not receive this file, see http://www.horde.org/licenses/bsdl.php.
*/
-/** Horde_Array */
-require_once 'Horde/Array.php';
-
-/** Horde_Form */
-require_once 'Horde/Form.php';
-
/**
* TimeForm abstract class.
*
require_once HERMES_BASE . '/lib/Forms/Search.php';
require_once HERMES_BASE . '/lib/Forms/Time.php';
require_once HERMES_BASE . '/lib/Table.php';
-require_once 'Horde/Identity.php';
-require_once 'Horde/Data.php';
$vars = Horde_Variables::getDefaultVariables();
}
$form = new SearchForm($searchVars);
-if ($print_view) {
- require_once $registry->get('templates', 'horde') . '/javascript/print.js';
-} else {
- $print_link = Horde::url(Horde_Util::addParameter('search.php', array('print' => 'true')));
- require HERMES_TEMPLATES . '/menu.inc';
- $form->renderActive(new Horde_Form_Renderer(), $searchVars, 'search.php', 'post');
- echo '<br />';
-}
+$print_link = Horde::url(Horde_Util::addParameter('search.php', array('print' => 'true')));
+require HERMES_TEMPLATES . '/menu.inc';
+$form->renderActive(new Horde_Form_Renderer(), $searchVars, 'search.php', 'post');
+echo '<br />';
if (isset($_SESSION['hermes_search_criteria'])) {
echo Hermes::tabs();