-
Notifications
You must be signed in to change notification settings - Fork 9
/
company_home.aspx
173 lines (169 loc) · 8.84 KB
/
company_home.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
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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="company_home.aspx.cs" Inherits="company_home" %>
<!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>
<style type="text/css">
#form1
{
height: 943px;
width: 1394px;
margin-right: 0px;
}
.style1
{
width: 44%;
z-index: 1;
left: 715px;
top: 394px;
position: absolute;
height: 395px;
}
.style2
{
height: 48px;
}
.style3
{
height: 240px;
}
.style4
{
height: 38px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
<asp:Label ID="Label1" runat="server" ForeColor="#CC0099"
style="z-index: 1; left: 10px; top: 240px; position: absolute" Text="welcome"></asp:Label>
<asp:Label ID="companyid" runat="server" ForeColor="Blue"
style="z-index: 1; left: 81px; top: 241px; position: absolute; right: 484px; height: 27px"
Text="label"></asp:Label>
<asp:ImageButton ID="ImageButton1" runat="server" Height="204px"
ImageUrl="~/images/New folder (2)/books2.jpg" Width="1502px"
style="z-index: 1; left: 10px; top: 3px; position: absolute" />
<table class="style1">
<tr>
<td class="style2">
CompanyName</td>
</tr>
<tr>
<td class="style4">
CompanyId<asp:TextBox ID="compid" runat="server"
style="z-index: 1; left: 106px; top: 58px; position: absolute; width: 100px"
ReadOnly="True"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
<asp:Button ID="Button1" runat="server" onclick="Button1_Click"
style="z-index: 1; left: 237px; top: 353px; position: absolute; height: 26px; width: 88px"
Text="Post" />
<asp:TextBox ID="jobpost" runat="server"
style="z-index: 1; left: 1px; top: 95px; position: absolute; height: 238px; width: 612px"
TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<asp:TextBox ID="compname" runat="server"
style="z-index: 1; left: 822px; top: 402px; position: absolute; height: 24px; width: 504px"></asp:TextBox>
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px"
CellPadding="4" DataKeyNames="companyid" DataSourceID="SqlDataSource1"
ForeColor="Black" GridLines="Vertical"
style="z-index: 1; left: 16px; top: 286px; position: absolute; height: 666px; width: 569px">
<AlternatingRowStyle BackColor="White" />
<EditRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<Fields>
<asp:BoundField DataField="companyid" HeaderText="companyid" ReadOnly="True"
SortExpression="companyid" />
<asp:BoundField DataField="CompanyName" HeaderText="CompanyName"
SortExpression="CompanyName" />
<asp:BoundField DataField="RegistrationNo" HeaderText="RegistrationNo"
SortExpression="RegistrationNo" />
<asp:BoundField DataField="Functionality" HeaderText="Functionality"
SortExpression="Functionality" />
<asp:BoundField DataField="OpeningDate" HeaderText="OpeningDate"
SortExpression="OpeningDate" />
<asp:BoundField DataField="Specialization" HeaderText="Specialization"
SortExpression="Specialization" />
<asp:BoundField DataField="NoOfEmployee" HeaderText="NoOfEmployee"
SortExpression="NoOfEmployee" />
<asp:BoundField DataField="Address" HeaderText="Address"
SortExpression="Address" />
<asp:BoundField DataField="Country" HeaderText="Country"
SortExpression="Country" />
<asp:BoundField DataField="PostalCode" HeaderText="PostalCode"
SortExpression="PostalCode" />
<asp:BoundField DataField="State" HeaderText="State" SortExpression="State" />
<asp:BoundField DataField="CompanyMail" HeaderText="CompanyMail"
SortExpression="CompanyMail" />
<asp:BoundField DataField="companypass" HeaderText="companypass"
SortExpression="companypass" />
<asp:CommandField ShowEditButton="True" />
</Fields>
<FooterStyle BackColor="#CCCC99" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<RowStyle BackColor="#F7F7DE" />
</asp:DetailsView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:CISConnectionString %>"
DeleteCommand="DELETE FROM [company] WHERE [companyid] = @companyid"
InsertCommand="INSERT INTO [company] ([companyid], [CompanyName], [RegistrationNo], [Functionality], [OpeningDate], [Specialization], [NoOfEmployee], [Address], [Country], [PostalCode], [State], [CompanyMail], [companypass]) VALUES (@companyid, @CompanyName, @RegistrationNo, @Functionality, @OpeningDate, @Specialization, @NoOfEmployee, @Address, @Country, @PostalCode, @State, @CompanyMail, @companypass)"
SelectCommand="SELECT * FROM [company] WHERE ([companyid] = @companyid)"
UpdateCommand="UPDATE [company] SET [CompanyName] = @CompanyName, [RegistrationNo] = @RegistrationNo, [Functionality] = @Functionality, [OpeningDate] = @OpeningDate, [Specialization] = @Specialization, [NoOfEmployee] = @NoOfEmployee, [Address] = @Address, [Country] = @Country, [PostalCode] = @PostalCode, [State] = @State, [CompanyMail] = @CompanyMail, [companypass] = @companypass WHERE [companyid] = @companyid">
<DeleteParameters>
<asp:Parameter Name="companyid" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="companyid" Type="String" />
<asp:Parameter Name="CompanyName" Type="String" />
<asp:Parameter Name="RegistrationNo" Type="String" />
<asp:Parameter Name="Functionality" Type="String" />
<asp:Parameter Name="OpeningDate" Type="String" />
<asp:Parameter Name="Specialization" Type="String" />
<asp:Parameter Name="NoOfEmployee" Type="Int32" />
<asp:Parameter Name="Address" Type="String" />
<asp:Parameter Name="Country" Type="String" />
<asp:Parameter Name="PostalCode" Type="Int32" />
<asp:Parameter Name="State" Type="String" />
<asp:Parameter Name="CompanyMail" Type="String" />
<asp:Parameter Name="companypass" Type="String" />
</InsertParameters>
<SelectParameters>
<asp:SessionParameter Name="companyid" SessionField="id3" Type="String" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="CompanyName" Type="String" />
<asp:Parameter Name="RegistrationNo" Type="String" />
<asp:Parameter Name="Functionality" Type="String" />
<asp:Parameter Name="OpeningDate" Type="String" />
<asp:Parameter Name="Specialization" Type="String" />
<asp:Parameter Name="NoOfEmployee" Type="Int32" />
<asp:Parameter Name="Address" Type="String" />
<asp:Parameter Name="Country" Type="String" />
<asp:Parameter Name="PostalCode" Type="Int32" />
<asp:Parameter Name="State" Type="String" />
<asp:Parameter Name="CompanyMail" Type="String" />
<asp:Parameter Name="companypass" Type="String" />
<asp:Parameter Name="companyid" Type="String" />
</UpdateParameters>
</asp:SqlDataSource>
<asp:ImageButton ID="ImageButton2" runat="server"
ImageUrl="~/images/New folder (2)/logout.png" onclick="ImageButton2_Click"
style="z-index: 1; left: 1335px; top: 207px; position: absolute; height: 48px; width: 176px" />
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Italic="True"
ForeColor="#CC0099"
style="z-index: 1; left: 722px; top: 359px; position: absolute; height: 25px; width: 91px"
Text="Job Post"></asp:Label>
</form>
</body>
</html>