3acffbca09b7d2b665e2542d3e4ff4adc8935393.svn-base 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  11. <!--框架必需end-->
  12. <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
  13. <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/css/import_basic.css" />
  14. <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css"
  15. rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
  16. positionTarget="positionContent" selInputHeight="32"
  17. selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
  18. defaultFileInputWidth="200" defaultGridHeaderHeight="34"
  19. defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
  20. defaultFilterItemHeight="32" dialogWidthFix="0"
  21. defaultSelItemHeight="32" defaultFontFamily="宋体" />
  22. <script type="text/javascript">
  23. $(function() {
  24. $("#eval_btn").bind("click",function(){
  25. for(var i=0;i<10;i++){
  26. $("#scroe_tr_"+i).hide();
  27. //$("#scroe_"+i).setValue("");
  28. //console.log($("#scroe_"+i).val());
  29. $("#scroe_"+i).val("");
  30. }
  31. var val = $("#eval_num").attr("value").trim();
  32. for(var i=0;i<parseInt(val);i++){
  33. $("#scroe_tr_"+i).show();
  34. }
  35. });
  36. });
  37. function getDateToParent(){
  38. var val = $("#eval_num").attr("value").trim();
  39. var result = [];
  40. for(var i=0;i<parseInt(val);i++){
  41. if($("#scroe_"+i).val().trim() == ""){
  42. top.Dialog.alert("请确保每一项都填写分值!");
  43. return;
  44. }
  45. var list = {
  46. score:$("#scroe_"+i).val().trim(),
  47. sort:i
  48. };
  49. result.push(list);
  50. }
  51. return result;
  52. }
  53. </script>
  54. <style >
  55. html,body{
  56. width: 100%;margin: 0;padding: 0;
  57. }
  58. </style>
  59. </head>
  60. <body style="overflow: auto;height: 270px;">
  61. <div style="margin: 10px;width: auto; display:inline-block;">
  62. <table class="tableStyle" align="center" id="contentTable">
  63. <tr >
  64. <td colspan="3" align="right" >请输入体系项数:</td>
  65. <td colspan="2" align="left" >
  66. <input id="eval_num" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');if(this.value!=10 && this.value.length>1){this.value='';this.style.borderColor='red'; this.title='请输入0-10的数值'; this.alt='请输入0-10的数值';}else{this.style.borderColor='';}}).call(this);" onblur="this.v();" /> <input id="eval_btn" type="button" value="确定" />
  67. </td>
  68. </tr>
  69. <br />
  70. <tr style="display:none;" id="scroe_tr_0">
  71. <td colspan="1" align="center" >1</td>
  72. <td colspan="2" align="right" >分值:</td>
  73. <td colspan="2" align="left">
  74. <input id="scroe_0" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  75. </td>
  76. </tr>
  77. <tr style="display:none;" id="scroe_tr_1">
  78. <td colspan="1" align="center" >2</td>
  79. <td colspan="2" align="right" >分值:</td>
  80. <td colspan="2" align="left">
  81. <input id="scroe_1" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  82. </td>
  83. </tr>
  84. <tr style="display:none;" id="scroe_tr_2">
  85. <td colspan="1" align="center" >3</td>
  86. <td colspan="2" align="right" >分值:</td>
  87. <td colspan="2" align="left">
  88. <input id="scroe_2" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  89. </td>
  90. </tr>
  91. <tr style="display:none;" id="scroe_tr_3">
  92. <td colspan="1" align="center" >4</td>
  93. <td colspan="2" align="right" >分值:</td>
  94. <td colspan="2" align="left">
  95. <input id="scroe_3" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  96. </td>
  97. </tr>
  98. <tr style="display:none;" id="scroe_tr_4">
  99. <td colspan="1" align="center" >5</td>
  100. <td colspan="2" align="right" >分值:</td>
  101. <td colspan="2" align="left">
  102. <input id="scroe_4" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  103. </td>
  104. </tr>
  105. <tr style="display:none;" id="scroe_tr_5">
  106. <td colspan="1" align="center" >6</td>
  107. <td colspan="2" align="right" >分值:</td>
  108. <td colspan="2" align="left">
  109. <input id="scroe_5" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  110. </td>
  111. </tr>
  112. <tr style="display:none;" id="scroe_tr_6">
  113. <td colspan="1" align="center" >7</td>
  114. <td colspan="2" align="right" >分值:</td>
  115. <td colspan="2" align="left">
  116. <input id="scroe_6" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  117. </td>
  118. </tr>
  119. <tr style="display:none;" id="scroe_tr_7">
  120. <td colspan="1" align="center" >8</td>
  121. <td colspan="2" align="right" >分值:</td>
  122. <td colspan="2" align="left">
  123. <input id="scroe_7" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  124. </td>
  125. </tr>
  126. <tr style="display:none;" id="scroe_tr_8">
  127. <td colspan="1" align="center" >9</td>
  128. <td colspan="2" align="right" >分值:</td>
  129. <td colspan="2" align="left">
  130. <input id="scroe_8" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  131. </td>
  132. </tr>
  133. <tr style="display:none;" id="scroe_tr_9">
  134. <td colspan="1" align="center" >10</td>
  135. <td colspan="2" align="right" >分值:</td>
  136. <td colspan="2" align="left">
  137. <input id="scroe_9" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
  138. </td>
  139. </tr>
  140. </table>
  141. </div>
  142. </body>
  143. </html>