当前位置: 首页>>代码示例>>PHP>>正文


PHP Form::selectyesno方法代码示例

本文整理汇总了PHP中Form::selectyesno方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::selectyesno方法的具体用法?PHP Form::selectyesno怎么用?PHP Form::selectyesno使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Form的用法示例。


在下文中一共展示了Form::selectyesno方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GETPOST

 // Code
 print '<tr><td valign="top" class="fieldrequired">' . $langs->trans("Code") . '</td>';
 print '<td colspan="3"><input size="8" type="text" class="flat" name="code" value="' . (GETPOST('code') ? GETPOST('code') : $cash->code) . '"></td></tr>';
 // Name
 print '<tr><td valign="top" class="fieldrequired">' . $langs->trans("Name") . '</td>';
 print '<td colspan="3"><input size="30" type="text" class="flat" name="name" value="' . GETPOST('name', 'string') . '"></td></tr>';
 //Tactil
 print '<tr>';
 print '<td><span class="fieldrequired">' . $langs->trans('Type') . '</span></td><td>';
 print $cash->selecttypeterminal("tactil", isset($_POST["tactil"]) ? $_POST["tactil"] : 0, 1);
 print '</td>';
 print '</tr>';
 //Barcode
 print '<tr>';
 print '<td><span class="fieldrequired">' . $langs->trans('Barcode') . '</span></td><td>';
 print $form->selectyesno("barcode", isset($_POST["barcode"]) ? $_POST["barcode"] : 0, 1);
 print '</td>';
 print '</tr>';
 //Printer Name
 if (!empty($conf->global->POS_PRINT_MODE)) {
     print '<tr><td valign="top">' . $langs->trans("PrinterName") . '</td>';
     print '<td colspan="3"><input size="30" type="text" class="flat" name="printer_name" value="' . GETPOST('printer_name', 'string') . '"></td></tr>';
 }
 // Cash
 print '<tr><td valign="top" class="fieldrequired">' . $langs->trans("PaymentCash") . '</td>';
 print '<td colspan="3">';
 print $form->select_comptes(isset($_POST["cash"]) ? $_POST["cash"] : 1, 'cash', 0, $filtrecash);
 print '</td></tr>';
 // Mode payment Cash
 print '<tr><td valign="top" class="fieldrequired">' . $langs->trans("ModePaymentCash") . '</td>';
 print '<td colspan="3">';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:fiche.php

示例2: foreach

 print '<br>';
 print '<table summary="edit" class="noborder" width="100%">';
 print '<tr class="liste_titre"><td>' . $langs->trans("Parameters") . '</td><td>' . $langs->trans("Value") . '</td>';
 print '<td width="20">&nbsp;</td>';
 print '</tr>';
 // Default language
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("DefaultLanguage") . '</td><td>';
 print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'main_lang_default', 1, 0, 0, 0, 0, 'minwidth300');
 print '</td>';
 print '<td width="20">&nbsp;</td>';
 print '</tr>';
 // Multilangual GUI
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td width="35%">' . $langs->trans("EnableMultilangInterface") . '</td><td>';
 print $form->selectyesno('main_multilangs', $conf->global->MAIN_MULTILANGS, 1);
 print '</td>';
 print '<td width="20">&nbsp;</td>';
 print '</tr>';
 print '</table><br>' . "\n";
 // Themes and themes options
 show_theme(null, 1);
 print '<br>';
 // Liste des zone de recherche permanantes supportees
 if (!empty($searchform)) {
     print '<table summary="search" class="noborder" width="100%">';
     print '<tr class="liste_titre"><td width="35%">' . $langs->trans("PermanentLeftSearchForm") . '</td><td colspan="2">' . $langs->trans("Activated") . '</td></tr>';
     $var = True;
     foreach ($searchform as $key => $value) {
         $var = !$var;
         print '<tr ' . $bc[$var] . '><td width="35%">' . $searchformtitle[$key] . '</td><td colspan="2">';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:ihm.php

示例3: load_fiche_titre

print load_fiche_titre($langs->trans("MemberMainOptions"), '', '');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Description") . '</td>';
print '<td>' . $langs->trans("Value") . '</td>';
print '<td align="center">' . $langs->trans("Action") . '</td>';
print "</tr>\n";
$var = true;
// Login/Pass required for members
$var = !$var;
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="constname" value="ADHERENT_LOGIN_NOT_REQUIRED">';
print '<tr ' . $bc[$var] . '><td>' . $langs->trans("AdherentLoginRequired") . '</td><td>';
print $form->selectyesno('constvalue', !empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED) ? 0 : 1, 1);
print '</td><td align="center" width="80">';
print '<input type="submit" class="button" value="' . $langs->trans("Update") . '" name="Button">';
print "</td></tr>\n";
print '</form>';
// Mail required for members
$var = !$var;
print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="constname" value="ADHERENT_MAIL_REQUIRED">';
print '<tr ' . $bc[$var] . '><td>' . $langs->trans("AdherentMailRequired") . '</td><td>';
print $form->selectyesno('constvalue', !empty($conf->global->ADHERENT_MAIL_REQUIRED) ? $conf->global->ADHERENT_MAIL_REQUIRED : 0, 1);
print '</td><td align="center" width="80">';
print '<input type="submit" class="button" value="' . $langs->trans("Update") . '" name="Button">';
print "</td></tr>\n";
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:adherent.php

示例4: Form


//.........这里部分代码省略.........
                 $out .= !is_array($this->withtocc) && !is_numeric($this->withtocc) ? $this->withtocc : "";
             } else {
                 $out .= '<input size="' . (is_array($this->withtocc) ? "30" : "60") . '" id="sendtocc" name="sendtocc" value="' . (!is_array($this->withtocc) && !is_numeric($this->withtocc) ? isset($_POST["sendtocc"]) ? $_POST["sendtocc"] : $this->withtocc : (isset($_POST["sendtocc"]) ? $_POST["sendtocc"] : "")) . '" />';
                 if (!empty($this->withtocc) && is_array($this->withtocc)) {
                     $out .= " " . $langs->trans("or") . " ";
                     $out .= $form->selectarray("receivercc", $this->withtocc, GETPOST("receivercc"), 1);
                 }
             }
             $out .= "</td></tr>\n";
         }
         // CCC
         if (!empty($this->withtoccc) || is_array($this->withtoccc)) {
             $out .= '<tr><td width="180">';
             $out .= $form->textwithpicto($langs->trans("MailCCC"), $langs->trans("YouCanUseCommaSeparatorForSeveralRecipients"));
             $out .= '</td><td>';
             if (!empty($this->withtocccreadonly)) {
                 $out .= !is_array($this->withtoccc) && !is_numeric($this->withtoccc) ? $this->withtoccc : "";
             } else {
                 $out .= '<input size="' . (is_array($this->withtoccc) ? "30" : "60") . '" id="sendtoccc" name="sendtoccc" value="' . (!is_array($this->withtoccc) && !is_numeric($this->withtoccc) ? isset($_POST["sendtoccc"]) ? $_POST["sendtoccc"] : $this->withtoccc : (isset($_POST["sendtoccc"]) ? $_POST["sendtoccc"] : "")) . '" />';
                 if (!empty($this->withtoccc) && is_array($this->withtoccc)) {
                     $out .= " " . $langs->trans("or") . " ";
                     $out .= $form->selectarray("receiverccc", $this->withtoccc, GETPOST("receiverccc"), 1);
                 }
             }
             //if (! empty($conf->global->MAIN_MAIL_AUTOCOPY_TO)) print ' '.info_admin("+ ".$conf->global->MAIN_MAIL_AUTOCOPY_TO,1);
             $out .= "</td></tr>\n";
         }
         // Ask delivery receipt
         if (!empty($this->withdeliveryreceipt)) {
             $out .= '<tr><td width="180">' . $langs->trans("DeliveryReceipt") . '</td><td>';
             if (!empty($this->withdeliveryreceiptreadonly)) {
                 $out .= yn($this->withdeliveryreceipt);
             } else {
                 $out .= $form->selectyesno('deliveryreceipt', isset($_POST["deliveryreceipt"]) ? $_POST["deliveryreceipt"] : 0, 1);
             }
             $out .= "</td></tr>\n";
         }
         // Topic
         if (!empty($this->withtopic)) {
             $this->withtopic = make_substitutions($this->withtopic, $this->substit);
             $out .= '<tr>';
             $out .= '<td width="180">' . $langs->trans("MailTopic") . '</td>';
             $out .= '<td>';
             if ($this->withtopicreadonly) {
                 $out .= $this->withtopic;
                 $out .= '<input type="hidden" size="60" id="subject" name="subject" value="' . $this->withtopic . '" />';
             } else {
                 $out .= '<input type="text" size="60" id="subject" name="subject" value="' . (isset($_POST["subject"]) ? $_POST["subject"] : (is_numeric($this->withtopic) ? '' : $this->withtopic)) . '" />';
             }
             $out .= "</td></tr>\n";
         }
         // Attached files
         if (!empty($this->withfile)) {
             $out .= '<tr>';
             $out .= '<td width="180">' . $langs->trans("MailFile") . '</td>';
             $out .= '<td>';
             if (is_numeric($this->withfile)) {
                 // TODO Trick to have param removedfile containing nb of image to delete. But this does not works without javascript
                 $out .= '<input type="hidden" class="removedfilehidden" name="removedfile" value="">' . "\n";
                 $out .= '<script type="text/javascript" language="javascript">';
                 $out .= 'jQuery(document).ready(function () {';
                 $out .= '    jQuery(".removedfile").click(function() {';
                 $out .= '        jQuery(".removedfilehidden").val(jQuery(this).val());';
                 $out .= '    });';
                 $out .= '})';
                 $out .= '</script>' . "\n";
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:67,代码来源:html.formmail.class.php

示例5:

    print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td>';
	print '<td width="20">&nbsp;</td>';
	print '</tr>';

    // Default language
    $var=!$var;
    print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("DefaultLanguage").'</td><td>';
    print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT,'main_lang_default',1);
    print '</td>';
	print '<td width="20">&nbsp;</td>';
	print '</tr>';

	// Multilangual GUI
    $var=!$var;
    print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("EnableMultilangInterface").'</td><td>';
    print $html->selectyesno('main_multilangs',$conf->global->MAIN_MULTILANGS,1);
    print '</td>';
	print '<td width="20">&nbsp;</td>';
	print '</tr>';

	print '</table><br>'."\n";


    // Themes
    show_theme('',1);
    print '<br>';


    // Liste des zone de recherche permanantes supportees
    print '<table summary="search" class="noborder" width="100%">';
    print '<tr class="liste_titre"><td width="35%">'.$langs->trans("PermanentLeftSearchForm").'</td><td colspan="2">'.$langs->trans("Activated").'</td></tr>';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:ihm.php

示例6: Form

 *  General Optiones
*/
$html = new Form($db);
print_titre($langs->trans("ShowOptions"));
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Parameter") . " " . $langs->trans("max2") . '</td>';
print '<td align="center" width="60">' . $langs->trans("Value") . '</td>';
print "</tr>\n";
$var = true;
// Show Company Name
$var = !$var;
print "<tr " . $bc[$var] . ">";
print "<td>" . $langs->trans("ShowCompanyName") . "</td>";
print '<td>';
print $html->selectyesno("labComp", $labcomp, 1);
print '</td>';
print "</tr>";
// Show prod label
$var = !$var;
print "<tr " . $bc[$var] . ">";
print "<td>" . $langs->trans("ShowProdLabel") . "</td>";
print '<td>';
print $html->selectyesno("labProdLabel", $labprodlabel, 1);
print '</td>';
print "</tr>";
$var = !$var;
print '<tr ' . $bc[$var] . '><td colspan=2>';
print $langs->trans("FreeText") . '<br>';
print '<textarea name="labFreeText" class="flat" cols="120">' . $conf->global->LAB_FREE_TEXT . '</textarea>';
print '</td></tr>';
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:labelprint.php

示例7: AdherentType

/*                                                                            */
/* Creation mode                                                              */
/*                                                                            */
/* ************************************************************************** */
if ($action == 'create') {
    $object = new AdherentType($db);
    print_fiche_titre($langs->trans("NewMemberType"));
    print '<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">';
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    dol_fiche_head('');
    print '<table class="border" width="100%">';
    print '<tbody>';
    print '<input type="hidden" name="action" value="add">';
    print '<tr><td class="fieldrequired">' . $langs->trans("Label") . '</td><td><input type="text" name="libelle" size="40"></td></tr>';
    print '<tr><td>' . $langs->trans("SubscriptionRequired") . '</td><td>';
    print $form->selectyesno("cotisation", 1, 1);
    print '</td></tr>';
    print '<tr><td>' . $langs->trans("VoteAllowed") . '</td><td>';
    print $form->selectyesno("vote", 0, 1);
    print '</td></tr>';
    print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>';
    print '<textarea name="comment" wrap="soft" cols="60" rows="3"></textarea></td></tr>';
    print '<tr><td valign="top">' . $langs->trans("WelcomeEMail") . '</td><td>';
    require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
    $doleditor = new DolEditor('mail_valid', $object->mail_valid, '', 280, 'dolibarr_notes', '', false, true, $conf->fckeditor->enabled, 15, 90);
    $doleditor->Create();
    print '</td></tr>';
    // Other attributes
    $parameters = array();
    $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $act, $action);
    // Note that $action and $object may have been modified by hook
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:type.php

示例8:

print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="setvalue">';


print '<table class="nobordernopadding" width="100%">';

$var=true;
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("AccountParameter").'</td>';
print '<td>'.$langs->trans("Value").'</td>';
print "</tr>\n";

$var=!$var;
print '<tr '.$bc[$var].'><td class="fieldrequired">';
print $langs->trans("PAYPAL_API_SANDBOX").'</td><td>';
print $form->selectyesno("PAYPAL_API_SANDBOX",$conf->global->PAYPAL_API_SANDBOX,1);
print '</td></tr>';

$var=!$var;
print '<tr '.$bc[$var].'><td class="fieldrequired">';
print $langs->trans("PAYPAL_API_USER").'</td><td>';
print '<input size="32" type="text" name="PAYPAL_API_USER" value="'.$conf->global->PAYPAL_API_USER.'">';
print ' &nbsp; '.$langs->trans("Example").': paypal_api1.mywebsite.com';
print '</td></tr>';

$var=!$var;
print '<tr '.$bc[$var].'><td class="fieldrequired">';
print $langs->trans("PAYPAL_API_PASSWORD").'</td><td>';
print '<input size="32" type="text" name="PAYPAL_API_PASSWORD" value="'.$conf->global->PAYPAL_API_PASSWORD.'">';
print '</td></tr>';
开发者ID:nrjacker4,项目名称:crm-php,代码行数:30,代码来源:paypal.php

示例9:

print '</tr>'."\n";

/*
 * Formulaire parametres divers
 */

$var=!$var;

print "<tr ".$bc[$var].">";
print '<td width="60%">'.$langs->trans("UserWarehouseAutoCreate").'</td>';

print '<td width="160" align="right">';
print "<form method=\"post\" action=\"stock.php\">";
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print "<input type=\"hidden\" name=\"action\" value=\"STOCK_USERSTOCK_AUTOCREATE\">";
print $html->selectyesno("STOCK_USERSTOCK_AUTOCREATE",$conf->global->STOCK_USERSTOCK_AUTOCREATE,1);
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
print '</form>';
print "</td>\n";
print "</tr>\n";


// Title rule for stock decrease
print '<tr class="liste_titre">';
print "  <td>".$langs->trans("RuleForStockManagementDecrease")."</td>\n";
print "  <td align=\"right\" width=\"160\">".$langs->trans("Value")."</td>\n";
print '</tr>'."\n";
$var=true;

if ($conf->facture->enabled)
{
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:stock.php

示例10: quickcustomerpriceAdminPrepareHead

llxHeader('', $langs->trans($page_name));
// Subheader
$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
print_fiche_titre($langs->trans($page_name), $linkback);
// Configuration header
$head = quickcustomerpriceAdminPrepareHead();
dol_fiche_head($head, 'settings', $langs->trans("Module104874Name"), 0, "quickcustomerprice@quickcustomerprice");
// Setup page goes here
$form = new Form($db);
$var = false;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
// Example with a yes / no select
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("ParamLabel") . '</td>';
print '<td align="center" width="20">&nbsp;</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_CONSTNAME">';
print $form->selectyesno("CONSTNAME", $conf->global->CONSTNAME, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_quickcustomerprice,代码行数:31,代码来源:quickcustomerprice_setup.php

示例11: showParameters

function showParameters()
{
    global $db, $conf, $langs, $bc;
    $html = new Form($db);
    $var = false;
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre">';
    print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="100">' . $langs->trans("Value") . '</td>' . "\n";
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("ActivateTitleDatePerDay") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_SEE_DELIVERYDATE_PER_DAY');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("ActivateTitleDatePerWeek") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_SEE_DELIVERYDATE_PER_WEEK');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("SetDeliveryDateByOtherTask") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_SET_DELIVERYDATE_BY_OTHER_TASK');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("SetSCRUM_ALLOW_ALL_TASK_IN_GRID") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_ALLOW_ALL_TASK_IN_GRID');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("SetSCRUM_ADD_TASKS_TO_GRID") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_ADD_TASKS_TO_GRID');
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("DefaultVelocity") . '</td>';
    print '<td align="center" width="20">&nbsp;</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_SCRUM_DEFAULT_VELOCITY">';
    print '<input type="text" name="SCRUM_DEFAULT_VELOCITY" value="' . $conf->global->SCRUM_DEFAULT_VELOCITY . '" size="3" />&nbsp;';
    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("NumberOfDayForVelocity") . '</td>';
    print '<td align="center" width="20">&nbsp;</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_SCRUM_VELOCITY_NUMBER_OF_DAY">';
    print '<input type="text" name="SCRUM_VELOCITY_NUMBER_OF_DAY" value="' . $conf->global->SCRUM_VELOCITY_NUMBER_OF_DAY . '" size="3" />&nbsp;';
    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("NumberOfWorkingHourInDay") . '</td>';
    print '<td align="center" width="20">&nbsp;</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_TIMESHEET_WORKING_HOUR_PER_DAY">';
    print '<input type="text" name="TIMESHEET_WORKING_HOUR_PER_DAY" value="' . $conf->global->TIMESHEET_WORKING_HOUR_PER_DAY . '" size="3" />&nbsp;';
    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("UseProjectPriority") . '</td>';
    print '<td align="center" width="20">&nbsp;</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_SCRUM_USE_PROJECT_PRIORITY">';
    print $html->selectyesno("SCRUM_USE_PROJECT_PRIORITY", $conf->global->SCRUM_USE_PROJECT_PRIORITY, 1);
    print '&nbsp;<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
    print '</form>';
    print '</td></tr>';
    $var = !$var;
    print '<tr ' . $bc[$var] . '>';
    print '<td>' . $langs->trans("GroupTaskByProduct") . '</td>';
    print '<td align="center" width="20">&nbsp;</td>';
    print '<td align="right" width="300">';
    print ajax_constantonoff('SCRUM_GROUP_TASK_BY_PRODUCT');
    print '</td></tr>';
//.........这里部分代码省略.........
开发者ID:ATM-Consulting,项目名称:dolibarr_module_scrumboard,代码行数:101,代码来源:scrumboard_setup.php

示例12: form_constantes

function form_constantes($tableau)
{
    global $db, $bc, $langs, $conf, $_Avery_Labels;
    $form = new Form($db);
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre">';
    print '<td>' . $langs->trans("Description") . '</td>';
    print '<td>' . $langs->trans("Value") . '*</td>';
    print '<td>&nbsp;</td>';
    print '<td align="center" width="80">' . $langs->trans("Action") . '</td>';
    print "</tr>\n";
    $var = true;
    $listofparam = array();
    foreach ($tableau as $const) {
        $sql = "SELECT ";
        $sql .= "rowid";
        $sql .= ", " . $db->decrypt('name') . " as name";
        $sql .= ", " . $db->decrypt('value') . " as value";
        $sql .= ", type";
        $sql .= ", note";
        $sql .= " FROM " . MAIN_DB_PREFIX . "const";
        $sql .= " WHERE " . $db->decrypt('name') . " = '" . $const . "'";
        $sql .= " AND entity in (0, " . $conf->entity . ")";
        $sql .= " ORDER BY name ASC, entity DESC";
        $result = $db->query($sql);
        dol_syslog("List params sql=" . $sql);
        if ($result) {
            $obj = $db->fetch_object($result);
            // Take first result of select
            $var = !$var;
            print "\n" . '<form action="adherent.php" method="POST">';
            print "<tr " . $bc[$var] . ">";
            // Affiche nom constante
            print '<td>';
            print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
            print '<input type="hidden" name="action" value="update">';
            print '<input type="hidden" name="rowid" value="' . $rowid . '">';
            print '<input type="hidden" name="constname" value="' . $const . '">';
            print '<input type="hidden" name="constnote" value="' . nl2br($obj->note) . '">';
            print $langs->trans("Desc" . $const) != "Desc" . $const ? $langs->trans("Desc" . $const) : ($obj->note ? $obj->note : $const);
            if ($const == 'ADHERENT_MAILMAN_URL') {
                print '. ' . $langs->trans("Example") . ': <a href="#" id="exampleclick1">' . img_down() . '</a><br>';
                //print 'http://lists.domain.com/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%MAILMAN_ADMINPW%&subscribees=%EMAIL%&send_welcome_msg_to_this_batch=1';
                print '<div id="example1" class="hidden">';
                print 'http://lists.domain.com/cgi-bin/mailman/admin/%LISTE%/members/add?subscribees_upload=%EMAIL%&adminpw=%MAILMAN_ADMINPW%&subscribe_or_invite=0&send_welcome_msg_to_this_batch=0&notification_to_list_owner=0';
                print '</div>';
            }
            if ($const == 'ADHERENT_MAILMAN_UNSUB_URL') {
                print '. ' . $langs->trans("Example") . ': <a href="#" id="exampleclick2">' . img_down() . '</a><br>';
                print '<div id="example2" class="hidden">';
                print 'http://lists.domain.com/cgi-bin/mailman/admin/%LISTE%/members/remove?unsubscribees_upload=%EMAIL%&adminpw=%MAILMAN_ADMINPW%&send_unsub_ack_to_this_batch=0&send_unsub_notifications_to_list_owner=0';
                print '</div>';
                //print 'http://lists.domain.com/cgi-bin/mailman/admin/%LISTE%/members/remove?adminpw=%MAILMAN_ADMINPW%&unsubscribees=%EMAIL%';
            }
            print "</td>\n";
            if ($const == 'ADHERENT_CARD_TYPE' || $const == 'ADHERENT_ETIQUETTE_TYPE') {
                print '<td>';
                // List of possible labels (defined into $_Avery_Labels variable set into format_cards.lib.php)
                require_once DOL_DOCUMENT_ROOT . '/lib/format_cards.lib.php';
                $arrayoflabels = array();
                foreach (array_keys($_Avery_Labels) as $codecards) {
                    $arrayoflabels[$codecards] = $_Avery_Labels[$codecards]['name'];
                }
                print $form->selectarray('constvalue', $arrayoflabels, $obj->value ? $obj->value : 'CARD', 1, 0, 0);
                print '</td><td>';
                print '<input type="hidden" name="consttype" value="yesno">';
                print '</td>';
            } else {
                print '<td>';
                //print 'aa'.$const;
                if (in_array($const, array('ADHERENT_CARD_TEXT', 'ADHERENT_CARD_TEXT_RIGHT'))) {
                    print '<textarea class="flat" name="constvalue" cols="35" rows="5" wrap="soft">' . "\n";
                    print $obj->value;
                    print "</textarea>\n";
                    print '</td><td>';
                    print '<input type="hidden" name="consttype" value="texte">';
                } else {
                    if (in_array($const, array('ADHERENT_AUTOREGISTER_MAIL', 'ADHERENT_MAIL_VALID', 'ADHERENT_MAIL_COTIS', 'ADHERENT_MAIL_RESIL'))) {
                        require_once DOL_DOCUMENT_ROOT . "/lib/doleditor.class.php";
                        $doleditor = new DolEditor('constvalue_' . $const, $obj->value, '', 160, 'dolibarr_notes', '', false, false, $conf->fckeditor->enabled, 5, 60);
                        $doleditor->Create();
                        print '</td><td>';
                        print '<input type="hidden" name="consttype" value="texte">';
                    } else {
                        if ($obj->type == 'yesno') {
                            print $form->selectyesno('constvalue', $obj->value, 1);
                            print '</td><td>';
                            print '<input type="hidden" name="consttype" value="yesno">';
                        } else {
                            print '<input type="text" class="flat" size="48" name="constvalue" value="' . $obj->value . '">';
                            print '</td><td>';
                            print '<input type="hidden" name="consttype" value="chaine">';
                        }
                    }
                }
                print '</td>';
            }
            print '<td align="center">';
            print '<input type="submit" class="button" value="' . $langs->trans("Update") . '" name="Button"> &nbsp;';
            // print '<a href="adherent.php?name='.$const.'&action=unset">'.img_delete().'</a>';
//.........这里部分代码省略.........
开发者ID:ripasch,项目名称:dolibarr,代码行数:101,代码来源:adherent.php

示例13: initfields

                     initfields();
                 });
            })';
     print '</script>' . "\n";
 }
 print '<form method="post" action="' . $_SERVER["PHP_SELF"] . '">';
 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 print '<input type="hidden" name="action" value="update">';
 clearstatcache();
 $var = true;
 print '<table class="noborder" width="100%">';
 print '<tr class="liste_titre"><td>' . $langs->trans("Parameter") . '</td><td>' . $langs->trans("Value") . '</td></tr>';
 // Disable
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td>' . $langs->trans("MAIN_DISABLE_ALL_MAILS") . '</td><td>';
 print $form->selectyesno('MAIN_DISABLE_ALL_MAILS', $conf->global->MAIN_DISABLE_ALL_MAILS, 1);
 print '</td></tr>';
 // Separator
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td colspan="2">&nbsp;</td></tr>';
 // Method
 $var = !$var;
 print '<tr ' . $bc[$var] . '><td>' . $langs->trans("MAIN_MAIL_SENDMODE") . '</td><td>';
 // SuperAdministrator access only
 if (empty($conf->global->MAIN_MODULE_MULTICOMPANY) || $user->admin && !$user->entity) {
     print $form->selectarray('MAIN_MAIL_SENDMODE', $listofmethods, $conf->global->MAIN_MAIL_SENDMODE);
 } else {
     $text = $listofmethods[$conf->global->MAIN_MAIL_SENDMODE];
     if (empty($text)) {
         $text = $langs->trans("Undefined");
     }
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:mails.php

示例14: Form

$form = new Form($db);
$var = false;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->transnoentitiesnoconv("multicurrency_useRateOnInvoiceDate") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="400">';
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_MULTICURRENCY_USE_RATE_ON_INVOICE_DATE">';
print $form->selectyesno("MULTICURRENCY_USE_RATE_ON_INVOICE_DATE", $conf->global->MULTICURRENCY_USE_RATE_ON_INVOICE_DATE, 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->transnoentitiesnoconv("multicurrency_useOriginTx") . '</td>';
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="right" width="400">';
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_MULTICURRENCY_USE_ORIGIN_TX">';
print $form->selectyesno("MULTICURRENCY_USE_ORIGIN_TX", $conf->global->MULTICURRENCY_USE_ORIGIN_TX, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
开发者ID:NoisyBoy86,项目名称:Dolibarr_test,代码行数:31,代码来源:multicurrency.php

示例15: recurrenceAdminPrepareHead

llxHeader('', $langs->trans($page_name));
// Subheader
$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
print_fiche_titre($langs->trans($page_name), $linkback);
// Configuration header
$head = recurrenceAdminPrepareHead();
dol_fiche_head($head, 'settings', $langs->trans("ModuleName"), 0, "recurrence@recurrence");
// Setup page goes here
$form = new Form($db);
$var = false;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Parameters") . '</td>' . "\n";
print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">' . $langs->trans("Value") . '</td>' . "\n";
// Example with a yes / no select
$var = !$var;
print '<tr ' . $bc[$var] . '>';
print '<td>' . $langs->trans("RECURRENCE_DELETE_FUTUR_SOCIAL_TAXES") . '</td>';
print '<td align="center" width="20">&nbsp;</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_RECURRENCE_DELETE_FUTUR_SOCIAL_TAXES">';
print $form->selectyesno("RECURRENCE_DELETE_FUTUR_SOCIAL_TAXES", $conf->global->RECURRENCE_DELETE_FUTUR_SOCIAL_TAXES, 1);
print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
print '</form>';
print '</td></tr>';
print '</table>';
llxFooter();
$db->close();
开发者ID:ATM-Consulting,项目名称:dolibarr_module_recurence,代码行数:31,代码来源:recurrence_setup.php


注:本文中的Form::selectyesno方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。