-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddTestSectionVariablewiseInstructions.ascx
203 lines (202 loc) · 8.69 KB
/
AddTestSectionVariablewiseInstructions.ascx
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddTestSectionVariablewiseInstructions.ascx.cs" Inherits="AddTestSectionVariablewiseInstructions" %>
<%@ Register assembly="FreeTextBox" namespace="FreeTextBoxControls" tagprefix="FTB" %>
<asp:Panel ID="Panel1" runat="server" HorizontalAlign="Left">
<table style="width:400px;">
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td class="titlemain">
Variablewise Instructions</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblOrganization" runat="server" Text="Organization"></asp:Label>
</td>
<td>
<asp:DropDownList ID="ddlOrganizations" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
onselectedindexchanged="ddlOrganizations_SelectedIndexChanged" Width="502px">
<asp:ListItem Value="0">-- Select --</asp:ListItem>
</asp:DropDownList>
<asp:LinqDataSource ID="LinqOrganizationList" runat="server"
ContextTypeName="AssesmentDataClassesDataContext"
Select="new (Name, OrganizationID)" TableName="Organizations"
Where="AdminAccess == @AdminAccess && Status == @Status">
<WhereParameters>
<asp:Parameter DefaultValue="1" Name="AdminAccess" Type="Int32" />
<asp:Parameter DefaultValue="1" Name="Status" Type="Int32" />
</WhereParameters>
</asp:LinqDataSource>
</td>
</tr>
<tr>
<td>
Test</td>
<td>
<asp:DropDownList ID="ddlTestNameList" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
onselectedindexchanged="ddlTestNameList_SelectedIndexChanged"
Width="502px">
<asp:ListItem Value="0">-- Select --</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Test Section</td>
<td>
<asp:DropDownList ID="ddlTestSectionList" runat="server" AppendDataBoundItems="True"
AutoPostBack="True" onselectedindexchanged="ddlTestSectionList_SelectedIndexChanged"
Width="502px">
<asp:ListItem Value="0">-- Select --</asp:ListItem>
</asp:DropDownList>
<asp:LinqDataSource ID="LinqTestSectionList" runat="server"
ContextTypeName="AssesmentDataClassesDataContext"
Select="new (SectionName, TestSectionId, TestId)" TableName="TestSectionsLists">
</asp:LinqDataSource>
</td>
</tr>
<tr>
<td>
1st Level variable List</td>
<td>
<asp:DropDownList ID="ddlFirstLevelVariableList" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
onselectedindexchanged="ddlFirstLevelVariableList_SelectedIndexChanged"
Width="500px">
<asp:ListItem Value="0">-- Select --</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
2nd Level variable List</td>
<td>
<asp:DropDownList ID="ddlSecondLevelVariableList" runat="server"
AppendDataBoundItems="True" AutoPostBack="True"
onselectedindexchanged="ddlSecondLevelVariableList_SelectedIndexChanged"
Width="500px">
<asp:ListItem Value="0">-- Select --</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Test Category</td>
<td>
<asp:DropDownList ID="ddlCategory" runat="server" AppendDataBoundItems="True"
AutoPostBack="True" onselectedindexchanged="ddlCategory_SelectedIndexChanged"
Width="502px">
<asp:ListItem Value="0">-- Select --</asp:ListItem>
<asp:ListItem Value="1">Objective Type Questions</asp:ListItem>
<asp:ListItem Value="2">Fill in the Blanks Questions</asp:ListItem>
<asp:ListItem Value="4">Image Type Questions</asp:ListItem>
<asp:ListItem Value="5">Video Type Questions</asp:ListItem>
<asp:ListItem Value="6">Audio Type Questions</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Instructions</td>
<td>
<FTB:FreeTextBox ID="FreeTextBox1" runat="Server" Height="200px" Text=""
ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat"
ToolbarStyleConfiguration="NotSet" UpdateToolbar="True" Width="525px"></FTB:FreeTextBox>
</td>
</tr>
<tr>
<td>
Image1</td>
<td>
<input ID="txtfilename1" runat="server" style="width: 300px" type="text" /><input
ID="Button4" onclick="dispQuestionFile('txtfilename1');"
style="width: 100px" type="button" value="Browse a File .." /><asp:Button
ID="btnDeleteImage1" runat="server" onclick="btnDeleteImage1_Click"
Text="Delete" Width="55px" />
</td>
</tr>
<tr>
<td>
Instructions2</td>
<td>
<FTB:FreeTextBox ID="FreeTextBox2" runat="Server" Height="200px" Text=""
ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat"
ToolbarStyleConfiguration="NotSet" UpdateToolbar="True" Width="525px">
</FTB:FreeTextBox>
</td>
</tr>
<tr>
<td>
Image2</td>
<td>
<input ID="txtfilename2" runat="server" style="width: 300px" type="text" /><input
ID="Button5" onclick="dispQuestionFile('txtfilename2');"
style="width: 100px" type="button" value="Browse a File .." /><asp:Button
ID="btnDeleteImage2" runat="server" onclick="btnDeleteImage2_Click"
Text="Delete" Width="55px" />
</td>
</tr>
<tr>
<td>
Instructions3</td>
<td>
<FTB:FreeTextBox ID="FreeTextBox3" runat="Server" Height="200px" Text=""
ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat"
ToolbarStyleConfiguration="NotSet" UpdateToolbar="True" Width="525px">
</FTB:FreeTextBox>
</td>
</tr>
<tr>
<td>
Status</td>
<td>
<asp:DropDownList ID="ddlStatus" runat="server">
<asp:ListItem Value="1">Active</asp:ListItem>
<asp:ListItem Value="0">In Active</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td>
</td>
<td>
<table width="200">
<tr>
<td>
<asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click"
Text="Submit" />
</td>
<td>
<asp:Button ID="btnReset" runat="server" onclick="btnReset_Click"
Text="Reset" />
</td>
<td>
<asp:Button ID="btnDelete" runat="server" onclick="btnDelete_Click"
Text="Delete" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>