293 |
* Si la constante MAIN_NEED_UPDATE est définie (par le script de migration sql en général), c'est que |
* Si la constante MAIN_NEED_UPDATE est définie (par le script de migration sql en général), c'est que |
294 |
* les données ont besoin d'un remaniement. Il faut passer le update.php |
* les données ont besoin d'un remaniement. Il faut passer le update.php |
295 |
*/ |
*/ |
296 |
if (defined("MAIN_NEED_UPDATE") && MAIN_NEED_UPDATE) |
if ($conf->global->MAIN_NEED_UPDATE) |
297 |
{ |
{ |
298 |
$langs->load("admin"); |
$langs->load("admin"); |
299 |
print '<div class="fiche">'."\n"; |
print '<div class="fiche">'."\n"; |
300 |
print '<table class="noborder" width="100%">'; |
print '<table class="noborder" width="100%">'; |
301 |
print '<tr><td>'; |
print '<tr><td>'; |
302 |
print $langs->trans("UpdateRequired",DOL_URL_ROOT.'/admin/system/update.php'); |
print $langs->trans("UpdateRequired",DOL_URL_ROOT.'/install/index.php'); |
303 |
print '</td></tr>'; |
print '</td></tr>'; |
304 |
print "</table>"; |
print "</table>"; |
305 |
llxFooter(); |
llxFooter(); |
376 |
if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_SOCIETE && $user->rights->societe->lire) |
if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_SOCIETE && $user->rights->societe->lire) |
377 |
{ |
{ |
378 |
$langs->load("companies"); |
$langs->load("companies"); |
379 |
printSearchForm(DOL_URL_ROOT.'/societe.php',DOL_URL_ROOT.'/societe.php',$langs->trans("Companies"),'soc','socname'); |
printSearchForm(DOL_URL_ROOT.'/societe.php',DOL_URL_ROOT.'/societe.php', |
380 |
|
img_object($langs->trans("List"),'company').' '.$langs->trans("Companies"),'soc','socname'); |
381 |
} |
} |
382 |
|
|
383 |
if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_CONTACT && $user->rights->societe->lire) |
if ($conf->societe->enabled && $conf->global->MAIN_SEARCHFORM_CONTACT && $user->rights->societe->lire) |
384 |
{ |
{ |
385 |
$langs->load("companies"); |
$langs->load("companies"); |
386 |
printSearchForm(DOL_URL_ROOT.'/contact/index.php',DOL_URL_ROOT.'/contact/index.php',$langs->trans("Contacts"),'contact','contactname'); |
printSearchForm(DOL_URL_ROOT.'/contact/index.php',DOL_URL_ROOT.'/contact/index.php', |
387 |
|
img_object($langs->trans("List"),'contact').' '.$langs->trans("Contacts"),'contact','contactname','contact'); |
388 |
} |
} |
389 |
|
|
390 |
if (($conf->produit->enabled || $conf->service->enabled) && $conf->global->MAIN_SEARCHFORM_PRODUITSERVICE && $user->rights->produit->lire) |
if (($conf->produit->enabled || $conf->service->enabled) && $conf->global->MAIN_SEARCHFORM_PRODUITSERVICE && $user->rights->produit->lire) |
391 |
{ |
{ |
392 |
$langs->load("products"); |
$langs->load("products"); |
393 |
printSearchForm(DOL_URL_ROOT.'/product/liste.php',DOL_URL_ROOT.'/product/index.php',$langs->trans("Products")."/".$langs->trans("Services"),'products','sall'); |
printSearchForm(DOL_URL_ROOT.'/product/liste.php',DOL_URL_ROOT.'/product/index.php', |
394 |
|
img_object($langs->trans("List"),'product').' '.$langs->trans("Products")."/".$langs->trans("Services"),'products','sall','product'); |
395 |
} |
} |
396 |
|
|
397 |
/* |
/* |
449 |
|
|
450 |
|
|
451 |
/** |
/** |
452 |
* \brief Affiche une zone de recherche |
* \brief Affiche une zone de recherche |
453 |
* \param urlaction url du post |
* \param urlaction Url du post |
454 |
* \param urlobject url du lien sur titre de la zone de recherche |
* \param urlobject Url du lien sur titre de la zone de recherche |
455 |
* \param title titre de la zone de recherche |
* \param title Titre de la zone de recherche |
456 |
* \param htmlmodesearch 'search' |
* \param htmlmodesearch 'search' |
457 |
* \param htmlinputname nom du champ input du formulaire |
* \param htmlinputname Nom du champ input du formulaire |
458 |
*/ |
*/ |
459 |
|
|
460 |
function printSearchForm($urlaction,$urlobject,$title,$htmlmodesearch='search',$htmlinputname) |
function printSearchForm($urlaction,$urlobject,$title,$htmlmodesearch='search',$htmlinputname) |
461 |
{ |
{ |
462 |
global $langs; |
global $langs; |
463 |
print '<form action="'.$urlaction.'" method="post">'; |
print '<form action="'.$urlaction.'" method="post">'; |
464 |
print '<a class="vmenu" href="'.$urlobject.'">'.$title.'</a><br>'; |
print '<a class="vmenu" href="'.$urlobject.'">'; |
465 |
print '<input type="hidden" name="mode" value="search">'; |
print $title.'</a><br>'; |
466 |
print '<input type="hidden" name="mode-search" value="'.$htmlmodesearch.'">'; |
print '<input type="hidden" name="mode" value="search">'; |
467 |
print '<input type="text" class="flat" name="'.$htmlinputname.'" size="10"> '; |
print '<input type="hidden" name="mode-search" value="'.$htmlmodesearch.'">'; |
468 |
print '<input type="submit" class="button" value="'.$langs->trans("Go").'">'; |
print '<input type="text" class="flat" name="'.$htmlinputname.'" size="10"> '; |
469 |
print "</form>"; |
print '<input type="submit" class="button" value="'.$langs->trans("Go").'">'; |
470 |
|
print "</form>"; |
471 |
} |
} |
472 |
|
|
473 |
|
|