-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
145 lines (128 loc) · 3.53 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='fullcal/cal.css'/>
<link rel='stylesheet' type='text/css' href='css/styles.css' />
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'></script>
<script type='text/javascript' src='fullcal/testcal.js'></script>
<script type='text/javascript' src='events.js'></script>
<script type='text/javascript' src='post.js'></script>
<title>
SODAASN (+ scott)
</title>
</head>
<body>
<div id='loading' style='display:none'>
loading...
</div>
<table id='header'>
<th>
Welcome (insert group name)!
</th>
</table>
<div id="addEvent">
<form name="newEvent" onsubmit="addEvent(); return false;" action="">
<input type="hidden" name="groupID" value="WILLHOLDGROUPIDNUMBER">
<table>
<th>
<td colspan="2">ADD EVENT</td>
</th>
<tr>
<td>Name:</td>
<td><input name="name" type="text"></td>
</tr>
<tr>
<td>Date:</td>
<!-- should probably make this into a jquery datepicker -->
<td><input name="date" type="text"></td>
</tr>
<tr>
<td>Location:</td>
<td><input name="location" type="text"></td>
</tr>
<tr>
<td>Time:</td>
<!-- could also make this better with jquery -->
<td><input name="time" type="text"></td>
</tr>
<tr>
<td>Blurb!</td>
<td><input name="blurb" type="text"></td>
</tr>
<tr>
<td>Which calendar to add to?</td>
<td>
<select name="caldropdown">
<?
echo("<option>hello world</option>");
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
// ClientLogin username/password authentication
$user = '[email protected]';
$pass = 'wobble31';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined service name for calendar
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
echo("<option>hello world</option>");
// create new entry using calendar
$service = new Zend_Gdata_Calendar($client);
$calFeed = $gdataCal->getCalendarListFeed();
foreach ($calFeed as $calendar)
{
$title = $calendar->title->text;
print("<option>");
print($title);
print("</option>");
}
?>
</select>
</td>
</tr>
<tr>
<td>Any tags?</td>
<td>Well too bad, because you can't tag right now.</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="ADD ME"></td>
</tr>
</table>
</form>
</div>
<div id='calendar'>
</div>
<div id='lowerleft'>
<form name="qform" onsubmit="searchEvents(); return false;" action="">
<table>
<tr>
<td>I want a calendar that has:</td>
<td><input name="squery" type="text" value=""></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="button" value="SEARCH">
</td>
</tr>
</table>
</form>
</div>
<div>
<form name="newCal" onsubmit="addCal(); return false;" action="">
<input name="userID" type="hidden" value="useridneedstogohere">
<table>
<tr>
<th colspan="2">Make-Your-Own</th>
</tr>
<tr>
<td>Calendar Name:</td>
<td><input name="calName" type="text" value=""></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="button" value="MAKE"></td>
</tr>
</table>
</form>
</div>
</body>
</html>