90 |
$mesg='<div class="error">'.$contrat->error.'</div>'; |
$mesg='<div class="error">'.$contrat->error.'</div>'; |
91 |
} |
} |
92 |
|
|
93 |
$_GET["id"] = $contrat->id; |
$_GET["socid"]=$_POST["soc_id"]; |
94 |
|
$_GET["action"]='create'; |
95 |
$action = ''; |
$action = ''; |
96 |
} |
} |
97 |
|
|
646 |
} |
} |
647 |
if ($contrat->statut == 0 && $user->rights->contrat->creer) |
if ($contrat->statut == 0 && $user->rights->contrat->creer) |
648 |
{ |
{ |
649 |
|
print ' '; |
650 |
print '<a href="fiche.php?id='.$id.'&action=deleteline&lineid='.$objp->rowid.'">'; |
print '<a href="fiche.php?id='.$id.'&action=deleteline&lineid='.$objp->rowid.'">'; |
651 |
print img_delete(); |
print img_delete(); |
652 |
print '</a>'; |
print '</a>'; |
718 |
print '<textarea name="eldesc" cols="60" rows="1">'.$objp->description.'</textarea></td>'; |
print '<textarea name="eldesc" cols="60" rows="1">'.$objp->description.'</textarea></td>'; |
719 |
print '<td align="right"><input size="6" type="text" name="elprice" value="'.price($objp->subprice).'"></td>'; |
print '<td align="right"><input size="6" type="text" name="elprice" value="'.price($objp->subprice).'"></td>'; |
720 |
print '<td align="center"><input size="3" type="text" name="elqty" value="'.$objp->qty.'"></td>'; |
print '<td align="center"><input size="3" type="text" name="elqty" value="'.$objp->qty.'"></td>'; |
721 |
print '<td align="right"><input size="2" type="text" name="elremise_percent" value="'.$objp->remise_percent.'">%</td>'; |
print '<td align="right"><input size="1" type="text" name="elremise_percent" value="'.$objp->remise_percent.'">%</td>'; |
722 |
print '<td align="center" colspan="3"><input type="submit" class="button" value="'.$langs->trans("Save").'"></td>'; |
print '<td align="center" colspan="3"><input type="submit" class="button" value="'.$langs->trans("Save").'"></td>'; |
723 |
// Ligne dates prévues |
// Ligne dates prévues |
724 |
print "<tr $bc[$var]>"; |
print "<tr $bc[$var]>"; |
754 |
print '<td align="right">'.$langs->trans("PriceUHT").'</td>'; |
print '<td align="right">'.$langs->trans("PriceUHT").'</td>'; |
755 |
print '<td align="center">'.$langs->trans("Qty").'</td>'; |
print '<td align="center">'.$langs->trans("Qty").'</td>'; |
756 |
print '<td align="right">'.$langs->trans("Discount").'</td>'; |
print '<td align="right">'.$langs->trans("Discount").'</td>'; |
757 |
print '<td> </td><td> </td>'; |
print '<td> </td>'; |
758 |
print '<td> </td>'; |
print '<td> </td>'; |
759 |
print "</tr>\n"; |
print "</tr>\n"; |
760 |
|
|
771 |
print '</td>'; |
print '</td>'; |
772 |
|
|
773 |
print '<td align="center"><input type="text" class="flat" size="2" name="pqty" value="1"></td>'; |
print '<td align="center"><input type="text" class="flat" size="2" name="pqty" value="1"></td>'; |
774 |
print '<td align="right" nowrap><input type="text" class="flat" size="2" name="premise" value="0">%</td>'; |
print '<td align="right" nowrap><input type="text" class="flat" size="1" name="premise" value="0">%</td>'; |
775 |
print '<td align="center" colspan="3" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>'; |
print '<td align="center" colspan="3" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>'; |
776 |
|
|
777 |
print "<tr $bc[$var]>"; |
print "<tr $bc[$var]>"; |
802 |
print '</td>'; |
print '</td>'; |
803 |
print '<td align="right"><input type="text" class="flat" size="4" name="pu" value=""></td>'; |
print '<td align="right"><input type="text" class="flat" size="4" name="pu" value=""></td>'; |
804 |
print '<td align="center"><input type="text" class="flat" size="2" name="pqty" value="1"></td>'; |
print '<td align="center"><input type="text" class="flat" size="2" name="pqty" value="1"></td>'; |
805 |
print '<td align="right" nowrap><input type="text" class="flat" size="2" name="premise" value="0">%</td>'; |
print '<td align="right" nowrap><input type="text" class="flat" size="1" name="premise" value="0">%</td>'; |
806 |
print '<td align="center" colspan="3" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>'; |
print '<td align="center" colspan="2" rowspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>'; |
807 |
|
|
808 |
print "</tr>\n"; |
print "</tr>\n"; |
809 |
|
|