Browse Source

修改路径

pull/3/head
rekoe 9 years ago
parent
commit
57ef83c7eb
  1. 6
      src/main/resources/msg/zh_CN/MessageResources.properties
  2. 28
      src/main/webapp/WEB-INF/template/admin/project/config.ftl

6
src/main/resources/msg/zh_CN/MessageResources.properties

@ -118,10 +118,6 @@ top.frame.query=查询
top.frame.game=游戏 top.frame.game=游戏
left.date.now=时间 left.date.now=时间
left.gameConfig.sysLetter=系统邮件 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.reg=注册用户
top.frame.gmlog.newUserStatics=新用户综合统计 top.frame.gmlog.newUserStatics=新用户综合统计
top.frame.gmlog.userStatics=付费存留回收 top.frame.gmlog.userStatics=付费存留回收
@ -201,3 +197,5 @@ common.error.login.account=账号或密码错误
global.refresh=刷新 global.refresh=刷新
system.log.isopen=是否开启日志 system.log.isopen=是否开启日志
path.home=首页 path.home=首页
system.delete=删除
system.add=添加

28
src/main/webapp/WEB-INF/template/admin/project/config.ftl

@ -15,6 +15,34 @@
<@p.hidden id="conf.id" name="conf.id" value='${obj.id}' /> <@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="仓库路径" 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.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.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> </@p.form>
</div> </div>

Loading…
Cancel
Save