sealDialog.jsp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. <title>电子印章管理</title>
  8. <%@include file="/commons/include/get.jsp"%>
  9. <script type="text/javascript">
  10. /*KILLDIALOG*/
  11. var dialog = frameElement.dialog; //调用页面的dialog对象(ligerui对象)
  12. $(function(){
  13. $('#btnSelect').click(function(){
  14. var sealDivs = $("#sealListFrame").contents().find("div[name=mySealDiv]");
  15. if(sealDivs.length == 0){
  16. $.ligerMessageBox.warn('没有可以选择的印章!','提示信息');
  17. return false;
  18. }else{
  19. sealDivs.each(function(){
  20. var me=$(this);
  21. var myclass = me.attr("class");
  22. if(myclass=="Div_MySeal_click"){
  23. var myvalue = me.attr("value");
  24. if(typeof myvalue != 'undefined' && myvalue!= null){
  25. var retVal = eval('(' + myvalue + ')');
  26. //window.returnValue=retVal;
  27. dialog.get("sucCall")(retVal);
  28. }else{
  29. $.ligerMessageBox.warn('印章信息有误!','提示信息');
  30. }
  31. dialog.close();
  32. }else{
  33. $.ligerMessageBox.warn('请选择一个印章!','提示信息');
  34. }
  35. });
  36. }
  37. });
  38. $('#btnClose').click(function(){
  39. dialog.close();
  40. });
  41. });
  42. </script>
  43. </head>
  44. <body>
  45. <div class="panel">
  46. <div class="panel-top">
  47. <div class="tbar-title">
  48. <span class="tbar-label">电子印章管理列表</span>
  49. </div>
  50. </div>
  51. <div style="height:500px;">
  52. <iframe id="sealListFrame" name="sealListFrame" height="90%"
  53. width="100%" frameborder="0"
  54. src="${ctx}/platform/system/seal/selector.ht"></iframe>
  55. </div>
  56. <div position="bottom" class="bottom" style='margin-top:10px'>
  57. <a class='button' id="btnSelect"><span class="icon ok"></span><span >选择</span></a>
  58. <a class="button" id="btnClose" style='margin-left:10px;' onclick="dialog.close()"><span class="icon cancel"></span><span >取消</span></a>
  59. </div>
  60. </div>
  61. <!-- end of panel -->
  62. </body>
  63. </html>