You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			104 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			HTML
		
	
	
		
			Executable File
		
	
	
	
	
| {extend name="base" /}
 | |
| {block name="css"}
 | |
| <link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v={$v}" />
 | |
| {/block}
 | |
| {block name="js"}
 | |
| <script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v={$v}'></script>
 | |
| <script src="__ADMIN__/users/users.js?v={$v}" type="text/javascript"></script>
 | |
| {/block}
 | |
| {block name="main"}
 | |
| <div class="l-loading" style="display: block" id="wst-loading"></div>
 | |
| <form id="userForm" autocomplete="off" class='layui-form'>
 | |
| <table class='wst-form wst-box-top'>
 | |
|   <tr>
 | |
|       <th width='150'>账号<font color='red'>*</font>:</th>
 | |
|           <td width='370'>
 | |
|             {if ($data['userId']>0)}
 | |
|               {$data['loginName']}
 | |
|             {else /}
 | |
|               <input type="text" class="ipt" id="loginName" name="loginName"  />
 | |
|             {/if}
 | |
|               
 | |
|           </td>
 | |
|           <td rowspan="5">
 | |
|             <div id="preview" >
 | |
|                 <img src="__IMGURL__/{if $data['userPhoto']==''}{:WSTConf('CONF.userLogo')}{else}{$data['userPhoto']}{/if}"  height="150" />
 | |
|             </div>
 | |
|             <div id='adFilePicker' style="margin-left:40px;">上传头像</div>
 | |
|             <input type="hidden" id="userPhoto" class="ipt" />
 | |
|             <span id='uploadMsg'></span>
 | |
| 
 | |
|           </td>
 | |
|        </tr>
 | |
|        {if ((int)$data['userId']==0)}
 | |
|          <tr>
 | |
|             <th>密码<font color='red'>*</font>:</th>
 | |
|             <td><input type="password" id='loginPwd' class='ipt' maxLength='20' value='66666666' data-rule="登录密码: required;length[6~20]" data-target="#msg_loginPwd"/>
 | |
|                <span id='msg_loginPwd'>(默认为66666666)</span>
 | |
|              </td>
 | |
|          </tr>
 | |
|        {/if}
 | |
|        <tr>
 | |
|           <th>用户名:</th>
 | |
|           <td>
 | |
|               <input type="text" class="ipt" id="userName" name="userName" value="{$data['userName']}" />
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>性别<font color='red'>*</font>:</th>
 | |
|           <td>
 | |
|             <label><input type="radio" class="ipt" id="userSex" name="userSex" <?=($data['userSex']==1)?'checked':'';?> value="1" title='男'/></label>
 | |
|             <label><input type="radio" class="ipt" id="userSex" name="userSex" <?=($data['userSex']==2)?'checked':'';?> value="2" title='女'/></label>
 | |
|             <label><input type="radio" class="ipt" id="userSex" name="userSex" <?=($data['userSex']==0)?'checked':'';?> value="0" title='保密'/></label>
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>手机号码:</th>
 | |
|           <td>
 | |
|               <input type="text" class="ipt" id="userPhone" name="userPhone" value="{$data['userPhone']}" />
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>电子邮箱:</th>
 | |
|           <td>
 | |
|               <input type="text" class="ipt" id="userEmail" name="userEmail" value="{$data['userEmail']}" />
 | |
|           </td>
 | |
|        </tr>
 | |
|        <tr>
 | |
|           <th>QQ:</th>
 | |
|           <td>
 | |
|               <input type="text" class="ipt" id="userQQ" name="userQQ" value="{$data['userQQ']}" />
 | |
|           </td>
 | |
|        </tr>
 | |
|         <tr>
 | |
|           <th>是否允许举报<font color='red'>*</font>:</th>
 | |
|           <td>
 | |
|             <label><input type="radio" class="ipt" id="isInform" name="isInform" <?=($data['isInform']==1)?'checked':'';?> value="1" title='允许举报商品'/></label>
 | |
|             <label><input type="radio" class="ipt" id="isInform" name="isInform" <?=($data['isInform']==0)?'checked':'';?> value="0" title='禁止举报商品'/></label>
 | |
|           </td>
 | |
|        </tr>
 | |
|        {if ((int)$data['userId']==0)}
 | |
|          <tr>
 | |
|             <th>会员状态<font color='red'>*</font>:</th>
 | |
|             <td>
 | |
|                 <input type="checkbox" style='width:80px;' class="ipt" checked name="userStatus" id='userStatus' lay-skin="switch" title="开关" value='1' lay-text="启用|停用">
 | |
|             </td>
 | |
|          </tr>
 | |
|        {/if}
 | |
|   
 | |
|   <tr>
 | |
|      <td colspan='2' align='center'>
 | |
|        <input type="hidden" name="id" id="userId" class="ipt" value="<?=(int)$data['userId']?>" />
 | |
|        <button type="submit" class="btn btn-primary btn-mright" ><i class="fa fa-check"></i>提交</button> 
 | |
|         <button type="button" class="btn" onclick="javascript:history.go(-1)"><i class="fa fa-angle-double-left"></i>返回</button>
 | |
|      </td>
 | |
|   </tr>
 | |
| </table>
 | |
| </form>
 | |
| <script>
 | |
| $(function(){editInit()});
 | |
| </script>
 | |
| 
 | |
| {/block}
 | |
| 
 |