$custcontact = $contactstatic->getFullName($langs, 1); } } if (!empty($custcontact)) { $formmail->substit['__CONTACTCIVNAME__'] = $custcontact; } } // Tableau des parametres complementaires $formmail->param['action'] = 'send'; $formmail->param['models'] = 'shipping_send'; $formmail->param['models_id'] = GETPOST('modelmailselected', 'int'); $formmail->param['shippingid'] = $object->id; $formmail->param['returnurl'] = $_SERVER["PHP_SELF"] . '?id=' . $object->id; // Init list of files if (GETPOST("mode") == 'init') { $formmail->clear_attached_files(); $formmail->add_attached_files($file, basename($file), dol_mimetype($file)); } // Show form print $formmail->get_form(); dol_fiche_end(); } if ($action != 'presend' && !empty($origin) && $object->{$origin}->id) { print '<br>'; //show_list_sending_receive($object->origin,$object->origin_id," AND e.rowid <> ".$object->id); show_list_sending_receive($object->origin, $object->origin_id); } } } llxFooter(); $db->close();
$delallowed=$user->rights->expedition->livraison->supprimer; $somethingshown=$formfile->show_documents('livraison',$deliveryref,$filedir,$urlsource,$genallowed,$delallowed,$delivery->modelpdf,1,0,0,28,0,'','','',$soc->default_lang); if ($genallowed && ! $somethingshown) $somethingshown=1; print '</td><td valign="top" width="50%">'; // Rien a droite print '</td></tr></table>'; if ($expedition->origin_id) { print '<br>'; //show_list_sending_receive($expedition->origin,$expedition->origin_id," AND e.rowid <> ".$expedition->id); show_list_sending_receive($expedition->origin,$expedition->origin_id); } } else { /* Expedition non trouvee */ print "Expedition inexistante ou acces refuse"; } } else { /* Expedition non trouvee */ print "Expedition inexistante ou acces refuse"; } }
print "</table>"; print "</form>\n"; print '<br>'; $somethingshown=1; } else { print '<div class="tabsAction">'; print '<a class="butActionRefused" href="#">'.$langs->trans("NewSending").'</a>'; print '</div>'; } } show_list_sending_receive('commande',$commande->id); } else { /* Commande non trouvee */ print "Commande inexistante"; } } $db->close(); llxFooter('$Date: 2011/07/31 23:50:53 $ - $Revision: 1.30 $'); ?>