30 if (!defined(
'NOCSRFCHECK')) define(
'NOCSRFCHECK', 1);
31 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
33 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU', 1);
36 require_once
'../main.inc.php';
38 if (
GETPOST(
'lang',
'aZ09')) $langs->setDefaultLang(
GETPOST(
'lang',
'aZ09'));
42 $right = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'left' :
'right');
43 $left = ($langs->trans(
"DIRECTION") ==
'rtl' ?
'right' :
'left');
50 $title = $langs->trans(
"Search");
53 $head =
'<!-- Quick access -->'.
"\n";
55 $arrayofcss = array();
56 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
67 $hookmanager->initHooks(array(
'searchform'));
72 if ($conf->use_javascript_ajax && 1 == 2)
74 if (!is_object($form)) $form =
new Form($db);
76 $searchform .=
'<br><br>'.$form->selectArrayAjax(
'searchselectcombo', DOL_URL_ROOT.
'/core/ajax/selectsearchbox.php', $selected,
'',
'', 0, 1,
'minwidth300', 1, $langs->trans(
"Search"), 0);
79 $showtitlebefore =
GETPOST(
'showtitlebefore',
'int');
80 $arrayresult = array();
81 include DOL_DOCUMENT_ROOT.
'/core/ajax/selectsearchbox.php';
84 $accesskeyalreadyassigned = array();
85 foreach ($arrayresult as $key => $val)
87 $tmp = explode(
'?', $val[
'url']);
89 $keysearch =
'search_all';
92 if (!$accesskeyalreadyassigned[$val[
'label'][0]])
94 $accesskey = $val[
'label'][0];
95 $accesskeyalreadyassigned[$accesskey] = $accesskey;
98 $searchform .=
printSearchForm($urlaction, $urlaction, $val[
'label'],
'minwidth200', $keysearch, $accesskey, $key, $val[
'img'], $showtitlebefore, ($i > 0 ? 0 : 1));
105 $parameters = array(
'searchform'=>$searchform);
106 $reshook = $hookmanager->executeHooks(
'printSearchForm', $parameters);
109 $searchform .= $hookmanager->resPrint;
110 }
else $searchform = $hookmanager->resPrint;
114 print "<!-- Begin SearchForm -->\n";
115 print '<div class="center"><div class="center" style="padding: 6px;">';
116 print '<style>.menu_titre { padding-top: 7px; }</style>';
117 print '<div id="blockvmenusearch" class="tagtable center searchpage">'.
"\n";
120 print '</div></div>';
121 print "\n<!-- End SearchForm -->\n";
124 print '</body></html>'.
"\n";
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
top_htmlhead($head, $title= '', $disablejs=0, $disablehead=0, $arrayofjs= '', $arrayofcss= '', $disablejmobile=0, $disablenofollow=0)
Ouput html header of a page.
print
Draft customers invoices.
printSearchForm($urlaction, $urlobject, $title, $htmlmorecss, $htmlinputname, $accesskey= '', $prefhtmlinputname= '', $img= '', $showtitlebefore=0, $autofocus=0)
Show a search area.