Ejemplo n.º 1
0
     print '<td colspan="3" class="maxwidthonsmartphone">';
     print $form->select_incoterms(!empty($soc->fk_incoterms) ? $soc->fk_incoterms : '', !empty($soc->location_incoterms) ? $soc->location_incoterms : '');
     print '</td></tr>';
 }
 // Template to use by default
 print '<tr>';
 print '<td>' . $langs->trans("DefaultModel") . '</td>';
 print '<td colspan="2">';
 $liste = ModelePDFPropales::liste_modeles($db);
 print $form->selectarray('model', $liste, $conf->global->PROPALE_ADDON_PDF_ODT_DEFAULT ? $conf->global->PROPALE_ADDON_PDF_ODT_DEFAULT : $conf->global->PROPALE_ADDON_PDF);
 print "</td></tr>";
 // Public note
 print '<tr>';
 print '<td class="border" valign="top">' . $langs->trans('NotePublic') . '</td>';
 print '<td valign="top" colspan="2">';
 $note_public = $object->getDefaultCreateValueFor('note_public', is_object($objectsrc) ? $objectsrc->note_public : null);
 $doleditor = new DolEditor('note_public', $note_public, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, '90%');
 print $doleditor->Create(1);
 // Private note
 if (empty($user->societe_id)) {
     print '<tr>';
     print '<td class="border" valign="top">' . $langs->trans('NotePrivate') . '</td>';
     print '<td valign="top" colspan="2">';
     $note_private = $object->getDefaultCreateValueFor('note_private', !empty($origin) && !empty($originid) && is_object($objectsrc) ? $objectsrc->note_private : null);
     $doleditor = new DolEditor('note_private', $note_private, '', 80, 'dolibarr_notes', 'In', 0, false, true, ROWS_3, '90%');
     print $doleditor->Create(1);
     // print '<textarea name="note_private" wrap="soft" cols="70" rows="'.ROWS_3.'">'.$note_private.'.</textarea>
     print '</td></tr>';
 }
 // Other attributes
 $parameters = array('colspan' => ' colspan="3"');