當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MS_Helper_Html::html_submit方法代碼示例

本文整理匯總了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;
    }
開發者ID:jsandlin85,項目名稱:SkylineSports,代碼行數:98,代碼來源:class-ms-gateway-authorize-view-form.php


注:本文中的MS_Helper_Html::html_submit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。