| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <!DOCTYPE html>
- <html lang="zh-CN" class="index_page">
- <head>
- {template header}
- <title>{echo $type=='reg'?'填写商家资料':'完善资料'} - {$mymps_global[SiteName]}</title>
- <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/global.css">
- <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/style.css">
- <link type="text/css" rel="stylesheet" href="{$mayimobile[mobiledomain]}/template/css/member_new.css">
- <script>window['current'] = '{echo $type=="reg"?"填写商家资料":"完善资料"}';</script>
- <script type="text/javascript">
- function chkSubmit() {
- if($("#mobile").val()==''||$("#mobile").val().length!=11){
- $("#mobile").focus();alert('请输入11位正确的手机号码');
- return false
- }else{
- 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})$/;
- if(!myreg.test($("#mobile").val())){
- $("#mobile").focus();alert('请输入正确的手机号码!');
- return false
- }
- }
- if($("#email").val()!=''){
- var reg=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
- if(!reg.test($("#email").val())){
- alert('请输入正确的电子邮箱地址!');
- $("#mobile").focus();
- return false
- }
- }
- <!--{if $row[if_corp] == 1}-->
- if($("#catid").val()==''){
- alert('请选择所属分类!');
- $("#catid").focus();
- return false
- }
- if($("#areaid").val()==''){
- alert('请选择所属地区!');
- $("#areaid").focus();
- return false
- }
- if($("#tname").val()==''){
- alert('请输入商家名称!');
- $("#tname").focus();
- return false
- }
- if($("#address").val()==''){
- alert('请输入联系地址!');
- $("#address").focus();
- return false
- }
- <!--{/if}-->
- }
- </script>
- </head>
- <body class="{$mymps_global[cfg_tpl_dir]}">
- <div class="wrapper">
- {template header_search}
-
- <div class="dl_nav">
- <span>
- <a href="index.php">首页</a>><a href="index.php?mod=member">会员中心</a>>{echo $type=='reg'?'填写商家资料':'完善资料'}
- </span>
- </div>
- <form name="form1" method="post" action="index.php?mod=member&action=editbase&dopost=1" onSubmit="return chkSubmit();">
- <input name="per_certify" value="{$row[per_certify]}" type="hidden">
- <div class="tabItem tab-cont" style="display:block;">
- <div class="inp_Itembox">
- <dl class="cfix">
- <dt>{echo $row[if_corp] == 1 ? '商家' : '用户';}头像</dt>
- <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>
- </dl>
- <dl class="cfix">
- <dt>用户ID</dt>
- <dd>{$row[id]}</dd>
- </dl>
- <dl class="cfix">
- <dt>用户名</dt>
- <dd>{$row[userid]}</dd>
- </dl>
- <dl class="cfix">
- <dt>会员类型</dt>
- <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>
- </dl>
- <dl class="cfix">
- <dt>电子邮件</dt>
- <dd><input id="email" type="text" name="email" value="{$row[email]}" placeholder="输入电子邮箱" /></dd>
- </dl>
- <dl class="cfix">
- <dt>联系QQ</dt>
- <dd><input id="qq" type="text" name="qq" value="{$row[qq]}" placeholder="输入QQ号码" /></dd>
- </dl>
- <dl class="cfix">
- <dt><font color="red">*</font>手机号码</dt>
- <dd><input {if $row[sj_certify] == 1}readonly{/if} id="mobile" type="text" name="mobile" value="{$row[mobile]}" placeholder="输入手机号码" /> <br>
- {if $row[sj_certify] == 0}
- <a href="index.php?mod=member&action=sjrz" style=" font-size:14px;color:#ff4500;">手机号尚未认证,认证后可发布信息,点我认证 »</a>
- {else}
- <a style=" font-size:14px;color:green;">该手机号已通过认证</a>
- {/if}
- </dd>
- </dl>
- </div>
- {if $row[if_corp] == 1}
- <input name="if_corp" value="1" type="hidden">
- <input name="type" value="reg" type="hidden">
- <input name="com_certify" value="{$row[com_certify]}" type="hidden">
- <div class="inp_Itembox">
- <dl class="cfix">
- <dt><font color="red">*</font>商家名称</dt>
- <dd><input id="tname" type="text" name="tname" value="{$row[tname]}" placeholder="输入商家名称" /></dd>
- </dl>
- <dl class="cfix">
- <dt><font color="red">*</font>关键词</dt>
- <dd><input id="keywords" type="text" name="keywords" value="{$row[keywords]}" placeholder="输入主营业务或店铺关键词" /></dd>
- </dl>
- <dl class="cfix">
- <dt><font color="red">*</font>所属行业</dt>
- <dd>
- {echo get_member_cat(explode(',',$row['catid']))}
- </dd>
- <div class="menu">
- <i></i>
- <i></i>
- <i></i>
- </div>
- </dl>
- <dl class="cfix">
- <dt><font color="red">*</font>所属地区</dt>
- <dd>
- <select id="areaid" name="areaid">
- <option value="">请选择所属地区</option>
- {echo cat_list('area',0,$row[areaid])}
- </select>
- </dd>
- <div class="menu">
- <i></i>
- <i></i>
- <i></i>
- </div>
- </dl>
- <dl class="cfix">
- <dt><font color="red">*</font>联系地址</dt>
- <dd><input id="address" type="text" name="address" value="{$row[address]}" placeholder="输入商家地址" /></dd>
- </dl>
- <dl class="cfix">
- <dt><font color="red">*</font>营业时间</dt>
- <dd>
- <input id="hourstime1" type="text" style="width:30px;" name="hourstime1" value="{echo $row[hourstime1]?$row[hourstime1]:'9'}"/>
- :
- <input id="hourstime2" type="text" style="width:30px;" name="hourstime2" value="{echo $row[hourstime2]?$row[hourstime2]:'00'}"/>
- -
- <input id="hourstime3" type="text" style="width:30px;" name="hourstime3" value="{echo $row[hourstime3]?$row[hourstime3]:'23'}"/>
- :
- <input id="hourstime4" type="text" style="width:30px;" name="hourstime4" value="{echo $row[hourstime4]?$row[hourstime4]:'00'}"/>
- </dd>
- </dl>
- <dl class="cfix">
- <dt>联系人</dt>
- <dd><input id="cname" type="text" name="cname" value="{$row[cname]}" placeholder="输入联系人" /></dd>
- </dl>
-
- <dl class="cfix">
- <dt>固定电话</dt>
- <dd><input id="tel" type="text" name="tel" value="{$row[tel]}" placeholder="输入固话号码" /></dd>
- </dl>
- <dl class="cfix">
- <dt>商家简介</dt>
- <dd><textarea id="introduce" name="introduce" class="qita" placeholder="输入商家简介" rows="6">{$row[introduce]}</textarea></dd>
- </dl>
- </div>
- {/if}
- </div>
- <button type="submit" class="save">{echo $type=='reg'?'填写完成,提交审核':'保存'}</button>
- </form>
- </div>
- {template footer}
- </body>
- </html>
|