<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>头像库</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="">
  <meta name="description" content="">
{aspbbs:template src=common/link}

<style>
.note-editing-area img{max-width:10%;}
</style>
</head>
<body>

{aspbbs:template src=common/header_user}

<div class="layui-container fly-marginTop" id="LAY_brain">
  <div class="fly-panel" pad20 style="padding-top: 5px;">
    <!--<div class="fly-none">没有权限</div>-->
	
    <div class="layui-form-pane">
		<input type="hidden" name="TopicID" id="TopicID" value=""/>
      <div class="layui-tab layui-tab-brief" lay-filter="user">
        <ul class="layui-tab-title">
          <li class="layui-this" lay-id="add">添加新库</li>
		  <li lay-id="set">设置头像库</li>
        </ul>
        <div class="layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
		
          <div class="layui-tab-item layui-show">
				<form class="layui-form" action="{aspbbs:indexprefix}Manage_addAvatarType" method="post">
              <div class="layui-row layui-col-space15 layui-form-item">
                <div class="layui-col-md3">
                  <label for="L_value" class="layui-form-label">文件夹名</label>
                  <div class="layui-input-block">
                    <input type="text" id="L_value" name="value" required lay-verify="required" placeholder="数字名英文字母的组合" autocomplete="off" class="layui-input">
                  </div>
                </div>
                <div class="layui-col-md3">
                  <label for="L_title" class="layui-form-label">说明</label>
                  <div class="layui-input-block">
                    <input type="text" id="L_title" name="title" required lay-verify="required" autocomplete="off" class="layui-input">
                    <!-- <input type="hidden" name="id" value="{{d.edit.id}}"> -->
                  </div>
                </div>
              </div>
              <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                  <textarea id="L_content" name="Content" required lay-verify="required" placeholder="将头像复制到这里即可，写文字或其他没用" class="layui-textarea" 
				  style="height:{if:checkwap()}20rem{else}300px{end if};" 
				  toolbar="[['history', ['undo', 'redo']],['insert', ['picture','codeview']]]"
				  ></textarea>
				  {aspbbs:summernote}
                </div>
              </div>
              <div class="layui-form-item">
                <button class="layui-btn" lay-filter="*" alert="alert" lay-submit onclick="form.target='_self';form.action='{aspbbs:indexprefix}Manage_addAvatarType'">发布</button>
              </div>
            
			</form>
          </div>
		  
		  
        <div class="layui-tab-item">
          <form method="post" class="layui-form" action="{aspbbs:indexprefix}Manage_editAvatarType">
			 <div class="fly-msg" style="margin-bottom: 10px;">
				头像库路径在<span style="color:red">{aspbbs:func:objCMS.getTplFolderPath()}/res/images/</span>，需要设置为头像库的文件夹给其命名，不设置的留空即可。头像库的头像名称为<span style="color:red">N.jpg</span>，N值从0开始，如0.jpg、1.jpg，……
			</div>
			
			{aspbbs:file type=folder path={aspbbs:func:objCMS.getTplFolderPath()}/res/images num=20}
            <div class="layui-form-item">
              <label for="L_city" class="layui-form-label">[file:name]</label>
              <div class="layui-input-inline">
				<input type="hidden" name="value[file:i]" value="[file:name]" />
                <input type="text" name="title[file:i]" autocomplete="off" value='[file:name func=POP_MVC.tpl_vars("avatar")(@me)]' class="layui-input" />
              </div>
            </div>
			{/aspbbs:file}
            <div class="layui-form-item">
              <button class="layui-btn" key="set-mine" lay-filter="*" alert="alert" lay-submit>确认修改</button>
            </div>
		 </form>
          </div>
		  

        </div>
      </div>
    </div>
  </div>
</div>

{aspbbs:template src=self/footer}
{if: "{aspbbs:guestConfig.ThreadVerify}"="1" AND $_S.IsAdmin<>1 AND "{aspbbs:guestConfig.VerifyType}"="0"}
{aspbbs:template src=common/slideuplock-js}
{end if}
</body>
</html>