-
Notifications
You must be signed in to change notification settings - Fork 0
/
babysitter_apply_jobs.html
137 lines (125 loc) · 4.97 KB
/
babysitter_apply_jobs.html
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
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Load style sheets -->
<link href='http://fonts.googleapis.com/css?family=Bubblegum+Sans|Noto+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="sitterPlan.css" />
<!-- Load any supplemental Javascript libraries here -->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript" src="schedule_table.js"></script>
<script type="text/javascript" src="babysitter_edit_schedule.js"></script>
<title>SitterPlan</title>
</head>
<script>
//initialization things
$(function() {
updateCalendar();
});
function updateCalendar() {
$.post("calendarWithJobs/", {username:"jimmy",
startDate:(SundayDate.getFullYear() + " " + SundayDate.getMonth() + " " + SundayDate.getDate())},
function(data){$("#calendar").html(data);});
}
function update() {
updateCalendar();
}
//update calendar labels based on date
var SundayDate = new Date();
while(SundayDate.getDay() != 0){
SundayDate.setDate(SundayDate.getDate() - 1);
}
function goToNextWeek(){
SundayDate.setDate(SundayDate.getDate() + 7);
updateCalendar();
};
function goToPrevWeek(){
SundayDate.setDate(SundayDate.getDate() - 7);
updateCalendar();
};
</script>
<body>
<div id="logo">SitterPlan</div>
<table id="buttonRow">
<tr>
<td></td>
<td>
<a href="list" style="text-decoration:none"> <input id="myJobs" type="button" name="myJobs" class="bigButton" value="Back to My Jobs"/> </a>
</td>
<td>
<input id="editSchedule" type="button" name="editSchedule" value="Edit Schedule" class="bigButton" onclick="showEditSchedule();" />
</td>
<td>
<input id="manageContactsButton" type="button" name="manageContacts" value="Manage Contacts" onclick="showManageContacts();" class="bigButton"/>
</td>
</tr>
</table>
<div id="mainDiv">
<h2>My Schedule</h2>
<div id="monthLabel" class="title" align='center'>April 2013</div>
<table id="calendar" style="width:90%; border:none"></table>
<div>
<p> </p>
<table style="width:90%; border:none">
<tr>
<td style="width:10%;"></td>
<td style="width:10%;"><b> Legend </b></td>
</tr>
<tr>
<td style="width:10%;"></td>
<td class="freeSquare" style="width:10%;"> Available </td>
<td class="nonfreeSquare" style="width:10%;"> Busy </td>
<td class="freeSquare" style="width:10%;"> <div class="acceptedSingleSquare"> Accepted Job</div></td>
<td class="freeSquare" style="width:10%;"> <div class="availableSingleSquare">Available Job</div></td>
<td style="width:fill"/>
<td style="width:10%;"> <input id="prevWeek" type="button" name="prevWeek" value="previous week" onclick="goToPrevWeek()"/> </td>
<td style="width:10%;"> <input id="nextWeek" type="button" name="nextWeek" value="next week" onclick="goToNextWeek()"/> </td>
</tr>
</table>
</div>
<div id="manageContactsPopup" style="display:none;">
<span>Search for new contacts<span>
<input type="text" name="Search" value="username">
<input id="searchContactParents" type="button" value="Search"/>
<div id="contacts">
<h2>My Contacts</h2>
<div id="contactList"></div>
</div>
</div>
<div id="hidingDiv" style="display:none;">
<div id="editSchedulePopup" style="-webkit-user-select:none;-moz-user-select:none;"></div>
<div id="editSchedulePageOne" style="-webkit-user-select:none;-moz-user-select:none;">
<p>Pick times you are free by painting the calendar.</p>
<table>
<tr>
<td valign="top"><div id="timerange-slider"></div></td>
<td>
<table id="babysitterScheduleTable" class="scheduleTable" />
<tbody>
<tr class='scheduleTableRow'>
<td class="scheduleTableLabel" ></td>
<td id="day0" class="scheduleTableLabel">Sunday</td>
<td id="day1" class="scheduleTableLabel">Monday</td>
<td id="day2" class="scheduleTableLabel">Tuesday</td>
<td id="day3" class="scheduleTableLabel">Wednesday</td>
<td id="day4" class="scheduleTableLabel">Thursday</td>
<td id="day5" class="scheduleTableLabel">Friday</td>
<td id="day6" class="scheduleTableLabel">Saturday</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<br/>
<table><tr>
<td><input align="top" type="button" name="done" value="Done" onclick="submitSchedule()"/></td></tr></table>
</div>
<div id="applyJobPopup" title=""></div>
</div>
</div>
</body>
</html>