本文整理汇总了PHP中HtmlForm类的典型用法代码示例。如果您正苦于以下问题:PHP HtmlForm类的具体用法?PHP HtmlForm怎么用?PHP HtmlForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HtmlForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadForm
function loadForm($formPass)
{
$form = new HtmlForm();
$form->renderStart("resetFRM", "Enter your Email Address To Recover Password");
echo "<div>";
$form->renderTextbox("email", "Email", true, 50, "", "pattern='^\\w+@[a-zA-Z_]+?\\.[a-zA-Z]{2,3}\$'");
echo "<span id = 'sMail'></span>";
echo "</div >";
$form->renderSubmitEnd("resetForm", "Reset Password");
}
示例2: outputAcceptedCurrenciesRule
function outputAcceptedCurrenciesRule($options_values, $selected_value)
{
$options = array();
foreach ($options_values as $rule) {
$options[] = array("value" => $rule['rule_name'], "contents" => getMsg('SYS', $rule['rule_name']));
}
loadCoreFile('html_form.php');
$HtmlForm1 = new HtmlForm();
$value = $HtmlForm1->genDropdownSingleChoice(array("onChange" => "try{accepted_currencies_rule_onchange();} catch(ex) {};", "select_name" => "pm_sm_accepted_currencies_rule", "class" => "input-large", "values" => $options, "selected_value" => $selected_value, "id" => "pm_sm_accepted_currencies_rule"));
return $value;
}
示例3: loadForm
function loadForm($formPass)
{
echo "<h1>Reset your Password</h1>";
$form = new HtmlForm();
$form->renderStart("resetPasswordForm", "");
$form->renderPassword("newPassword1", "New Password ", true, 255);
$form->renderPassword("newPassword2", "Confirm New Password ", true, 255);
if (!$formPass && !checkPasswordMatch()) {
echo "<span class='pswdMtchFail'>does not match new password entered</span>";
}
$form->renderSubmitEnd("submitReset", "Change Password");
}
示例4: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$request = new Request();
$request->setView('DateTimeFormat');
$request->setAction('UpdateDateTimeFormat');
$formAction = $request->getURL();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "DateTimeForm"), "DateFormats" => $this->outputDateTimeFormats("date"), "TimeFormats" => $this->outputDateTimeFormats("time"), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return modApiFunc('TmplFiller', 'fill', "localization/date_settings/", "container.tpl.html", array());
}
示例5: output
/**
*
*/
function output()
{
global $application;
loadCoreFile('html_form.php');
$HtmlForm = new HtmlForm();
$request = new Request();
$request->setView('WeightUnit');
$request->setAction('UpdateWeightUnit');
$formAction = $request->getURL();
$template_contents = array("FORM" => $HtmlForm->genForm($formAction, "POST", "WeightForm"), "WeightUnit" => modApiFunc("Localization", "getValue", "WEIGHT_UNIT"), "WeightCoeff" => modApiFunc("Localization", "FloatToFormatStr", modApiFunc("Localization", "getValue", "WEIGHT_COEFF"), "weight_coeff"), "CoeffFormat" => modApiFunc("Localization", "format_settings_for_js", "weight_coeff"), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return modApiFunc('TmplFiller', 'fill', "localization/weight_settings/", "container.tpl.html", array());
}
示例6: processInput
/**
* @param array $formData
* @param HtmlForm $form
*
* @return bool|string
* @throws DBUnexpectedError
* @throws Exception
* @throws MWException
*/
public static function processInput(array $formData, HtmlForm $form)
{
error_reporting(0);
global $wgCreateWikiSQLfiles, $IP;
$DBname = $formData['dbname'];
$founderName = $formData['founder'];
wfDebugLog('CreateWiki', 'Creating wiki ' . $DBname . ' with a founder of ' . $founderName);
$dbw = wfGetDB(DB_MASTER);
$dbTest = $dbw->query('SHOW DATABASES LIKE ' . $dbw->addQuotes($DBname) . ';');
$rows = $dbTest->numRows();
$dbTest->free();
if ($rows !== 0) {
return wfMessage('createwiki-error-dbexists')->plain();
}
$farmerLogEntry = new ManualLogEntry('farmer', 'createandpromote');
$farmerLogEntry->setPerformer($form->getUser());
$farmerLogEntry->setTarget($form->getTitle());
$farmerLogEntry->setComment($formData['comment']);
$farmerLogEntry->setParameters(array('4::wiki' => $DBname, '5::founder' => $founderName));
$farmerLogID = $farmerLogEntry->insert();
$farmerLogEntry->publish($farmerLogID);
$dbw->query('SET storage_engine=InnoDB;');
$dbw->query('CREATE DATABASE ' . $dbw->addIdentifierQuotes($DBname) . ';');
$dbw->selectDB($DBname);
foreach ($wgCreateWikiSQLfiles as $file) {
$dbw->sourceFile($file);
}
$dbw->insert('site_stats', array('ss_row_id' => 1));
$dbw->close();
// Add DNS record to cloudflare
global $wgCreateWikiUseCloudFlare, $wgCloudFlareUser, $wgCloudFlareKey;
if ($wgCreateWikiUseCloudFlare) {
$domainPrefix = substr($DBname, 0, -4);
$cloudFlare = new cloudflare_api($wgCloudFlareUser, $wgCloudFlareKey);
$cloudFlareResult = $cloudFlare->rec_new('orain.org', 'CNAME', $domainPrefix, 'lb.orain.org');
if (!is_object($cloudFlareResult) || $cloudFlareResult->result !== 'success') {
wfDebugLog('CreateWiki', 'CloudFlare FAILED to add CNAME for ' . $domainPrefix . '.orain.org');
} else {
wfDebugLog('CreateWiki', 'CloudFlare CNAME added for ' . $domainPrefix . '.orain.org');
}
} else {
wfDebugLog('CreateWiki', 'CloudFlare is not enabled.');
}
// Create local account for founder (hack)
$out = exec("php5 {$IP}/extensions/CentralAuth/maintenance/createLocalAccount.php " . escapeshellarg($founderName) . ' --wiki ' . escapeshellarg($DBname));
if (!strpos($out, 'created')) {
wfDebugLog('CreateWiki', 'Failed to create local account for founder.');
return wfMessage('createwiki-error-usernotcreated')->plain();
}
require_once "{$IP}/includes/UserRightsProxy.php";
// Grant founder sysop and bureaucrat rights
$founderUser = UserRightsProxy::newFromName($DBname, $founderName);
$newGroups = array('sysop', 'bureaucrat');
array_map(array($founderUser, 'addGroup'), $newGroups);
$founderUser->invalidateCache();
$form->getOutput()->addWikiMsg('createwiki-success', $DBname);
wfDebugLog('CreateWiki', 'Successfully created ' . $DBname . ' with a founder of ' . $founderName);
return true;
}
示例7: output
function output()
{
global $application;
$settings = modApiFunc('Product_Files', 'getSettings');
$template_contents = array('HLTLField' => HtmlForm::genInputTextField('25', 'pf_sets[HL_TL]', '5', $settings['HL_TL']), 'HLMaxTryField' => HtmlForm::genInputTextField('25', 'pf_sets[HL_MAX_TRY]', '5', $settings['HL_MAX_TRY']), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$this->mTmplFiller =& $application->getInstance('TmplFiller');
return $this->mTmplFiller->fill("product_files/settings/", "container.tpl.html", array());
}
示例8: output
function output()
{
global $application;
$settings = modApiFunc('Quick_Books', 'getSettings');
$op_as_inv_select = array("select_name" => "qbs[OP_AS_INV]", "selected_value" => $settings['OP_AS_INV'], 'class' => 'form-control input-sm input-xsmall', "values" => array(array('value' => 'Y', 'contents' => getMsg('QB', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('QB', 'LBL_NO'))));
$template_contents = array("TrnsClassField" => HtmlForm::genInputTextField('255', 'qbs[TRNS_CLASS]', '70', $settings['TRNS_CLASS']), "AccTaxField" => HtmlForm::genInputTextField('255', 'qbs[ACC_TAX]', '70', $settings['ACC_TAX']), "AccProductField" => HtmlForm::genInputTextField('255', 'qbs[ACC_PRODUCT]', '70', $settings['ACC_PRODUCT']), "AccShippingField" => HtmlForm::genInputTextField('255', 'qbs[ACC_SHIPPING]', '70', $settings['ACC_SHIPPING']), "AccInventoryField" => HtmlForm::genInputTextField('255', 'qbs[ACC_INVENTORY]', '70', $settings['ACC_INVENTORY']), "AccGlobalDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_GLOBAL_DISCOUNT]', '70', $settings['ACC_GLOBAL_DISCOUNT']), "AccPromoCodeDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_PROMOCODE_DISCOUNT]', '70', $settings['ACC_PROMOCODE_DISCOUNT']), "AccQuantityDiscountField" => HtmlForm::genInputTextField('255', 'qbs[ACC_QUANTITY_DISCOUNT]', '70', $settings['ACC_QUANTITY_DISCOUNT']), "OpAsInvField" => HtmlForm::genDropdownSingleChoice($op_as_inv_select), "MinQISField" => HtmlForm::genInputTextField('255', 'qbs[MIN_QIS]', '70', $settings['MIN_QIS']), "AccCOGSField" => HtmlForm::genInputTextField('255', 'qbs[ACC_COGS]', '70', $settings['ACC_COGS']), "OrdersPrefixField" => HtmlForm::genInputTextField('255', 'qbs[QB_ORDERS_PREFIX]', '70', $settings['QB_ORDERS_PREFIX']), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$this->mTmplFiller =& $application->getInstance('TmplFiller');
return $this->mTmplFiller->fill("quick_books/settings/", "container.tpl.html", array());
}
示例9: output
function output()
{
global $application;
$cats_select = array('select_name' => 'ProductCategory', 'id' => 'ProductCategory', 'selected_value' => 1, 'values' => array());
$cats = modApiFunc("Catalog", "getSubcategoriesFullListWithParent", 1, false);
foreach ($cats as $cat) {
$cats_select['values'][] = array('value' => $cat['id'], 'contents' => str_repeat(' ', $cat['level']) . $cat['name']);
}
$template_contents = array('ProductListSubcategories' => HtmlForm::genDropdownSingleChoice($cats_select, ' style="width: 290px; font-family: courier new; font-size: 11px;"'), 'CategoriesPaths' => $this->outputCategoriesPaths($cats));
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$this->mTmplFiller =& $application->getInstance('TmplFiller');
return $this->mTmplFiller->fill("catalog/export_products/", "container-2.tpl.html", array());
}
示例10: output
function output()
{
global $application;
$settings = modApiFunc('Manufacturers', 'getSettings');
$ag_select = array("select_name" => "pi_sets[AUTO_GEN_MAIN_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_MAIN_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('MNF', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('MNF', 'LBL_NO'))));
$ag_param = '';
if (!function_exists('gd_info')) {
$ag_select["selected_value"] = "N";
$ag_param = 'disabled';
}
$template_contents = array('TSField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMB_SIDE]', '5', $settings['THUMB_SIDE']), 'TPLField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMBS_PER_LINE]', '5', $settings['THUMBS_PER_LINE']), 'AGField' => HtmlForm::genDropdownSingleChoice($ag_select, $ag_param), 'MISField' => HtmlForm::genInputTextField('25', 'pi_sets[MAIN_IMAGE_SIDE]', '5', $settings['MAIN_IMAGE_SIDE'], $ag_param), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$this->mTmplFiller =& $application->getInstance('TmplFiller');
return $this->mTmplFiller->fill("manufacturers/settings/", "container.tpl.html", array());
}
示例11: afficher_formulaire_identification
function afficher_formulaire_identification($profil,$mode='normal',$nom='')
{
$affichage = '';
if($profil=='webmestre')
{
$affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="1" autocomplete="off" /><br />'.NL;
$affichage .= '<span class="tab"></span><input id="f_login" name="f_login" type="hidden" value="'.$profil.'" /><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="'.$profil.'" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="2" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg"> </label><br />'.NL;
$affichage .= '<span class="tab"></span><a id="lien_lost" href="#webmestre">[ Identifiants perdus ]</a>'.NL;
}
elseif($profil=='partenaire')
{
// Lecture d'un cookie sur le poste client servant à retenir le dernier partenariat sélectionné si identification avec succès
$selection = (isset($_COOKIE[COOKIE_PARTENAIRE])) ? Clean::entier($_COOKIE[COOKIE_PARTENAIRE]) : FALSE ;
$options_partenaires = HtmlForm::afficher_select(DB_WEBMESTRE_SELECT::DB_OPT_partenaires_conventionnes() , FALSE /*select_nom*/ , '' /*option_first*/ , $selection , '' /*optgroup*/ );
$affichage .= '<label class="tab" for="f_partenaire">Partenariat :</label><select id="f_partenaire" name="f_partenaire" tabindex="1" class="t9">'.$options_partenaires.'</select><br />'.NL;
$affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="2" autocomplete="off" /><br />'.NL;
$affichage .= '<span class="tab"></span><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="'.$profil.'" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="3" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg"> </label><br />'.NL;
$affichage .= '<span class="tab"></span><a id="lien_lost" href="#partenaire">[ Identifiants perdus ]</a>'.NL;
}
elseif($profil=='developpeur')
{
$affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="1" autocomplete="off" /><br />'.NL;
$affichage .= '<span class="tab"></span><input id="f_login" name="f_login" type="hidden" value="'.$profil.'" /><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="'.$profil.'" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="2" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg"> </label><br />'.NL;
}
elseif($mode=='normal')
{
$affichage .= '<label class="tab" for="f_login">Nom d\'utilisateur :</label><input id="f_login" name="f_login" size="'.(LOGIN_LONGUEUR_MAX-5).'" maxlength="'.LOGIN_LONGUEUR_MAX.'" type="text" value="" tabindex="2" autocomplete="off" /><br />'.NL;
$affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="3" autocomplete="off" /><br />'.NL;
$affichage .= '<span class="tab"></span><input id="f_mode" name="f_mode" type="hidden" value="normal" /><input id="f_profil" name="f_profil" type="hidden" value="structure" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="4" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg"> </label><br />'.NL;
$affichage .= '<span class="tab"></span><a id="lien_lost" href="#structure">[ Identifiants perdus ]</a> <a id="contact_admin" href="#contact_admin">[ Contact établissement ]</a>'.NL;
}
else
{
$affichage .= '<label class="tab">Mode de connexion :</label>';
$affichage .= '<label for="f_mode_normal"><input type="radio" id="f_mode_normal" name="f_mode" value="normal" /> formulaire <em>SACoche</em></label> ';
$affichage .= '<label for="f_mode_'.$mode.'"><input type="radio" id="f_mode_'.$mode.'" name="f_mode" value="'.$mode.'" checked /> authentification extérieure <em>'.html($mode.'-'.$nom).'</em></label><br />'.NL;
$affichage .= '<fieldset id="fieldset_normal" class="hide">'.NL;
$affichage .= '<label class="tab" for="f_login">Nom d\'utilisateur :</label><input id="f_login" name="f_login" size="'.(LOGIN_LONGUEUR_MAX-5).'" maxlength="'.LOGIN_LONGUEUR_MAX.'" type="text" value="" tabindex="2" autocomplete="off" /><br />'.NL;
$affichage .= '<label class="tab" for="f_password">Mot de passe :</label><input id="f_password" name="f_password" size="'.(PASSWORD_LONGUEUR_MAX-5).'" maxlength="'.PASSWORD_LONGUEUR_MAX.'" type="password" value="" tabindex="3" autocomplete="off" /><br />'.NL;
$affichage .= '</fieldset>'.NL;
$affichage .= '<span class="tab"></span><input id="f_profil" name="f_profil" type="hidden" value="structure" /><input id="f_action" name="f_action" type="hidden" value="identifier" /><button id="f_submit" type="submit" tabindex="4" class="mdp_perso">Accéder à son espace.</button><label id="ajax_msg"> </label><br />'.NL;
$affichage .= '<span class="tab"></span><a id="lien_lost" class="hide" href="#structure">[ Identifiants perdus ]</a> <a id="contact_admin" href="#contact_admin">[ Contact établissement ]</a>'.NL;
}
return $affichage;
}
示例12: outputField
/**
* Outputs the form field for the given params
*/
function outputField($field_type, $field_name, $def_value, $onchange = '', $id = '')
{
$return_value = '';
switch ($field_type) {
case 'hidden':
$return_value = '<input type="hidden"' . HtmlForm::genHiddenField($field_name, $def_value) . ' id="' . $field_name . '" />';
break;
case 'rate':
$return_value = '<input type="text"' . HtmlForm::genInputTextField('255', $field_name, '70', $def_value, $onchange . 'style="width: 98%;" class="form-control input-sm input-large"') . ' />';
break;
case 'visible':
$return_value = HtmlForm::genDropdownSingleChoice(array("select_name" => $field_name, "selected_value" => $def_value, "onChange" => $onchange, "values" => array(array('value' => 'Y', 'contents' => getMsg('CR', 'CR_SHOW')), array('value' => 'N', 'contents' => getMsg('CR', 'CR_HIDE')))));
break;
case 'checkbox':
$return_value = HtmlForm::genCheckbox(array("value" => $def_value, "name" => $field_name, "onclick" => $onchange, "id" => $id, "is_checked" => ''));
break;
}
return $return_value;
}
示例13: loadForm
function loadForm($formPass)
{
echo "<h1>Change your Password</h1>";
$form = new HtmlForm();
$form->renderStart("changePasswordForm", "");
$form->renderPassword("currentPassword", "Current Password: ", true, 255);
if (!$formPass && !checkCurrentPassword()) {
echo "<span class='pswdMtchFail'>This is not your password. Forgot your password? <a href='ResetPassword.php'>Reset it here</a></span>";
}
$form->renderPassword("newPassword1", "New Password: ", true, 255);
$form->renderPassword("newPassword2", "Again: ", true, 255);
if (!$formPass && !checkPasswordMatch()) {
echo "<span class='pswdMtchFail'>does not match new password entered</span>";
}
$form->renderSubmitEnd("submitPasswordChange", "Change Password");
}
示例14: output
function output()
{
global $application;
$request = new Request();
$request->setView(CURRENT_REQUEST_URL);
$request->setKey("page_view", "TaxRateByZip_AddNewSet");
$request->setAction('TaxRatesRedirectToImportAction');
$formAction = $request->getURL();
$title = getMsg('TAX_ZIP', 'ADD_NEW_SET_PAGE_TITLE');
$descr_value = '';
$updateSid = $request->getValueByKey("updateSid", 0);
if ($updateSid) {
$set_to_update = modApiFunc("TaxRateByZip", "getSet", $updateSid);
if (isset($set_to_update[0]["name"])) {
$descr_value = $set_to_update[0]["name"];
$title = getMsg('TAX_ZIP', 'UPDATE_SET_PAGE_TITLE');
$title = str_replace("%1%", $descr_value, $title);
$request->setKey("updateSid", $updateSid);
$formAction = $request->getURL();
}
}
$ptypes_select = array('select_name' => 'TargetPType', 'id' => 'TargetPType', 'selected_value' => '0', 'values' => array());
$ptypes = modApiFunc('Catalog', 'getProductTypes');
foreach ($ptypes as $ptype) {
$ptypes_select['values'][] = array('value' => $ptype['id'], 'contents' => $ptype['name']);
}
$cats_select = array('select_name' => 'TargetCategory', 'id' => 'TargetCategory', 'selected_value' => 1, 'values' => array());
$cats = modApiFunc("Catalog", "getSubcategoriesFullListWithParent", 1, false);
foreach ($cats as $cat) {
$cats_select['values'][] = array('value' => $cat['id'], 'contents' => str_repeat(' ', $cat['level']) . $cat['name']);
}
$template_contents = array("FormAction" => $formAction, "DescriptionValue" => $descr_value, "Title" => $title, "Errors" => $this->outputResultMessage(), 'PTypesList' => HtmlForm::genDropdownSingleChoice($ptypes_select, ' style="width: 290px;"'), 'CategoriesList' => HtmlForm::genDropdownSingleChoice($cats_select, ' style="width: 290px;"'));
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
return $this->mTmplFiller->fill("", "container.tpl.html", array());
}
示例15: output
function output()
{
global $application;
$settings = modApiFunc('Product_Images', 'getSettings');
$detailedFullImageResizeSelect = array("select_name" => "pi_sets[RESIZE_DETAILED_LARGE_IMAGE]", "selected_value" => $settings['RESIZE_DETAILED_LARGE_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
$fullImageResizeSelect = array("select_name" => "pi_sets[RESIZE_LARGE_IMAGE]", "selected_value" => $settings['RESIZE_LARGE_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
$ag_select = array("select_name" => "pi_sets[AUTO_GEN_MAIN_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_MAIN_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
$ag_param = '';
if (!function_exists('gd_info')) {
$ag_select["selected_value"] = "N";
$ag_param = 'disabled';
}
$cat_ag_select = array("select_name" => "pi_sets[AUTO_GEN_CAT_SMALL_IMAGE]", "selected_value" => $settings['AUTO_GEN_CAT_SMALL_IMAGE'], "values" => array(array('value' => 'Y', 'contents' => getMsg('PI', 'LBL_YES')), array('value' => 'N', 'contents' => getMsg('PI', 'LBL_NO'))));
$cat_ag_param = '';
if (!function_exists('gd_info')) {
$cat_ag_select["selected_value"] = "N";
$cat_ag_param = 'disabled';
}
$template_contents = array('TSField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMB_SIDE]', '5', $settings['THUMB_SIDE']), 'TPLField' => HtmlForm::genInputTextField('25', 'pi_sets[THUMBS_PER_LINE]', '5', $settings['THUMBS_PER_LINE']), 'TPLSetting' => $application->getAppIni('PRODUCT_LIST_DISABLE_TR_TD'), 'AGField' => HtmlForm::genDropdownSingleChoice($ag_select, $ag_param), 'CatAGField' => HtmlForm::genDropdownSingleChoice($cat_ag_select, $cat_ag_param), 'fullImageResizeField' => HtmlForm::genDropdownSingleChoice($fullImageResizeSelect, $ag_param), 'detailedFullImageResizeField' => HtmlForm::genDropdownSingleChoice($detailedFullImageResizeSelect, $ag_param), 'MISField' => HtmlForm::genInputTextField('25', 'pi_sets[MAIN_IMAGE_SIDE]', '5', $settings['MAIN_IMAGE_SIDE'], $ag_param), 'CatMISField' => HtmlForm::genInputTextField('25', 'pi_sets[CAT_IMAGE_SIDE]', '5', $settings['CAT_IMAGE_SIDE'], $cat_ag_param), 'firField' => HtmlForm::genInputTextField('25', 'pi_sets[LARGE_IMAGE_SIZE]', '5', $settings['LARGE_IMAGE_SIZE'], $ag_param), 'dfirField' => HtmlForm::genInputTextField('25', 'pi_sets[DETAILED_LARGE_IMAGE_SIZE]', '5', $settings['DETAILED_LARGE_IMAGE_SIZE'], $ag_param), "ResultMessage" => $this->outputResultMessage());
$this->_Template_Contents = $template_contents;
$application->registerAttributes($this->_Template_Contents);
$this->mTmplFiller =& $application->getInstance('TmplFiller');
return $this->mTmplFiller->fill("product_images/settings/", "container.tpl.html", array());
}