<html><head><title>列出问卷中所有指标</title>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<LINK href="../CSS/Base.css" rel=stylesheet>
<link href="../CSS/SurveyList.css" rel="stylesheet" type="text/css"/>
<link href="../CSS/Tab.css" rel="stylesheet" type="text/css"/>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="../JS/Common.js.php"></script>
<script type="text/javascript" src="../JS/Window.js.php"></script>
<script type="text/javascript" src="../JS/CheckQuestion.js.php"></script>
<script language=javascript src="../JS/HighLight.js.php"></script>
<script language="javascript"> 
function refreshParent(returnVal) {
   self.location.reload();
}
function CheckNoFloat(objField, strText) {
    var objValue = objField.value;
    if ( Trim(objValue) == "" ) return true;
	var strErr = "“" + strText + "”不是正确的权重数据格式！";
	var reg=/^(\d+)(.{0,1})(\d{0,2})$/;
	if (!reg.test(objValue)) {
		alert(strErr);
        objField.focus();
		return false;
	}
	return true;
}
function Check_Form_Validator()
{
	{check_form_list}
	var theIdString = "{theIdString}";
	//"25###90***91***92***93$$$26###94***95***96***97"
	var theIdStringList = theIdString.split('$$$');
	var theIndValue = 0;
	for( i=0;i<theIdStringList.length;i++)
	{
		var theIdStringArray = theIdStringList[i].split('###');
		//指标对象
		var theIndObj = eval( 'document.Check_Form.weight_' + theIdStringArray[0]);
		var theItemValue = 0;
		var theIndexsStringArray = theIdStringArray[1].split('***');
		for( j=0;j<theIndexsStringArray.length;j++)
		{
			var obj = eval( 'document.Check_Form.indexWeight_' + theIndexsStringArray[j]);
			if( obj != null )
			{
				theItemValue = FloatAdd(Number(obj.value),theItemValue);
			}
		}
		if( theItemValue != Number(theIndObj.value ) )
		{
			alert("所属评价问题的权重不等于对应指标的权重");
			theIndObj.focus();
			return false;
		}
		theIndValue = FloatAdd(Number(theIndObj.value ),theIndValue);
	}
	if( document.Check_Form.totalWeight.value != theIndValue )
	{
		alert("所有指标的权重不等于评教问卷的总权重");
		document.Check_Form.totalWeight.focus();
		return false;
	}
}
function FloatAdd(arg1,arg2){  
   var r1,r2,m;  
   try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}  
   try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}  
   m=Math.pow(10,Math.max(r1,r2))  
   return (arg1*m+arg2*m)/m  
}  
function Submit_Weight_Form()
{
	if( Check_Form_Validator() != false )
	{
		document.Check_Form.Action.value = 'UpdateWeightSubmit';
		document.Check_Form.submit();
	}
}
</script>
<META content="MSHTML 6.00.3790.0" name=GENERATOR></HEAD>
<body oncontextmenu="return false" style="margin-top:0px">

<div id="tabs1"> 
    <ul> 
        <li><a href="ShowSurveyList.php"><span>我的问卷</span></a></li> 
        <li id="current"><a href="{questionListURL}"><span>评价体系</span></a></li>
    </ul> 
</div> 

<div style="line-height:10px">&nbsp;</div>
<div class="wrap q_clear" id=wrap>
<div>
<div>
<div class=q_clear id=myheadertext><h1>列出<span class=red>[{assessTitle}]</span>所有评价指标</h1><p class=recnumclass>[ <span class=red>{recNum}</span> 问题 ]</p>&nbsp;<br/></div>
<div id=myname></div>
<div style="font-size:12px;margin-bottom:8px;">
<a href="../z.php?qid={assessID}" target=_blank><div class=inputsubmit style="width:60px;*width:95px;height:16px;float:left;display:{haveQtn};position:relative;" onmousedown="this.style.left='1px';this.style.top='1px';" onmouseup="this.style.left='0px';this.style.top='0px';" id="preSurvey" name="preSurvey">预览问卷</div></a>
<input class=inputsubmit name="indexNew" type="button" id="indexNew" value="指标复制" onclick="javascript:showPopWin('{thisURLStr}&Action=CopyNewIndicators', 760, 450, refreshParent, null,'从现有问卷指标体系复制新增')">
<input class=inputsubmit name="createNew" type="button" id="createNew" value="新增指标" onclick="javascript:showPopWin('{thisURLStr}&Action=AddIndicators', 760, 430, refreshParent, null,'新增评教问卷评价指标')"></div>

<div class="datalist" style="display:{haveQtn}">
 <form name="Check_Form" method="post" action="">
	<table class=datatable id="datatable" cellspacing=0 cellpadding=0>
    <tr class=coltitle>
      <td width=2%  noWrap>&nbsp;</td>
      <td width=68% noWrap>&nbsp;<B>指标名称</B></td>
	  <td width=10% nowrap align=center>&nbsp;<B>顺序</B></td>
	  <td width=10% nowrap align=center>&nbsp;<B>指标权重</B></td>
      <td width=10% noWrap align=center><b>操 作</b> </td>
    </tr>
	 <!-- BEGIN GROUP -->
	   <tr height=25 onmouseover="this.style.backgroundColor='#deefff'" onmouseout="this.style.backgroundColor='#ffffff'">
		  <td colspan=2>&nbsp;<b>{indicatorsName}</b>&nbsp;[ <span class=red>{recNumSub}</span> 问题 ]</td>
		  <td align=center bgcolor="#efefef">{orderAction}&nbsp;<input name="orderByID[{indicatorsID}]" id="orderByID_{indicatorsID}" size=6 value="{orderByID}" onKeyUp="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
		  <td align=center bgcolor="#efefef">&nbsp;<input name="weight[{indicatorsID}]" id="weight_{indicatorsID}" size=6 value="{weight}"></td>
		  <td noWrap align=center>
			   <A href="javascript:void(0);" onclick="javascript:showPopWin('{thisURLStr}&Action=EditIndicators&indicatorsID={indicatorsID}&indicatorsName={indicatorsURLName}', 760, 430, refreshParent, null,'修改指标定义')">修改</A>&nbsp;
			   <A href="{thisURLStr}&Action=CopyIndicators&indicatorsID={indicatorsID}&indicatorsName={indicatorsURLName}" onclick="return window.confirm('您真的想复制一份该指标定义的副本？！')">复制</A>
			   <A href="{thisURLStr}&Action=DeleteIndicators&indicatorsID={indicatorsID}&indicatorsName={indicatorsURLName}" onclick="return window.confirm('您真的想删除该指标定义吗？本操作不可恢复！')">删除</A>
		  </td>
	   </tr>
      <!-- BEGIN LIST -->
	   <tr>
          <td bgcolor="#f5fafe">&nbsp;</td>
		  <td align=left bgcolor="#f5fafe" height=25>{indexsName}</td>
		  <td bgcolor="#f5fafe" align=center>&nbsp;</td>
		  <td align=center bgcolor="#f5fafe">&nbsp;<input name="indexWeight[{indexsID}]" id="indexWeight_{indexsID}" size=6 value="{indexWeight}"></td>
		  <td noWrap align=center bgcolor="#f5fafe">&nbsp;</td>
	   </tr>
	   <!-- END LIST -->   
       <!-- END GROUP -->
	 <tr> 
       <td colspan=2 bgcolor="#f5f5f5">&nbsp;
	      <input name="actionTitle" id="actionTitle" type="hidden" value="{assessTitle}">
	      <input name="surveyID" id="surveyID" type="hidden" value="{surveyID}">
		  <input name="Action" id="Action" type="hidden"></td>
	   <td align=center bgcolor="#f5f5f5"><input class=inputsubmit name="UpdateOrderSubmit" type="submit" id="UpdateOrderSubmit" value="更新顺序"></td>
	   <td align=center bgcolor="#f5f5f5">&nbsp;<input name="totalWeight" id="totalWeight" size=6 value="{totalWeight}"></td>
	   <td align=center bgcolor="#f5f5f5"><input class=inputsubmit name="UpdateWeightSubmit" type="button" id="UpdateWeightSubmit" value="更新权重" onclick="javascript:Submit_Weight_Form();"></td>
      </tr>
   </table>
   </form>
</div>
<div id="nonesite" class="nonewebsite" style="display:{noneQtn}">
  <div class="title"><h2>需要为即将开始设计的评教类调查问卷创建评价指标？</h2></div>
  <div class="info"><p>评教类调查问卷中的评价问题需从属一个指定的评价指标。创建评教类调查问卷的指标体系，需从创建指标开始</p></div>
  <div class="createbtn"><a href="javascript:void(0);" onclick="javascript:showPopWin('{thisURLStr}&Action=AddIndicators', 760, 430, refreshParent, null,'新增评教问卷评价指标')"><img src="../Images/create_qtn.gif" border=0></a>&nbsp;</div>
</div>
</div></div></div>
 <script type="text/javascript">initInputHighlightScript();</script> 
</body></html>
