123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
-
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <script type="text/javascript" src="/nwyj/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/scripts/qui/libs/css/import_basic.css" />
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css"
- rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
- positionTarget="positionContent" selInputHeight="32"
- selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
- defaultFileInputWidth="200" defaultGridHeaderHeight="34"
- defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
- defaultFilterItemHeight="32" dialogWidthFix="0"
- defaultSelItemHeight="32" defaultFontFamily="宋体" />
- <script type="text/javascript">
-
- $(function() {
- $("#eval_btn").bind("click",function(){
- for(var i=0;i<10;i++){
- $("#scroe_tr_"+i).hide();
- //$("#scroe_"+i).setValue("");
- //console.log($("#scroe_"+i).val());
- $("#scroe_"+i).val("");
- }
- var val = $("#eval_num").attr("value").trim();
- for(var i=0;i<parseInt(val);i++){
- $("#scroe_tr_"+i).show();
- }
- });
- });
-
- function getDateToParent(){
- var val = $("#eval_num").attr("value").trim();
- var result = [];
- for(var i=0;i<parseInt(val);i++){
- if($("#scroe_"+i).val().trim() == ""){
- top.Dialog.alert("请确保每一项都填写分值!");
- return;
- }
- var list = {
- score:$("#scroe_"+i).val().trim(),
- sort:i
- };
- result.push(list);
- }
- return result;
- }
- </script>
- <style >
- html,body{
- width: 100%;margin: 0;padding: 0;
- }
- </style>
- </head>
-
- <body style="overflow: auto;height: 270px;">
- <div style="margin: 10px;width: auto; display:inline-block;">
-
- <table class="tableStyle" align="center" id="contentTable">
- <tr >
- <td colspan="3" align="right" >请输入体系项数:</td>
- <td colspan="2" align="left" >
- <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="确定" />
- </td>
- </tr>
- <br />
- <tr style="display:none;" id="scroe_tr_0">
- <td colspan="1" align="center" >1</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_0" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_1">
- <td colspan="1" align="center" >2</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_1" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_2">
- <td colspan="1" align="center" >3</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_2" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_3">
- <td colspan="1" align="center" >4</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_3" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_4">
- <td colspan="1" align="center" >5</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_4" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_5">
- <td colspan="1" align="center" >6</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_5" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_6">
- <td colspan="1" align="center" >7</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_6" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_7">
- <td colspan="1" align="center" >8</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_7" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_8">
- <td colspan="1" align="center" >9</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_8" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- <tr style="display:none;" id="scroe_tr_9">
- <td colspan="1" align="center" >10</td>
- <td colspan="2" align="right" >分值:</td>
- <td colspan="2" align="left">
- <input id="scroe_9" type="text" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this);" onblur="this.v();" />
- </td>
- </tr>
- </table>
- </div>
- </body>
- </html>
|