81,091
社区成员
发帖
与我相关
我的任务
分享
function newEvent(index){
newEventIndex=index+1;
return "<tr height=23><td style=\"text-align:center;\"><input type=\"checkbox\" name=\"eventCheck\"/>" +
"<input name=\"eventList["+index+"].profileId\" value=\""+profileId+"\" type=\"hidden\"/>"+
"<input name=\"eventList["+index+"].eventId\" value=\"\" type=\"hidden\"/>"+
"</td>"+
"<td style=\"text-align:center;\"><input name=\"eventList["+index+"].produce\" value=\"true\" type=\"checkbox\"/></td>"+
"<td style=\"text-align:center;\"><input name=\"eventList["+index+"].eventName\" type=\"text\" size=\"10\" value=\"<s:text name='scriptmonitor.js.tolerantEvent'/>"+newEventIndex+"\"/></td>"+
"<td style=\"text-align:center;\"><select name=\"eventList["+index+"].lvel\">"+
<s:iterator value="levels" >
"<option value=\"${key}\">${value}</option>"+
</s:iterator>
"</select></td>"+
"<td style=\"text-align:center;\"><select name=\"eventList["+index+"].priority\">"+
<s:iterator value="prioritys" >
"<option value=\"${key}\">${value}</option>"+
</s:iterator>
"</select></td>"+
"<td style=\"text-align:center;\">"+
"<span><select name=\"eventList["+index+"].metricId\" style=\"width:80px\" onchange='selectCondition("+index+")' id='condition"+index+"'>"
+"<option value='-1'><s:text name='scriptmonitor.js.pleaseChoose'/></option>"+
<s:iterator value="scriptMetricList" >
"<option value=\"${metricId}\" jsName=\"${dataType}\">${metricName}</option>"+
</s:iterator>
"</select></span>"+
"<span id=\"relationSpan"+index+"\" style=\"padding-left:4px;\"><select id=\"operateModeId"+index+"\" name=\"eventList["+index+"].operateMode\" style=\"width:60px;\" validate=\"select-one\"/></span>"+
"<span id=\"synSpan"+index+"\" style=\"padding-left:2px;\"><input id=\"thresholdText"+index+"\" type=\"text\" name=\"eventList["+index+"].threshold\" size=\"12\"/></span>"+
"</td>"+
"<td style=\"text-align:center;\"><select name=\"eventList["+index+"].produceMode\" validate=\"select-one\">"+
<s:iterator value="produceRules">
"<option value=\"${key}\">${value}</option>"+
</s:iterator>
"</select></td>"+
"<td style=\"text-align:center;\"><input name=\"eventList["+index+"].alarm\" value=\"true\" type=\"checkbox\"/></td></tr>";
}
<select name="eventList[0].metricId" id="condition0" style="width: 80px;" onchange="selectCondition(0)" jQuery1382682857232="379">
page1
page2
//设置打印 <script language=javascript> function window.onload() { // -- advanced features factory.printing.SetMarginMeasure(2) // measure margins in inches factory.printing.SetPageRange(false, 1, 3) // need pages from 1 to 3 factory.printing.printer = "HP DeskJet 870C" factory.printing.copies = 2 factory.printing.collate = true factory.printing.paperSize = "A4" factory.printing.paperSource = "Manual feed" // -- basic features factory.printing.header = "居左显示&b居中显示&b居右显示页码,第&p页/共&P页" factory.printing.footer = "(自定义页脚)" factory.printing.portrait = false factory.printing.leftMargin = 0.75 factory.printing.topMargin = 1.5 factory.printing.rightMargin = 0.75 factory.printing.bottomMargin = 1.5 } function Print(frame) { factory.printing.Print(true, frame) // print with prompt }