member_editbase.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" class="index_page">
  3. <head>
  4. {template header}
  5. <title>{echo $type=='reg'?'填写商家资料':'完善资料'} - {$mymps_global[SiteName]}</title>
  6. <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/global.css">
  7. <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/style.css">
  8. <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/member_new.css">
  9. <script>window['current'] = '{echo $type=="reg"?"填写商家资料":"完善资料"}';</script>
  10. <script type="text/javascript">
  11. function chkSubmit() {
  12. if($("#mobile").val()==''||$("#mobile").val().length!=11){
  13. $("#mobile").focus();alert('请输入11位正确的手机号码');
  14. return false
  15. }else{
  16. var myreg=/^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/;
  17. if(!myreg.test($("#mobile").val())){
  18. $("#mobile").focus();alert('请输入正确的手机号码!');
  19. return false
  20. }
  21. }
  22. if($("#email").val()!=''){
  23. var reg=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
  24. if(!reg.test($("#email").val())){
  25. alert('请输入正确的电子邮箱地址!');
  26. $("#mobile").focus();
  27. return false
  28. }
  29. }
  30. <!--{if $row[if_corp] == 1}-->
  31. if($("#catid").val()==''){
  32. alert('请选择所属分类!');
  33. $("#catid").focus();
  34. return false
  35. }
  36. if($("#areaid").val()==''){
  37. alert('请选择所属地区!');
  38. $("#areaid").focus();
  39. return false
  40. }
  41. if($("#tname").val()==''){
  42. alert('请输入商家名称!');
  43. $("#tname").focus();
  44. return false
  45. }
  46. if($("#address").val()==''){
  47. alert('请输入联系地址!');
  48. $("#address").focus();
  49. return false
  50. }
  51. <!--{/if}-->
  52. }
  53. </script>
  54. </head>
  55. <body class="{$mymps_global[cfg_tpl_dir]}">
  56. <div class="wrapper">
  57. {template header_search}
  58. <div class="dl_nav">
  59. <span>
  60. <a href="index.php">首页</a>&gt;<a href="index.php?mod=member">会员中心</a>&gt;{echo $type=='reg'?'填写商家资料':'完善资料'}
  61. </span>
  62. </div>
  63. <form name="form1" method="post" action="index.php?mod=member&action=editbase&dopost=1" onSubmit="return chkSubmit();">
  64. <input name="per_certify" value="{$row[per_certify]}" type="hidden">
  65. <div class="tabItem tab-cont" style="display:block;">
  66. <div class="inp_Itembox">
  67. <dl class="cfix">
  68. <dt>{echo $row[if_corp] == 1 ? '商家' : '用户';}头像</dt>
  69. <dd><img src="{echo $row[prelogo] ? $row[prelogo] : 'template/images/center_ico.png'}" id="Image1" width="60" height="60" /> <a href="index.php?mod=member&action=upface" style="color:#36c; float:right;">修改</a></dd>
  70. </dl>
  71. <dl class="cfix">
  72. <dt>用户ID</dt>
  73. <dd>{$row[id]}</dd>
  74. </dl>
  75. <dl class="cfix">
  76. <dt>用户名</dt>
  77. <dd>{$row[userid]}</dd>
  78. </dl>
  79. <dl class="cfix">
  80. <dt>会员类型</dt>
  81. <dd> {if !$row[if_corp]}个人会员<a href="index.php?mod=member&action=upgradecorp" class="upjibie1" style="color:#36c; float:right;" onClick="return window.confirm('您确定申请升级成为商家会员吗?');">申请升级商家会员</a>{else}商家会员{/if}</dd>
  82. </dl>
  83. <dl class="cfix">
  84. <dt>电子邮件</dt>
  85. <dd><input id="email" type="text" name="email" value="{$row[email]}" placeholder="输入电子邮箱" /></dd>
  86. </dl>
  87. <dl class="cfix">
  88. <dt>联系QQ</dt>
  89. <dd><input id="qq" type="text" name="qq" value="{$row[qq]}" placeholder="输入QQ号码" /></dd>
  90. </dl>
  91. <dl class="cfix">
  92. <dt><font color="red">*</font>手机号码</dt>
  93. <dd><input {if $row[sj_certify] == 1}readonly{/if} id="mobile" type="text" name="mobile" value="{$row[mobile]}" placeholder="输入手机号码" /> <br>
  94. {if $row[sj_certify] == 0}
  95. <a href="index.php?mod=member&action=sjrz" style=" font-size:14px;color:#ff4500;">手机号尚未认证,认证后可发布信息,点我认证 &raquo;</a>
  96. {else}
  97. <a style=" font-size:14px;color:green;">该手机号已通过认证</a>
  98. {/if}
  99. </dd>
  100. </dl>
  101. </div>
  102. {if $row[if_corp] == 1}
  103. <input name="if_corp" value="1" type="hidden">
  104. <input name="type" value="reg" type="hidden">
  105. <input name="com_certify" value="{$row[com_certify]}" type="hidden">
  106. <div class="inp_Itembox">
  107. <dl class="cfix">
  108. <dt><font color="red">*</font>商家名称</dt>
  109. <dd><input id="tname" type="text" name="tname" value="{$row[tname]}" placeholder="输入商家名称" /></dd>
  110. </dl>
  111. <dl class="cfix">
  112. <dt><font color="red">*</font>关键词</dt>
  113. <dd><input id="keywords" type="text" name="keywords" value="{$row[keywords]}" placeholder="输入主营业务或店铺关键词" /></dd>
  114. </dl>
  115. <dl class="cfix">
  116. <dt><font color="red">*</font>所属行业</dt>
  117. <dd>
  118. {echo get_member_cat(explode(',',$row['catid']))}
  119. </dd>
  120. <div class="menu">
  121. <i></i>
  122. <i></i>
  123. <i></i>
  124. </div>
  125. </dl>
  126. <dl class="cfix">
  127. <dt><font color="red">*</font>所属地区</dt>
  128. <dd>
  129. <select id="areaid" name="areaid">
  130. <option value="">请选择所属地区</option>
  131. {echo cat_list('area',0,$row[areaid])}
  132. </select>
  133. </dd>
  134. <div class="menu">
  135. <i></i>
  136. <i></i>
  137. <i></i>
  138. </div>
  139. </dl>
  140. <dl class="cfix">
  141. <dt><font color="red">*</font>联系地址</dt>
  142. <dd><input id="address" type="text" name="address" value="{$row[address]}" placeholder="输入商家地址" /></dd>
  143. </dl>
  144. <dl class="cfix">
  145. <dt><font color="red">*</font>营业时间</dt>
  146. <dd>
  147. <input id="hourstime1" type="text" style="width:30px;" name="hourstime1" value="{echo $row[hourstime1]?$row[hourstime1]:'9'}"/>
  148. :
  149. <input id="hourstime2" type="text" style="width:30px;" name="hourstime2" value="{echo $row[hourstime2]?$row[hourstime2]:'00'}"/>
  150. -
  151. <input id="hourstime3" type="text" style="width:30px;" name="hourstime3" value="{echo $row[hourstime3]?$row[hourstime3]:'23'}"/>
  152. :
  153. <input id="hourstime4" type="text" style="width:30px;" name="hourstime4" value="{echo $row[hourstime4]?$row[hourstime4]:'00'}"/>
  154. </dd>
  155. </dl>
  156. <dl class="cfix">
  157. <dt>联系人</dt>
  158. <dd><input id="cname" type="text" name="cname" value="{$row[cname]}" placeholder="输入联系人" /></dd>
  159. </dl>
  160. <dl class="cfix">
  161. <dt>固定电话</dt>
  162. <dd><input id="tel" type="text" name="tel" value="{$row[tel]}" placeholder="输入固话号码" /></dd>
  163. </dl>
  164. <dl class="cfix">
  165. <dt>商家简介</dt>
  166. <dd><textarea id="introduce" name="introduce" class="qita" placeholder="输入商家简介" rows="6">{$row[introduce]}</textarea></dd>
  167. </dl>
  168. </div>
  169. {/if}
  170. </div>
  171. <button type="submit" class="save">{echo $type=='reg'?'填写完成,提交审核':'保存'}</button>
  172. </form>
  173. </div>
  174. {template footer}
  175. </body>
  176. </html>