personScriptDialog.jsp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. <f:js pre="hotent/lang/view/platform/system" ></f:js>
  9. <title>人员脚本选择对话框</title>
  10. <script type="text/javascript">
  11. /*KILLDIALOG*/
  12. var dialog = frameElement.dialog; //调用页面的dialog对象(ligerui对象)
  13. $(function(){
  14. $('#btnSelect').click(function(){
  15. if($("#scriptListFrame").contents().find("input:[name='id']:radio:checked").length == 0){
  16. $.ligerDialog.warn($lang_system.personScript.dialog.validate_msg_select,'提示');
  17. return false;
  18. }else{
  19. var selected = $("#scriptListFrame").contents().find("input:[name='id']:radio:checked");
  20. var id = selected.val();
  21. var name = selected.attr("methodDesc");
  22. var retVal={
  23. id:id,
  24. name:name
  25. };
  26. //window.returnValue=retVal;
  27. dialog.get("sucCall")(retVal);
  28. dialog.close();
  29. }
  30. });
  31. $('#btnClose').click(function(){
  32. dialog.close();
  33. });
  34. });
  35. </script>
  36. </head>
  37. <body>
  38. <div class="panel">
  39. <div style="height:450px;">
  40. <iframe id="scriptListFrame" name="scriptListFrame" height="90%"
  41. width="100%" frameborder="0"
  42. src="${ctx}/platform/system/personScript/selector.ht"></iframe>
  43. </div>
  44. <div position="bottom" class="bottom" style="height:30px;" >
  45. <a href="javascript:;" id="btnSelect" class="button" style="margin-right:10px;" ><span class="icon ok"></span><span class="chosen">选择</span></a>
  46. <a href="javascript:;" id="btnClose" class="button" onclick="dialog.close()" style="margin-left:10px;" ><span class="icon cancel" ></span><span class="chosen" >取消</span></a>
  47. </div>
  48. </div>
  49. <!-- end of panel -->
  50. </body>
  51. </html>