Gestion du modèle de PDF
This commit is contained in:
parent
e84ae6ebce
commit
1731ea1e4b
@ -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/";
|
$dir = DOL_DOCUMENT_ROOT."/expedition/mods/";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -166,18 +147,11 @@ if(is_dir($dir)) {
|
|||||||
|
|
||||||
print '</td><td align="center">';
|
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 " ";
|
||||||
print "</td><td>\n";
|
print "</td><td>\n";
|
||||||
print '<a href="expedition.php?action=set&statut=1&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
print '<a href="expedition.php?action=set&statut=1&value='.$name.'">'.$langs->trans("Activate").'</a>';
|
||||||
}
|
|
||||||
|
|
||||||
print '</td><td align="center">';
|
print '</td><td align="center">';
|
||||||
|
|
||||||
@ -208,6 +182,8 @@ print '</table>';
|
|||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
*
|
||||||
|
* PDF
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -217,7 +193,6 @@ print '<table class="noborder">';
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Name").'</td><td>'.$langs->trans("Description").'</td>';
|
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("Active").'</td>';
|
||||||
print '<td align="center" colspan="2">'.$langs->trans("Default").'</td>';
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
@ -243,20 +218,6 @@ if(is_dir($dir))
|
|||||||
|
|
||||||
print $obj->description;
|
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">';
|
print '</td><td align="center">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user