38 if (empty($object) || !is_object($object)) {
 
   39   print 
"Error, template page can't be called as URL";
 
   43 print 
"<!-- BEGIN PHP TEMPLATE objectline_title.tpl.php -->\n";
 
   48 print 
'<tr class="liste_titre nodrag nodrop">';
 
   51 if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
 
   52   print 
'<th class="linecolnum center"> </th>';
 
   56 print 
'<th class="linecoldescription">'.$langs->trans(
'Description').
'</th>';
 
   59 if ($this->element == 
'supplier_proposal' || $this->element == 
'order_supplier' || $this->element == 
'invoice_supplier' || $this->element == 
'invoice_supplier_rec') {
 
   60   print 
'<th class="linerefsupplier maxwidth125"><span id="title_fourn_ref">'.$langs->trans(
"SupplierRef").
'</span></th>';
 
   64 print 
'<th class="linecolvat right nowraponall">';
 
   65 if (!empty($conf->global->FACTURE_LOCAL_TAX1_OPTION) || !empty($conf->global->FACTURE_LOCAL_TAX2_OPTION)) {
 
   66   print $langs->trans(
'Taxes');
 
   68   print $langs->trans(
'VAT');
 
   71 if (in_array($object->element, array(
'propal', 
'commande', 
'facture', 
'supplier_proposal', 
'order_supplier', 
'invoice_supplier')) && $object->status == $object::STATUS_DRAFT) {
 
   74   if (empty($disableedit)) {
 
   75     print 
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?mode=vatforalllines&id='.$object->id.
'">'.
img_edit($langs->trans(
"UpdateForAllLines"), 0, 
'class="clickvatforalllines opacitymedium paddingleft cursorpointer"').
'</a>';
 
   78   if (
GETPOST(
'mode', 
'aZ09') == 
'vatforalllines') {
 
   79     print 
'<div class="classvatforalllines inline-block nowraponall">';
 
   80     print 
$form->load_tva(
'vatforalllines', 
'', $mysoc, $object->thirdparty, 0, 0, 
'', 
false, 1);
 
   81     print 
'<input class="inline-block button smallpaddingimp" type="submit" name="submitforalllines" value="'.$langs->trans(
"Update").
'">';
 
   88 print 
'<th class="linecoluht right nowraponall">'.$langs->trans(
'PriceUHT').
'</th>';
 
   91 if (
isModEnabled(
"multicurrency") && $this->multicurrency_code != $conf->currency) {
 
   92   print 
'<th class="linecoluht_currency right" style="width: 80px">'.$langs->trans(
'PriceUHTCurrency', $this->multicurrency_code).
'</th>';
 
   95 if ($inputalsopricewithtax) {
 
   96   print 
'<th class="right nowraponall">'.$langs->trans(
'PriceUTTC').
'</th>';
 
  100 print 
'<th class="linecolqty right">'.$langs->trans(
'Qty').
'</th>';
 
  103 if (!empty($conf->global->PRODUCT_USE_UNITS)) {
 
  104   print 
'<th class="linecoluseunit left">'.$langs->trans(
'Unit').
'</th>';
 
  108 print 
'<th class="linecoldiscount right nowraponall">';
 
  109 print $langs->trans(
'ReductionShort');
 
  111 if (in_array($object->element, array(
'propal', 
'commande', 
'facture')) && $object->status == $object::STATUS_DRAFT) {
 
  114   if (empty($disableedit)) {
 
  115     print 
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?mode=remiseforalllines&id='.$object->id.
'">'.
img_edit($langs->trans(
"UpdateForAllLines"), 0, 
'class="clickvatforalllines opacitymedium paddingleft cursorpointer"').
'</a>';
 
  118   if (
GETPOST(
'mode', 
'aZ09') == 
'remiseforalllines') {
 
  119     print 
'<div class="remiseforalllines inline-block nowraponall">';
 
  120     print 
'<input class="inline-block smallpaddingimp width50 right" name="remiseforalllines" value="" placeholder="%">';
 
  121     print 
'<input class="inline-block button smallpaddingimp" type="submit" name="submitforalllines" value="'.$langs->trans(
"Update").
'">';
 
  128 if (isset($this->situation_cycle_ref) && $this->situation_cycle_ref) {
 
  129   print 
'<th class="linecolcycleref right">'.$langs->trans(
'Progress').
'</th>';
 
  130   print 
'<th class="linecolcycleref2 right">'.$form->textwithpicto($langs->trans(
'TotalHT100Short'), $langs->trans(
'UnitPriceXQtyLessDiscount')).
'</th>';
 
  134 if ($usemargins && 
isModEnabled(
'margin') && empty($user->socid)) {
 
  135   if (!empty($user->rights->margins->creer)) {
 
  136     if ($conf->global->MARGIN_TYPE == 
"1") {
 
  137       print 
'<th class="linecolmargin1 margininfos right" style="width: 80px">'.$langs->trans(
'BuyingPrice').
'</th>';
 
  139       print 
'<th class="linecolmargin1 margininfos right" style="width: 80px">'.$langs->trans(
'CostPrice').
'</th>';
 
  143   if (!empty($conf->global->DISPLAY_MARGIN_RATES) && $user->rights->margins->liretous) {
 
  144     print 
'<th class="linecolmargin2 margininfos right" style="width: 50px">'.$langs->trans(
'MarginRate').
'</th>';
 
  146   if (!empty($conf->global->DISPLAY_MARK_RATES) && $user->rights->margins->liretous) {
 
  147     print 
'<th class="linecolmargin2 margininfos right" style="width: 50px">'.$langs->trans(
'MarkRate').
'</th>';
 
  152 print 
'<th class="linecolht right">'.$langs->trans(
'TotalHTShort').
'</th>';
 
  155 if (
isModEnabled(
"multicurrency") && $this->multicurrency_code != $conf->currency) {
 
  156   print 
'<th class="linecoltotalht_currency right">'.$langs->trans(
'TotalHTShortCurrency', $this->multicurrency_code).
'</th>';
 
  159 if ($outputalsopricetotalwithtax) {
 
  160   print 
'<th class="right" style="width: 80px">'.$langs->trans(
'TotalTTCShort').
'</th>';
 
  163 if (
isModEnabled(
'asset') && $object->element == 
'invoice_supplier') {
 
  164   print 
'<th class="linecolasset"></th>';
 
  167 print 
'<th class="linecoledit"></th>'; 
 
  169 print 
'<th class="linecoldelete" style="width: 10px"></th>';
 
  171 print 
'<th class="linecolmove" style="width: 10px"></th>';
 
  173 if ($action == 
'selectlines') {
 
  174   print 
'<th class="linecolcheckall center">';
 
  175   print 
'<input type="checkbox" class="linecheckboxtoggle" />';
 
  176   print 
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
 
  183 print 
"<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
 
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
isModEnabled($module)
Is Dolibarr module enabled.
img_edit($titlealt='default', $float=0, $other='')
Show logo editer/modifier fiche.