?? js.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JS.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>無標題頁</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="border-right: #999999 thin solid; border-top: #999999 thin solid; background-attachment: fixed;
left: 18%; background-image: url(img/backgroud1.jpg); border-left: #999999 thin solid;
width: 534px; border-bottom: #999999 thin solid; position: absolute; top: 20%;
height: 266px; z-index: 105;">
<tr>
<td style="background-image: none; width: 40px; height: 267px">
<asp:Button ID="Button1" runat="server" BackColor="Control" BorderStyle="Outset"
OnClick="Button1_Click" Style="z-index: 100; left: 6px; position: absolute;
top: 95px" Text="查詢個人課程" Width="90px" ForeColor="SeaGreen" />
<asp:Button ID="Button2" runat="server" BackColor="Control" Style="z-index: 101;
left: 6px; position: absolute; top: 203px" Text="查詢個人信息" Width="90px" OnClick="Button2_Click" ForeColor="SeaGreen" />
<asp:Button ID="Button3" runat="server" BackColor="Control" Style="z-index: 103;
left: 6px; position: absolute; top: 147px" Text="查詢所有課程" Width="90px" OnClick="Button3_Click1" ForeColor="SeaGreen" />
</td>
<td style="background-image: none; width: 100px; height: 267px">
<asp:Label ID="Label1" runat="server" ForeColor="White" Style="z-index: 100; left: 308px;
position: absolute; top: 37px" Text="教師界面" Width="70px"></asp:Label>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None"
Height="178px" Style="z-index: 102; left: 106px; position: absolute; top: 65px"
Visible="False" Width="405px">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="Uaccouts" HeaderText="用戶號" ReadOnly="True" SortExpression="Uaccouts" />
<asp:BoundField DataField="Upassword" HeaderText="密碼" SortExpression="Upassword" />
<asp:BoundField DataField="Uname" HeaderText="用戶名" SortExpression="Uname" />
<asp:BoundField DataField="Uacademy" HeaderText="學院" SortExpression="Uacademy" />
<asp:BoundField DataField="Usort" HeaderText="用戶類別" SortExpression="Usort" />
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:courseConnectionString %>"
SelectCommand="SELECT * FROM [UserInformation] WHERE ([Uaccouts] = @Uaccouts)">
<SelectParameters>
<asp:SessionParameter Name="Uaccouts" SessionField="Uaccouts" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="UCnumber" DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None"
Height="174px" Style="z-index: 100; left: 269px; position: absolute; top: 451px"
Visible="False" Width="399px">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="UCnumber" HeaderText="編號" ReadOnly="True" SortExpression="UCnumber" />
<asp:BoundField DataField="Cnumber" HeaderText="課程號" SortExpression="Cnumber" />
<asp:BoundField DataField="Uaccouts" HeaderText="用戶名" SortExpression="Uaccouts" />
<asp:BoundField DataField="Uname" HeaderText="用戶名" SortExpression="Uname" />
<asp:BoundField DataField="Cname" HeaderText="課程名" SortExpression="Cname" />
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:courseConnectionString3 %>"
SelectCommand="SELECT * FROM [UserCourseInformation] WHERE ([Uaccouts] = @Uaccouts)">
<SelectParameters>
<asp:SessionParameter Name="Uaccouts" SessionField="Uaccouts" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="Cnumber" DataSourceID="SqlDataSource2" ForeColor="#333333" GridLines="None"
Height="195px" Style="z-index: 101; left: 264px; position: absolute; top: 442px"
Visible="False" Width="508px">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="Cnumber" HeaderText="課程號" ReadOnly="True" SortExpression="Cnumber" />
<asp:BoundField DataField="Cname" HeaderText="課程名" SortExpression="Cname" />
<asp:BoundField DataField="Cteacher" HeaderText="教師" SortExpression="Cteacher" />
<asp:BoundField DataField="Ccredit" HeaderText="學分" SortExpression="Ccredit" />
<asp:BoundField DataField="Ctime" HeaderText="上課時間" SortExpression="Ctime" />
<asp:BoundField DataField="Cclassrom" HeaderText="教室" SortExpression="Cclassrom" />
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:courseConnectionString2 %>"
SelectCommand="SELECT * FROM [CourseInformation]"></asp:SqlDataSource>
<asp:Label ID="Label2" runat="server" Font-Names="楷體_GB2312" Font-Size="X-Large"
ForeColor="#8080FF" Style="z-index: 102; left: 373px; position: absolute; top: 74px"
Text="歡迎來到個人課程管理系統" Width="301px"></asp:Label>
</div>
<asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Desktop" NavigateUrl="~/SY.aspx"
Style="z-index: 103; left: 722px; position: absolute; top: 132px">退出系統</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server" ForeColor="Desktop" NavigateUrl="~/XG.aspx"
Style="z-index: 106; left: 605px; position: absolute; top: 132px">修改密碼</asp:HyperLink>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -