リビジョン 304d523f app/View/top/contact.ctp
app/View/top/contact.ctp | ||
---|---|---|
28 | 28 |
echo $this->Form->input('email', |
29 | 29 |
array('placeholder'=>'半角英数字', |
30 | 30 |
'label' => 'メールアドレス', |
31 |
'style'=>'ime-mode: disabled;', |
|
31 | 32 |
'maxlength' => '255', |
32 | 33 |
'type' => 'email')); |
33 | 34 |
echo $this->Form->input('email_confirm', |
34 | 35 |
array('placeholder'=>'半角英数字', |
35 | 36 |
'label' => 'メールアドレス(確認用)', |
37 |
'style'=>'ime-mode: disabled;', |
|
36 | 38 |
'maxlength' => '255', |
37 | 39 |
'type' => 'email')); |
38 | 40 |
echo $this->Form->input('postcode', array('label'=>'郵便番号(ハイフンなし)', |
39 | 41 |
'onkeyup'=>'zipsearch()', |
40 |
'placeholder'=>'半角数字', |
|
42 |
'placeholder'=>'0000000', |
|
43 |
'style'=>'ime-mode: disabled;', |
|
44 |
'type' => 'text' |
|
41 | 45 |
)); |
42 | 46 |
echo $this->Form->input('prefecture', array('label'=>'ご住所', |
43 | 47 |
'placeholder'=>'例) ○○県 ○○市○○町 ○丁目 ○‐○', |
... | ... | |
48 | 52 |
)); |
49 | 53 |
echo $this->Form->input('tel', |
50 | 54 |
array('placeholder'=>'半角数字(00-0000-0000)', |
55 |
'style'=>'ime-mode: disabled;', |
|
51 | 56 |
'label' => 'お電話番号', |
52 | 57 |
'maxlength' => '13', |
53 | 58 |
'type' => 'text')); |
... | ... | |
66 | 71 |
<a href="/top/index"><p class="button btn_back01"></p></a> |
67 | 72 |
<?php echo $this->Form->submit('',array('class'=>'button btn_check01')); ?> |
68 | 73 |
<?php echo $this->Form->end(); ?> |
69 |
<!-- <a href="contact_check.html"><p class="button btn_check01"></p></a> |
|
70 |
--> </section> |
|
74 |
</section> |
|
71 | 75 |
</article> |
72 | 76 |
</main> |
73 | 77 |
|
... | ... | |
85 | 89 |
// 成功した場合 |
86 | 90 |
success: function(data){ |
87 | 91 |
console.log('data',data); |
88 |
// console.log(data.Zipcode.cho); |
|
89 | 92 |
$('input#ContactValidatePrefecture').val(data[0].zipcodes.ken+' '+data[0].zipcodes.shi_ku+' '+data[0].zipcodes.cho); |
90 |
// $('input#UserAddress').val(data.Zipcode.shi_ku+' '+data.Zipcode.cho); |
|
91 |
//$('input#UserAddress').val(data.Zipcode.cho); |
|
92 | 93 |
} |
93 |
// , |
|
94 |
// // // 通信できなかった場合(オプション) |
|
95 |
// // error: function(){ |
|
96 |
// // alert('なんかミスってる..'); |
|
97 |
// } |
|
98 | 94 |
}); |
99 | 95 |
// }); |
100 | 96 |
}; |
他の形式にエクスポート: Unified diff