NEW The search box and the bookmarks are now rendered by the menu
manager.
This commit is contained in:
parent
6cc3df7e71
commit
2c682022cf
@ -66,11 +66,9 @@ $var=false;
|
|||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/propal/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/comm/propal/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<table class="noborder nohover" width="100%">';
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchPropal").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Proposal").':</td><td><input type="text" class="flat" name="sall" size=18></td><td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
|
||||||
print '</tr>';
|
|
||||||
print "</table></form><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -67,11 +67,9 @@ $var=false;
|
|||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/commande/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/commande/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<table class="noborder nohover" width="100%">';
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchOrder").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("CustomerOrder").':</td><td><input type="text" class="flat" name="sall" size=18></td><td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
|
||||||
print '</tr>';
|
|
||||||
print "</table></form><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -79,12 +79,10 @@ if (! empty($conf->contrat->enabled))
|
|||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/contrat/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/contrat/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<table class="noborder nohover" width="100%">';
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAContract").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print '<td class="nowrap">'.$langs->trans("Ref").':</td><td><input type="text" class="flat" name="search_contract" size="18"></td>';
|
print '<td class="nowrap">'.$langs->trans("Contract").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
||||||
print '<td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print '<td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
|
||||||
print '</tr>';
|
|
||||||
print "</table></form>\n";
|
print "</table></form>\n";
|
||||||
print "<br>";
|
print "<br>";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -205,14 +205,15 @@ function print_end_menu_array_auguria()
|
|||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
* @param array $menu_array_before Table of menu entries to show before entries of menu handler
|
* @param array $menu_array_before Table of menu entries to show before entries of menu handler
|
||||||
* @param array $menu_array_after Table of menu entries to show after entries of menu handler
|
* @param array $menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
* @param array $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
* @param array $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
||||||
* @param Menu $menu Object Menu to return back list of menu entries
|
* @param Menu $menu Object Menu to return back list of menu entries
|
||||||
* @param int $noout Disable output (Initialise &$menu only).
|
* @param int $noout Disable output (Initialise &$menu only).
|
||||||
* @param string $forcemainmenu 'x'=Force mainmenu to mainmenu='x'
|
* @param string $forcemainmenu 'x'=Force mainmenu to mainmenu='x'
|
||||||
* @param string $forceleftmenu 'all'=Force leftmenu to '' (= all)
|
* @param string $forceleftmenu 'all'=Force leftmenu to '' (= all)
|
||||||
|
* @param array $moredata An array with more data to output
|
||||||
* @return int Nb of entries
|
* @return int Nb of entries
|
||||||
*/
|
*/
|
||||||
function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabMenu,&$menu,$noout=0,$forcemainmenu='',$forceleftmenu='')
|
function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabMenu,&$menu,$noout=0,$forcemainmenu='',$forceleftmenu='',$moredata=null)
|
||||||
{
|
{
|
||||||
global $user,$conf,$langs,$dolibarr_main_db_name,$mysoc;
|
global $user,$conf,$langs,$dolibarr_main_db_name,$mysoc;
|
||||||
|
|
||||||
@ -245,6 +246,16 @@ function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabM
|
|||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($moredata) && ! empty($moredata['searchform']))
|
||||||
|
{
|
||||||
|
print "\n";
|
||||||
|
print "<!-- Begin SearchForm -->\n";
|
||||||
|
print '<div id="blockvmenusearch" class="blockvmenusearch">'."\n";
|
||||||
|
print $moredata['searchform'];
|
||||||
|
print '</div>'."\n";
|
||||||
|
print "<!-- End SearchForm -->\n";
|
||||||
|
}
|
||||||
|
|
||||||
// We update newmenu with entries found into database
|
// We update newmenu with entries found into database
|
||||||
$menuArbo = new Menubase($db,'auguria');
|
$menuArbo = new Menubase($db,'auguria');
|
||||||
$newmenu = $menuArbo->menuLeftCharger($newmenu,$mainmenu,$leftmenu,($user->societe_id?1:0),'auguria',$tabMenu);
|
$newmenu = $menuArbo->menuLeftCharger($newmenu,$mainmenu,$leftmenu,($user->societe_id?1:0),'auguria',$tabMenu);
|
||||||
@ -348,7 +359,7 @@ function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabM
|
|||||||
// Show menu
|
// Show menu
|
||||||
if (empty($noout))
|
if (empty($noout))
|
||||||
{
|
{
|
||||||
$alt=0; $blockvmenuopened=false;
|
$alt=0; $altok=0; $blockvmenuopened=false;
|
||||||
$num=count($menu_array);
|
$num=count($menu_array);
|
||||||
for ($i = 0; $i < $num; $i++)
|
for ($i = 0; $i < $num; $i++)
|
||||||
{
|
{
|
||||||
@ -358,14 +369,15 @@ function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabM
|
|||||||
$alt++;
|
$alt++;
|
||||||
if (empty($menu_array[$i]['level']) && $showmenu)
|
if (empty($menu_array[$i]['level']) && $showmenu)
|
||||||
{
|
{
|
||||||
|
$altok++;
|
||||||
$blockvmenuopened=true;
|
$blockvmenuopened=true;
|
||||||
if (($alt%2==0))
|
if ($altok % 2 == 0)
|
||||||
{
|
{
|
||||||
print '<div class="blockvmenuimpair">'."\n";
|
print '<div class="blockvmenuimpair'.($altok == 1 ? ' blockvmenufirst':'').'">'."\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<div class="blockvmenupair">'."\n";
|
print '<div class="blockvmenupair'.($altok == 1 ? ' blockvmenufirst':'').'">'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -437,6 +449,18 @@ function print_left_auguria_menu($db,$menu_array_before,$menu_array_after,&$tabM
|
|||||||
if ($blockvmenuopened) { print "</div>\n"; $blockvmenuopened=false; }
|
if ($blockvmenuopened) { print "</div>\n"; $blockvmenuopened=false; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($altok) print '<div class="blockvmenuend"></div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($moredata) && ! empty($moredata['bookmarks']))
|
||||||
|
{
|
||||||
|
print "\n";
|
||||||
|
print "<!-- Begin Bookmarks -->\n";
|
||||||
|
print '<div id="blockvmenubookmarks" class="blockvmenubookmarks">'."\n";
|
||||||
|
print $moredata['bookmarks'];
|
||||||
|
print '</div>'."\n";
|
||||||
|
print "<!-- End Bookmarks -->\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return count($menu_array);
|
return count($menu_array);
|
||||||
|
|||||||
@ -158,9 +158,10 @@ class MenuManager
|
|||||||
* Show menu
|
* Show menu
|
||||||
*
|
*
|
||||||
* @param string $mode 'top', 'left', 'jmobile'
|
* @param string $mode 'top', 'left', 'jmobile'
|
||||||
|
* @param array $moredata An array with more data to output
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function showmenu($mode)
|
function showmenu($mode, $moredata=null)
|
||||||
{
|
{
|
||||||
global $conf, $langs, $user;
|
global $conf, $langs, $user;
|
||||||
|
|
||||||
@ -176,7 +177,7 @@ class MenuManager
|
|||||||
$this->menu=new Menu();
|
$this->menu=new Menu();
|
||||||
|
|
||||||
if ($mode == 'top') print_auguria_menu($this->db,$this->atarget,$this->type_user,$this->tabMenu,$this->menu,0);
|
if ($mode == 'top') print_auguria_menu($this->db,$this->atarget,$this->type_user,$this->tabMenu,$this->menu,0);
|
||||||
if ($mode == 'left') print_left_auguria_menu($this->db,$this->menu_array,$this->menu_array_after,$this->tabMenu,$this->menu,0);
|
if ($mode == 'left') print_left_auguria_menu($this->db,$this->menu_array,$this->menu_array_after,$this->tabMenu,$this->menu,0,'','',$moredata);
|
||||||
if ($mode == 'jmobile')
|
if ($mode == 'jmobile')
|
||||||
{
|
{
|
||||||
print_auguria_menu($this->db,$this->atarget,$this->type_user,$this->tabMenu,$this->menu,1);
|
print_auguria_menu($this->db,$this->atarget,$this->type_user,$this->tabMenu,$this->menu,1);
|
||||||
|
|||||||
@ -409,14 +409,15 @@ function print_end_menu_array()
|
|||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
* @param array $menu_array_before Table of menu entries to show before entries of menu handler (menu->liste filled with menu->add)
|
* @param array $menu_array_before Table of menu entries to show before entries of menu handler (menu->liste filled with menu->add)
|
||||||
* @param array $menu_array_after Table of menu entries to show after entries of menu handler (menu->liste filled with menu->add)
|
* @param array $menu_array_after Table of menu entries to show after entries of menu handler (menu->liste filled with menu->add)
|
||||||
* @param array $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
* @param array $tabMenu If array with menu entries already loaded, we put this array here (in most cases, it's empty)
|
||||||
* @param Menu $menu Object Menu to return back list of menu entries
|
* @param Menu $menu Object Menu to return back list of menu entries
|
||||||
* @param int $noout Disable output (Initialise &$menu only).
|
* @param int $noout Disable output (Initialise &$menu only).
|
||||||
* @param string $forcemainmenu 'x'=Force mainmenu to mainmenu='x'
|
* @param string $forcemainmenu 'x'=Force mainmenu to mainmenu='x'
|
||||||
* @param string $forceleftmenu 'all'=Force leftmenu to '' (= all)
|
* @param string $forceleftmenu 'all'=Force leftmenu to '' (= all)
|
||||||
|
* @param array $moredata An array with more data to output
|
||||||
* @return int nb of menu entries
|
* @return int nb of menu entries
|
||||||
*/
|
*/
|
||||||
function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu,&$menu,$noout=0,$forcemainmenu='',$forceleftmenu='')
|
function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu,&$menu,$noout=0,$forcemainmenu='',$forceleftmenu='',$moredata=null)
|
||||||
{
|
{
|
||||||
global $user,$conf,$langs,$dolibarr_main_db_name,$mysoc;
|
global $user,$conf,$langs,$dolibarr_main_db_name,$mysoc;
|
||||||
|
|
||||||
@ -449,6 +450,16 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
|
|||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($moredata) && ! empty($moredata['searchform']))
|
||||||
|
{
|
||||||
|
print "\n";
|
||||||
|
print "<!-- Begin SearchForm -->\n";
|
||||||
|
print '<div id="blockvmenusearch" class="blockvmenusearch">'."\n";
|
||||||
|
print $moredata['searchform'];
|
||||||
|
print '</div>'."\n";
|
||||||
|
print "<!-- End SearchForm -->\n";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We update newmenu with entries found into database
|
* We update newmenu with entries found into database
|
||||||
* --------------------------------------------------
|
* --------------------------------------------------
|
||||||
@ -1407,11 +1418,11 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
|
|||||||
$blockvmenuopened=true;
|
$blockvmenuopened=true;
|
||||||
if ($altok % 2 == 0)
|
if ($altok % 2 == 0)
|
||||||
{
|
{
|
||||||
print '<div class="blockvmenuimpair'.$invert.($alt == 1 ? ' blockvmenufirst':'').'">'."\n";
|
print '<div class="blockvmenuimpair'.$invert.($altok == 1 ? ' blockvmenufirst':'').'">'."\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<div class="blockvmenupair'.$invert.($alt == 1 ? ' blockvmenufirst':'').'">'."\n";
|
print '<div class="blockvmenupair'.$invert.($altok == 1 ? ' blockvmenufirst':'').'">'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1484,6 +1495,16 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
|
|||||||
if ($altok) print '<div class="blockvmenuend"></div>';
|
if ($altok) print '<div class="blockvmenuend"></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($moredata) && ! empty($moredata['bookmarks']))
|
||||||
|
{
|
||||||
|
print "\n";
|
||||||
|
print "<!-- Begin Bookmarks -->\n";
|
||||||
|
print '<div id="blockvmenubookmarks" class="blockvmenubookmarks">'."\n";
|
||||||
|
print $moredata['bookmarks'];
|
||||||
|
print '</div>'."\n";
|
||||||
|
print "<!-- End Bookmarks -->\n";
|
||||||
|
}
|
||||||
|
|
||||||
return count($menu_array);
|
return count($menu_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -112,9 +112,10 @@ class MenuManager
|
|||||||
* Show menu
|
* Show menu
|
||||||
*
|
*
|
||||||
* @param string $mode 'top', 'left', 'jmobile'
|
* @param string $mode 'top', 'left', 'jmobile'
|
||||||
|
* @param array $moredata An array with more data to output
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function showmenu($mode)
|
function showmenu($mode, $moredata=null)
|
||||||
{
|
{
|
||||||
global $conf, $langs, $user;
|
global $conf, $langs, $user;
|
||||||
|
|
||||||
@ -132,7 +133,7 @@ class MenuManager
|
|||||||
if (empty($conf->global->MAIN_MENU_INVERT))
|
if (empty($conf->global->MAIN_MENU_INVERT))
|
||||||
{
|
{
|
||||||
if ($mode == 'top') print_eldy_menu($this->db,$this->atarget,$this->type_user,$this->tabMenu,$this->menu,0);
|
if ($mode == 'top') print_eldy_menu($this->db,$this->atarget,$this->type_user,$this->tabMenu,$this->menu,0);
|
||||||
if ($mode == 'left') print_left_eldy_menu($this->db,$this->menu_array,$this->menu_array_after,$this->tabMenu,$this->menu,0);
|
if ($mode == 'left') print_left_eldy_menu($this->db,$this->menu_array,$this->menu_array_after,$this->tabMenu,$this->menu,0,'','',$moredata);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -61,9 +61,10 @@ class MenuManager
|
|||||||
* Show menu
|
* Show menu
|
||||||
*
|
*
|
||||||
* @param string $mode 'top', 'left', 'jmobile'
|
* @param string $mode 'top', 'left', 'jmobile'
|
||||||
|
* @param array $moredata An array with more data to output
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function showmenu($mode)
|
function showmenu($mode, $moredata=null)
|
||||||
{
|
{
|
||||||
global $user,$conf,$langs,$dolibarr_main_db_name;
|
global $user,$conf,$langs,$dolibarr_main_db_name;
|
||||||
|
|
||||||
@ -133,20 +134,22 @@ class MenuManager
|
|||||||
|
|
||||||
if (empty($noout))
|
if (empty($noout))
|
||||||
{
|
{
|
||||||
$alt=0;
|
$alt=0; $altok=0; $blockvmenuopened=false;
|
||||||
$num=count($this->menu->liste);
|
$num=count($this->menu->liste);
|
||||||
for ($i = 0; $i < $num; $i++)
|
for ($i = 0; $i < $num; $i++)
|
||||||
{
|
{
|
||||||
$alt++;
|
$alt++;
|
||||||
if (empty($this->menu->liste[$i]['level']))
|
if (empty($this->menu->liste[$i]['level']))
|
||||||
{
|
{
|
||||||
|
$altok++;
|
||||||
|
$blockvmenuopened=true;
|
||||||
if (($alt%2==0))
|
if (($alt%2==0))
|
||||||
{
|
{
|
||||||
print '<div class="blockvmenuimpair">'."\n";
|
print '<div class="blockvmenuimpair'.($alt == 1 ? ' blockvmenufirst':'').'">'."\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<div class="blockvmenupair">'."\n";
|
print '<div class="blockvmenupair'.($alt == 1 ? ' blockvmenufirst':'').'">'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,6 +204,8 @@ class MenuManager
|
|||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($altok) print '<div class="blockvmenuend"></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mode == 'jmobile')
|
if ($mode == 'jmobile')
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2015 Charlie Benke <charlie@patas-monkey.com>
|
* Copyright (C) 2015 Charlie Benke <charlie@patas-monkey.com>
|
||||||
|
|
||||||
@ -67,11 +67,9 @@ $var=false;
|
|||||||
print '<table class="noborder nohover" width="100%">';
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<form method="post" action="'.DOL_URL_ROOT.'/fichinter/list.php">';
|
print '<form method="post" action="'.DOL_URL_ROOT.'/fichinter/list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchAnIntervention").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="sref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("Intervention").':</td><td><input type="text" class="flat" name="sall" size="18"></td><td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="sall" size="18"></td>';
|
|
||||||
print '</tr>';
|
|
||||||
print "</form></table><br>\n";
|
print "</form></table><br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -61,11 +61,9 @@ $var=false;
|
|||||||
print '<form method="post" action="list.php">';
|
print '<form method="post" action="list.php">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<table class="noborder nohover" width="100%">';
|
print '<table class="noborder nohover" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("SearchOrder").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td>';
|
print '<tr '.$bc[$var].'><td>';
|
||||||
print $langs->trans("Ref").':</td><td><input type="text" class="flat" name="search_ref" size=18></td><td rowspan="2"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
print $langs->trans("SupplierOrder").':</td><td><input type="text" class="flat" name="search_all" size="18"></td><td><input type="submit" value="'.$langs->trans("Search").'" class="button"></td></tr>';
|
||||||
print '<tr '.$bc[$var].'><td class="nowrap">'.$langs->trans("Other").':</td><td><input type="text" class="flat" name="search_all" size="18"></td>';
|
|
||||||
print '</tr>';
|
|
||||||
print "</table></form><br>\n";
|
print "</table></form><br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1543,13 +1543,13 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
* @param string $helppagename Name of wiki page for help ('' by default).
|
* @param string $helppagename Name of wiki page for help ('' by default).
|
||||||
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
|
* Syntax is: For a wiki page: EN:EnglishPage|FR:FrenchPage|ES:SpanishPage
|
||||||
* For other external page: http://server/url
|
* For other external page: http://server/url
|
||||||
* @param string $moresearchform Search Form Permanent Supplemental
|
* @param string $notused Deprecated. Used in past to add content into left menu. Hooks can be used now.
|
||||||
* @param array $menu_array_after Table of menu entries to show after entries of menu handler
|
* @param array $menu_array_after Table of menu entries to show after entries of menu handler
|
||||||
* @param int $leftmenuwithoutmainarea Must be set to 1. 0 by default for backward compatibility with old modules.
|
* @param int $leftmenuwithoutmainarea Must be set to 1. 0 by default for backward compatibility with old modules.
|
||||||
* @param string $title Title of web page
|
* @param string $title Title of web page
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function left_menu($menu_array_before, $helppagename='', $moresearchform='', $menu_array_after='', $leftmenuwithoutmainarea=0, $title='')
|
function left_menu($menu_array_before, $helppagename='', $notused='', $menu_array_after='', $leftmenuwithoutmainarea=0, $title='')
|
||||||
{
|
{
|
||||||
global $user, $conf, $langs, $db, $form;
|
global $user, $conf, $langs, $db, $form;
|
||||||
global $hookmanager, $menumanager;
|
global $hookmanager, $menumanager;
|
||||||
@ -1644,13 +1644,8 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
|
|||||||
|
|
||||||
print '<div class="vmenu">'."\n\n";
|
print '<div class="vmenu">'."\n\n";
|
||||||
|
|
||||||
$menumanager->menu_array = $menu_array_before;
|
// Show other forms
|
||||||
$menumanager->menu_array_after = $menu_array_after;
|
/*if ($searchform)
|
||||||
$menumanager->showmenu('left'); // output menu_array and menu found in database
|
|
||||||
|
|
||||||
|
|
||||||
// Show other forms
|
|
||||||
if ($searchform)
|
|
||||||
{
|
{
|
||||||
print "\n";
|
print "\n";
|
||||||
print "<!-- Begin SearchForm -->\n";
|
print "<!-- Begin SearchForm -->\n";
|
||||||
@ -1658,15 +1653,14 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
|
|||||||
print $searchform;
|
print $searchform;
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
print "<!-- End SearchForm -->\n";
|
print "<!-- End SearchForm -->\n";
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// More search form
|
$menumanager->menu_array = $menu_array_before;
|
||||||
if ($moresearchform)
|
$menumanager->menu_array_after = $menu_array_after;
|
||||||
{
|
$menumanager->showmenu('left', array('searchform'=>$searchform, 'bookmarks'=>$bookmarks)); // output menu_array and menu found in database
|
||||||
print $moresearchform;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bookmarks
|
// Bookmarks
|
||||||
|
/*
|
||||||
if ($bookmarks)
|
if ($bookmarks)
|
||||||
{
|
{
|
||||||
print "\n";
|
print "\n";
|
||||||
@ -1675,13 +1669,14 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
|
|||||||
print $bookmarks;
|
print $bookmarks;
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
print "<!-- End Bookmarks -->\n";
|
print "<!-- End Bookmarks -->\n";
|
||||||
}
|
}*/
|
||||||
|
|
||||||
print "\n";
|
// Dolibarr version + help + bug report link
|
||||||
print "<!-- Begin Help Block-->\n";
|
print "\n";
|
||||||
|
print "<!-- Begin Help Block-->\n";
|
||||||
print '<div id="blockvmenuhelp" class="blockvmenuhelp">'."\n";
|
print '<div id="blockvmenuhelp" class="blockvmenuhelp">'."\n";
|
||||||
|
|
||||||
//Dolibarr version
|
// Version
|
||||||
$doliurl='http://www.dolibarr.org';
|
$doliurl='http://www.dolibarr.org';
|
||||||
//local communities
|
//local communities
|
||||||
if (preg_match('/fr/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.fr';
|
if (preg_match('/fr/i',$langs->defaultlang)) $doliurl='http://www.dolibarr.fr';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user