?? admin.aspx
字號:
<%@ Page language="c#" Codebehind="Admin.aspx.cs" AutoEventWireup="false" Inherits="DigitalLibrary.Admin" %>
<%@ Register TagPrefix="uc1" TagName="Abstract" Src="Abstract.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Admin</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Admin" method="post" encType="multipart/form-data" runat="server">
<DIV id="Div1" style="Z-INDEX: 102; LEFT: 12px; WIDTH: 547px; POSITION: absolute; TOP: 60px; HEIGHT: 92px"
align="justify" runat="server">
<P><FONT face="Century Gothic" color="#ff0099" size="2"><B>此頁面用于更新上載的文章。</B> </FONT>
<HR>
<FONT face="Century Gothic" color="#000066" size="2">更新文章信息步驟: <BR>
1. 文章等級<BR>
2. 文章狀態: 是否“免費”或“付費”<br>
3. 所屬的類別<BR>
4. 付費文章的價格 </FONT>
</DIV>
<asp:Button id="btnBack" style="Z-INDEX: 108; LEFT: 576px; POSITION: absolute; TOP: 448px" runat="server"
Text="Back" Font-Bold="True" BackColor="#FFC0C0" Font-Names="Century Gothic" Width="113px"
Height="25px"></asp:Button>
<asp:button id="btnNext" style="Z-INDEX: 105; LEFT: 624px; POSITION: absolute; TOP: 216px" runat="server"
Font-Names="Century Gothic" BackColor="#FFE0C0" Font-Bold="True" Text="下一步"></asp:button><asp:label id="lblTitle" runat="server" Width="636px" ForeColor="DodgerBlue" Font-Names="Arial"
Font-Size="30px"> 專家數字圖書館 - 管理員頁面</asp:label><asp:image id="imgImage" style="Z-INDEX: 100; LEFT: 590px; POSITION: absolute; TOP: 62px" runat="server"
Height="95px" Width="112px" ImageUrl="books.gif"></asp:image><asp:datagrid id="dgArticles" style="Z-INDEX: 101; LEFT: 10px; POSITION: absolute; TOP: 243px"
runat="server" Height="144px" Width="680px" Font-Names="Century Gothic" Font-Size="9pt" AutoGenerateColumns="False" CellSpacing="2" CellPadding="2" AllowPaging="True"
PageSize="4" AllowCustomPaging="True">
<AlternatingItemStyle BackColor="#C0FFC0"></AlternatingItemStyle>
<ItemStyle Font-Bold="True" BackColor="#FFE0C0"></ItemStyle>
<HeaderStyle Font-Bold="True" BorderWidth="1px" ForeColor="Maroon" BorderStyle="Solid" BackColor="#C0C0FF"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="ArticleID" ReadOnly="True" HeaderText="ArticleID"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="FileName">
<ItemTemplate>
<asp:HyperLink ID="FileName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FileName") %>' >
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Abstract">
<ItemTemplate>
<asp:LinkButton ID="Abstract" OnClick="ShowAbstract" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Abstract") %>'>
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Rating">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Rating") %>' ID="Label1">
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" Width="30" Text='<%# DataBinder.Eval(Container, "DataItem.Rating") %>' ID="Textbox1">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Status">
<ItemTemplate>
<asp:Label id=Label2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Status") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList id="ddlStatus" Height="10" Width="80" Runat="server">
<asp:ListItem Value="免費">Free</asp:ListItem>
<asp:ListItem Value="付費" Selected="True">Payable</asp:ListItem>
<asp:ListItem Value="選擇">CHOOSE</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="PostedBy" ReadOnly="True" HeaderText="PostedBy"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Category">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Category") %>' ID="Label3">
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlCategory" Width="120" Height="10" Runat="server" DataMember="Category" DataSource="<%# articlesList1 %>" DataValueField="CategoryID" DataTextField="Category">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Price">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Price") %>' ID="Label4">
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox runat="server" Width="30" Text='<%# DataBinder.Eval(Container, "DataItem.Price") %>' ID="Textbox2">
</asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
</Columns>
<PagerStyle Mode="NumericPages"></PagerStyle>
</asp:datagrid><asp:label id="lblMessage" style="Z-INDEX: 103; LEFT: 12px; POSITION: absolute; TOP: 187px"
runat="server" Visible="False" Height="24px" Width="709px" ForeColor="Red" Font-Names="Century Gothic"></asp:label><asp:button id="btnPrevious" style="Z-INDEX: 104; LEFT: 37px; POSITION: absolute; TOP: 213px"
runat="server" Font-Names="Century Gothic" BackColor="#FFE0C0" Font-Bold="True" Text="上一步"></asp:button>
<uc1:Abstract id="cusAbstract" runat="server" Visible="False"></uc1:Abstract>
<asp:Label id="lblCache" style="Z-INDEX: 107; LEFT: 208px; POSITION: absolute; TOP: 224px"
runat="server" Font-Names="Century Gothic" Font-Size="X-Small"></asp:Label></form>
</body>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -