本文整理汇总了PHP中osCommerce\OM\Core\HTML::inputField方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::inputField方法的具体用法?PHP HTML::inputField怎么用?PHP HTML::inputField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类osCommerce\OM\Core\HTML
的用法示例。
在下文中一共展示了HTML::inputField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initialize
public function initialize()
{
$OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null;
if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
// HPDL && ($osC_Template->getModule() != 'tell_a_friend')) {
$this->_content = '<form name="tell_a_friend" action="' . OSCOM::getLink(null, null, 'TellAFriend&' . $OSCOM_Product->getKeyword()) . '" method="post">' . "\n" . HTML::inputField('to_email_address', null, 'style="width: 80%;"') . ' ' . HTML::submitImage('button_tell_a_friend.gif', OSCOM::getDef('box_tell_a_friend_text')) . '<br />' . OSCOM::getDef('box_tell_a_friend_text') . "\n" . '</form>' . "\n";
}
}
示例2: parse
public static function parse($data)
{
$string = '<table border="0" cellspacing="0" cellpadding="2">';
$i = 0;
foreach ($data['data'] as $field) {
$i++;
$string .= ' <tr>' . ' <td width="100">' . $field['text'] . ':</td>' . ' <td>' . HTML::inputField('variants[' . $data['group_id'] . '][' . $field['id'] . ']', null, 'id="variants_' . $data['group_id'] . '_' . $i . '"') . '</td>' . ' </tr>';
}
$string .= '</table>';
return $string;
}
示例3:
</div>
<div class="moduleBox">
<h6><?php
echo OSCOM::getDef('friend_details_title');
?>
</h6>
<div class="content">
<ol>
<li><?php
echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_name'), 'to_name', null, true) . HTML::inputField('to_name');
?>
</li>
<li><?php
echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_email_address'), 'to_email_address', null, true) . HTML::inputField('to_email_address');
?>
</li>
</ol>
</div>
</div>
<div class="moduleBox">
<h6><?php
echo OSCOM::getDef('tell_a_friend_message');
?>
</h6>
<div class="content">
<ol>
<li><?php
示例4: array
echo HTML::selectMenu('ab_state', array());
?>
');
for (var i = 0; i < len; i++) {
html += '<option value="' + response.zones[i].id + '">' + response.zones[i].name + '</option>';
}
$('#ab_state').append(html);
if ( zone_id > 0 ) {
$('#ab_state').val(zone_id);
}
} else {
$('#ab_state').replaceWith('<?php
echo HTML::inputField('ab_state');
?>
');
if ( state.length > 0 ) {
$('#ab_state').val(state);
}
}
} else {
alert('Error: The country zones list could not be populated.'); // HPDL improve
}
});
});
});
var gender_male_icon = '<?php
示例5:
<p><?php
echo OSCOM::getDef('introduction_edit_tax_class');
?>
</p>
<fieldset>
<p><label for="tax_class_title"><?php
echo OSCOM::getDef('field_title');
?>
</label><?php
echo HTML::inputField('tax_class_title', $OSCOM_ObjectInfo->get('tax_class_title'));
?>
</p>
<p><label for="tax_class_description"><?php
echo OSCOM::getDef('field_description');
?>
</label><?php
echo HTML::inputField('tax_class_description', $OSCOM_ObjectInfo->get('tax_class_description'));
?>
</p>
</fieldset>
<p><?php
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
</form>
</div>
示例6:
</div>
<form name="contact" action="<?php
echo OSCOM::getLink(null, null, 'Contact&Process');
?>
" method="post">
<div class="moduleBox">
<div class="content">
<ol>
<li><?php
echo HTML::label(OSCOM::getDef('contact_name_title'), 'name') . HTML::inputField('name');
?>
</li>
<li><?php
echo HTML::label(OSCOM::getDef('contact_email_address_title'), 'email') . HTML::inputField('email');
?>
</li>
<li><?php
echo HTML::label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . HTML::textareaField('enquiry', null, 50, 15);
?>
</li>
</ol>
</div>
</div>
<div class="submitFormButtons" style="text-align: right;">
<?php
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>
示例7:
?>
</td>
</tr>
<tr>
<td class="inputField"><?php
echo OSCOM::getDef('param_administrator_username') . '<br />' . HTML::inputField('CFG_ADMINISTRATOR_USERNAME', null, 'class="text"');
?>
</td>
<td class="inputDescription"><?php
echo OSCOM::getDef('param_administrator_username_description');
?>
</td>
</tr>
<tr>
<td class="inputField"><?php
echo OSCOM::getDef('param_administrator_password') . '<br />' . HTML::inputField('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
<td class="inputDescription"><?php
echo OSCOM::getDef('param_administrator_password_description');
?>
</td>
</tr>
<tr>
<td class="inputField"><?php
echo OSCOM::getDef('param_time_zone') . '<br />' . HTML::timeZoneSelectMenu('CFG_TIME_ZONE', ini_get('date.timezone') ?: null);
?>
</td>
<td class="inputDescription"><?php
echo OSCOM::getDef('param_time_zone_description');
?>
示例8:
<p><label for="tax_rate"><?php
echo OSCOM::getDef('field_tax_rate');
?>
</label><?php
echo HTML::inputField('tax_rate');
?>
</p>
<p><label for="tax_description"><?php
echo OSCOM::getDef('field_tax_rate_description');
?>
</label><?php
echo HTML::inputField('tax_description');
?>
</p>
<p><label for="tax_priority"><?php
echo OSCOM::getDef('field_tax_rate_priority');
?>
</label><?php
echo HTML::inputField('tax_priority');
?>
</p>
</fieldset>
<p><?php
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
</form>
</div>
示例9: json_encode
echo OSCOM::getDef('field_definition_value');
?>
</label>
<?php
foreach ($OSCOM_Language->getAll() as $l) {
echo '<br />' . $OSCOM_Language->showImage($l['code']) . '<br />' . HTML::textareaField('value[' . $l['id'] . ']');
}
?>
</p>
<p><label for="defgroup"><?php
echo OSCOM::getDef('field_definition_group');
?>
</label><?php
echo HTML::inputField('defgroup', isset($_GET['group']) ? $_GET['group'] : null);
?>
</p>
</fieldset>
<p><?php
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : '')), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
</form>
</div>
<script type="text/javascript">
var suggestGroups = <?php
echo json_encode($groups_array);
示例10:
</label><?php
echo HTML::inputField('credit_card_name', $OSCOM_ObjectInfo->get('credit_card_name'));
?>
</p>
<p><label for="pattern"><?php
echo OSCOM::getDef('field_pattern');
?>
</label><?php
echo HTML::inputField('pattern', $OSCOM_ObjectInfo->get('pattern'));
?>
</p>
<p><label for="sort_order"><?php
echo OSCOM::getDef('field_sort_order');
?>
</label><?php
echo HTML::inputField('sort_order', $OSCOM_ObjectInfo->get('sort_order'));
?>
</p>
<p><label for="credit_card_status"><?php
echo OSCOM::getDef('field_status');
?>
</label><?php
echo HTML::checkboxField('credit_card_status', '1', $OSCOM_ObjectInfo->get('credit_card_status'));
?>
</p>
</fieldset>
<p><?php
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
示例11: array
</li>
<?php
if (ACCOUNT_DATE_OF_BIRTH == '1') {
?>
<li><?php
echo HTML::label(OSCOM::getDef('field_customer_date_of_birth'), 'dob_days', null, true) . ' ' . HTML::dateSelectMenu('dob', array('year' => $Qaccount->value('customers_dob_year'), 'month' => $Qaccount->value('customers_dob_month'), 'date' => $Qaccount->value('customers_dob_date')), false, null, null, date('Y') - 1901, -5);
?>
</li>
<?php
}
?>
<li><?php
echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'email_address', null, true) . ' ' . HTML::inputField('email_address', $Qaccount->value('customers_email_address'));
?>
</li>
</ol>
</div>
</div>
<div class="submitFormButtons" style="text-align: right;">
<?php
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>
</form>
示例12:
</div>
<div class="moduleBox">
<form name="checkout" action="<?php
echo OSCOM::getLink(null, 'Checkout', null, 'SSL');
?>
" method="post">
<div style="float: right;">
<?php
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_checkout')));
?>
</div>
<?php
if (!$OSCOM_Customer->isLoggedOn() && $OSCOM_Application->requireCustomerAccount()) {
?>
<div class="content">
<?php
echo 'E-Mail Address: ' . HTML::inputField('email', $OSCOM_Customer->getEMailAddress()) . ' or ' . HTML::link(OSCOM::getLink(null, 'Account', 'LogIn', 'SSL'), 'Sign-In') . ' to process this order';
?>
</div>
<?php
}
?>
</form>
</div>
示例13:
echo OSCOM::getDef('field_date_of_birth');
?>
</label><?php
echo HTML::inputField('dob', $new_customer ? null : DateTime::fromUnixTimestamp(DateTime::getTimestamp($OSCOM_ObjectInfo->get('customers_dob')), 'Y-m-d'));
?>
</p>
<script>$('#dob').datepicker({dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true, yearRange: '-100:+0'});</script>
<?php
}
?>
<p><label for="email_address"><?php
echo OSCOM::getDef('field_email_address');
?>
</label><?php
echo HTML::inputField('email_address', $new_customer ? null : $OSCOM_ObjectInfo->get('customers_email_address'));
?>
</p>
<p><label for="status"><?php
echo OSCOM::getDef('field_status');
?>
</label><?php
echo HTML::checkboxField('status', null, $new_customer ? true : $OSCOM_ObjectInfo->get('customers_status') == '1');
?>
</p>
</fieldset>
</div>
</div>
示例14: array
<td width="70%" valign="top">
<h4><?php echo OSCOM::getDef('subsection_price'); ?></h4>
<fieldset>
<p><label for="variants_price_tax_class"><?php echo OSCOM::getDef('field_tax_class'); ?></label><?php echo HTML::selectMenu('variants_price_tax_class', $OSCOM_Application->getTaxClassesList(), null, 'onchange="updateGross(\'variants_price\');"'); ?></p>
<p><label for="variants_price"><?php echo OSCOM::getDef('field_price_net'); ?></label><?php echo HTML::inputField('variants_price', null, 'onkeyup="updateGross(\'variants_price\')"'); ?></p>
<p><label for="variants_price_gross"><?php echo OSCOM::getDef('field_price_gross'); ?></label><?php echo HTML::inputField('variants_price_gross', null, 'onkeyup="updateNet(\'variants_price\')"'); ?></p>
</fieldset>
<h4><?php echo OSCOM::getDef('subsection_data'); ?></h4>
<fieldset>
<p id="vstatus"><label for="variants_status"><?php echo OSCOM::getDef('field_status'); ?></label><?php echo HTML::radioField('variants_status', array(array('id' => '1', 'text' => OSCOM::getDef('status_enabled')), array('id' => '0', 'text' => OSCOM::getDef('status_disabled')))); ?></p>
<p><label for="variants_model"><?php echo OSCOM::getDef('field_model'); ?></label><?php echo HTML::inputField('variants_model', null); ?></p>
<p><label for="variants_quantity"><?php echo OSCOM::getDef('field_quantity'); ?></label><?php echo HTML::inputField('variants_quantity', null); ?></p>
<p><label for="variants_weight"><?php echo OSCOM::getDef('field_weight'); ?></label><?php echo HTML::inputField('variants_weight', null, 'size="6"'). HTML::selectMenu('variants_weight_class', $OSCOM_Application->getWeightClassesList(), SHIPPING_WEIGHT_UNIT); ?></p>
<p><label for="variants_default"><?php echo OSCOM::getDef('field_default'); ?></label><?php echo HTML::checkboxField('variants_default'); ?></p>
</fieldset>
<script>
$(function() {
$('#vstatus').buttonset();
});
</script>
</td>
</tr>
</table>
<p id="variantSubmitButtonsNew"><?php echo HTML::button(array('type' => 'button', 'params' => 'onclick="processVariantForm();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>
<p id="variantSubmitButtonsEdit"><?php echo HTML::button(array('type' => 'button', 'params' => 'data-vButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>
示例15:
<p><?php
echo OSCOM::getDef('introduction_new_zone_group');
?>
</p>
<fieldset>
<p><label for="zone_name"><?php
echo OSCOM::getDef('field_name');
?>
</label><?php
echo HTML::inputField('zone_name');
?>
</p>
<p><label for="zone_description"><?php
echo OSCOM::getDef('field_description');
?>
</label><?php
echo HTML::inputField('zone_description');
?>
</p>
</fieldset>
<p><?php
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
</form>
</div>