forked from hlac/AdvisorBooking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CancelAppointment.aspx
139 lines (123 loc) · 7.88 KB
/
CancelAppointment.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<%@ Page Title="" Language="C#" MasterPageFile="~/AdvisorBookingServiceMasterPage.master" AutoEventWireup="true" CodeFile="CancelAppointment.aspx.cs" Inherits="CancelAppointment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1" runat="server">
<div class="post" id="post-5">
<div class="post-title">
<center><h2><a href="#">Appointment Cancellation</a></h2></center>
</div>
<div class="post-entry">
<div class="post-entry-top">
<div class="post-entry-bottom">
<table style="width: 100%">
<tr>
<td style="width: 137px; text-align: right" valign="middle">
</td>
<td style="width: 543px" valign="middle">
</td>
<td valign="middle">
</td>
</tr>
<tr>
<td style="width: 137px; text-align: right" valign="middle">
<asp:Label ID="lblStudentID" runat="server" style="font-weight: 700"
Text="Student I.D."></asp:Label>
</td>
<td style="width: 543px" valign="middle">
<asp:TextBox ID="txtStudentID" runat="server" Width="270px"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvStudentID" runat="server"
ErrorMessage="Student ID should not be blank" ControlToValidate="txtStudentID"
Font-Bold="True" ForeColor="#FF3300">*</asp:RequiredFieldValidator>
<asp:RangeValidator ID="rgvStudentID" runat="server" ControlToValidate="txtStudentID"
ErrorMessage="Student ID must be between 1 to 999999999" ForeColor="#FF3300"
MaximumValue="999999999" MinimumValue="1" Type="Integer">*</asp:RangeValidator>
</td>
<td valign="middle">
</td>
</tr>
<tr>
<td style="width: 137px; height: 24px;" valign="top" align="right">
<asp:Label ID="Llbcomment" runat="server" style="font-weight: 700"
Text="Reason for cancel"></asp:Label>
</td>
<td style="width: 543px; height: 24px;" valign="top">
<asp:TextBox ID="txtComments" runat="server" Width="273px" Height="69px"></asp:TextBox>
</td>
<td valign="middle" style="height: 24px">
</td>
</tr>
<tr>
<td style="width: 137px; height: 24px;" valign="middle">
</td>
<td style="width: 543px; height: 24px;" valign="top">
<asp:Button ID="btncheck" runat="server" Text="View appointment"
Width="134px" onclick="btnCheck_click" /> <asp:Button ID="Button1" runat="server" Text="Cancel Appointment"
Width="135px" onclick="Button1_Click"/>
</td>
<td valign="middle" style="height: 24px">
</td>
</tr>
<tr>
<td style="width: 137px; text-align: right" valign="middle">
</td>
<td style="width: 543px" valign="middle">
</td>
</tr>
<tr>
<td style="width: 137px; text-align: right" valign="middle">
</td>
<td style="width:543px" valign="middle">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
autogenerateselectbutton="True" selectedindex="0"
onselectedindexchanged="GridView1_SelectedIndexChanged"
onrowdeleting="GridView1_RowDeleting" CellPadding="4" ForeColor="#333333"
GridLines="None" Width="458px">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:BoundField DataField="Appointment_ID" HeaderText="Appointment ID"
SortExpression="Appointment_ID" />
<asp:BoundField DataField="Student_Id" HeaderText="Student Id"
SortExpression="Student_Id" />
<asp:BoundField DataField="Comment" HeaderText="Comment"
SortExpression="Comment" />
<asp:BoundField DataField="Date_Start" HeaderText="Date Start"
SortExpression="Date_Start" />
<asp:BoundField DataField="Time_Start" HeaderText="Time Start"
SortExpression="Time_Start" />
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<selectedrowstyle backcolor="#E2DED6"
forecolor="#333333"
font-bold="true"/>
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
</td>
<td valign="middle">
</td>
</tr>
<tr>
<td style="width: 137px" valign="middle">
</td>
<td style="width: 543px" valign="middle">
</td>
<td valign="middle">
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="navigation">
<div class="navigation-previous"></div>
<div class="navigation-next"></div>
</div>
<div class="clear"></div>
</form>
</asp:Content>