Example #1
0
 $html->select_date('', 're', '', '', '', "crea_commande", 1, 1);
 print '</td></tr>';
 // Date de livraison
 print "<tr><td>" . $langs->trans("DeliveryDate") . '</td><td colspan="2">';
 if ($conf->global->DATE_LIVRAISON_WEEK_DELAY) {
     $datedelivery = time() + 7 * $conf->global->DATE_LIVRAISON_WEEK_DELAY * 24 * 60 * 60;
 } else {
     $datedelivery = empty($conf->global->MAIN_AUTOFILL_DATE) ? -1 : 0;
 }
 $html->select_date($datedelivery, 'liv_', '', '', '', "crea_commande", 1, 1);
 print "</td></tr>";
 // Delivery address
 if ($conf->global->COMMANDE_ADD_DELIVERY_ADDRESS) {
     // Link to edit: $html->form_address($_SERVER['PHP_SELF'].'?action=create','',$soc->id,'adresse_livraison_id','commande','');
     print '<tr><td nowrap="nowrap">' . $langs->trans('DeliveryAddress') . '</td><td colspan="2">';
     $numaddress = $html->select_address($soc->fk_delivery_address, $socid, 'fk_address', 1);
     print ' &nbsp; <a href="../comm/address.php?socid=' . $soc->id . '&action=create">' . $langs->trans("AddAddress") . '</a>';
     print '</td></tr>';
 }
 // Conditions de reglement
 print '<tr><td nowrap="nowrap">' . $langs->trans('PaymentConditionsShort') . '</td><td colspan="2">';
 $html->select_conditions_paiements($soc->cond_reglement, 'cond_reglement_id', -1, 1);
 print '</td></tr>';
 // Mode de reglement
 print '<tr><td>' . $langs->trans('PaymentMode') . '</td><td colspan="2">';
 $html->select_types_paiements($soc->mode_reglement, 'mode_reglement_id');
 print '</td></tr>';
 // Delivery delay
 print '<tr><td>' . $langs->trans('AvailabilityPeriod') . '</td><td colspan="2">';
 $html->select_availability($propal->availability, 'availability_id', '', 1);
 print '</td></tr>';
Example #2
0
		$sday = date("d", $tmpdte);
		$html->select_date($syear."-".$smonth."-".$sday,'liv_','','','',"addprop");
	}
	else
	{
		$datepropal=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
		$html->select_date($datepropal,'liv_','','','',"addprop");
	}
	print '</td></tr>';

	// Delivery address
	if ($conf->global->PROPALE_ADD_DELIVERY_ADDRESS)
	{
		print '<tr><td>'.$langs->trans('DeliveryAddress').'</td>';
		print '<td colspan="3">';
		$numaddress = $html->select_address($soc->fk_delivery_address, $_GET['socid'],'fk_address',1);
		if ($numaddress==0)
		{
			print ' &nbsp; <a href=../comm/address.php?socid='.$soc->id.'&action=create>'.$langs->trans("AddAddress").'</a>';
		}
		print '</td></tr>';
	}

	// Model
	print '<tr>';
	print '<td>'.$langs->trans("DefaultModel").'</td>';
	print '<td colspan="2">';
	$model=new ModelePDFPropales();
	$liste=$model->liste_modeles($db);
	print $html->selectarray('model',$liste,$conf->global->PROPALE_ADDON_PDF);
	print "</td></tr>";