本文整理汇总了PHP中MS_Helper_Html::html_submit方法的典型用法代码示例。如果您正苦于以下问题:PHP MS_Helper_Html::html_submit方法的具体用法?PHP MS_Helper_Html::html_submit怎么用?PHP MS_Helper_Html::html_submit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MS_Helper_Html
的用法示例。
在下文中一共展示了MS_Helper_Html::html_submit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: to_html
public function to_html()
{
// let 3rd party themes/plugins use their own form
if (!apply_filters('ms_gateway_authorize_view_form_to_html', true, $this)) {
return;
}
$fields = $this->prepare_fields();
ob_start();
// Render tabbed interface.
?>
<div class="ms-wrap">
<?php
if ($this->data['auth_error']) {
?>
<div class="ms-validation-error"><p><?php
echo '' . $this->data['auth_error'];
?>
</p></div>
<?php
}
?>
<form id="ms-authorize-extra-form" method="post" class="ms-form">
<?php
foreach ($fields['hidden'] as $field) {
?>
<?php
MS_Helper_Html::html_element($field);
?>
<?php
}
?>
<?php
$this->render_cim_profiles();
?>
<div id="ms-authorize-card-wrapper">
<?php
_e('Credit Card Information', MS_TEXT_DOMAIN);
?>
<table class="form-table ms-form-table">
<tbody>
<tr>
<td>
<?php
MS_Helper_Html::html_element($fields['card']['card_num']);
?>
</td>
</tr>
<tr>
<td>
<?php
MS_Helper_Html::html_element($fields['card']['card_code']);
?>
</td>
</tr>
<tr>
<td>
<?php
MS_Helper_Html::html_element($fields['card']['exp_month']);
?>
<?php
MS_Helper_Html::html_element($fields['card']['exp_year']);
?>
</td>
</tr>
</tbody>
</table>
<?php
_e('Billing Information', MS_TEXT_DOMAIN);
?>
<table class="form-table ms-form-table">
<tbody>
<?php
foreach ($fields['billing'] as $field) {
?>
<tr>
<td>
<?php
MS_Helper_Html::html_element($field);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<?php
MS_Helper_Html::html_submit(array('value' => 'update_card' == $this->data['action'] ? __('Change card', MS_TEXT_DOMAIN) : __('Pay now', MS_TEXT_DOMAIN)));
?>
</form>
<div class="clear"></div>
</div>
<?php
$html = ob_get_clean();
echo '' . $html;
}