-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.aspx
More file actions
143 lines (138 loc) · 9.23 KB
/
user.aspx
File metadata and controls
143 lines (138 loc) · 9.23 KB
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
<%@ Page Title="" Language="C#" MasterPageFile="~/General.master" AutoEventWireup="true" CodeFile="user.aspx.cs" Inherits="user" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" Runat="Server"><asp:Literal ID="litTitle" runat="server" /> JobFinder</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ExtraHead" Runat="Server">
<link rel="stylesheet" href="css/users.css" />
<link rel="stylesheet" href="css/forms.css" />
<script type="text/javascript">
function pageLoad () {
var figure = document.getElementById("profPicCont");
if (figure != null) {
figure.style.top = -(figure.offsetHeight / 4) + "px";
document.getElementById("descriptionText").style.marginTop = (figure.offsetHeight * 3 / 4 - 30) + "px";
}
};
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyHolder" Runat="Server">
<section id="userCont">
<article id="userCard">
<asp:MultiView ID="editInfo" ActiveViewIndex="0" runat="server">
<asp:View runat="server">
<asp:Panel ID="infoEdit" CssClass="editBtn" Visible="false" runat="server">
<asp:LinkButton CommandName="info" OnCommand="Show_Command" runat="server" />
</asp:Panel>
<figure id="profPicCont" class="clearfix">
<div class="outer-center">
<div class="inner-center">
<asp:Image ID="profilePic" AlternateText="Profile Picture" runat="server" />
</div>
</div>
</figure>
<p id="fullName"><asp:Label ID="firstname" runat="server" /> <asp:Label ID="lastname" runat="server" /></p>
<section id="descriptionText">
<asp:Literal ID="descrTextPanel" runat="server" />
</section>
<section id="contactInfo">
<asp:MultiView ID="contactViews" ActiveViewIndex="0" runat="server">
<asp:View runat="server">
<p class="restricted">You need to <a href="login.aspx">Log In</a> to view users' contact info.</p>
</asp:View>
<asp:View runat="server">
<asp:Panel ID="mailPanel" runat="server">
<p class="mail"><asp:LinkButton ID="emailLink" OnCommand="emailLink_Command" runat="server"><asp:Label ID="emailaddress" runat="server" /></asp:LinkButton></p>
</asp:Panel>
<p class="phone"><asp:Label ID="phonenr" runat="server" /></p>
</asp:View>
</asp:MultiView>
</section>
</asp:View>
<asp:View runat="server">
<asp:Panel DefaultButton="submitInfo" runat="server">
<section class="inputBlock clearfix">
<asp:Label ID="lblImage" AssociatedControlID="fileImage" Text="image:" runat="server" />
<section class="formInput">
<asp:FileUpload ID="fileImage" runat="server" /><br />
<asp:CustomValidator ID="custImage" ValidationGroup="info" CssClass="error" Display="Dynamic" ControlToValidate="fileImage" OnServerValidate="custImage_ServerValidate" ErrorMessage="Please provide only .jpg or .png images" runat="server" />
</section>
</section>
<section class="inputBlock clearfix">
<asp:Label ID="lblEmail" AssociatedControlID="txtEmail" Text="email (shown):" runat="server" />
<section class="formInput">
<asp:TextBox ID="txtEmail" runat="server" /><br />
<asp:CheckBox ID="chMail" Text="Show Email address" runat="server" />
</section>
</section>
<section class="inputBlock clearfix">
<asp:Label ID="lblPhone" AssociatedControlID="txtPhone" Text="Phone Number:" runat="server" />
<section class="formInput">
<asp:TextBox ID="txtPhone" runat="server" />
</section>
</section>
<section class="inputBlock clearfix">
<asp:Label ID="lblCv" AssociatedControlID="fileCv" Text="Cv:" runat="server" />
<section class="formInput">
<asp:FileUpload ID="fileCv" runat="server" />
</section>
</section>
<section class="inputBlock clearfix">
<asp:Label ID="lblDescr" AssociatedControlID="txtDescr" Text="Description:" runat="server" />
<section class="formInput">
<asp:TextBox ID="txtDescr" TextMode="MultiLine" runat="server" /><br />
<asp:RequiredFieldValidator ID="reqDescr" ValidationGroup="info" CssClass="error" Display="Dynamic" ControlToValidate="txtDescr" ErrorMessage="Please enter a description" runat="server" />
</section>
</section>
<section class="editBtns clearfix">
<p class="cancelBtn"><asp:LinkButton ID="cancelInfo" CausesValidation="false" CommandName="info" OnCommand="Cancel_Command" Text="Cancel" runat="server" /></p>
<p class="submitBtn"><asp:LinkButton ID="submitInfo" ValidationGroup="info" CommandName="info" OnCommand="Edit_Command" Text="Submit" runat="server" /></p>
</section>
</asp:Panel>
</asp:View>
</asp:MultiView>
</article>
<section id="interButtons" class="clearfix">
<asp:Panel ID="buttonPanel" Visible="false" runat="server">
<asp:Panel ID="pmPanel" Visible="false" runat="server">
<p class="buttonCont"><asp:LinkButton ID="PrivateMessageUser" Text="Send PM" runat="server" /></p>
</asp:Panel>
<p class="buttonCont"><asp:LinkButton ID="CVUser" Text="Download CV" OnCommand="CVUser_Click" runat="server" /></p>
</asp:Panel>
</section>
</section>
<aside id="userTags">
<h3>Skills</h3>
<section class="clearfix">
<asp:MultiView ID="editTags" ActiveViewIndex="0" runat="server">
<asp:View runat="server">
<asp:Repeater ID="tagRepeater" runat="server">
<ItemTemplate>
<p class="tag"><%# DataBinder.Eval(Container.DataItem, "Name") %></p>
</ItemTemplate>
</asp:Repeater>
<asp:Panel ID="tagsEdit" CssClass="editBtn" Visible="false" runat="server">
<asp:LinkButton CommandName="tags" OnCommand="Show_Command" runat="server" />
</asp:Panel>
</asp:View>
<asp:View runat="server">
<section class="clearfix">
<asp:Repeater ID="tagEditRepeater" OnItemCommand="tagEditRepeater_ItemCommand" runat="server">
<ItemTemplate>
<p class="tag"><%# DataBinder.Eval(Container.DataItem, "Name") %><asp:LinkButton CssClass="remTag" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' runat="server" /></p>
</ItemTemplate>
</asp:Repeater>
</section>
<asp:Panel DefaultButton="submitTag" runat="server">
<section id="tagText" class="inputBlock">
<asp:TextBox ID="txtTag" runat="server" />
<asp:RequiredFieldValidator ID="reqTag" ValidationGroup="tags" CssClass="error" Display="Dynamic" ControlToValidate="txtTag" ErrorMessage="Please enter a tag" runat="server" />
<asp:CustomValidator ID="custTag" ValidationGroup="tags" CssClass="error" Display="Dynamic" ControlToValidate="txtTag" ErrorMessage="Please limit the length of the tag to 20 chars" OnServerValidate="custTag_ServerValidate" runat="server" />
</section>
<section class="inputBlock clearfix">
<p class="cancelBtn"><asp:LinkButton ID="cancelTags" CausesValidation="false" CommandName="tags" OnCommand="Cancel_Command" Text="Back" runat="server" /></p>
<p class="submitBtn"><asp:LinkButton ID="submitTag" ValidationGroup="tags" CommandName="tags" OnCommand="Edit_Command" Text="Add" runat="server" /></p>
</section>
</asp:Panel>
</asp:View>
</asp:MultiView>
</section>
</aside>
</asp:Content>