| 1 |
<?php |
| 2 |
$usces_entries = $this->cart->get_entry(); |
| 3 |
global $member_regmode;//20110715ysk 0000203 |
| 4 |
$member_regmode = isset( $_SESSION['usces_entry']['member_regmode'] ) ? $_SESSION['usces_entry']['member_regmode'] : 'none'; |
| 5 |
//global $usces_entries, $usces_entries; |
| 6 |
//usces_get_entries(); |
| 7 |
//usces_get_member_regmode(); |
| 8 |
|
| 9 |
$html = '<div id="customer-info"> |
| 10 |
|
| 11 |
<div class="usccart_navi"> |
| 12 |
<ol class="ucart"> |
| 13 |
<li class="ucart usccart">' . __('1.Cart','usces') . '</li> |
| 14 |
<li class="ucart usccustomer usccart_customer">' . __('2.Customer Info','usces') . '</li> |
| 15 |
<li class="ucart uscdelivery">' . __('3.Deli. & Pay.','usces') . '</li> |
| 16 |
<li class="ucart uscconfirm">' . __('4.Confirm','usces') . '</li> |
| 17 |
</ol> |
| 18 |
</div>'; |
| 19 |
|
| 20 |
$html .= '<div class="header_explanation">'; |
| 21 |
$header = ''; |
| 22 |
$html .= apply_filters('usces_filter_customer_page_header', $header); |
| 23 |
$html .= '</div>'; |
| 24 |
|
| 25 |
$html .= '<div class="error_message">' . $this->error_message . '</div>'; |
| 26 |
|
| 27 |
if(usces_is_membersystem_state()){ |
| 28 |
$html .= '<h5>' . __('The member please enter at here.','usces') . '</h5> |
| 29 |
<form action="' . USCES_CART_URL . '" method="post" name="customer_loginform" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 30 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="customer_form"> |
| 31 |
<tr> |
| 32 |
<th scope="row">'.__('e-mail adress', 'usces').'</th> |
| 33 |
<td><input name="loginmail" id="mailaddress1" type="text" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '" /></td> |
| 34 |
</tr> |
| 35 |
<tr> |
| 36 |
<th scope="row">'.__('password', 'usces').'</th> |
| 37 |
<td><input name="loginpass" id="mailaddress1" type="password" value="" /></td> |
| 38 |
</tr> |
| 39 |
</table> |
| 40 |
<div class="send"><input name="customerlogin" type="submit" value="'.__(' Next ', 'usces').'" /></div> |
| 41 |
</form> |
| 42 |
<h5>' . __('The nonmember please enter at here.','usces') . '</h5>'; |
| 43 |
} |
| 44 |
|
| 45 |
$html .= '<form action="' . USCES_CART_URL . '" method="post" name="customer_form" onKeyDown="if (event.keyCode == 13) {return false;}"> |
| 46 |
<table border="0" cellpadding="0" cellspacing="0" class="customer_form"> |
| 47 |
<tr> |
| 48 |
<th scope="row"><em>' . __('*', 'usces') . '</em>'.__('e-mail adress', 'usces').'</th>'; |
| 49 |
|
| 50 |
$html .= '<td colspan="2"><input name="customer[mailaddress1]" id="mailaddress1" type="text" value="' . esc_attr($usces_entries['customer']['mailaddress1']) . '" /></td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<th scope="row"><em>' . __('*', 'usces') . '</em>'.__('e-mail adress', 'usces').'('.__('Re-input', 'usces').')</th> |
| 54 |
<td colspan="2"><input name="customer[mailaddress2]" id="mailaddress2" type="text" value="' . esc_attr($usces_entries['customer']['mailaddress2']) . '" /></td> |
| 55 |
</tr>'; |
| 56 |
|
| 57 |
if(usces_is_membersystem_state()){ |
| 58 |
$html .= '<tr><th scope="row">'; |
| 59 |
if( $member_regmode == 'editmemberfromcart' ){ |
| 60 |
$html .= '<em>' . __('*', 'usces') . '</em>'; |
| 61 |
} |
| 62 |
$html .= __('password', 'usces').'</th> |
| 63 |
<td colspan="2"><input name="customer[password1]" style="width:100px" type="password" value="' . esc_attr($usces_entries['customer']['password1']) . '" />'; |
| 64 |
if( $member_regmode != 'editmemberfromcart' ){ |
| 65 |
$html .= __('When you enroll newly, please fill it out.', 'usces'); |
| 66 |
} |
| 67 |
$html .= '</td></tr>'; |
| 68 |
$html .= '<tr><th scope="row">'; |
| 69 |
if( $member_regmode == 'editmemberfromcart' ){ |
| 70 |
$html .= '<em>' . __('*', 'usces') . '</em>'; |
| 71 |
} |
| 72 |
$html .= __('Password (confirm)', 'usces').'</th> |
| 73 |
<td colspan="2"><input name="customer[password2]" style="width:100px" type="password" value="' . esc_attr($usces_entries['customer']['password2']) . '" />'; |
| 74 |
if( $member_regmode != 'editmemberfromcart' ){ |
| 75 |
$html .= __('When you enroll newly, please fill it out.', 'usces'); |
| 76 |
} |
| 77 |
$html .= '</td></tr>'; |
| 78 |
} |
| 79 |
|
| 80 |
$html .= uesces_addressform( 'customer', $usces_entries ); |
| 81 |
|
| 82 |
$html .= '</table> |
| 83 |
<input name="member_regmode" type="hidden" value="' . $member_regmode . '" /> |
| 84 |
<input name="member_id" type="hidden" value="' . usces_memberinfo('ID', 'return') . '" /> |
| 85 |
|
| 86 |
<div class="send">'; |
| 87 |
$html .= usces_get_customer_button( 'return' ); |
| 88 |
$html .= '</div> |
| 89 |
</form>'; |
| 90 |
|
| 91 |
$html .= '<div class="footer_explanation">'; |
| 92 |
$footer = ''; |
| 93 |
$html .= apply_filters('usces_filter_customer_page_footer', $footer); |
| 94 |
$html .= '</div>'; |
| 95 |
|
| 96 |
$html .= '</div>'; |
| 97 |
?> |
| 98 |
|