TopicEdit.aspx 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopicEdit.aspx.cs" Inherits="CB.Admin.Plugins.Basic.TopicEdit" %>
  2. <!DOCTYPE html >
  3. <html>
  4. <head>
  5. <title>文章详细信息</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <link href="../../static/css/main.css" rel="stylesheet" type="text/css" />
  8. <script src="../../static/js/jquery.js" type="text/javascript"></script>
  9. <script src="../../Static/editor/kindeditor.js" type="text/javascript"></script>
  10. <script type="text/javascript">
  11. KindEditor.ready(function (k)
  12. {
  13. k.create('#txtContent',{
  14. resizeType: 1,
  15. filterMode: true,
  16. allowImageUpload: true,
  17. allowFlashUpload: false,
  18. allowMediaUpload: false,
  19. allowFileManager: false,
  20. shadowMode: false,
  21. uploadJson: '../../Ajax/uploadphoto_ajax.aspx',
  22. themeType: 'default',
  23. newlineTag: 'p',
  24. pasteType: 2,
  25. items: [
  26. 'source','|','undo','redo','|','preview','cut','copy','paste',
  27. 'plainpaste','wordpaste','|','justifyleft','justifycenter','justifyright',
  28. 'justifyfull','insertorderedlist','insertunorderedlist','indent','outdent','subscript',
  29. 'superscript','clearhtml','quickformat','selectall','|','fullscreen','/',
  30. 'formatblock','fontname','fontsize','|','forecolor','hilitecolor','bold',
  31. 'italic','underline','strikethrough','lineheight','removeformat','|','table','hr','emoticons','link','unlink','image','multiimage','|','flash','media']
  32. });
  33. });
  34. </script>
  35. </head>
  36. <body>
  37. <form id="form1" runat="server">
  38. <div class="box">
  39. <div class="title">
  40. <span>
  41. @文章详细信息</span>
  42. </div>
  43. <div class="content">
  44. <div class="listtable">
  45. <table style="margin-top: 3px" width="98%" border="0" align="center" cellpadding="0"
  46. cellspacing="0">
  47. <tr>
  48. <td width="100">
  49. 分类:
  50. </td>
  51. <td>
  52. <div class="left">
  53. <asp:DropDownList ID="dpCid" runat="server">
  54. <asp:ListItem Value="0">==请选择==</asp:ListItem>
  55. </asp:DropDownList>
  56. <span style="color: Red;">(必填)</span></div>
  57. </td>
  58. <td rowspan="3"><div class="left"><asp:Image ID="Image1" runat="server" Width="200px" Height="200px" Visible="false" /></div></td>
  59. </tr>
  60. <tr>
  61. <td>
  62. 标题:
  63. </td>
  64. <td>
  65. <div class="left">
  66. <asp:TextBox ID="txtTitle" runat="server" Width="700px"></asp:TextBox>&nbsp;&nbsp;<span
  67. style="color: Red;">(必填)</span></div>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. 缩略图信息
  73. </td>
  74. <td>
  75. <div class="left">
  76. <asp:FileUpload ID="FileUpload1" runat="server" />
  77. &nbsp;&nbsp;&nbsp;&nbsp;
  78. <asp:Button ID="btn_UploadImg" runat="server" Style="color: Red;" Text="上传图片" OnClick="Button1_Click" />&nbsp;&nbsp;<asp:Button
  79. ID="btn_ClearImg" runat="server" Text="清空图片" OnClick="btn_ClearImg_Click" />
  80. <br />
  81. <span style="color: Red;">(如果存在缩略则选择,电视实景展示功能再此处上传图片)</span>
  82. <asp:HiddenField runat="server" ID="txb_thumbsURL" Value="" />
  83. <asp:HiddenField runat="server" ID="txb_thumbsSize" Value="" />
  84. <asp:HiddenField runat="server" ID="txb_FileName" Value="" />
  85. <asp:HiddenField runat="server" ID="txb_FilteType" Value="" />
  86. <asp:HiddenField runat="server" ID="txb_FileSize" Value="" />
  87. <asp:HiddenField runat="server" ID="txb_FileUrl" Value="" />
  88. </div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>
  93. 内容:
  94. </td>
  95. <td colspan="2">
  96. <div class="left">
  97. <textarea runat="server" id="txtContent" name="txtContent" cols="45" rows="3" style="width: 850px;
  98. height: 450px;"></textarea>
  99. </div>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. 操作:
  105. </td>
  106. <td colspan="2">
  107. <div class="left">
  108. <asp:Button ID="btnEdit" runat="server" Text=" 保 存 " OnClick="btnEdit_Click" />
  109. </div>
  110. <asp:Label ID="labID" runat="server" Text="0" Visible="false"></asp:Label>
  111. </td>
  112. </tr>
  113. </table>
  114. </div>
  115. </div>
  116. </div>
  117. </form>
  118. </body>
  119. </html>