本文整理汇总了PHP中Form::select_types_paiements方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::select_types_paiements方法的具体用法?PHP Form::select_types_paiements怎么用?PHP Form::select_types_paiements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Form
的用法示例。
在下文中一共展示了Form::select_types_paiements方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _printFormConfirm
function _printFormConfirm(&$user, &$db, &$conf, &$langs, &$TPayment)
{
global $bc;
$form = new Form($db);
$TFormCore = new TFormCore();
print load_fiche_titre($langs->trans('Payments'));
print '<div class="tabBar">';
print '<form name="import_confirm" action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="import_confirm">';
print '<p>';
print '<label><b>' . $langs->trans('paymentimport_typepayment') . '</b></label> ';
$form->select_types_paiements($conf->global->PAYMENTIMPORT_DEFAULT_REGLEMENT_CODE, 'paiementcode', '', 2);
print '</p>';
print '<p>';
print '<label><b>' . $langs->trans('paymentimport_bankaccount') . '</b></label> ';
print $form->select_comptes($conf->global->PAYMENTIMPORT_DEFAULT_BANK_ACOUNT, 'fk_bank', 0);
print '</p>';
print '<table class="border" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("RefFacture") . '</td>';
print '<td>' . $langs->trans("Company") . '</td>';
print '<td>' . $langs->trans("CodeClient") . '</td>';
print '<td>' . $langs->trans("Rib") . '</td>';
print '<td>' . $langs->trans("AmountPayment") . '</td>';
print '<td>' . $langs->trans("DatePayment") . '</td>';
print '<td>' . $langs->trans("Num") . '</td>';
print '<td>' . $langs->trans("Note") . '</td>';
print '</tr>';
$var = false;
$i = 0;
foreach ($TPayment as $TInfo) {
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td><input type="text" name="payment[' . $i . '][facture_ref]" value="' . $TInfo['facture_ref'] . '" /> - <a target="_blank" href="' . dol_buildpath('/compta/facture.php?ref=' . $TInfo['facture_ref'], 1) . '">v</a></td>';
print '<td>' . $TInfo['company_name'] . '</td>';
print '<td>' . $TInfo['code_client'] . '</td>';
print '<td>' . $TInfo['rib'] . '</td>';
print '<td><input type="text" name="payment[' . $i . '][amount]" value="' . $TInfo['amount'] . '" /></td>';
print '<td>' . $TFormCore->calendrier('', "payment[" . $i . "][date_creation]", $TInfo['date_creation']) . '</td>';
print '<td><input type="text" name="payment[' . $i . '][num_payment]" value="' . $TInfo['num_payment'] . '" /></td>';
print '<td><input type="text" name="payment[' . $i . '][note]" value="' . $TInfo['note'] . '" /></td>';
print '</tr>';
$i++;
}
print '</table>';
print '<div class="tabsAction"><div class="center divButAction"><input class="button" type="submit" value="' . $langs->trans('CreatePayment') . '" /></div></div>';
print '</form>';
}
示例2:
print $form->selectyesno("LCR_GENERATE_ONE_PER_PAGE_WiTH_ADDRESS", $conf->global->LCR_GENERATE_ONE_PER_PAGE_WiTH_ADDRESS, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("lcr_useRestToPay") . '</td>';
print '<td align="center" width="20"> </td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_LCR_USE_REST_TO_PAY">';
print $form->selectyesno("LCR_USE_REST_TO_PAY", $conf->global->LCR_USE_REST_TO_PAY, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("lcr_paiementMode") . '</td>';
print '<td align="center" width="20"> </td>';
print '<td align="right" width="300">';
print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="set_LCR_PAIEMENT_MODE">';
print $form->select_types_paiements($conf->global->LCR_PAIEMENT_MODE, 'LCR_PAIEMENT_MODE', '', 0, 0, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
示例3: empty
// Third party
print '<tr><td><span class="fieldrequired">' . $langs->trans('Company') . '</span></td><td colspan="2">' . $facture->client->getNomUrl(4) . "</td></tr>\n";
// Date payment
print '<tr><td><span class="fieldrequired">' . $langs->trans('Date') . '</span></td><td>';
$datepayment = dol_mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
$datepayment = $datepayment == '' ? empty($conf->global->MAIN_AUTOFILL_DATE) ? -1 : 0 : $datepayment;
$html->select_date($datepayment, '', '', '', 0, "add_paiement", 1, 1);
print '</td>';
print '<td>' . $langs->trans('Comments') . '</td></tr>';
$rowspan = 5;
if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT)) {
$rowspan++;
}
// Payment mode
print '<tr><td><span class="fieldrequired">' . $langs->trans('PaymentMode') . '</span></td><td>';
$html->select_types_paiements(GETPOST('paiementcode') ? GETPOST('paiementcode') : $facture->mode_reglement_code, 'paiementcode', '', 2);
print "</td>\n";
print '<td rowspan="' . $rowspan . '" valign="top">';
print '<textarea name="comment" wrap="soft" cols="60" rows="' . ROWS_4 . '">' . (empty($_POST['comment']) ? '' : $_POST['comment']) . '</textarea></td>';
print '</tr>';
// Payment amount
if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT)) {
print '<tr><td><span class="fieldrequired">' . $langs->trans('AmountPayment') . '</span></td>';
print '<td>';
if ($action == 'add_paiement') {
print '<input id="amountpayment" name="amountpaymenthidden" size="8" type="text" value="' . (empty($_POST['amountpayment']) ? '' : $_POST['amountpayment']) . '" disabled="true">';
print '<input name="amountpayment" type="hidden" value="' . (empty($_POST['amountpayment']) ? '' : $_POST['amountpayment']) . '">';
} else {
print '<input id="amountpayment" name="amountpayment" size="8" type="text" value="' . (empty($_POST['amountpayment']) ? '' : $_POST['amountpayment']) . '">';
}
print '</td>';
示例4: array
print "</td></tr>\n";
print "<tr>" . '<td>' . $langs->trans("Company") . '</td><td><input type="text" name="societe" value="' . $_POST["societe"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("Firstname") . '</td><td><input type="text" name="firstname" value="' . $_POST["firstname"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("Lastname") . '</td><td><input type="text" name="lastname" value="' . $_POST["lastname"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("Address") . '</td><td>';
print '<textarea name="address" wrap="soft" cols="40" rows="3">' . $_POST["address"] . '</textarea></td></tr>';
// Zip / Town
print '<tr><td>' . $langs->trans("Zip") . ' / ' . $langs->trans("Town") . '</td><td>';
print $formcompany->select_ziptown(isset($_POST["zipcode"]) ? $_POST["zipcode"] : $don->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 6);
print ' ';
print $formcompany->select_ziptown(isset($_POST["town"]) ? $_POST["town"] : $don->town, 'town', array('zipcode', 'selectcountry_id', 'state_id'));
print '</tr>';
print "<tr>" . '<td>' . $langs->trans("Country") . '</td><td><input type="text" name="country" value="' . $_POST["country"] . '" size="40"></td></tr>';
print "<tr>" . '<td>' . $langs->trans("EMail") . '</td><td><input type="text" name="email" value="' . $_POST["email"] . '" size="40"></td></tr>';
print "<tr><td>" . $langs->trans("PaymentMode") . "</td><td>\n";
$form->select_types_paiements('', 'modepaiement', 'CRDT', 0, 1);
print "</td></tr>\n";
if (!empty($conf->projet->enabled)) {
$formproject = new FormProjets($db);
// Si module projet actif
print "<tr><td>" . $langs->trans("Project") . "</td><td>";
$formproject->select_projects('', $_POST["projectid"], "projectid");
print "</td></tr>\n";
}
// Other attributes
$parameters = array('colspan' => ' colspan="1"');
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $don, $action);
// Note that $action and $object may have been modified by hook
print "</table>\n";
print '<br><center><input type="submit" class="button" name="save" value="' . $langs->trans("Save") . '"> <input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '"></center>';
print "</form>\n";
示例5: RemiseCheque
}
}
}
}
}
print '</td></tr>';
}
$rowspan = 0;
//$user->rights->banque->modifier=false;
//$user->rights->banque->consolidate=true;
// Type of payment / Number
print "<tr><td>" . $langs->trans("Type") . " / " . $langs->trans("Numero");
print "</td>";
if ($user->rights->banque->modifier || $user->rights->banque->consolidate) {
print '<td colspan="3">';
$form->select_types_paiements($objp->fk_type, "value", '', 2);
print '<input type="text" class="flat" name="num_chq" value="' . (empty($objp->num_chq) ? '' : $objp->num_chq) . '">';
if ($objp->receiptid) {
include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
$receipt = new RemiseCheque($db);
$receipt->fetch($objp->receiptid);
print ' ' . $langs->trans("CheckReceipt") . ': ' . $receipt->getNomUrl(2);
}
print '</td>';
$rowspan = 7;
print '<td align="center" rowspan="' . $rowspan . '" width="20%"><input type="submit" class="button" value="' . $langs->trans("Update") . '">';
print '</td>';
} else {
print '<td colspan="4">' . $objp->fk_type . ' ' . $objp->num_chq . '</td>';
}
print "</tr>";
示例6: while
print_liste_field_titre($langs->trans("Type"), $_SERVER["PHP_SELF"], "type", "", $param, 'align="left"', $sortfield, $sortorder);
print_liste_field_titre($langs->trans("PayedByThisPayment"), $_SERVER["PHP_SELF"], "s.amount", "", $param, 'align="right"', $sortfield, $sortorder);
print_liste_field_titre("");
print "</tr>\n";
print '<tr class="liste_titre">';
// Ref
print '<td class="liste_titre" align="left">';
print '<input class="flat" type="text" size="3" name="search_ref" value="' . $search_ref . '">';
print '</td>';
print '<td class="liste_titre"> </td>';
// Label
print '<td class="liste_titre"><input type="text" class="flat" size="14" name="search_label" value="' . $search_label . '"></td>';
print '<td class="liste_titre"> </td>';
// Type
print '<td class="liste_titre" align="left">';
$form->select_types_paiements($typeid, 'typeid', '', 0, 0, 1, 16);
print '</td>';
// Amount
print '<td class="liste_titre" align="right"><input name="search_amount" class="flat" type="text" size="8" value="' . $search_amount . '"></td>';
print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
print "</td></tr>\n";
while ($i < min($num, $limit)) {
$obj = $db->fetch_object($result);
$var = !$var;
print "<tr " . $bc[$var] . ">";
$userstatic->id = $obj->uid;
$userstatic->lastname = $obj->lastname;
$userstatic->firstname = $obj->firstname;
$salstatic->id = $obj->rowid;
$salstatic->ref = $obj->rowid;
示例7:
print $form->select_date($datep, "datep", '', '', '', 'add');
print '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans("DateValue") . '</td><td>';
print $form->select_date($datev, "datev", '', '', '', 'add');
print '</td></tr>';
// Label
print '<tr><td class="fieldrequired">' . $langs->trans("Label") . '</td><td><input name="label" size="40" value="' . ($_POST["label"] ? $_POST["label"] : $langs->transcountry("LT2Payment", $mysoc->country_code)) . '"></td></tr>';
// Amount
print '<tr><td class="fieldrequired">' . $langs->trans("Amount") . '</td><td><input name="amount" size="10" value="' . $_POST["amount"] . '"></td></tr>';
if ($conf->banque->enabled) {
print '<tr><td class="fieldrequired">' . $langs->trans("Account") . '</td><td>';
$form->select_comptes($_POST["accountid"], "accountid", 0, "courant=1", 1);
// Affiche liste des comptes courant
print '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans("PaymentMode") . '</td><td>';
$form->select_types_paiements($_POST["paiementtype"], "paiementtype");
print "</td>\n";
print "</tr>";
}
print '</table>';
print "<br>";
print '<center><input type="submit" class="button" value="' . $langs->trans("Save") . '"> ';
print '<input type="submit" class="button" name="cancel" value="' . $langs->trans("Cancel") . '"></center>';
print '</form>';
}
/* ************************************************************************** */
/* */
/* Barre d'action */
/* */
/* ************************************************************************** */
if ($id) {
示例8:
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 ' <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>';
// What trigger creation
print '<tr><td>' . $langs->trans('Source') . '</td><td colspan="2">';
$html->select_demand_reason(GETPOST("origin") == 'propal' ? 'SRC_COMM' : '', 'demand_reason_id', '', 1);
print '</td></tr>';
// Project
if ($conf->projet->enabled) {
$projectid = 0;
if (isset($_GET["origin"]) && $_GET["origin"] == 'project') {
$projectid = $_GET["originid"] ? $_GET["originid"] : 0;
}
示例9: price
$sumpaid = $obj->total;
$db->free();
}
print '<tr><td>' . $langs->trans("AlreadyPaid") . '</td><td colspan="2">' . price($sumpaid, 0, $outputlangs, 1, -1, -1, $conf->currency) . '</td></tr>';
print '<tr><td valign="top">' . $langs->trans("RemainderToPay") . '</td><td colspan="2">' . price($total - $sumpaid, 0, $outputlangs, 1, -1, -1, $conf->currency) . '</td></tr>';
print '<tr class="liste_titre">';
print "<td colspan=\"3\">" . $langs->trans("Payment") . '</td>';
print '</tr>';
print '<tr><td class="fieldrequired">' . $langs->trans("Date") . '</td><td colspan="2">';
$datepaye = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
$datepayment = empty($conf->global->MAIN_AUTOFILL_DATE) ? empty($_POST["remonth"]) ? -1 : $datepaye : 0;
$form->select_date($datepayment, '', '', '', '', "add_payment", 1, 1);
print "</td>";
print '</tr>';
print '<tr><td class="fieldrequired">' . $langs->trans("PaymentMode") . '</td><td colspan="2">';
$form->select_types_paiements(isset($_POST["paiementtype"]) ? $_POST["paiementtype"] : $charge->paiementtype, "paiementtype");
print "</td>\n";
print '</tr>';
print '<tr>';
print '<td class="fieldrequired">' . $langs->trans('AccountToDebit') . '</td>';
print '<td colspan="2">';
$form->select_comptes(isset($_POST["accountid"]) ? $_POST["accountid"] : $charge->accountid, "accountid", 0, '', 1);
// Show opend bank account list
print '</td></tr>';
// Number
print '<tr><td>' . $langs->trans('Numero');
print ' <em>(' . $langs->trans("ChequeOrTransferNumber") . ')</em>';
print '</td>';
print '<td colspan="2"><input name="num_paiement" type="text" value="' . GETPOST('num_paiement') . '"></td></tr>' . "\n";
print '<tr>';
print '<td valign="top">' . $langs->trans("Comments") . '</td>';
示例10: array
print '<input class="flat" type="text" size="1" maxlength="2" name="day" value="' . $day . '">';
}
print '<input class="flat" type="text" size="1" maxlength="2" name="month" value="' . $month . '">';
$formother->select_year($year ? $year : -1, 'year', 1, 20, 5);
print '</td>';
print '<td class="liste_titre" align="center">';
if (!empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) {
print '<input class="flat" type="text" size="1" maxlength="2" name="day_lim" value="' . $day_lim . '">';
}
print '<input class="flat" type="text" size="1" maxlength="2" name="month_lim" value="' . $month_lim . '">';
$formother->select_year($year_lim ? $year_lim : -1, 'year_lim', 1, 20, 5);
print '<br><input type="checkbox" name="option" value="late"' . ($option == 'late' ? ' checked' : '') . '> ' . $langs->trans("Late");
print '</td>';
print '<td class="liste_titre" align="left"><input class="flat" type="text" size="8" name="search_societe" value="' . $search_societe . '"></td>';
print '<td class="liste_titre" align="left">';
$form->select_types_paiements($search_paymentmode, 'search_paymentmode', '', 0, 0, 1, 10);
print '</td>';
print '<td class="liste_titre" align="right"><input class="flat" type="text" size="6" name="search_montant_ht" value="' . $search_montant_ht . '"></td>';
print '<td class="liste_titre"></td>';
print '<td class="liste_titre" align="right"><input class="flat" type="text" size="6" name="search_montant_ttc" value="' . $search_montant_ttc . '"></td>';
print '<td class="liste_titre"></td>';
print '<td class="liste_titre" align="right">';
$liststatus = array('0' => $langs->trans("BillShortStatusDraft"), '1' => $langs->trans("BillShortStatusNotPaid"), '2' => $langs->trans("BillShortStatusPaid"), '3' => $langs->trans("BillShortStatusCanceled"));
print $form->selectarray('search_status', $liststatus, $search_status, 1);
print '</td>';
print '<td class="liste_titre" align="right"><input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
print "</td></tr>\n";
if ($num > 0) {
$var = true;
$total_ht = 0;
示例11:
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Date") . '</td>';
print '<td> </td>';
print '<td>' . $langs->trans("Type") . '</td>';
print '<td>' . $langs->trans("Numero") . '</td>';
print '<td colspan="2">' . $langs->trans("Description") . '</td>';
print '<td align=right>' . $langs->trans("Debit") . '</td>';
print '<td align=right>' . $langs->trans("Credit") . '</td>';
print '<td colspan="2" align="center"> </td>';
print '</tr>';
print '<tr ' . $bc[false] . '>';
print '<td nowrap="nowrap" colspan="2">';
$html->select_date($dateop, 'op', 0, 0, 0, 'transaction');
print '</td>';
print '<td nowrap="nowrap">';
$html->select_types_paiements(isset($_POST["operation"]) ? $_POST["operation"] : '', 'operation', '1,2', 2, 1);
print '</td><td>';
print '<input name="num_chq" class="flat" type="text" size="4" value="' . (isset($_POST["num_chq"]) ? $_POST["num_chq"] : '') . '"></td>';
print '<td colspan="2">';
print '<input name="label" class="flat" type="text" size="24" value="' . (isset($_POST["label"]) ? $_POST["label"] : '') . '">';
if ($nbcategories) {
print '<br>' . $langs->trans("Category") . ': <select class="flat" name="cat1">' . $options . '</select>';
}
print '</td>';
print '<td align=right><input name="debit" class="flat" type="text" size="4" value="' . (isset($_POST["debit"]) ? $_POST["debit"] : '') . '"></td>';
print '<td align=right><input name="credit" class="flat" type="text" size="4" value="' . (isset($_POST["credit"]) ? $_POST["credit"] : '') . '"></td>';
print '<td colspan="2" align="center">';
print '<input type="submit" name="save" class="button" value="' . $langs->trans("Add") . '"><br>';
print '<input type="submit" name="cancel" class="button" value="' . $langs->trans("Cancel") . '">';
print '</td></tr>';
print "</form>";
示例12:
print_liste_field_titre($langs->trans("Remind"), $_SERVER["PHP_SELF"], "", "", $param, 'align="center"', $sortfield, $sortorder);
}
print "</tr>\n";
// Lignes des champs de filtre
print '<tr class="liste_titre">';
// Ref
print '<td class="liste_titre">';
print '<input class="flat" size="10" type="text" name="search_ref" value="' . $search_ref . '"></td>';
print '<td class="liste_titre">';
print '<input class="flat" size="6" type="text" name="search_refcustomer" value="' . $search_refcustomer . '">';
print '</td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre" align="left"><input class="flat" type="text" size="10" name="search_societe" value="' . dol_escape_htmltag($search_societe) . '"></td>';
print '<td class="liste_titre" align="left">';
$form->select_types_paiements($search_paymentmode, 'search_paymentmode');
print '</td>';
print '<td class="liste_titre" align="right"><input class="flat" type="text" size="8" name="search_montant_ht" value="' . dol_escape_htmltag($search_montant_ht) . '"></td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre" align="right"><input class="flat" type="text" size="8" name="search_montant_ttc" value="' . dol_escape_htmltag($search_montant_ttc) . '"></td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre" align="right">';
print '<input type="image" class="liste_titre" name="button_search" src="' . img_picto($langs->trans("Search"), 'search.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
print '<input type="image" class="liste_titre" name="button_removefilter" src="' . img_picto($langs->trans("Search"), 'searchclear.png', '', '', 1) . '" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '" title="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
print '</td>';
if (empty($mode)) {
print '<td class="liste_titre" align="center">';
if ($conf->use_javascript_ajax) {
print '<a href="#" id="checkall">' . $langs->trans("All") . '</a> / <a href="#" id="checknone">' . $langs->trans("None") . '</a>';
}
示例13:
print '<input type="hidden" name="facnumber" value="' . $obj->facnumber . '">';
print '<input type="hidden" name="socid" value="' . $obj->socid . '">';
print '<input type="hidden" name="societe" value="' . $obj->nom . '">';
print '<table class="border" width="100%">';
print '<tr class="liste_titre"><td colspan="3">' . $langs->trans('Payment') . '</td>';
print '<tr><td>' . $langs->trans('Company') . '</td><td colspan="2">';
$supplierstatic->id = $obj->socid;
$supplierstatic->name = $obj->nom;
print $supplierstatic->getNomUrl(1, 'supplier');
print '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans('Date') . '</td><td>';
$html->select_date($dateinvoice, '', '', '', '', "addpaiement", 1, 1);
print '</td>';
print '<td>' . $langs->trans('Comments') . '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans('PaymentMode') . '</td><td>';
$html->select_types_paiements(empty($_POST['paiementid']) ? '' : $_POST['paiementid'], 'paiementid');
print '</td>';
print '<td rowspan="3" valign="top">';
print '<textarea name="comment" wrap="soft" cols="60" rows="' . _ROWS_3 . '">' . (empty($_POST['comment']) ? '' : $_POST['comment']) . '</textarea></td></tr>';
print '<tr><td>' . $langs->trans('Numero') . '</td><td><input name="num_paiement" type="text" value="' . (empty($_POST['num_paiement']) ? '' : $_POST['num_paiement']) . '"></td></tr>';
if ($conf->banque->enabled) {
print '<tr><td class="fieldrequired">' . $langs->trans('Account') . '</td><td>';
$html->select_comptes(empty($_POST['accountid']) ? '' : $_POST['accountid'], 'accountid', 0, '', 2);
print '</td></tr>';
} else {
print '<tr><td colspan="2"> </td></tr>';
}
print '</table>';
/*
* Autres factures impayees
*/
示例14:
} else {
print ' (' . $langs->trans("NoThirdPartyAssociatedToMember");
print ' - <a href="' . $_SERVER["PHP_SELF"] . '?rowid=' . $adh->id . '&action=create_thirdparty">';
print $langs->trans("CreateDolibarrThirdParty");
print '</a>)';
}
print '<br>';
}
print '</td></tr>';
// Bank account
print '<tr class="bankswitchclass"><td class="fieldrequired">' . $langs->trans("FinancialAccount") . '</td><td>';
$html->select_comptes($_POST["accountid"], 'accountid', 0, '', 1);
print "</td></tr>\n";
// Payment mode
print '<tr class="bankswitchclass"><td class="fieldrequired">' . $langs->trans("PaymentMode") . '</td><td>';
$html->select_types_paiements($_POST["operation"], 'operation', '', 2);
print "</td></tr>\n";
// Date of payment
print '<tr class="bankswitchclass"><td class="fieldrequired">' . $langs->trans("DatePayment") . '</td><td>';
$html->select_date($paymentdate ? $paymentdate : -1, 'payment', 0, 0, 1, 'cotisation', 1, 1);
print "</td></tr>\n";
print '<tr class="bankswitchclass2"><td>' . $langs->trans('Numero');
print ' <em>(' . $langs->trans("ChequeOrTransferNumber") . ')</em>';
print '</td>';
print '<td><input id="fieldnum_chq" name="num_chq" type="text" size="8" value="' . (empty($_POST['num_chq']) ? '' : $_POST['num_chq']) . '"></td></tr>';
print '<tr class="bankswitchclass2 fieldrequireddyn"><td>' . $langs->trans('CheckTransmitter');
print ' <em>(' . $langs->trans("ChequeMaker") . ')</em>';
print '</td>';
print '<td><input id="fieldchqemetteur" name="chqemetteur" size="32" type="text" value="' . (empty($_POST['chqemetteur']) ? $facture->client->nom : $_POST['chqemetteur']) . '"></td></tr>';
print '<tr class="bankswitchclass2"><td>' . $langs->trans('Bank');
print ' <em>(' . $langs->trans("ChequeBank") . ')</em>';
示例15: RemiseCheque
}
print '</td></tr>';
}
$rowspan=0;
//$user->rights->banque->modifier=false;
//$user->rights->banque->consolidate=true;
// Type of payment / Number
print "<tr><td>".$langs->trans("Type")." / ".$langs->trans("Numero");
print "</td>";
if ($user->rights->banque->modifier || $user->rights->banque->consolidate)
{
print '<td colspan="3">';
print $html->select_types_paiements($objp->fk_type,"value",'',2);
print '<input type="text" class="flat" name="num_chq" value="'.(empty($objp->num_chq) ? '' : $objp->num_chq).'">';
if ($objp->receiptid)
{
include_once(DOL_DOCUMENT_ROOT.'/compta/paiement/cheque/class/remisecheque.class.php');
$receipt=new RemiseCheque($db);
$receipt->fetch($objp->receiptid);
print ' '.$langs->trans("CheckReceipt").': '.$receipt->getNomUrl(2);
}
print '</td>';
$rowspan=7;
print '<td align="center" rowspan="'.$rowspan.'" width="20%"><input type="submit" class="button" value="'.$langs->trans("Update").'">';
print '</td>';
}
else