您目前尚未登陆,请选择【登陆】或【注册
首页->新闻文章->破竹CMS4.0免安装版源码>>admin/Categories/CategoryList.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:破竹CMS4.0免安装版源码
当前文件:文件类型 PozhuCMS/admin/Categories/CategoryList.aspx打开代码结构图
普通视图
		            
1<%@ Page Language="C#" MasterPageFile="~/admin/Manage.master" AutoEventWireup="true" 2 CodeFile="CategoryList.aspx.cs" Inherits="admin_Categories_CategoryList" Title="Untitled Page" %> 3 4<%@ Register Assembly="Pozhu" Namespace="Pozhu.UI.WebControls" TagPrefix="pz" %> 5<%@ Register Src="../Location.ascx" TagName="Location" TagPrefix="uc1" %> 6<%@ Register Src="../TabMenu.ascx" TagName="TabMenu" TagPrefix="uc2" %> 7<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server"> 8<script language="javascript"> 9function selcheck() { 10var documentCheck = document.getElementById("documentCheck"); 11if(documentCheck.checked == false) 12{ 13 var objs = document.getElementsByTagName("input"); 14 for(var i=0; i<objs.length; i++) { 15 if(objs[i].type.toLowerCase() == "checkbox" ) 16 objs[i].checked = false; 17 } 18} 19else 20{ 21 var objs = document.getElementsByTagName("input"); 22 for(var i=0; i<objs.length; i++) { 23 if((objs[i].type.toLowerCase() == "checkbox" ) && (objs[i].id != "documentCheck")) 24 objs[i].checked = true; 25 } 26 } 27} 28</script> 29 <uc1:Location ID="Location1" runat="server" /> 30 <uc2:TabMenu ID="TabMenu1" runat="server" /> 31 <div id="tabChildMenu"> 32 <asp:HyperLink ID="hlkCreateCategory" runat="server"><span class="addCategory">创建子栏目</span></asp:HyperLink> 33 <asp:HyperLink ID="hlkCreateDocument" runat="server"><span class="addDocument">添加文档</span></asp:HyperLink> 34 <pz:WrappedRepeater runat="server" ID="rptCategoryRelations" ShowHeaderFooterOnNone="false"> 35 <HeaderTemplate> 36 <div class="categoryRelationMenu"> 37 <ul> 38 <li><a href="#"><span class="categoryRelation">关联的文档</span><!--[if IE 7]><!--> 39 </a> 40 <!--<![endif]--> 41 <!--[if lte IE 6]><table><tr><td><![endif]--> 42 <ul> 43 </HeaderTemplate> 44 <ItemTemplate> 45 <li><a href="<%# Globals.ApplicationPath + "/admin/path" + Request.QueryString["path"] + "categoryList.aspx?PrimaryCategoryID=" + CategoryController.GetCategory(SiteController.GetCurrentSite().SiteID,Request.QueryString["path"]).CategoryID + "&relationID=" + Eval("RelationID") %>"> 46 <%# CategoryController.GetCategory(int.Parse(Eval("ChildID").ToString())).Title %> 47 </a></li> 48 </ItemTemplate> 49 <FooterTemplate> 50 </ul> 51 <!--[if lte IE 6]></td></tr></table></a><![endif]--> 52 </li> </ul> </div> 53 </FooterTemplate> 54 </pz:WrappedRepeater> 55 </div> 56 <pz:WrappedRepeater runat="server" ID="rptCategories" OnItemCommand="rptCategories_ItemCommand" 57 OnItemDataBound="rptCategories_ItemDataBound"> 58 <HeaderTemplate> 59 <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; margin-bottom: 6px;"> 60 <tr> 61 <th class="listHeader"> 62 编号</th> 63 <th class="listHeader"> 64 栏目名称</th> 65 <th class="listHeader"> 66 栏目路径</th> 67 <th class="listHeader"> 68 创建时间</th> 69 <th class="listHeader"> 70 &nbsp;</th> 71 </tr> 72 </HeaderTemplate> 73 <ItemTemplate> 74 <tr> 75 <td class="listItem" style="width: 30px;"> 76 (<%# Eval("categoryID") %>) 77 </td> 78 <td class="listItem"> 79 <a href="<%# Globals.ApplicationPath + "/admin/path" + Eval("path").ToString() %>categoryList.aspx"> 80 <%# Eval("Title") %> 81 </a> 82 </td> 83 <td class="listItem"> 84 <asp:Literal ID="ltlPath" runat="server" Text='<%# Eval("path").ToString() %>'></asp:Literal></td> 85 <td class="listItem" style="width: 150px;"> 86 <%# Eval("createDate") %> 87 </td> 88 <td class="listItem" style="width: 100px;"> 89 <asp:HyperLink ID="hlkEdit" runat="server" CssClass="icon_editCateogry" ToolTip="修改栏目"></asp:HyperLink> 90 <asp:LinkButton ID="lbtnDelete" runat="server" CssClass="icon_deleteCateogry" CommandName="delete" 91 ToolTip="删除"></asp:LinkButton> 92 <asp:LinkButton ID="lbtnDown" runat="server" ToolTip="向上" CssClass="icon_up" CommandName="down"></asp:LinkButton> 93 <asp:LinkButton ID="lbtnUp" runat="server" ToolTip="向下" CssClass="icon_down" CommandName="up"></asp:LinkButton> 94 </td> 95 </tr> 96 </ItemTemplate> 97 <FooterTemplate> 98 </table> 99 </FooterTemplate> 100 </pz:WrappedRepeater> 101 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 102 <tr> 103 <th class="listHeader"> 104 <input id="documentCheck" type="checkbox" title="全选" onclick="selcheck()" /></th> 105 <th class="listHeader"> 106 编号</th> 107 <th class="listHeader"> 108 文档标题</th> 109 <th class="listHeader"> 110 栏目路径</th> 111 <th class="listHeader"> 112 创建日期</th> 113 <th class="listHeader"> 114 关联</th> 115 <th class="listHeader"> 116 &nbsp;</th> 117 </tr> 118 <tr> 119 <td class="listToolbar" colspan="7"> 120 <asp:HyperLink ID="hlkAddDocument" runat="server" CssClass="addDocument">添加关联文档</asp:HyperLink> 121 <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="delete" CssClass="delete" 122 OnClick="lbtnDelete_Click">删除选定的行</asp:LinkButton> 123 <asp:LinkButton ID="lbtnIncludeChildDocuments" runat="server" CommandArgument="false" 124 CssClass="unchecked" OnClick="lbtnIncludeChildDocuments_Click">包含子栏目下的文档</asp:LinkButton> 125 <asp:HyperLink ID="hlkGotoPrimaryCategory" runat="server" CssClass="icon_back" Visible="False">回到主栏目</asp:HyperLink> 126 </td> 127 </tr> 128 <pz:WrappedRepeater runat="server" ID="rptDocuments" OnItemDataBound="rptDocuments_ItemDataBound"> 129 <ItemTemplate> 130 <tr> 131 <td class="listItem" style="width: 20px;"> 132 <input id="cbDocumentCheck" name="cb" type="checkbox" runat="server" value='<%# Eval("categoryID") + ":" +Eval("documentID") %>' /> 133 </td> 134 <td class="listItem" style="width: 30px;"> 135 (<%# Eval("documentID") %>) 136 </td> 137 <td class="listItem"> 138 <asp:HyperLink ID="hlkEditDocument" runat="server"><%# Eval("subject") %></asp:HyperLink> 139 </td> 140 <td class="listItem"> 141 <a href="<%# Globals.ApplicationPath + "/admin/path" + Eval("path").ToString() %>categoryList.aspx"> 142 <%# Eval("path") %> 143 </a> 144 </td> 145 <td class="listItem" style="width: 120px;"> 146 <%# Eval("createDate")%> 147 </td> 148 <td class="listItem" style="width: 50px;"> 149 <pz:WrappedRepeater runat="server" ID="rptDocumentRelations" ShowHeaderFooterOnNone="false"> 150 <HeaderTemplate> 151 <div class="documentRelationMenu"> 152 <ul> 153 <li><a href="#" class="documentRelation"> 154 <!--[if IE 7]><!--> 155 </a> 156 <!--<![endif]--> 157 <!--[if lte IE 6]><table><tr><td><![endif]--> 158 <ul> 159 </HeaderTemplate> 160 <ItemTemplate> 161 <li><a href="<%# Globals.ApplicationPath + "/admin/path" + ((Document)((RepeaterItem)Container.Parent.Parent).DataItem).Path + "categoryList.aspx?PrimaryCategoryID=" + ((Document)((RepeaterItem)Container.Parent.Parent).DataItem).CategoryID + "&PrimaryDocumentID=" + ((Document)((RepeaterItem)Container.Parent.Parent).DataItem).DocumentID + "&relationID=" + Eval("RelationID") %>"> 162 <%# CategoryController.GetCategory(int.Parse(Eval("ChildID").ToString())).Title %> 163 </a></li> 164 </ItemTemplate> 165 <NoneTemplate> 166 &nbsp; 167 </NoneTemplate> 168 <FooterTemplate> 169 </ul> 170 <!--[if lte IE 6]></td></tr></table></a><![endif]--> 171 </li> </ul> </div> 172 </FooterTemplate> 173 </pz:WrappedRepeater> 174 </td> 175 <td class="listItem" style="width: 60px;"> 176 <asp:HyperLink ID="hlkViewCount" runat="server" CssClass="viewcount" ToolTip="查看用户对该文档的访问记录" ></asp:HyperLink> 177 <asp:HyperLink ID="hlkRatereport" runat="server" CssClass="ratereport" ToolTip="查看用户对该文档的评价"></asp:HyperLink> 178 179 </td> 180 </tr> 181 </ItemTemplate> 182 <NoneTemplate> 183 <tr> 184 <td class="listItem" colspan="7"> 185 <div class="message"> 186 没有找到任何文档! 187 </div> 188 </td> 189 </tr> 190 </NoneTemplate> 191 </pz:WrappedRepeater> 192 </table> 193 <pz:NumberLinkPager runat="server" ID="nlpPager" PageSize="30" CssClass="pager" /> 194</asp:Content> 195
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:破竹CMS4.0免安装版源码