conditionScriptDialog.jsp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@include file="/commons/include/html_doctype.html"%>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <%@include file="/commons/include/get.jsp"%>
  8. <title>条件脚本选择对话框</title>
  9. <script type="text/javascript">
  10. /*KILLDIALOG*/
  11. var dialog = frameElement.dialog; //调用页面的dialog对象(ligerui对象)
  12. $(function(){
  13. $('#btnSelect').click(function(){
  14. if($("#scriptListFrame").contents().find("input:[name='id']:radio:checked").length == 0){
  15. $.ligerDialog.warn('请选择一个条件脚本!','提示');
  16. return false;
  17. }else{
  18. var selected = $("#scriptListFrame").contents().find("input:[name='id']:radio:checked");
  19. var id = selected.val();
  20. var name = selected.attr("methodDesc");
  21. var retVal={
  22. id:id,
  23. name:name
  24. };
  25. //window.returnValue=retVal;
  26. dialog.get('sucCall')(retVal);
  27. dialog.close();
  28. }
  29. });
  30. $('#btnClose').click(function(){
  31. dialog.close();
  32. });
  33. });
  34. </script>
  35. </head>
  36. <body>
  37. <div class="panel">
  38. <div style="height:450px;">
  39. <iframe id="scriptListFrame" name="scriptListFrame" height="90%"
  40. width="100%" frameborder="0"
  41. src="${ctx}/platform/system/conditionScript/selector.ht"></iframe>
  42. </div>
  43. <div position="bottom" class="bottom" style="height:30px;" >
  44. <a href="javascript:;" id="btnSelect" class="button" style="margin-right:10px;" ><span class="icon ok"></span><span class="chosen">选择</span></a>
  45. <a href="javascript:;" id="btnClose" class="button" onclick="dialog.close()" style="margin-left:10px;" ><span class="icon cancel" ></span><span class="chosen" >取消</span></a>
  46. </div>
  47. </div>
  48. <!-- end of panel -->
  49. </body>
  50. </html>