⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.82
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
nag
/
lib
/
Form
/
View File Name :
Search.php
* @package Nag */ class Nag_Form_Search extends Horde_Form { public function __construct(&$vars, $title = '') { parent::__construct($vars, $title); $GLOBALS['page_output']->addScriptFile('form_helpers.js', 'horde'); $this->addHidden('', 'smart_id', 'text', false); $this->addHidden('', 'actionID', 'text', false); $vars->set('actionID', 'search_tasks'); $this->addVariable(_("Search Text:"), 'search_pattern', 'text', false); $v = $this->addVariable( _("Search In:"), 'search_in', 'set', false, false, false, array('values' => array( 'search_name' => _("Name"), 'search_desc' => _("Description") )) ); $v->setDefault(array('search_name', 'search_desc')); $this->addVariable(_("Tagged with:"), 'search_tags', 'Nag:NagTags', false); $v = $this->addVariable( _("Search:"), 'search_completed', 'radio', false, false, false, array('values' => array( Nag::VIEW_ALL => _("All"), Nag::VIEW_COMPLETE => _("Completed"), Nag::VIEW_INCOMPLETE => _("Incomplete") )) ); $v->setDefault(Nag::VIEW_ALL); $this->addVariable(_("Due date:"), 'due_date', 'Nag:NagSearchDue', false); // If editing a SmartList, allow deletion. if ($vars->get('smart_id')) { $this->addVariable(_("SmartList Name:"), 'smartlist_name', 'text', false); $this->setButtons(_("Save"), _("Reset")); $this->appendButtons(array(array('value' => _("Delete Smart List"), 'name' => 'deletebutton', 'class' => 'horde-delete'))); } else { $this->addVariable(_("Save this search as a Smart List?"), 'save_smartlist', 'boolean', false); $sl_name = $this->addVariable(_("Smart List Name:"), 'smartlist_name', 'text', false); $save_action = new Horde_Form_Action_ConditionalEnable(array('target' => 'save_smartlist', 'enabled' => true, 'values' => 'on')); $sl_name->setAction($save_action); $this->setButtons(_("Search"), _("Reset")); } } public function renderActive() { $url = Horde::url('list.php'); if ($this->_vars->get('smart_id')) { // Editing an existing smartlist. $url->add(array('actionID' => 'smart', 'list' => $this->_vars->get('smart_id'), 'tab_name' => $this->_vars->get('smart_id'))); } return parent::renderActive( $this->getRenderer(array('varrenderer_driver' => array('nag', 'nag'))), $this->_vars, $url->setRaw(true), 'post'); } }