Gestion du modle de PDF
This commit is contained in:
parent
e84ae6ebce
commit
1731ea1e4b
@ -24,10 +24,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/expedition.php
|
||||
\ingroup expedition
|
||||
\brief Page d'administration/configuration du module Expedition
|
||||
\version $Revision$
|
||||
\file htdocs/admin/expedition.php
|
||||
\ingroup expedition
|
||||
\brief Page d'administration/configuration du module Expedition
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@ -106,25 +106,6 @@ if ($_GET["action"] == 'setdef')
|
||||
*
|
||||
*/
|
||||
|
||||
$def = array();
|
||||
|
||||
$sql = "SELECT nom FROM ".MAIN_DB_PREFIX."propal_model_pdf";
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$i = 0;
|
||||
while ($i < $db->num_rows($resql))
|
||||
{
|
||||
$array = $db->fetch_array($resql);
|
||||
array_push($def, $array[0]);
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
print $db->error();
|
||||
}
|
||||
|
||||
$dir = DOL_DOCUMENT_ROOT."/expedition/mods/";
|
||||
|
||||
/*
|
||||
@ -166,18 +147,11 @@ if(is_dir($dir)) {
|
||||
|
||||
print '</td><td align="center">';
|
||||
|
||||
if (in_array($name, $def))
|
||||
{
|
||||
print img_tick();
|
||||
print "</td><td>\n";
|
||||
print '<a href="expedition.php?action=set&statut=0&value='.$name.'">'.$langs->trans("Disable").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
print " ";
|
||||
print "</td><td>\n";
|
||||
print '<a href="expedition.php?action=set&statut=1&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
}
|
||||
|
||||
|
||||
print '</td><td align="center">';
|
||||
|
||||
@ -208,6 +182,8 @@ print '</table>';
|
||||
print '<br>';
|
||||
|
||||
/*
|
||||
*
|
||||
* PDF
|
||||
*
|
||||
*/
|
||||
|
||||
@ -217,7 +193,6 @@ print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Name").'</td><td>'.$langs->trans("Description").'</td>';
|
||||
print '<td align="center" colspan="2">'.$langs->trans("Active").'</td>';
|
||||
print '<td align="center" colspan="2">'.$langs->trans("Default").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
clearstatcache();
|
||||
@ -243,21 +218,7 @@ if(is_dir($dir))
|
||||
|
||||
print $obj->description;
|
||||
|
||||
print '</td><td align="center">';
|
||||
|
||||
if (in_array($name, $def))
|
||||
{
|
||||
print img_tick();
|
||||
print "</td><td>\n";
|
||||
print '<a href="expedition.php?action=del&value='.$name.'">'.$langs->trans("Disable").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print " ";
|
||||
print "</td><td>\n";
|
||||
print '<a href="expedition.php?action=set&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||
}
|
||||
|
||||
|
||||
print '</td><td align="center">';
|
||||
|
||||
if ($expedition_addon_var_pdf == "$name")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user