replace html code by html5 in reception
This commit is contained in:
parent
8b090c165e
commit
0ca5e6e275
@ -989,9 +989,9 @@ if ($action == 'create')
|
|||||||
{
|
{
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("QtyOrdered").'</td>';
|
print '<td class="center">'.$langs->trans("QtyOrdered").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("QtyReceived").'</td>';
|
print '<td class="center">'.$langs->trans("QtyReceived").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("QtyToReceive");
|
print '<td class="center">'.$langs->trans("QtyToReceive");
|
||||||
if (empty($conf->productbatch->enabled))
|
if (empty($conf->productbatch->enabled))
|
||||||
{
|
{
|
||||||
print ' <br>(<a href="#" id="autofill">'.$langs->trans("Fill").'</a>';
|
print ' <br>(<a href="#" id="autofill">'.$langs->trans("Fill").'</a>';
|
||||||
@ -1085,7 +1085,7 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Qty
|
// Qty
|
||||||
print '<td align="center">'.$line->qty;
|
print '<td class="center">'.$line->qty;
|
||||||
print '<input type="hidden" name="fk_commandefournisseurdet'.$indiceAsked.'" value=\''.$line->id.'\' />';
|
print '<input type="hidden" name="fk_commandefournisseurdet'.$indiceAsked.'" value=\''.$line->id.'\' />';
|
||||||
print '<textarea style="display:none;" name="comment'.$indiceAsked.'" >'.$line->desc.'</textarea>';
|
print '<textarea style="display:none;" name="comment'.$indiceAsked.'" >'.$line->desc.'</textarea>';
|
||||||
print '<input name="qtyasked'.$indiceAsked.'" id="qtyasked'.$indiceAsked.'" type="hidden" value="'.$line->qty.'">';
|
print '<input name="qtyasked'.$indiceAsked.'" id="qtyasked'.$indiceAsked.'" type="hidden" value="'.$line->qty.'">';
|
||||||
@ -1093,7 +1093,7 @@ if ($action == 'create')
|
|||||||
$qtyProdCom=$line->qty;
|
$qtyProdCom=$line->qty;
|
||||||
|
|
||||||
// Qty already received
|
// Qty already received
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
|
|
||||||
|
|
||||||
$quantityDelivered = $object->receptions[$line->id];
|
$quantityDelivered = $object->receptions[$line->id];
|
||||||
@ -1124,7 +1124,7 @@ if ($action == 'create')
|
|||||||
|
|
||||||
|
|
||||||
// Quantity to send
|
// Quantity to send
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
if ($line->product_type == Product::TYPE_PRODUCT || ! empty($conf->global->STOCK_SUPPORTS_SERVICES))
|
if ($line->product_type == Product::TYPE_PRODUCT || ! empty($conf->global->STOCK_SUPPORTS_SERVICES))
|
||||||
{
|
{
|
||||||
if (GETPOST('qtyl'.$indiceAsked, 'int')) $defaultqty=GETPOST('qtyl'.$indiceAsked, 'int');
|
if (GETPOST('qtyl'.$indiceAsked, 'int')) $defaultqty=GETPOST('qtyl'.$indiceAsked, 'int');
|
||||||
@ -1416,7 +1416,7 @@ elseif ($id || $ref)
|
|||||||
print $langs->trans('DateDeliveryPlanned');
|
print $langs->trans('DateDeliveryPlanned');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
if ($action != 'editdate_livraison') print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editdate_livraison&id='.$object->id.'">'.img_edit($langs->trans('SetDeliveryDate'), 1).'</a></td>';
|
if ($action != 'editdate_livraison') print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editdate_livraison&id='.$object->id.'">'.img_edit($langs->trans('SetDeliveryDate'), 1).'</a></td>';
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
print '</td><td colspan="2">';
|
print '</td><td colspan="2">';
|
||||||
if ($action == 'editdate_livraison')
|
if ($action == 'editdate_livraison')
|
||||||
@ -1556,7 +1556,7 @@ elseif ($id || $ref)
|
|||||||
print $langs->trans('ReceptionMethod');
|
print $langs->trans('ReceptionMethod');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
if ($action != 'editshipping_method_id') print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editshipping_method_id&id='.$object->id.'">'.img_edit($langs->trans('SetReceptionMethod'), 1).'</a></td>';
|
if ($action != 'editshipping_method_id') print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editshipping_method_id&id='.$object->id.'">'.img_edit($langs->trans('SetReceptionMethod'), 1).'</a></td>';
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
print '</td><td colspan="2">';
|
print '</td><td colspan="2">';
|
||||||
if ($action == 'editshipping_method_id')
|
if ($action == 'editshipping_method_id')
|
||||||
@ -1594,7 +1594,7 @@ elseif ($id || $ref)
|
|||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
print '<table width="100%" class="nobordernopadding"><tr><td>';
|
||||||
print $langs->trans('IncotermLabel');
|
print $langs->trans('IncotermLabel');
|
||||||
print '<td><td align="right">';
|
print '<td><td class="right">';
|
||||||
if ($user->rights->reception->creer) print '<a href="'.DOL_URL_ROOT.'/reception/card.php?id='.$object->id.'&action=editincoterm">'.img_edit().'</a>';
|
if ($user->rights->reception->creer) print '<a href="'.DOL_URL_ROOT.'/reception/card.php?id='.$object->id.'&action=editincoterm">'.img_edit().'</a>';
|
||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
@ -1637,24 +1637,24 @@ elseif ($id || $ref)
|
|||||||
// #
|
// #
|
||||||
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
|
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
|
||||||
{
|
{
|
||||||
print '<td width="5" align="center"> </td>';
|
print '<td width="5" class="center"> </td>';
|
||||||
}
|
}
|
||||||
// Product/Service
|
// Product/Service
|
||||||
print '<td>'.$langs->trans("Products").'</td>';
|
print '<td>'.$langs->trans("Products").'</td>';
|
||||||
// Comment
|
// Comment
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
// Qty
|
// Qty
|
||||||
print '<td align="center">'.$langs->trans("QtyOrdered").'</td>';
|
print '<td class="center">'.$langs->trans("QtyOrdered").'</td>';
|
||||||
if ($origin && $origin_id > 0)
|
if ($origin && $origin_id > 0)
|
||||||
{
|
{
|
||||||
print '<td align="center">'.$langs->trans("QtyInOtherReceptions").'</td>';
|
print '<td class="center">'.$langs->trans("QtyInOtherReceptions").'</td>';
|
||||||
}
|
}
|
||||||
if ($action == 'editline')
|
if ($action == 'editline')
|
||||||
{
|
{
|
||||||
$editColspan = 3;
|
$editColspan = 3;
|
||||||
if (empty($conf->stock->enabled)) $editColspan--;
|
if (empty($conf->stock->enabled)) $editColspan--;
|
||||||
if (empty($conf->productbatch->enabled)) $editColspan--;
|
if (empty($conf->productbatch->enabled)) $editColspan--;
|
||||||
print '<td align="center" colspan="'. $editColspan . '">';
|
print '<td class="center" colspan="'. $editColspan . '">';
|
||||||
if ($object->statut <= 1)
|
if ($object->statut <= 1)
|
||||||
{
|
{
|
||||||
print $langs->trans("QtyToReceive").' - ';
|
print $langs->trans("QtyToReceive").' - ';
|
||||||
@ -1677,11 +1677,11 @@ elseif ($id || $ref)
|
|||||||
{
|
{
|
||||||
if ($object->statut <= 1)
|
if ($object->statut <= 1)
|
||||||
{
|
{
|
||||||
print '<td align="center">'.$langs->trans("QtyToReceive").'</td>';
|
print '<td class="center">'.$langs->trans("QtyToReceive").'</td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td align="center">'.$langs->trans("QtyReceived").'</td>';
|
print '<td class="center">'.$langs->trans("QtyReceived").'</td>';
|
||||||
}
|
}
|
||||||
if (! empty($conf->stock->enabled))
|
if (! empty($conf->stock->enabled))
|
||||||
{
|
{
|
||||||
@ -1693,9 +1693,9 @@ elseif ($id || $ref)
|
|||||||
print '<td class="left">'.$langs->trans("Batch").'</td>';
|
print '<td class="left">'.$langs->trans("Batch").'</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '<td align="center">'.$langs->trans("CalculatedWeight").'</td>';
|
print '<td class="center">'.$langs->trans("CalculatedWeight").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("CalculatedVolume").'</td>';
|
print '<td class="center">'.$langs->trans("CalculatedVolume").'</td>';
|
||||||
//print '<td align="center">'.$langs->trans("Size").'</td>';
|
//print '<td class="center">'.$langs->trans("Size").'</td>';
|
||||||
if ($object->statut == 0)
|
if ($object->statut == 0)
|
||||||
{
|
{
|
||||||
print '<td class="linecoledit"></td>';
|
print '<td class="linecoledit"></td>';
|
||||||
@ -1775,7 +1775,7 @@ elseif ($id || $ref)
|
|||||||
// #
|
// #
|
||||||
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
|
if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
|
||||||
{
|
{
|
||||||
print '<td align="center">'.($i+1).'</td>';
|
print '<td class="center">'.($i+1).'</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Predefined product or service
|
// Predefined product or service
|
||||||
@ -1834,12 +1834,12 @@ elseif ($id || $ref)
|
|||||||
|
|
||||||
|
|
||||||
// Qty ordered
|
// Qty ordered
|
||||||
print '<td align="center">'.$lines[$i]->qty_asked.'</td>';
|
print '<td class="center">'.$lines[$i]->qty_asked.'</td>';
|
||||||
|
|
||||||
// Qty in other receptions (with reception and warehouse used)
|
// Qty in other receptions (with reception and warehouse used)
|
||||||
if ($origin && $origin_id > 0)
|
if ($origin && $origin_id > 0)
|
||||||
{
|
{
|
||||||
print '<td align="center" class="nowrap">';
|
print '<td class="center nowrap">';
|
||||||
foreach ($alreadysent as $key => $val)
|
foreach ($alreadysent as $key => $val)
|
||||||
{
|
{
|
||||||
if ($lines[$i]->fk_commandefourndet == $key)
|
if ($lines[$i]->fk_commandefourndet == $key)
|
||||||
@ -1871,7 +1871,7 @@ elseif ($id || $ref)
|
|||||||
if ($action == 'editline' && $lines[$i]->id == $line_id)
|
if ($action == 'editline' && $lines[$i]->id == $line_id)
|
||||||
{
|
{
|
||||||
// edit mode
|
// edit mode
|
||||||
print '<td colspan="'.$editColspan.'" align="center"><table class="nobordernopadding">';
|
print '<td colspan="'.$editColspan.'" class="center"><table class="nobordernopadding">';
|
||||||
if (! empty($conf->stock->enabled))
|
if (! empty($conf->stock->enabled))
|
||||||
{
|
{
|
||||||
if ($lines[$i]->fk_product > 0)
|
if ($lines[$i]->fk_product > 0)
|
||||||
@ -1912,7 +1912,7 @@ elseif ($id || $ref)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Qty to receive or received
|
// Qty to receive or received
|
||||||
print '<td align="center">'.$lines[$i]->qty.'</td>';
|
print '<td class="center">'.$lines[$i]->qty.'</td>';
|
||||||
|
|
||||||
// Warehouse source
|
// Warehouse source
|
||||||
if (! empty($conf->stock->enabled))
|
if (! empty($conf->stock->enabled))
|
||||||
@ -1959,13 +1959,13 @@ elseif ($id || $ref)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Weight
|
// Weight
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
if ($lines[$i]->fk_product_type == Product::TYPE_PRODUCT) print $lines[$i]->product->weight*$lines[$i]->qty.' '.measuring_units_string($lines[$i]->product->weight_units, "weight");
|
if ($lines[$i]->fk_product_type == Product::TYPE_PRODUCT) print $lines[$i]->product->weight*$lines[$i]->qty.' '.measuring_units_string($lines[$i]->product->weight_units, "weight");
|
||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Volume
|
// Volume
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
if ($lines[$i]->fk_product_type == Product::TYPE_PRODUCT) print $lines[$i]->product->volume*$lines[$i]->qty.' '.measuring_units_string($lines[$i]->product->volume_units, "volume");
|
if ($lines[$i]->fk_product_type == Product::TYPE_PRODUCT) print $lines[$i]->product->volume*$lines[$i]->qty.' '.measuring_units_string($lines[$i]->product->volume_units, "volume");
|
||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -1973,14 +1973,14 @@ elseif ($id || $ref)
|
|||||||
|
|
||||||
if ($action == 'editline' && $lines[$i]->id == $line_id)
|
if ($action == 'editline' && $lines[$i]->id == $line_id)
|
||||||
{
|
{
|
||||||
print '<td align="center" colspan="2" valign="middle">';
|
print '<td class="center" colspan="2" valign="middle">';
|
||||||
print '<input type="submit" class="button" id="savelinebutton" name="save" value="' . $langs->trans("Save") . '"><br>';
|
print '<input type="submit" class="button" id="savelinebutton" name="save" value="' . $langs->trans("Save") . '"><br>';
|
||||||
print '<input type="submit" class="button" id="cancellinebutton" name="cancel" value="' . $langs->trans("Cancel") . '"><br>';
|
print '<input type="submit" class="button" id="cancellinebutton" name="cancel" value="' . $langs->trans("Cancel") . '"><br>';
|
||||||
}
|
}
|
||||||
elseif ($object->statut == 0)
|
elseif ($object->statut == 0)
|
||||||
{
|
{
|
||||||
// edit-delete buttons
|
// edit-delete buttons
|
||||||
print '<td class="linecoledit" align="center">';
|
print '<td class="linecoledit center">';
|
||||||
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=editline&lineid=' . $lines[$i]->id . '">' . img_edit() . '</a>';
|
print '<a href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=editline&lineid=' . $lines[$i]->id . '">' . img_edit() . '</a>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="linecoldelete" width="10">';
|
print '<td class="linecoldelete" width="10">';
|
||||||
|
|||||||
@ -160,7 +160,7 @@ if ($resql)
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
print $companystatic->getNomUrl(1, 'customer', 32);
|
print $companystatic->getNomUrl(1, 'customer', 32);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="right">';
|
print '<td class="right">';
|
||||||
print $orderstatic->getLibStatut(3);
|
print $orderstatic->getLibStatut(3);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
@ -219,7 +219,7 @@ if ( $resql )
|
|||||||
print '<td>';
|
print '<td>';
|
||||||
print $companystatic->getNomUrl(1, 'customer');
|
print $companystatic->getNomUrl(1, 'customer');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="right">';
|
print '<td class="right">';
|
||||||
print $orderstatic->getLibStatut(3);
|
print $orderstatic->getLibStatut(3);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|||||||
@ -647,7 +647,7 @@ if ($resql)
|
|||||||
// Thirdparty
|
// Thirdparty
|
||||||
if (! empty($arrayfields['s.nom']['checked']))
|
if (! empty($arrayfields['s.nom']['checked']))
|
||||||
{
|
{
|
||||||
print '<td class="liste_titre" align="left">';
|
print '<td class="liste_titre left">';
|
||||||
print '<input class="flat" type="text" size="8" name="search_company" value="'.dol_escape_htmltag($search_company).'">';
|
print '<input class="flat" type="text" size="8" name="search_company" value="'.dol_escape_htmltag($search_company).'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
@ -665,14 +665,14 @@ if ($resql)
|
|||||||
// Country
|
// Country
|
||||||
if (! empty($arrayfields['country.code_iso']['checked']))
|
if (! empty($arrayfields['country.code_iso']['checked']))
|
||||||
{
|
{
|
||||||
print '<td class="liste_titre" align="center">';
|
print '<td class="liste_titre center">';
|
||||||
print $form->select_country($search_country, 'search_country', '', 0, 'maxwidth100');
|
print $form->select_country($search_country, 'search_country', '', 0, 'maxwidth100');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// Company type
|
// Company type
|
||||||
if (! empty($arrayfields['typent.code']['checked']))
|
if (! empty($arrayfields['typent.code']['checked']))
|
||||||
{
|
{
|
||||||
print '<td class="liste_titre maxwidthonsmartphone" align="center">';
|
print '<td class="liste_titre maxwidthonsmartphone center">';
|
||||||
print $form->selectarray("search_type_thirdparty", $formcompany->typent_array(0), $search_type_thirdparty, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
|
print $form->selectarray("search_type_thirdparty", $formcompany->typent_array(0), $search_type_thirdparty, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
@ -735,19 +735,19 @@ if ($resql)
|
|||||||
// Status
|
// Status
|
||||||
if (! empty($arrayfields['e.fk_statut']['checked']))
|
if (! empty($arrayfields['e.fk_statut']['checked']))
|
||||||
{
|
{
|
||||||
print '<td class="liste_titre maxwidthonsmartphone" align="right">';
|
print '<td class="liste_titre maxwidthonsmartphone right">';
|
||||||
print $form->selectarray('viewstatut', array('0'=>$langs->trans('StatusReceptionDraftShort'),'1'=>$langs->trans('StatusReceptionValidatedShort'),'2'=>$langs->trans('StatusReceptionProcessedShort')), $viewstatut, 1);
|
print $form->selectarray('viewstatut', array('0'=>$langs->trans('StatusReceptionDraftShort'),'1'=>$langs->trans('StatusReceptionValidatedShort'),'2'=>$langs->trans('StatusReceptionProcessedShort')), $viewstatut, 1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// Status billed
|
// Status billed
|
||||||
if (! empty($arrayfields['e.billed']['checked']))
|
if (! empty($arrayfields['e.billed']['checked']))
|
||||||
{
|
{
|
||||||
print '<td class="liste_titre maxwidthonsmartphone" align="center">';
|
print '<td class="liste_titre maxwidthonsmartphone center">';
|
||||||
print $form->selectyesno('search_billed', $search_billed, 1, 0, 1);
|
print $form->selectyesno('search_billed', $search_billed, 1, 0, 1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
// Action column
|
// Action column
|
||||||
print '<td class="liste_titre" align="middle">';
|
print '<td class="liste_titre middle">';
|
||||||
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
||||||
print $searchpicto;
|
print $searchpicto;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -756,15 +756,15 @@ if ($resql)
|
|||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
if (! empty($arrayfields['e.ref']['checked'])) print_liste_field_titre($arrayfields['e.ref']['label'], $_SERVER["PHP_SELF"], "e.ref", "", $param, '', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.ref']['checked'])) print_liste_field_titre($arrayfields['e.ref']['label'], $_SERVER["PHP_SELF"], "e.ref", "", $param, '', $sortfield, $sortorder);
|
||||||
if (! empty($arrayfields['e.ref_supplier']['checked'])) print_liste_field_titre($arrayfields['e.ref_supplier']['label'], $_SERVER["PHP_SELF"], "e.ref_supplier", "", $param, '', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.ref_supplier']['checked'])) print_liste_field_titre($arrayfields['e.ref_supplier']['label'], $_SERVER["PHP_SELF"], "e.ref_supplier", "", $param, '', $sortfield, $sortorder);
|
||||||
if (! empty($arrayfields['s.nom']['checked'])) print_liste_field_titre($arrayfields['s.nom']['label'], $_SERVER["PHP_SELF"], "s.nom", "", $param, 'align="left"', $sortfield, $sortorder);
|
if (! empty($arrayfields['s.nom']['checked'])) print_liste_field_titre($arrayfields['s.nom']['label'], $_SERVER["PHP_SELF"], "s.nom", "", $param, '', $sortfield, $sortorder, 'left ');
|
||||||
if (! empty($arrayfields['s.town']['checked'])) print_liste_field_titre($arrayfields['s.town']['label'], $_SERVER["PHP_SELF"], 's.town', '', $param, '', $sortfield, $sortorder);
|
if (! empty($arrayfields['s.town']['checked'])) print_liste_field_titre($arrayfields['s.town']['label'], $_SERVER["PHP_SELF"], 's.town', '', $param, '', $sortfield, $sortorder);
|
||||||
if (! empty($arrayfields['s.zip']['checked'])) print_liste_field_titre($arrayfields['s.zip']['label'], $_SERVER["PHP_SELF"], 's.zip', '', $param, '', $sortfield, $sortorder);
|
if (! empty($arrayfields['s.zip']['checked'])) print_liste_field_titre($arrayfields['s.zip']['label'], $_SERVER["PHP_SELF"], 's.zip', '', $param, '', $sortfield, $sortorder);
|
||||||
if (! empty($arrayfields['state.nom']['checked'])) print_liste_field_titre($arrayfields['state.nom']['label'], $_SERVER["PHP_SELF"], "state.nom", "", $param, '', $sortfield, $sortorder);
|
if (! empty($arrayfields['state.nom']['checked'])) print_liste_field_titre($arrayfields['state.nom']['label'], $_SERVER["PHP_SELF"], "state.nom", "", $param, '', $sortfield, $sortorder);
|
||||||
if (! empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, 'align="center"', $sortfield, $sortorder);
|
if (! empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
if (! empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, 'align="center"', $sortfield, $sortorder);
|
if (! empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
if (! empty($arrayfields['e.date_delivery']['checked'])) print_liste_field_titre($arrayfields['e.date_delivery']['label'], $_SERVER["PHP_SELF"], "e.date_delivery", "", $param, 'align="center"', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.date_delivery']['checked'])) print_liste_field_titre($arrayfields['e.date_delivery']['label'], $_SERVER["PHP_SELF"], "e.date_delivery", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
if (! empty($arrayfields['l.ref']['checked'])) print_liste_field_titre($arrayfields['l.ref']['label'], $_SERVER["PHP_SELF"], "l.ref", "", $param, '', $sortfield, $sortorder);
|
if (! empty($arrayfields['l.ref']['checked'])) print_liste_field_titre($arrayfields['l.ref']['label'], $_SERVER["PHP_SELF"], "l.ref", "", $param, '', $sortfield, $sortorder);
|
||||||
if (! empty($arrayfields['l.date_delivery']['checked'])) print_liste_field_titre($arrayfields['l.date_delivery']['label'], $_SERVER["PHP_SELF"], "l.date_delivery", "", $param, 'align="center"', $sortfield, $sortorder);
|
if (! empty($arrayfields['l.date_delivery']['checked'])) print_liste_field_titre($arrayfields['l.date_delivery']['label'], $_SERVER["PHP_SELF"], "l.date_delivery", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
// Extra fields
|
// Extra fields
|
||||||
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
|
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
|
||||||
{
|
{
|
||||||
@ -775,7 +775,7 @@ if ($resql)
|
|||||||
$align=$extrafields->getAlignFlag($key);
|
$align=$extrafields->getAlignFlag($key);
|
||||||
$sortonfield = "ef.".$key;
|
$sortonfield = "ef.".$key;
|
||||||
if (! empty($extrafields->attribute_computed[$key])) $sortonfield='';
|
if (! empty($extrafields->attribute_computed[$key])) $sortonfield='';
|
||||||
print_liste_field_titre($extralabels[$key], $_SERVER["PHP_SELF"], $sortonfield, "", $param, ($align?'align="'.$align.'"':''), $sortfield, $sortorder);
|
print_liste_field_titre($extralabels[$key], $_SERVER["PHP_SELF"], $sortonfield, "", $param, '', $sortfield, $sortorder, ($align?'"'.$align.' "':''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -783,11 +783,11 @@ if ($resql)
|
|||||||
$parameters=array('arrayfields'=>$arrayfields);
|
$parameters=array('arrayfields'=>$arrayfields);
|
||||||
$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
|
$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
if (! empty($arrayfields['e.datec']['checked'])) print_liste_field_titre($arrayfields['e.datec']['label'], $_SERVER["PHP_SELF"], "e.date_creation", "", $param, 'align="center" class="nowrap"', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.datec']['checked'])) print_liste_field_titre($arrayfields['e.datec']['label'], $_SERVER["PHP_SELF"], "e.date_creation", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
|
||||||
if (! empty($arrayfields['e.tms']['checked'])) print_liste_field_titre($arrayfields['e.tms']['label'], $_SERVER["PHP_SELF"], "e.tms", "", $param, 'align="center" class="nowrap"', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.tms']['checked'])) print_liste_field_titre($arrayfields['e.tms']['label'], $_SERVER["PHP_SELF"], "e.tms", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
|
||||||
if (! empty($arrayfields['e.fk_statut']['checked'])) print_liste_field_titre($arrayfields['e.fk_statut']['label'], $_SERVER["PHP_SELF"], "e.fk_statut", "", $param, 'align="right"', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.fk_statut']['checked'])) print_liste_field_titre($arrayfields['e.fk_statut']['label'], $_SERVER["PHP_SELF"], "e.fk_statut", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||||
if (! empty($arrayfields['e.billed']['checked'])) print_liste_field_titre($arrayfields['e.billed']['label'], $_SERVER["PHP_SELF"], "e.billed", "", $param, 'align="center"', $sortfield, $sortorder);
|
if (! empty($arrayfields['e.billed']['checked'])) print_liste_field_titre($arrayfields['e.billed']['label'], $_SERVER["PHP_SELF"], "e.billed", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', 'align="center"', $sortfield, $sortorder, 'maxwidthsearch ');
|
print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$i=0;
|
$i=0;
|
||||||
@ -862,7 +862,7 @@ if ($resql)
|
|||||||
// Country
|
// Country
|
||||||
if (! empty($arrayfields['country.code_iso']['checked']))
|
if (! empty($arrayfields['country.code_iso']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
$tmparray=getCountry($obj->fk_pays, 'all');
|
$tmparray=getCountry($obj->fk_pays, 'all');
|
||||||
print $tmparray['label'];
|
print $tmparray['label'];
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -871,7 +871,7 @@ if ($resql)
|
|||||||
// Type ent
|
// Type ent
|
||||||
if (! empty($arrayfields['typent.code']['checked']))
|
if (! empty($arrayfields['typent.code']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
if (count($typenArray)==0) $typenArray = $formcompany->typent_array(1);
|
if (count($typenArray)==0) $typenArray = $formcompany->typent_array(1);
|
||||||
print $typenArray[$obj->typent_code];
|
print $typenArray[$obj->typent_code];
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -881,7 +881,7 @@ if ($resql)
|
|||||||
// Date delivery planed
|
// Date delivery planed
|
||||||
if (! empty($arrayfields['e.date_delivery']['checked']))
|
if (! empty($arrayfields['e.date_delivery']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
print dol_print_date($db->jdate($obj->date_livraison), "day");
|
print dol_print_date($db->jdate($obj->date_livraison), "day");
|
||||||
/*$now = time();
|
/*$now = time();
|
||||||
if ( ($now - $db->jdate($obj->date_reception)) > $conf->warnings->lim && $obj->statutid == 1 )
|
if ( ($now - $db->jdate($obj->date_reception)) > $conf->warnings->lim && $obj->statutid == 1 )
|
||||||
@ -907,7 +907,7 @@ if ($resql)
|
|||||||
if (! empty($arrayfields['l.date_delivery']['checked']))
|
if (! empty($arrayfields['l.date_delivery']['checked']))
|
||||||
{
|
{
|
||||||
// Date received
|
// Date received
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
print dol_print_date($db->jdate($obj->date_reception), "day");
|
print dol_print_date($db->jdate($obj->date_reception), "day");
|
||||||
print '</td>'."\n";
|
print '</td>'."\n";
|
||||||
}
|
}
|
||||||
@ -920,10 +920,10 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
if (! empty($arrayfields["ef.".$key]['checked']))
|
if (! empty($arrayfields["ef.".$key]['checked']))
|
||||||
{
|
{
|
||||||
print '<td class="tdofextrafield"';
|
print '<td class="tdofextrafield';
|
||||||
$align=$extrafields->getAlignFlag($key);
|
$align=$extrafields->getAlignFlag($key);
|
||||||
if ($align) print ' align="'.$align.'"';
|
if ($align) print ' '.$align;
|
||||||
print '>';
|
print '">';
|
||||||
$tmpkey='options_'.$key;
|
$tmpkey='options_'.$key;
|
||||||
print $extrafields->showOutputField($key, $obj->$tmpkey, '', 1);
|
print $extrafields->showOutputField($key, $obj->$tmpkey, '', 1);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -938,7 +938,7 @@ if ($resql)
|
|||||||
// Date creation
|
// Date creation
|
||||||
if (! empty($arrayfields['e.datec']['checked']))
|
if (! empty($arrayfields['e.datec']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="center" class="nowrap">';
|
print '<td class="center nowrap">';
|
||||||
print dol_print_date($db->jdate($obj->date_creation), 'dayhour');
|
print dol_print_date($db->jdate($obj->date_creation), 'dayhour');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (! $i) $totalarray['nbfield']++;
|
if (! $i) $totalarray['nbfield']++;
|
||||||
@ -946,7 +946,7 @@ if ($resql)
|
|||||||
// Date modification
|
// Date modification
|
||||||
if (! empty($arrayfields['e.tms']['checked']))
|
if (! empty($arrayfields['e.tms']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="center" class="nowrap">';
|
print '<td class="center nowrap">';
|
||||||
print dol_print_date($db->jdate($obj->date_update), 'dayhour');
|
print dol_print_date($db->jdate($obj->date_update), 'dayhour');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (! $i) $totalarray['nbfield']++;
|
if (! $i) $totalarray['nbfield']++;
|
||||||
@ -954,18 +954,18 @@ if ($resql)
|
|||||||
// Status
|
// Status
|
||||||
if (! empty($arrayfields['e.fk_statut']['checked']))
|
if (! empty($arrayfields['e.fk_statut']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="right" class="nowrap">'.$reception->LibStatut($obj->fk_statut, 5).'</td>';
|
print '<td class="right nowrap">'.$reception->LibStatut($obj->fk_statut, 5).'</td>';
|
||||||
if (! $i) $totalarray['nbfield']++;
|
if (! $i) $totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
// Billed
|
// Billed
|
||||||
if (! empty($arrayfields['e.billed']['checked']))
|
if (! empty($arrayfields['e.billed']['checked']))
|
||||||
{
|
{
|
||||||
print '<td align="center">'.yn($obj->billed).'</td>';
|
print '<td class="center">'.yn($obj->billed).'</td>';
|
||||||
if (! $i) $totalarray['nbfield']++;
|
if (! $i) $totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Action column
|
// Action column
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
|
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
|
||||||
{
|
{
|
||||||
$selected=0;
|
$selected=0;
|
||||||
|
|||||||
@ -255,7 +255,7 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
arsort($arrayyears);
|
arsort($arrayyears);
|
||||||
print $form->selectarray('year', $arrayyears, $year, 0);
|
print $form->selectarray('year', $arrayyears, $year, 0);
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '<tr><td align="center" colspan="2"><input type="submit" name="submit" class="button" value="'.$langs->trans("Refresh").'"></td></tr>';
|
print '<tr><td class="center" colspan="2"><input type="submit" name="submit" class="button" value="'.$langs->trans("Refresh").'"></td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
@ -263,10 +263,10 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
|||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre" height="24">';
|
print '<tr class="liste_titre" height="24">';
|
||||||
print '<td align="center">'.$langs->trans("Year").'</td>';
|
print '<td class="center">'.$langs->trans("Year").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("NbOfReceptions").'</td>';
|
print '<td class="right">'.$langs->trans("NbOfReceptions").'</td>';
|
||||||
/*print '<td align="center">'.$langs->trans("AmountTotal").'</td>';
|
/*print '<td class="center">'.$langs->trans("AmountTotal").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("AmountAverage").'</td>';*/
|
print '<td class="center">'.$langs->trans("AmountAverage").'</td>';*/
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$oldyear=0;
|
$oldyear=0;
|
||||||
@ -279,22 +279,22 @@ foreach ($data as $val)
|
|||||||
|
|
||||||
|
|
||||||
print '<tr class="oddeven" height="24">';
|
print '<tr class="oddeven" height="24">';
|
||||||
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.'&mode='.$mode.'">'.$oldyear.'</a></td>';
|
print '<td class="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$oldyear.'&mode='.$mode.'">'.$oldyear.'</a></td>';
|
||||||
|
|
||||||
print '<td align="right">0</td>';
|
print '<td class="right">0</td>';
|
||||||
/*print '<td align="right">0</td>';
|
/*print '<td class="right">0</td>';
|
||||||
print '<td align="right">0</td>';*/
|
print '<td class="right">0</td>';*/
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<tr class="oddeven" height="24">';
|
print '<tr class="oddeven" height="24">';
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
if ($year) print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&mode='.$mode.'">'.$year.'</a>';
|
if ($year) print '<a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&mode='.$mode.'">'.$year.'</a>';
|
||||||
else print $langs->trans("ValidationDateNotDefinedEvenIfReceptionValidated");
|
else print $langs->trans("ValidationDateNotDefinedEvenIfReceptionValidated");
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="right">'.$val['nb'].'</td>';
|
print '<td class="right">'.$val['nb'].'</td>';
|
||||||
/*print '<td align="right">'.price(price2num($val['total'],'MT'),1).'</td>';
|
/*print '<td class="right">'.price(price2num($val['total'],'MT'),1).'</td>';
|
||||||
print '<td align="right">'.price(price2num($val['avg'],'MT'),1).'</td>';*/
|
print '<td class="right">'.price(price2num($val['avg'],'MT'),1).'</td>';*/
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
$oldyear=$year;
|
$oldyear=$year;
|
||||||
}
|
}
|
||||||
@ -306,7 +306,7 @@ print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
|||||||
|
|
||||||
|
|
||||||
// Show graphs
|
// Show graphs
|
||||||
print '<table class="border" width="100%"><tr valign="top"><td align="center">';
|
print '<table class="border" width="100%"><tr valign="top"><td class="center">';
|
||||||
if ($mesg) { print $mesg; }
|
if ($mesg) { print $mesg; }
|
||||||
else {
|
else {
|
||||||
print $px1->show();
|
print $px1->show();
|
||||||
@ -328,8 +328,8 @@ dol_fiche_end();
|
|||||||
// TODO USe code similar to commande/stats/index.php instead of this one.
|
// TODO USe code similar to commande/stats/index.php instead of this one.
|
||||||
/*
|
/*
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td align="center">'.$langs->trans("Year").'</td>';
|
print '<tr><td class="center">'.$langs->trans("Year").'</td>';
|
||||||
print '<td width="40%" align="center">'.$langs->trans("NbOfReceptions").'</td></tr>';
|
print '<td width="40%" class="center">'.$langs->trans("NbOfReceptions").'</td></tr>';
|
||||||
|
|
||||||
$sql = "SELECT count(*) as nb, date_format(date_reception,'%Y') as dm";
|
$sql = "SELECT count(*) as nb, date_format(date_reception,'%Y') as dm";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."reception";
|
$sql.= " FROM ".MAIN_DB_PREFIX."reception";
|
||||||
@ -348,7 +348,7 @@ if ($resql)
|
|||||||
$nbproduct = $row[0];
|
$nbproduct = $row[0];
|
||||||
$year = $row[1];
|
$year = $row[1];
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print '<td align="center"><a href="month.php?year='.$year.'">'.$year.'</a></td><td align="center">'.$nbproduct.'</td></tr>';
|
print '<td class="center"><a href="month.php?year='.$year.'">'.$year.'</a></td><td class="center">'.$nbproduct.'</td></tr>';
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,14 +41,14 @@ foreach($linkedObjectBlock as $key => $objectlink)
|
|||||||
<td><?php echo $langs->trans("Reception"); ?></td>
|
<td><?php echo $langs->trans("Reception"); ?></td>
|
||||||
<td><?php echo $objectlink->getNomUrl(1); ?></td>
|
<td><?php echo $objectlink->getNomUrl(1); ?></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td align="center"><?php echo dol_print_date($objectlink->date_delivery, 'day'); ?></td>
|
<td class="center"><?php echo dol_print_date($objectlink->date_delivery, 'day'); ?></td>
|
||||||
<td align="right"><?php
|
<td class="right"><?php
|
||||||
if ($user->rights->reception->lire) {
|
if ($user->rights->reception->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"><?php echo $objectlink->getLibStatut(3); ?></td>
|
<td class="right"><?php echo $objectlink->getLibStatut(3); ?></td>
|
||||||
<td align="right">
|
<td class="right">
|
||||||
<?php
|
<?php
|
||||||
// For now, receptions must stay linked to order, so link is not deletable
|
// For now, receptions must stay linked to order, so link is not deletable
|
||||||
if($object->element != 'order_supplier') {
|
if($object->element != 'order_supplier') {
|
||||||
@ -66,11 +66,11 @@ if (count($linkedObjectBlock) > 1)
|
|||||||
<tr class="liste_total <?php echo (empty($noMoreLinkedObjectBlockAfter)?'liste_sub_total':''); ?>">
|
<tr class="liste_total <?php echo (empty($noMoreLinkedObjectBlockAfter)?'liste_sub_total':''); ?>">
|
||||||
<td><?php echo $langs->trans("Total"); ?></td>
|
<td><?php echo $langs->trans("Total"); ?></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td align="center"></td>
|
<td class="center"></td>
|
||||||
<td align="center"></td>
|
<td class="center"></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td class="right"><?php echo price($total); ?></td>
|
||||||
<td align="right"></td>
|
<td class="right"></td>
|
||||||
<td align="right"></td>
|
<td class="right"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|||||||
@ -226,7 +226,7 @@ if (! empty($arrayfields['ty.label']['checked']))
|
|||||||
// Extra fields
|
// Extra fields
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
|
||||||
// Action column
|
// Action column
|
||||||
print '<td class="liste_titre" align="right">';
|
print '<td class="liste_titre right">';
|
||||||
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
||||||
print $searchpicto;
|
print $searchpicto;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -237,7 +237,7 @@ if (! empty($arrayfields['t.ref']['checked'])) print_liste_field_titre
|
|||||||
if (! empty($arrayfields['ty.label']['checked'])) print_liste_field_titre($arrayfields['ty.label']['label'], $_SERVER["PHP_SELF"], "ty.label", "", $param, "", $sortfield, $sortorder);
|
if (! empty($arrayfields['ty.label']['checked'])) print_liste_field_titre($arrayfields['ty.label']['label'], $_SERVER["PHP_SELF"], "ty.label", "", $param, "", $sortfield, $sortorder);
|
||||||
// Extra fields
|
// Extra fields
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
|
||||||
print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', 'align="center"', $sortfield, $sortorder, 'maxwidthsearch ');
|
print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ if ($ret)
|
|||||||
$obj = (Object) $resource->array_options;
|
$obj = (Object) $resource->array_options;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
|
||||||
|
|
||||||
print '<td align="center">';
|
print '<td class="center">';
|
||||||
print '<a href="./card.php?action=edit&id='.$resource->id.'">';
|
print '<a href="./card.php?action=edit&id='.$resource->id.'">';
|
||||||
print img_edit();
|
print img_edit();
|
||||||
print '</a>';
|
print '</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user