Private GIT

Skip to content
Snippets Groups Projects
Commit e1ce9e5b authored by Julien Mathis's avatar Julien Mathis
Browse files

when a search is active, input will be appear in red..

git-svn-id: http://svn.centreon.com/trunk/centreon@3650 6bcd3966-0018-0410-8128-fd23d134de7e
parent 87ce8258
Branches
Tags
No related merge requests found
...@@ -30,11 +30,17 @@ For information : contact@oreon-project.org ...@@ -30,11 +30,17 @@ For information : contact@oreon-project.org
$search = NULL; $search = NULL;
if (isset($search) && $search)
$attrsText = array("size"=>"25", "id"=>"input_search", "style"=>"border: 0.5px solid gray;background-color:#FF0044;");
else
$attrsText = array("size"=>"25", "id"=>"input_search", "style"=>"border: 0.5px solid gray;");
if (!isset($limit)) if (!isset($limit))
$limit = 20; $limit = 20;
$tab = array ("search" => $search, "p"=>$p, "o"=>$o, "limit"=>$limit, "search_type_host"=>1, "search_type_service"=>1); $tab = array ("search" => $search, "p"=>$p, "o"=>$o, "limit"=>$limit, "search_type_host"=>1, "search_type_service"=>1);
$form_search->addElement('text', 'search', $lang["quicksearch"], 'id=input_search');
$form_search->addElement('text', 'search', $lang["quicksearch"], $attrsText);
$form_search->addElement('hidden', 'p'); $form_search->addElement('hidden', 'p');
$form_search->addElement('hidden', 'limit'); $form_search->addElement('hidden', 'limit');
$form_search->addElement('hidden', 'list'); $form_search->addElement('hidden', 'list');
...@@ -60,7 +66,9 @@ For information : contact@oreon-project.org ...@@ -60,7 +66,9 @@ For information : contact@oreon-project.org
$form_search->setDefaults($tab); $form_search->setDefaults($tab);
# Render with a smarty template /*
* Render with a smarty template
*/
$tpl = new Smarty(); $tpl = new Smarty();
$tpl = initSmartyTpl("./include/common/", $tpl); $tpl = initSmartyTpl("./include/common/", $tpl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment