Keine Beschreibung

KnowledgeClassEdit.aspx 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="KnowledgeClassEdit.aspx.cs"
  2. Inherits="Knowledge_KnowledgeClassEdit" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head id="Head1" runat="server">
  6. <title>资料库操作</title>
  7. <link href="../_common/styles/global.css" rel="stylesheet" type="text/css" />
  8. <link href="../_common/styles/dialogs.css" rel="stylesheet" type="text/css" />
  9. <link href="../_common/styles/select.css" rel="stylesheet" type="text/css" />
  10. <link href="../_common/styles/form.css" rel="stylesheet" type="text/css" />
  11. <link href="../_common/styles/controls.css" rel="stylesheet" type="text/css" />
  12. <link href="../_common/styles/nav.css" rel="stylesheet" type="text/css" />
  13. <link href="../_common/styles/menu.css" rel="stylesheet" type="text/css" />
  14. <link href="../_common/styles/tabs.css" rel="stylesheet" type="text/css" />
  15. <script src="../_common/scripts/Global.js" type="text/javascript"></script>
  16. <script src="../_common/scripts/windowinformation.js" type="text/javascript"></script>
  17. <script src="../_common/scripts/Util.js" type="text/javascript"></script>
  18. <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
  19. <link href="../_css/messagebox.css" rel="stylesheet" type="text/css" />
  20. <script src="../_common/scripts/datetime.js" type="text/javascript"></script>
  21. <script language="javascript">
  22. var divmark = "";
  23. divmark += "<div id=\"divLock\" style=\"z-index:1;background-color:#AAA;filter:alpha(opacity=50);position: absolute;width:expression(this.parentNode.scrollWidth);top:expression(this.parentNode.scrollTop); left:0; height:100%;right:0; bottom:0; display:none;\"></div>";
  24. divmark += "<div id=\"divMessageBox\" onmousedown=\"MM_dragLayer('divMessageBox','',0,0,0,0,true,false,-1,-1,-1,-1,false,false,0,'',false,'')\" style=\"display:none;position: absolute;top:expression(this.parentNode.scrollHeight/2-100);left:expression(this.parentNode.scrollWidth/2-100);z-index:2;\">";
  25. divmark += "<div class=\"wbox\"><div class=\"lbox\"><h1 class=\"tbox\"><span id=\"spanTitle\"></span><img src=\"../_images/dialogclose.gif\" style=\"cursor:hand;\" onclick=\"MessageBoxClose();\" /></h1>";
  26. divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
  27. document.write(divmark);
  28. </script>
  29. <%--<script language="javascript" type="text/javascript">
  30. function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
  31. var btnstr = "";
  32. switch (btnstyle) {
  33. case 0:
  34. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
  35. break;
  36. case 1:
  37. btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
  38. break;
  39. case 2:
  40. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();CloseThis();'>确 定</button></div>";
  41. break;
  42. case 3:
  43. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
  44. break;
  45. case 4:
  46. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteOpt(0);'>确 定</button>&nbsp;&nbsp;&nbsp;&nbsp;<button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
  47. break;
  48. case 5:
  49. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();parentmessageclose();'>确 定</button></div>";
  50. break;
  51. case 6:
  52. btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();parentmessageclose();'>确 定</button></div>";
  53. break;
  54. default:
  55. break;
  56. }
  57. if (_height != null) {
  58. strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
  59. document.getElementById("divMessageBox").style.height = _height;
  60. }
  61. else {
  62. strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
  63. document.getElementById("divMessageBox").style.height = 50;
  64. _height = 120;
  65. }
  66. document.getElementById("spanTitle").innerHTML = strtitle;
  67. document.getElementById("divContent").innerHTML = strmessage;
  68. document.getElementById("divMessageBox").style.width = strwidth;
  69. try {
  70. document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
  71. document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
  72. }
  73. catch (e)
  74. { }
  75. document.getElementById("divLock").style.display = "block";
  76. document.getElementById("divMessageBox").style.display = "block";
  77. }
  78. function OpenWindowPage(_title, _id, _width, _height, _url) {
  79. var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
  80. OpenMessage(_id, _title, html, _width, -1, _height);
  81. }
  82. function MessageBoxClose() {
  83. document.getElementById("divLock").style.display = "none";
  84. document.getElementById("divMessageBox").style.display = "none";
  85. }
  86. function parentmessageclose() {
  87. parent.MessageBoxCloseEdit();
  88. }
  89. function parentmessageclose() {
  90. parent.MessageBoxClose();
  91. }
  92. </script>--%>
  93. </head>
  94. <body>
  95. <form id="form1" runat="server">
  96. <table border="0" cellpadding="0" cellspacing="3" class="stdTable">
  97. <colgroup>
  98. <col align="right" style="width: 100px;" />
  99. <col />
  100. </colgroup>
  101. <tr>
  102. <td>
  103. 名称:
  104. </td>
  105. <td>
  106. <asp:TextBox ID="name" runat="server" Width="120px" CssClass="txt"></asp:TextBox>
  107. <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name"
  108. ErrorMessage="不能为空!"></asp:RequiredFieldValidator>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td>
  113. 排序:
  114. </td>
  115. <td>
  116. <asp:TextBox ID="sort" runat="server" Width="120px" CssClass="txt"></asp:TextBox>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td colspan="2" align="center">
  121. <asp:Button ID="btnSave" Width="100" runat="server" Text="确定" CssClass="btn" OnClick="btnSave_Click" />
  122. </td>
  123. </tr>
  124. </table>
  125. </form>
  126. </body>
  127. </html>