Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

set_servername.htm 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {include file="public/layout" /}
  2. <body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;min-width: auto;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" style="min-width: auto;box-shadow:none; padding-bottom: 0px;">
  6. <!-- 操作说明 -->
  7. <div id="explanation" class="explanation">
  8. <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
  9. <h4 title="提示相关设置操作时应注意的要点">提示</h4>
  10. <span title="收起提示" id="explanationZoom" style="display: block;"></span>
  11. </div>
  12. <ul>
  13. <li>请每一行设置一个服务器名称。</li>
  14. </ul>
  15. </div>
  16. <form class="form-horizontal" id="post_form" method="post" onsubmit="return false;">
  17. <div class="ncap-form-default">
  18. <div class="ncap-form-default">
  19. <dl class="row">
  20. <dt class="tit">
  21. <label for="2">服务器列表</label>
  22. </dt>
  23. <dd class="opt" style="width: auto;">
  24. <textarea name="servername" style="height: 150px;" id="2" cols="45" rows="20">{$servernames}</textarea>
  25. <span class="err"></span>
  26. <p class="notic"></p>
  27. </dd>
  28. </dl>
  29. <div class="bot" style="padding-bottom:0px;">
  30. <a href="JavaScript:void(0);" data-url="{:url('Download/set_servername')}" onclick="checkForm(this);" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  31. <a href="javascript:history.go(-1)" style="font-size: 12px;padding-left: 10px;top: 30px">[返回]</a>
  32. </div>
  33. </div>
  34. </div>
  35. </form>
  36. </div>
  37. <script type="text/javascript">
  38. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  39. function checkForm(th)
  40. {
  41. var url = $(th).attr('data-url');
  42. layer_loading('正在处理');
  43. $.ajax({
  44. url: url,
  45. type: 'POST',
  46. dataType: 'JSON',
  47. data: $('#post_form').serialize(),
  48. success: function(res){
  49. layer.closeAll();
  50. if (res.code == 1) {
  51. showSuccessMsg(res.msg, 1000, function(){
  52. window.history.back();
  53. });
  54. } else {
  55. showErrorAlert(res.msg);
  56. }
  57. return false;
  58. },
  59. error: function(e){
  60. layer.closeAll();
  61. showErrorAlert(e.responseText);
  62. return false;
  63. }
  64. });
  65. }
  66. </script>
  67. {include file="public/footer" /}