Example #1
0
 } else {
     $html->form_availability($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->availability_id, 'none', 1);
 }
 print '</td></tr>';
 // Source
 print '<tr><td height="10">';
 print '<table class="nobordernopadding" width="100%"><tr><td>';
 print $langs->trans('Source');
 print '</td>';
 if ($_GET['action'] != 'editdemandreason' && $object->brouillon) {
     print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=editdemandreason&amp;id=' . $object->id . '">' . img_edit($langs->trans('SetDemandReason'), 1) . '</a></td>';
 }
 print '</tr></table>';
 print '</td><td colspan="2">';
 if ($_GET['action'] == 'editdemandreason') {
     $html->form_demand_reason($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->demand_reason_id, 'demand_reason_id', 1);
 } else {
     $html->form_demand_reason($_SERVER['PHP_SELF'] . '?id=' . $object->id, $object->demand_reason_id, 'none');
 }
 // Removed because using dictionnary is an admin feature, not a user feature. Ther is already the "star" to show info to admin users.
 // This is to avoid too heavy screens and have an uniform look and feel for all screens.
 //print '</td><td>';
 //print '<a href="'.DOL_URL_ROOT.'/admin/dict.php?id=22&origin=order&originid='.$object->id.'">'.$langs->trans("DictionnarySource").'</a>';
 print '</td></tr>';
 // Project
 if ($conf->projet->enabled) {
     $langs->load('projects');
     print '<tr><td height="10">';
     print '<table class="nobordernopadding" width="100%"><tr><td>';
     print $langs->trans('Project');
     print '</td>';