FIX Missing token and style
This commit is contained in:
parent
def732246d
commit
0f76279a03
@ -47,21 +47,31 @@ foreach($linkedObjectBlock as $key => $objectlink)
|
|||||||
if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=' liste_sub_total';
|
if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=' liste_sub_total';
|
||||||
?>
|
?>
|
||||||
<tr class="<?php echo $trclass; ?>" >
|
<tr class="<?php echo $trclass; ?>" >
|
||||||
<td><?php echo $langs->trans("RepeatableInvoice"); ?></td>
|
<td class="linkedcol-element"><?php echo $langs->trans("RepeatableInvoice"); ?></td>
|
||||||
<td><?php echo $objectlink->getNomUrl(1); ?></td>
|
<td class="linkedcol-name"><?php echo $objectlink->getNomUrl(1); ?></td>
|
||||||
<td align="center"></td>
|
<td class="linkedcol-ref" align="center"></td>
|
||||||
<td align="center"><?php echo dol_print_date($objectlink->date_when,'day'); ?></td>
|
<td class="linkedcol-date" align="center"><?php echo dol_print_date($objectlink->date_when,'day'); ?></td>
|
||||||
<td align="right"><?php
|
<td class="linkedcol-amount" align="right"><?php
|
||||||
if ($user->rights->facture->lire) {
|
if ($user->rights->facture->lire) {
|
||||||
$total = $total + $objectlink->total_ht;
|
$total = $total + $objectlink->total_ht;
|
||||||
echo price($objectlink->total_ht);
|
echo price($objectlink->total_ht);
|
||||||
} ?></td>
|
} ?></td>
|
||||||
<td align="right">
|
<td class="linkedcol-statut" align="right"><?php echo $objectlink->getLibStatut(3); ?></td>
|
||||||
|
<td class="linkedcol-action" align="right"><a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=dellink&dellinkid='.$key; ?>"><?php echo img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink'); ?></a></td>
|
||||||
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
print $objectlink->getLibStatut(3);
|
}
|
||||||
|
if (count($linkedObjectBlock) > 1)
|
||||||
|
{
|
||||||
?>
|
?>
|
||||||
</td>
|
<tr class="liste_total <?php echo (empty($noMoreLinkedObjectBlockAfter)?'liste_sub_total':''); ?>">
|
||||||
<td align="right"><a href="<?php echo $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=dellink&dellinkid='.$key; ?>"><?php echo img_picto($langs->transnoentitiesnoconv("RemoveLink"), 'unlink'); ?></a></td>
|
<td><?php echo $langs->trans("Total"); ?></td>
|
||||||
|
<td></td>
|
||||||
|
<td align="center"></td>
|
||||||
|
<td align="center"></td>
|
||||||
|
<td align="right"><?php echo price($total); ?></td>
|
||||||
|
<td align="right"></td>
|
||||||
|
<td align="right"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6434,6 +6434,7 @@ class Form
|
|||||||
$hookmanager->initHooks(array('commonobject'));
|
$hookmanager->initHooks(array('commonobject'));
|
||||||
$parameters=array('listofidcompanytoscan' => $listofidcompanytoscan);
|
$parameters=array('listofidcompanytoscan' => $listofidcompanytoscan);
|
||||||
$reshook=$hookmanager->executeHooks('showLinkToObjectBlock',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
$reshook=$hookmanager->executeHooks('showLinkToObjectBlock',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
if (empty($reshook))
|
if (empty($reshook))
|
||||||
{
|
{
|
||||||
if (is_array($hookmanager->resArray) && count($hookmanager->resArray))
|
if (is_array($hookmanager->resArray) && count($hookmanager->resArray))
|
||||||
@ -6466,9 +6467,11 @@ class Form
|
|||||||
$num = $this->db->num_rows($resqllist);
|
$num = $this->db->num_rows($resqllist);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
print '<br><form action="'.$_SERVER["PHP_SELF"].'" method="POST" name="formlinked'.$key.'">';
|
print '<br>';
|
||||||
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" name="formlinked'.$key.'">';
|
||||||
print '<input type="hidden" name="action" value="addlink">';
|
print '<input type="hidden" name="action" value="addlink">';
|
||||||
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
||||||
print '<input type="hidden" name="addlink" value="'.$key.'">';
|
print '<input type="hidden" name="addlink" value="'.$key.'">';
|
||||||
print '<table class="noborder">';
|
print '<table class="noborder">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user