info.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. {$breadcrumb2}
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. {$crumbs}
  9. </small>
  10. </h1>
  11. </div>
  12. <ul class="nav nav-tabs">
  13. <li class="active"><a href="#tab-member" data-toggle="tab">会员资料</a></li>
  14. <li><a href="#tab-shipping" data-toggle="tab">收货地址</a></li>
  15. </ul>
  16. <form class="form-horizontal" id="validation-form" method="post" action='{$action}'>
  17. <div class="tab-content">
  18. <notempty name="Think.get.id">
  19. <input name="member_id" type="hidden" value="{$Think.get.id}" />
  20. </notempty>
  21. <div class="tab-pane active" id="tab-member">
  22. <table class="table table-binfoed">
  23. <tr>
  24. <td>ID</td>
  25. <td>{$data.info.member_id}</td>
  26. </tr>
  27. <tr>
  28. <td>用户名</td>
  29. <td>{$data.info.uname}</td>
  30. </tr>
  31. <tr>
  32. <td>密码</td>
  33. <td><input id="pwd" name="pwd" type="text" style="width:400px;" value="<?php echo think_ucenter_decrypt($data['info']['pwd'],C('PWD_KEY')); ?>" /></td>
  34. </tr>
  35. <tr>
  36. <td>电子邮件</td>
  37. <td><input name="email" type="text" style="width:400px;" value="{$data.info.email|default=''}" /></td>
  38. </tr>
  39. <tr>
  40. <td>联系电话</td>
  41. <td><input name="telephone" type="text" style="width:400px;" value="{$data.info.telephone|default=''}" /></td>
  42. </tr>
  43. <tr>
  44. <td>登录IP地址</td>
  45. <td>{$data.info.ip_region}</td>
  46. </tr>
  47. <tr>
  48. <td>登录次数</td>
  49. <td>{$data.info.login_count}</td>
  50. </tr>
  51. <tr>
  52. <td>创建时间</td>
  53. <td>{$data.info.create_time|toDate='Y/m/d H:i:s'}</td>
  54. </tr>
  55. <tr>
  56. <td>最近登录时间</td>
  57. <td>{$data.info.last_login_time|toDate='Y/m/d H:i:s'}</td>
  58. </tr>
  59. <tr>
  60. <td>状态</td>
  61. <td>
  62. <label class="radio-inline">
  63. <input type="radio" checked="checked" value="1" name="status">启用</label>
  64. <label class="radio-inline">
  65. <input type="radio" value="0" name="status">停用</label>
  66. </td>
  67. </tr>
  68. </table>
  69. <div class="form-group">
  70. <div style="margin-left:20px;">
  71. <input name="send" type="submit" value="提交" class="btn btn-primary" />
  72. </div>
  73. </div>
  74. </div>
  75. <div class="tab-pane" id="tab-shipping">
  76. <table class="table table-binfoed">
  77. <volist name="data.address" id="vo">
  78. <tr>
  79. <td>收货人姓名: {$vo.name}</td>
  80. <td>所在地:</td>
  81. <td>
  82. <?php echo get_area_name($vo['province_id']); ?>,
  83. <?php echo get_area_name($vo['city_id']); ?>,
  84. <?php echo get_area_name($vo['country_id']); ?>
  85. </td>
  86. <td>地址:</td>
  87. <td>{$vo.address}</td>
  88. <td>联系电话:</td>
  89. <td>{$vo.telephone}</td>
  90. </tr>
  91. </volist>
  92. </table>
  93. </div>
  94. </div>
  95. </form>
  96. </block>
  97. <block name="javascript">
  98. <script>
  99. $(function(){
  100. <present name="Think.get.id">
  101. Oscshop.setValue("status", {$data.info.status|default=1});
  102. </present>
  103. $('.btn').click(function(){
  104. if($('#pwd').val()==''){
  105. alert('密码必填');
  106. return false;
  107. }
  108. if($('#pwd').val().length<6){
  109. alert('密码长度必须大于等于6位!!');
  110. return false;
  111. }
  112. });
  113. });
  114. </script>
  115. </block>