setYcsj.htm 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>无标题文档</title>
  6. <script type="text/javascript">
  7. function saveYcsj() {
  8. if (validator(ycsjForm)) {
  9. huimv.showProcessModel("保存数据中");
  10. jQuery("#ycsjForm").ajaxSubmit({
  11. dataType : "json",
  12. success : function(data) {
  13. huimv.hideProcessModel();
  14. // 保存成功
  15. if (data.returnCode > 0) {
  16. // 关闭对话框
  17. Dialogs.close();
  18. }
  19. },
  20. error : function(data) {
  21. huimv.showError(data.responseText);
  22. huimv.hideProcessModel();
  23. }
  24. });
  25. }
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <div id="htmlError"></div>
  31. <form name="ycsjForm" id="ycsjForm" method="post" action="saveYcsj.htm">
  32. <input type="hidden" name="daJqda.id" value="$!daJqda.id" />
  33. <table width="99%" align="center" cellpadding="0" cellspacing="0" class="tabline">
  34. <tr class="listm">
  35. <td colspan="2">配置信息</td>
  36. </tr>
  37. <tr>
  38. <td class="tdcolor1">当前版本</td>
  39. #if ("$!type" == "1")
  40. <td class="tdcolor2">$!daJqda.dqbb</td>
  41. #elseif ("$!type" == "2")
  42. <td class="tdcolor2">$!daJqda.hkdqbb</td>
  43. #elseif ("$!type" == "3")
  44. <td class="tdcolor2">$!daJqda.lcdqbb</td>
  45. #else
  46. <td class="tdcolor2"></td>
  47. #end
  48. </tr>
  49. <tr>
  50. <td class="tdcolor1">目标版本<span class="tip_star">*</span></td>
  51. #if ("$!type" == "1")
  52. <td class="tdcolor2">
  53. <input type="text" name="daJqda.mbbb" value="$!daJqda.mbbb" class="noborder5" maxlength="20"
  54. valid="required" errmsg="目标版本不能为空!"
  55. onfocus="this.className='input_on5';this.onmouseout=''"
  56. onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5';};" />
  57. </td>
  58. #elseif ("$!type" == "2")
  59. <td class="tdcolor2">
  60. <input type="text" name="daJqda.hkmbbb" value="$!daJqda.hkmbbb" class="noborder5" maxlength="20"
  61. valid="required" errmsg="目标版本不能为空!"
  62. onfocus="this.className='input_on5';this.onmouseout=''"
  63. onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5';};" />
  64. </td>
  65. #elseif ("$!type" == "3")
  66. <td class="tdcolor2">
  67. <input type="text" name="daJqda.lcmbbb" value="$!daJqda.lcmbbb" class="noborder5" maxlength="20"
  68. valid="required" errmsg="目标版本不能为空!"
  69. onfocus="this.className='input_on5';this.onmouseout=''"
  70. onblur="this.className='input_off5';this.onmouseout=function(){this.className='input_out5';};" />
  71. </td>
  72. #else
  73. <td class="tdcolor2"></td>
  74. #end
  75. </tr>
  76. <tr>
  77. <td class="tdcolor1">FTP命令<span class="tip_star">*</span></td>
  78. #if ("$!type" == "1")
  79. <td class="tdcolor2">
  80. <textarea name="daJqda.ftpcmd" rows="6" style="border: 0; width: 98%"
  81. valid="required" errmsg="FTP命令不能为空!"
  82. onKeyDown="countTextAreaLength(this,200);"
  83. onKeyUp="countTextAreaLength(this,200);">$!daJqda.ftpcmd</textarea>
  84. </td>
  85. #elseif ("$!type" == "2")
  86. <td class="tdcolor2">
  87. <textarea name="daJqda.hkftpcmd" rows="6" style="border: 0; width: 98%"
  88. valid="required" errmsg="FTP命令不能为空!"
  89. onKeyDown="countTextAreaLength(this,200);"
  90. onKeyUp="countTextAreaLength(this,200);">$!daJqda.hkftpcmd</textarea>
  91. </td>
  92. #elseif ("$!type" == "3")
  93. <td class="tdcolor2">
  94. <textarea name="daJqda.lcftpcmd" rows="6" style="border: 0; width: 98%"
  95. valid="required" errmsg="FTP命令不能为空!"
  96. onKeyDown="countTextAreaLength(this,200);"
  97. onKeyUp="countTextAreaLength(this,200);">$!daJqda.lcftpcmd</textarea>
  98. </td>
  99. #else
  100. <td class="tdcolor2"></td>
  101. #end
  102. </tr>
  103. </table>
  104. <br />
  105. </form>
  106. </body>
  107. </html>