123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <include file="public@header"/>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li><a href="{:url('user/adminIndex/index')}">{:lang('USER_INDEXADMIN_INDEX')}</a></li>
- <li class="active"><a>新增会员</a></li>
- </ul>
- <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('user/adminIndex/add_post')}">
- <fieldset>
- <div class="form-group">
- <label for="input-maintain_switch" class="col-sm-2 control-label"><span class="form-required">*</span>选择国家/地区</label>
- <div class="col-md-6 col-sm-10">
- <select class="form-control" name="country_code">
- <option value="">--选择国家/地区--</option>
- <foreach name="country_list" item="vo">
- <option value="{$vo['tel']}">{$vo['name']}</option>
- </foreach>
- </select>
- </div>
- </div>
- <div class="form-group" >
- <label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>手机号</label>
- <div class="col-md-6 col-sm-10">
- <input type="text"class="form-control" id="input-user_login" name="user_login" value="">
- </div>
- </div>
-
-
- <div class="form-group" style="display: none;">
- <label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>密码</label>
- <div class="col-md-6 col-sm-10">
- <input type="password" class="form-control" id="input-user_pass" name="user_pass" value="qwe123" autocomplete = 'new-password' />
- </div>
- </div>
-
- <div class="form-group" >
- <label for="input-user_nicename" class="col-sm-2 control-label"><span class="form-required">*</span>昵称</label>
- <div class="col-md-6 col-sm-10">
- <input type="text"class="form-control" id="input-user_nicename" name="user_nicename" value="" maxlength="8"> <p class="help-block">最多8个字</p>
- </div>
- </div>
-
- <div class="form-group">
- <label for="input-avatar" class="col-sm-2 control-label">头像/封面</label>
- <div class="col-md-6 col-sm-10">
- <input type="hidden" name="avatar" id="thumbewm" value="{$userinfo['avatar']}">
- <a href="javascript:uploadOneImage('图片上传','#thumbewm');">
- <if condition="$userinfo['avatar'] neq ''">
- <img src="{:cmf_get_image_preview_url($userinfo['avatar'])}"
- id="thumbewm-preview"
- style="cursor: pointer;max-width:150px;max-height:150px;"/>
- <else/>
- <img src="__TMPL__/public/assets/images/default-thumbnail.png" id="thumbewm-preview" style="cursor: pointer;max-width:150px;max-height:150px;"/>
- </if>
- </a>
- <input type="button" class="btn btn-sm btn-cancel-thumbewm" value="取消图片">
- </div>
- </div>
- <div class="form-group">
- <label for="input-bg_img" class="col-sm-2 control-label">背景图</label>
- <div class="col-md-6 col-sm-10">
- <input type="hidden" name="bg_img" id="bg_img" value="{$userinfo['bg_img']}">
- <a href="javascript:uploadOneImage('图片上传','#bg_img');">
- <if condition="$userinfo['avatar'] neq ''">
- <img src="{:cmf_get_image_preview_url($userinfo['avatar'])}"
- id="bg_img-preview"
- style="cursor: pointer;max-width:150px;max-height:150px;"/>
- <else/>
- <img src="__TMPL__/public/assets/images/default-thumbnail.png" id="bg_img-preview" style="cursor: pointer;max-width:150px;max-height:150px;"/>
- </if>
- </a>
- <input type="button" class="btn btn-sm btn-cancel-bg_img" value="取消图片">
- <p class="help-block">如果头像上传背景图没上传,默认赋值头像;如果头像和背景图都没上传,赋值平台默认头像</p>
- </div>
- </div>
- <div class="form-group">
- <label for="input-sex" class="col-sm-2 control-label"><span class="form-required">*</span>性别</label>
- <div class="col-md-6 col-sm-10">
- <label class="radio-inline"><input type="radio" name="sex" value="1" checked>男</label>
- <label class="radio-inline"><input type="radio" name="sex" value="2" >女</label>
- </div>
- </div>
-
- <div class="form-group">
- <label for="input-signature" class="col-sm-2 control-label">个性签名</label>
- <div class="col-md-6 col-sm-10">
- <textarea class="form-control" rows="2" cols="20" id="input-signature" name="signature" style="height: 100px; width: 500px;" ></textarea>
- </div>
- </div>
-
-
- <div class="form-group">
- <label for="input-user_status" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('STATUS')}</label>
- <div class="col-md-6 col-sm-10">
- <label class="radio-inline"><input type="radio" name="user_status" value="1" checked="checked" >{:lang('ENABLED')}</label>
- <label class="radio-inline"><input type="radio" name="user_status" value="0" />{:lang('DISABLED')}</label>
- </div>
- </div>
-
-
-
- </fieldset>
-
-
- <div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
- <button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
- <a class="btn btn-default" href="{:url('user/adminIndex/index')}">{:lang('BACK')}</a>
- </div>
- </div>
-
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script type="text/javascript">
- (function(){
- $('.btn-cancel-thumbewm').click(function () {
- $('#thumbewm-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
- $('#thumbewm').val('');
- });
- $('.btn-cancel-bg_img').click(function () {
- $('#bg_img-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
- $('#bg_img').val('');
- });
-
- })()
- </script>
- </body>
- </html>
|