modifyFile.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <!DOCTYPE html>
  2. <html class="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Disconf - 分布式配置管理平台</title>
  6. <link rel="stylesheet" href="dep/bootstrap/css/bootstrap.css" />
  7. <!--[if lte IE 6]>
  8. <link rel="stylesheet" href="dep/bootstrap/css/bootstrap-ie6.css" />
  9. <![endif]-->
  10. <!--[if lte IE 7]>
  11. <link rel="stylesheet" href="dep/bootstrap/css/ie.css" />
  12. <![endif]-->
  13. <![if !IE]>
  14. <link rel="stylesheet" href="dep/bootstrap/css/noie.css" />
  15. <![endif]>
  16. <link rel="stylesheet" href="dep/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css" />
  17. <link rel="stylesheet" type="text/css" href="assets/css/project.css" />
  18. </head>
  19. <body>
  20. <div class="navbar navbar-fixed-top clearfix">
  21. <div class="navbar-inner zu-top">
  22. <div class="container">
  23. <button type="button" class="btn btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse">
  24. <span class="icon-bar"></span>
  25. <span class="icon-bar"></span>
  26. <span class="icon-bar"></span>
  27. </button>
  28. <div class="nav-collapse collapse">
  29. <a id="brand_url" href="/main.html" class="brand" style="margin-left:0px;padding:8px;"> <span class="zu-top-nav-link">Disconf</span> </a>
  30. <span class="span2"> </span>
  31. <form class="navbar-form pull-left">
  32. <button class="btn btn-warning" title="GitHub" type="button" style="" onclick="window.open('https://github.com/knightliao/disconf', '_blank');">
  33. <i class="icon-circle-arrow-up icon-white"></i> <b>GitHub</b>
  34. </button>
  35. </form>
  36. <ul class="nav pull-right" >
  37. <div class="login-yes" style="display:none;padding:10px;">
  38. <li style="display:inline;">
  39. <a href="#">
  40. <span class="zu-top-nav-link loginName" id="username"></span>
  41. </a>
  42. </li>
  43. &nbsp;&nbsp;&nbsp;&nbsp;
  44. <li style="display:inline;" class="dropdown">
  45. <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
  46. <span class="zu-top-nav-link">新建<b class="caret"></b></span>
  47. </a>
  48. <ul class="dropdown-menu">
  49. <li><a href="/newapp.html">新建APP</a></li>
  50. <li><a href="/newconfig_item.html">新建配置项</a></li>
  51. <li><a href="/newconfig_file.html">新建配置文件</a></li>
  52. </ul>
  53. </li>
  54. &nbsp;&nbsp;&nbsp;&nbsp;
  55. <li style="display:inline;">
  56. <a href="/modifypassword.html">
  57. <span class="zu-top-nav-link" >修改密码</span>
  58. </a>
  59. </li>
  60. &nbsp;&nbsp;&nbsp;&nbsp;
  61. <li style="display:inline;">
  62. <a href="#" id="signout">
  63. <span class="zu-top-nav-link" >退出</span>
  64. </a>
  65. </li>
  66. </div>
  67. <div class="login-no" style="padding:10px;">
  68. <li style="display:inline;">
  69. <a href="/login.html"><span class="zu-top-nav-link">登录</span></a>
  70. </li>
  71. </div>
  72. </ul>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div id="Wrapper" class="clearfix">
  78. <div id="Main" style="margin-top:50px;">
  79. <div class="container-fluid">
  80. <div class="row-fluid">
  81. <ul class="breadcrumb" style="background-color:#fff;">
  82. <li>
  83. <a href="/main.html">配置</a> /
  84. </li>
  85. <li>
  86. <span id="currentData"></span>
  87. </li>
  88. <li class="active">
  89. / 配置文件修改
  90. </li>
  91. </ul>
  92. </div>
  93. <div class="row-fluid">
  94. <div class="span4">
  95. <div class="well sidebar-nav" style="padding:10px;background-color:#fff">
  96. <ul id="sidebarcur" class="nav nav-list"></ul>
  97. </div>
  98. <!--/.well -->
  99. </div>
  100. <div class="span8">
  101. <div class="content" style="padding-bottom:15px;">
  102. <form id="form" action="/config/" method="post" enctype="multipart/form-data"
  103. class="private-form clearfix">
  104. <h2 class="autoPush-detail-title">配置文件修改</h2>
  105. <p class="private-item">
  106. <span class="private-item-key">APP id & 名称:</span>
  107. <span id="app" class="private-item-value">FFFF</span>
  108. </p>
  109. <p class="private-item">
  110. <span class="private-item-key">版本:</span>
  111. <span id="version" class="private-item-value">FFFF</span>
  112. </p>
  113. <p class="private-item">
  114. <span class="private-item-key">环境:</span>
  115. <span id="env" class="private-item-value">FFFF</span>
  116. </p>
  117. <p class="private-item">
  118. <span class="private-item-key">配置文件名:</span>
  119. <span id="key" class="private-item-value">FFFF</span>
  120. </p>
  121. <div class="private-item clearfix">
  122. <span style="float:left" class="private-item-key">原配置文件内容:</span>
  123. <pre style="float:left" id="oldvalue" class="private-item-value-pre">FFFF</pre>
  124. </div>
  125. <div class="private-item">
  126. <span class="private-item-key">修改方式:</span>
  127. <div class="btn-group">
  128. <a id="uploadChoiceA" class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  129. <span style="margin-right:2px;">选择上传方式</span><span class="caret"></span> </a>
  130. <ul class="dropdown-menu" id="uploadChoice">
  131. <li>
  132. <a href="#">输入文本</a>
  133. </li>
  134. <li>
  135. <a href="#">上传配置文件</a>
  136. </li>
  137. </ul>
  138. </div>
  139. </div>
  140. <div id="file_upload_choice" class="private-item clearfix hide">
  141. <span style="float:left" class="private-item-key">上传配置文件:</span>
  142. <div style="float:left;width: 300px" class="private-item-value-pre">
  143. <span class="sl-custom-file btn btn-success fileinput-button"
  144. style="overflow: hidden;cursor: pointer;">
  145. <div id="open_dialog_rar">
  146. 上传配置文件...
  147. </div>
  148. <input class="ui-input-file" type="file" name="myfilerar" id="myfilerar"
  149. style="width:120px;height:30px;">
  150. </span>
  151. <br/>
  152. <span id="error_rar" class="text-error error_rar"></span>
  153. <div style="color: #999;">
  154. 仅支持任意类型配置文件(.properties文件可支持自动注入, 非.properties文件则只是简单托管)
  155. <span id="status_rar" class="text-success"></span>
  156. </div>
  157. <div class="progress_rar">
  158. <div class="bar_rar"></div>
  159. <div class="percent_rar">
  160. 0%
  161. </div>
  162. </div>
  163. <div class="loading_rar"></div>
  164. </div>
  165. </div>
  166. <div id="text_upload_choice" class="hide">
  167. <div class="private-item">
  168. <span style="float:left" class="private-item-key">输入文本:</span>
  169. <textarea id="fileContent" type="text" class="private-item-value"
  170. style="min-width:500px;height:200px;"></textarea>
  171. </div>
  172. </div>
  173. <div id="error" class="error hide">
  174. 表单选项不能为空或填写格式错误!
  175. </div>
  176. </form>
  177. <div>
  178. <button id="file_submit" class="private-submit">
  179. 上传
  180. </button>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <!-- 详细信息单行模板-->
  189. <div id="tItemTpl" class="hide">
  190. <li style="font-size:13px;overflow-wrap: break-word;word-wrap: break-word;" class="{2}">
  191. <a href="{1}">{0}</a>
  192. </li>
  193. </div>
  194. <div id="footer">
  195. <div id="BottomMain">
  196. <div class="inner">
  197. <strong>
  198. <a href="#" class="dark">关于</a> &nbsp;
  199. </strong>
  200. <strong>
  201. <a href="#" class="dark">升级</a> &nbsp;
  202. </strong>
  203. <div class="sep10"></div>
  204. <span>分布式配置管理平台</span>
  205. <div class="sep10"></div>
  206. <span class="myfade">Theme by <a href="http://sov5.com/" target="_blank">Sov5搜索</a>,
  207. Power by 百度程序化广告交易工程平台技术部,
  208. Copyright &copy; 2014~2016 </span>
  209. </div>
  210. </div>
  211. </div>
  212. <script src="assets/js/jquery-1.11.0.js"></script>
  213. <script src="dep/jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js"></script>
  214. <script src="dep/bootstrap/js/bootstrap.js"></script>
  215. <script src="assets/js/util.js"></script>
  216. <script src="assets/js/common.js"></script>
  217. <script>
  218. var _hmt = _hmt || [];
  219. (function() {
  220. var hm = document.createElement("script");
  221. hm.src = "//hm.baidu.com/hm.js?c4578bda90040ec19ded56112b82246f";
  222. var s = document.getElementsByTagName("script")[0];
  223. s.parentNode.insertBefore(hm, s);
  224. })();
  225. </script>
  226. <script src="assets/js/modifycommon.js"></script>
  227. <script src="assets/js/jquery.form.js"></script>
  228. <script src="assets/js/modifyFile.js"></script>
  229. <script src="assets/js/footer.js"></script>
  230. </body>
  231. </html>