本文整理汇总了PHP中Form::select_comptes方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::select_comptes方法的具体用法?PHP Form::select_comptes怎么用?PHP Form::select_comptes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Form
的用法示例。
在下文中一共展示了Form::select_comptes方法的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 $langs->trans("TransferDesc");
print "<br><br>";
print "<form name='add' method=\"post\" action=\"virement.php\">";
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="add">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("TransferFrom").'</td><td>'.$langs->trans("TransferTo").'</td><td>'.$langs->trans("Date").'</td><td>'.$langs->trans("Description").'</td><td>'.$langs->trans("Amount").'</td>';
print '</tr>';
$var=false;
print '<tr '.$bc[$var].'><td>';
print $html->select_comptes($_POST['account_from'],'account_from',0,'',1);
print "</td>";
print "<td>\n";
print $html->select_comptes($_POST['account_to'],'account_to',0,'',1);
print "</td>\n";
print "<td>";
$html->select_date($dateo,'','','','','add');
print "</td>\n";
print '<td><input name="label" class="flat" type="text" size="40" value="'.$_POST["label"].'"></td>';
print '<td><input name="amount" class="flat" type="text" size="8" value="'.$_POST["amount"].'"></td>';
print "</table>";
print '<br><center><input type="submit" class="button" value="'.$langs->trans("Add").'"></center>';
示例3: GETPOST
} else {
print '<input id="amountpayment" name="amountpayment" size="8" type="text" value="' . (empty($_POST['amountpayment']) ? '' : $_POST['amountpayment']) . '">';
}
print '</td>';
print '</tr>';
}
print '<tr>';
if ($conf->banque->enabled) {
if ($facture->type != 2) {
print '<td><span class="fieldrequired">' . $langs->trans('AccountToCredit') . '</span></td>';
}
if ($facture->type == 2) {
print '<td><span class="fieldrequired">' . $langs->trans('AccountToDebit') . '</span></td>';
}
print '<td>';
$html->select_comptes($accountid, 'accountid', 0, '', 2);
print '</td>';
} else {
print '<td colspan="2"> </td>';
}
print "</tr>\n";
// Cheque number
print '<tr><td>' . $langs->trans('Numero');
print ' <em>(' . $langs->trans("ChequeOrTransferNumber") . ')</em>';
print '</td>';
print '<td><input name="num_paiement" type="text" value="' . $paymentnum . '"></td></tr>';
// Check transmitter
print '<tr><td class="' . (GETPOST('paiementcode') == 'CHQ' ? 'fieldrequired ' : '') . 'fieldrequireddyn">' . $langs->trans('CheckTransmitter');
print ' <em>(' . $langs->trans("ChequeMaker") . ')</em>';
print '</td>';
print '<td><input id="fieldchqemetteur" name="chqemetteur" size="30" type="text" value="' . GETPOST('chqemetteur') . '"></td></tr>';
示例4: while
print_liste_field_titre($langs->trans("Status"), $_SERVER["PHP_SELF"], "bc.statut", "", $params, 'align="right"', $sortfield, $sortorder);
print "</tr>\n";
// Lignes des champs de filtre
print '<tr class="liste_titre">';
print '<td class="liste_titre" align="left">';
print '<input class="flat" type="text" size="4" name="search_ref" value="' . $search_ref . '">';
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" 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>';
$form->select_comptes($search_account, 'search_account', 0, '', 1);
print '</td>';
print '<td class="liste_titre"> </td>';
print '<td class="liste_titre" align="right">';
print '<input class="flat" type="text" size="6" name="search_amount" value="' . $search_amount . '">';
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";
$var = true;
while ($i < min($num, $limit)) {
$objp = $db->fetch_object($resql);
$var = !$var;
print "<tr " . $bc[$var] . ">";
// Num ref cheque
print '<td width="80">';
示例5: array
$accounts = array();
if ($action == 'new') {
$lines = array();
$now = dol_now();
print $langs->trans("SelectChequeTransactionAndGenerate") . '<br><br>' . "\n";
print '<form class="nocellnopadd" action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
print '<input type="hidden" name="action" value="new">';
//print '<fieldset><legend>aaa</legend>';
print '<table class="border" width="100%">';
//print '<tr><td width="30%">'.$langs->trans('Date').'</td><td width="70%">'.dol_print_date($now,'day').'</td></tr>';
// Filter
print '<tr><td width="200">' . $langs->trans("DateChequeReceived") . '</td><td>';
print $form->select_date($filterdate, 'fd', 0, 0, 1, '', 1, 1);
print '</td></tr>';
print '<tr><td>' . $langs->trans("BankAccount") . '</td><td>';
print $form->select_comptes($filteraccountid, 'accountid', 0, 'courant <> 2', 1);
print '</td></tr>';
print '</table>';
print '<center>';
print '<input type="submit" class="button" name="filter" value="' . dol_escape_htmltag($langs->trans("ToFilter")) . '">';
if ($filterdate || $filteraccountid > 0) {
print ' ';
print '<input type="submit" class="button" name="removefilter" value="' . dol_escape_htmltag($langs->trans("RemoveFilter")) . '">';
}
print '</center>';
//print '</fieldset>';
print '</form>';
print '<br>';
$sql = "SELECT ba.rowid as bid, b.datec as datec, b.dateo as date, b.rowid as chqid, ";
$sql .= " b.amount, ba.label, b.emetteur, b.num_chq, b.banque";
$sql .= " FROM " . MAIN_DB_PREFIX . "bank as b,";
示例6: GETPOST
$form->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>';
// Bank account
print '<tr>';
if (!empty($conf->banque->enabled)) {
if ($facture->type != 2) {
print '<td><span class="fieldrequired">' . $langs->trans('AccountToCredit') . '</span></td>';
}
if ($facture->type == 2) {
print '<td><span class="fieldrequired">' . $langs->trans('AccountToDebit') . '</span></td>';
}
print '<td>';
$form->select_comptes($accountid, 'accountid', 0, '', 2);
print '</td>';
} else {
print '<td colspan="2"> </td>';
}
print "</tr>\n";
// Cheque number
print '<tr><td>' . $langs->trans('Numero');
print ' <em>(' . $langs->trans("ChequeOrTransferNumber") . ')</em>';
print '</td>';
print '<td><input name="num_paiement" type="text" value="' . $paymentnum . '"></td></tr>';
// Check transmitter
print '<tr><td class="' . (GETPOST('paiementcode') == 'CHQ' ? 'fieldrequired ' : '') . 'fieldrequireddyn">' . $langs->trans('CheckTransmitter');
print ' <em>(' . $langs->trans("ChequeMaker") . ')</em>';
print '</td>';
print '<td><input id="fieldchqemetteur" name="chqemetteur" size="30" type="text" value="' . GETPOST('chqemetteur') . '"></td></tr>';
示例7:
print '<tr class="impair"><td>' . $langs->trans("ResponsibleUser") . '</td>';
print '<td align="left">';
print '<input type="hidden" name="nom0" value="PRELEVEMENT_USER">';
print $form->select_dolusers($conf->global->PRELEVEMENT_USER, 'value0', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
print '</td>';
print '</tr>';
//Profid1 of Transmitter
print '<tr class="pair"><td>' . $langs->trans("NumeroNationalEmetter") . ' - ' . $langs->transcountry('ProfId1', $mysoc->country_code) . '</td>';
print '<td align="left">';
print '<input type="hidden" name="nom1" value="PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR">';
print '<input type="text" name="value1" value="' . $conf->global->PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR . '" size="9" ></td>';
print '</tr>';
// Bank account (from Banks module)
print '<tr class="impair"><td>' . $langs->trans("BankToReceiveWithdraw") . '</td>';
print '<td align="left">';
$form->select_comptes($conf->global->PRELEVEMENT_ID_BANKACCOUNT, 'PRELEVEMENT_ID_BANKACCOUNT', 0, "courant=1", 1);
print '</td></tr>';
// ICS
print '<tr class="pair"><td>' . $langs->trans("ICS") . '</td>';
print '<td align="left">';
print '<input type="text" name="PRELEVEMENT_ICS" value="' . $conf->global->PRELEVEMENT_ICS . '" size="9" ></td>';
print '</td></tr>';
print '</table>';
print '<br>';
print '<div class="center"><input type="submit" class="button" value="' . $langs->trans("Save") . '"></div>';
print '</form>';
dol_fiche_end();
print '<br>';
/*
* Notifications
*/
示例8: array
$supplierstatic->name = $obj->nom;
print $supplierstatic->getNomUrl(1, 'supplier');
print '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans('Date') . '</td><td>';
$form->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>';
$form->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 (!empty($conf->banque->enabled)) {
print '<tr><td class="fieldrequired">' . $langs->trans('Account') . '</td><td>';
$form->select_comptes(empty($_POST['accountid']) ? '' : $_POST['accountid'], 'accountid', 0, '', 2);
print '</td></tr>';
} else {
print '<tr><td colspan="2"> </td></tr>';
}
print '</table>';
$parameters = array('facid' => $facid, 'ref' => $ref, 'objcanvas' => $objcanvas);
$reshook = $hookmanager->executeHooks('paymentsupplierinvoices', $parameters, $object, $action);
// Note that $action and $object may have been modified by some hooks
$error = $hookmanager->error;
$errors = $hookmanager->errors;
if (empty($reshook)) {
/*
* Autres factures impayees
*/
$sql = 'SELECT f.rowid as facid, f.ref, f.ref_supplier, f.total_ht, f.total_ttc, f.datef as df';
示例9: array
$supplierstatic->name = $obj->name;
print $supplierstatic->getNomUrl(1, 'supplier');
print '</td></tr>';
print '<tr><td class="fieldrequired">' . $langs->trans('Date') . '</td><td>';
$form->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>';
$form->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 (!empty($conf->banque->enabled)) {
print '<tr><td class="fieldrequired">' . $langs->trans('Account') . '</td><td>';
$form->select_comptes(empty($accountid) ? '' : $accountid, 'accountid', 0, '', 2);
print '</td></tr>';
} else {
print '<tr><td colspan="2"> </td></tr>';
}
print '</table>';
$parameters = array('facid' => $facid, 'ref' => $ref, 'objcanvas' => $objcanvas);
$reshook = $hookmanager->executeHooks('paymentsupplierinvoices', $parameters, $object, $action);
// Note that $action and $object may have been modified by some hooks
$error = $hookmanager->error;
$errors = $hookmanager->errors;
if (empty($reshook)) {
/*
* Autres factures impayees
*/
$sql = 'SELECT f.rowid as facid, f.ref, f.ref_supplier, f.total_ht, f.total_ttc, f.datef as df';
示例10:
}
print '> ' . $langs->trans("MoreActionInvoiceOnly");
if ($adh->fk_soc) {
print ' (' . $langs->trans("ThirdParty") . ': ' . $company->getNomUrl(1) . ')';
} 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>';
示例11:
$ret = $html->form_confirm($_SERVER["PHP_SELF"] . "?idTrip=" . $idTrip . "&account=" . $idAccount, $langs->trans("ndfToAccount"), $langs->trans("ConfirmNdfToAccount"), "confirm_ndf_to_account", "", "", 1);
if ($ret == 'html') {
print '<br />';
}
}
if ($_GET["action"] == 'accountTOndf') {
$idTrip = $_GET['idTrip'];
$ret = $html->form_confirm($_SERVER["PHP_SELF"] . "?idTrip=" . $idTrip . "&account=" . $idAccount, $langs->trans("AccountToNdf"), $langs->trans("ConfirmAccountToNdf"), "confirm_account_to_ndf", "", "", 1);
if ($ret == 'html') {
print '<br />';
}
}
if (empty($submit) && empty($idAccount)) {
print "<form name='add' method=\"post\" action=\"synchro_compta.php\">";
print 'Choix du compte ';
print $html->select_comptes($_POST['account'], 'account', 0, '', 1);
print ' <input type="submit" name="submit" class="button" value="' . $langs->trans("ViewAccountSynch") . '">';
print "</form>";
} else {
print "<form name='add' method=\"post\" action=\"synchro_compta.php\">";
print 'Choix du compte ';
print $html->select_comptes($idAccount, 'account', 0, '', 1);
print ' <input type="submit" class="button" value="' . $langs->trans("ViewAccountSynch") . '">';
print "</form>";
$sql = "SELECT d.fk_bank_account, d.ref, d.rowid, d.date_valid, d.fk_user_author, d.total_ttc, d.integration_compta, d.fk_statut";
$sql .= " ,CONCAT(u.firstname,' ',u.lastname) as declarant_NDF";
$sql .= " FROM " . MAIN_DB_PREFIX . "expensereport as d";
$sql .= " INNER JOIN " . MAIN_DB_PREFIX . "user as u ON d.fk_user_author = u.rowid";
$sql .= " WHERE d.fk_statut = 6";
$sql .= " ORDER BY d.date_valid DESC";
$resql = $db->query($sql);
示例12:
$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;
$html->select_date($datepayment,'','','','',"add_payment",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(isset($_POST["paiementtype"])?$_POST["paiementtype"]:$charge->paiementtype, "paiementtype");
print "</td>\n";
print '<td rowspan="3" valign="top"><textarea name="comment" wrap="soft" cols="40" rows="'.ROWS_3.'"></textarea></td></tr>';
print '<tr>';
print '<td class="fieldrequired">'.$langs->trans('AccountToDebit').'</td>';
print '<td>';
$html->select_comptes(isset($_POST["accountid"])?$_POST["accountid"]:$charge->accountid, "accountid", 0, '',1); // Show opend bank account list
print '</td></tr>';
print '<tr><td>'.$langs->trans('Numero');
print ' <em>('.$langs->trans("ChequeOrTransferNumber").')</em>';
print "<td><input name=\"num_paiement\" type=\"text\"></td></tr>\n";
/*
* Autres charges impayees
*/
$num = 1;
$i = 0;
print '<tr><td colspan="3">';
print '<table class="nobordernopadding" width="100%">';
print '<tr class="liste_titre">';
示例13: empty
print "<td colspan=\"3\">" . $langs->trans("Payment") . '</td>';
print '</tr>';
print '<tr><td class="fieldrequired">' . $langs->trans("Date") . '</td><td colspan="2">';
$datepaid = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
$datepayment = empty($conf->global->MAIN_AUTOFILL_DATE) ? empty($_POST["remonth"]) ? -1 : $datepaid : 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["fk_typepayment"]) ? $_POST["fk_typepayment"] : $expensereport->fk_typepayment, "fk_typepayment");
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"] : $expensereport->accountid, "accountid", 0, '', 1);
// Show open 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_payment" type="text" value="' . GETPOST('num_payment') . '"></td></tr>' . "\n";
print '<tr>';
print '<td valign="top">' . $langs->trans("Comments") . '</td>';
print '<td valign="top" colspan="2"><textarea name="note" wrap="soft" cols="60" rows="' . ROWS_3 . '"></textarea></td>';
print '</tr>';
print '</table>';
dol_fiche_end();
/*
* Autres charges impayees
示例14:
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_PAYMENTIMPORT_DEFAULT_REGLEMENT_CODE">';
$form->select_types_paiements($conf->global->PAYMENTIMPORT_DEFAULT_REGLEMENT_CODE, 'PAYMENTIMPORT_DEFAULT_REGLEMENT_CODE', '', 2, 0);
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("paymentimport_default_bank") . '</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_PAYMENTIMPORT_DEFAULT_BANK_ACOUNT">';
print $form->select_comptes($conf->global->PAYMENTIMPORT_DEFAULT_BANK_ACOUNT, 'PAYMENTIMPORT_DEFAULT_BANK_ACOUNT', 0);
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("paymentimport_forcedatepaye_today") . '</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_PAYMENTIMPORT_FORCE_DATE_TODAY">';
print $form->selectyesno("PAYMENTIMPORT_FORCE_DATE_TODAY", $conf->global->PAYMENTIMPORT_FORCE_DATE_TODAY, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
示例15: ajax_constantonoff
print '</form>';
print '</td></tr>';
}
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Proposal") . '</td>' . "\n";
print '<td align="center" width="20"> </td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("set_GRAPEFRUIT_PROPAL_DEFAULT_BANK_ACOUNT") . '</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_GRAPEFRUIT_PROPAL_DEFAULT_BANK_ACOUNT">';
print $form->select_comptes($conf->global->GRAPEFRUIT_PROPAL_DEFAULT_BANK_ACOUNT, 'GRAPEFRUIT_PROPAL_DEFAULT_BANK_ACOUNT', 0, '', 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("set_GRAPEFRUIT_LINK_PROPAL_2_PROJECT") . '</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_GRAPEFRUIT_LINK_PROPAL_2_PROJECT">';
echo ajax_constantonoff('GRAPEFRUIT_LINK_PROPAL_2_PROJECT');
print '</form>';
print '</td></tr>';
$var = !$var;