cfs 9 years ago
commit 63b1c4cbfa

@ -118,10 +118,6 @@ top.frame.query=查询
top.frame.game=游戏
left.date.now=时间
left.gameConfig.sysLetter=系统邮件
top.frame.gmlog.guid=强制引导存留
top.frame.gmlog.useItem=使用道具
top.frame.gmlog.coinstat=金币统计
top.frame.gmlog.roleRelate=角色信息
top.frame.gmlog.reg=注册用户
top.frame.gmlog.newUserStatics=新用户综合统计
top.frame.gmlog.userStatics=付费存留回收
@ -201,3 +197,5 @@ common.error.login.account=账号或密码错误
global.refresh=刷新
system.log.isopen=是否开启日志
path.home=首页
system.delete=删除
system.add=添加

@ -15,6 +15,34 @@
<@p.hidden id="conf.id" name="conf.id" value='${obj.id}' />
<@p.text width="30" label="仓库路径" id="conf.repositoryPath" name="conf.repositoryPath" value="${obj.repositoryPath}" maxlength="100" class="required" required="true"/><@p.tr/>
<@p.text width="30" label="访问url" id="conf.domainPath" name="conf.domainPath" value="${obj.domainPath}" maxlength="100" class="required" required="true"/><@p.tr/>
<@p.td label="默认开启的文件夹" colspan="6">
<table border="0" id="attachTable">
<tr colspan="3">
<td align="center"><input type="button" value="<@s.m 'system.add'/>" onclick="addAttachLine();" class="add"></td>
<td align="center" colspan="2">默认开启的文件夹</td>
</tr>
<#list obj.dirs as item>
<#assign index = item_index>
<tr id="attachTr${index}">
<td align="center"><a onclick="$('#attachTr${index}').remove();" href="javascript:void(0);" class="pn-opt"><@s.m "system.delete"/></a></td>
<td align="center"><input type="text" id="conf.dirs[${index}]" name="conf.dirs[${index}]" value="${item}" /></td>
</tr>
</#list>
</table>
</@p.td><@p.tr/>
<textarea style="display:none" id="attachTr">
<tr id="attachTr{0}" colspan="3">
<td align="center"><a onclick="$('#attachTr{0}').remove();" href="javascript:void(0);" class="pn-opt"><@s.m "system.delete"/></a></td>
<td align="center" colspan="2"><input type="text" id="conf.dirs[{0}]" name="conf.dirs[{0}]"/></td>
</tr>
</textarea>
<script type="text/javascript">
var attachIndex =${obj.dirs?size};
var attachTpl = $.format($("#attachTr").val());
function addAttachLine() {
$('#attachTable').append(attachTpl(attachIndex++));
}
</script>
<@p.td colspan="1"><@p.submit code="global.submit" onclick="Cms.updateAll('conf/update','conf.rk');"/> &nbsp; <@p.reset code="global.reset"/></@p.td><@p.tr/>
</@p.form>
</div>

Loading…
Cancel
Save