-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.php
287 lines (201 loc) · 8.67 KB
/
forms.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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?php
// recordform
function recordform ()
{
?>
<body id="public">
<div id="container">
<?php
navigation ();
?>
<form id="form1" name="form1" class="wufoo topLabel page" autocomplete="off" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<div class="info">
<h2>Volunteer Form Copy</h2>
<div></div>
</div>
<ul>
<li id="foli9" class=" ">
<label class="desc" id="title9" for="Field9">
Subject
<span id="req_9" class="req">*</span>
</label>
<div>
<input id="Field9" name="Field9" type="text" class="field text medium" value="" maxlength="255" tabindex="1" />
</div>
</li>
<li id="foli111"
class=" ">
<label class="desc" id="title111" for="Field111">
Please let us know any previous voluntary work that you have done.
<span id="req_111" class="req">*</span>
</label>
<div>
<textarea id="Field111"
name="Field111"
class="field textarea medium"
rows="10" cols="50"
tabindex="2"
onkeyup=""
></textarea>
</div>
</li>
<li id="foli224" class=" ">
<label class="desc" id="title224" for="Field224">
Hours
</label>
<div>
<input id="Field224" name="Field224" type="text" class="field text medium" value="" maxlength="255" tabindex="3" onkeyup="validateRange(224, 'digit');" />
<label for="Field224">Must be between <var id="rangeMinMsg224">1</var> and <var id="rangeMaxMsg224">3</var> digits. <em class="currently">Currently Used: <var id="rangeUsedMsg224">0</var> digits.</em></label>
</div>
</li>
<li id="foli225" class=" ">
<label class="desc" id="title225" for="Field225">
URL
</label>
<div>
<input id="Field225" name="Field225" type="text" class="field text medium" value="" maxlength="255" tabindex="4" onkeyup="" />
</div>
</li>
<li class="buttons ">
<div>
<input type="hidden" name="currentPage" id="currentPage" value="dB5YAYUJLThQ1vViLqkRtO8PC6nWmLuPsz2BRQNT4gw=" />
<input id="saveForm" name="saveForm" class="btTxt submit" type="submit" value="Submit" onmousedown="doSubmitEvents();" />
</div>
</li>
<li style="display:none">
<label for="comment">Do Not Fill This Out</label>
<textarea name="comment" id="comment" rows="1" cols="1"></textarea>
<input type="hidden" id="idstamp" name="idstamp" value="" />
<input type="hidden" id="stats" name="stats" value="" />
<input type="hidden" id="clickOrEnter" name="clickOrEnter" value="" />
</li>
</ul>
</form>
</div><!--container-->
<img id="bottom" src="images/bottom.png" alt="" />
<a class="powertiny" href="http://wufoo.com" title="Powered by Wufoo"
style="display:block !important;visibility:visible !important;text-indent:0 !important;position:relative !important;height:auto !important;width:95px !important;overflow:visible !important;text-decoration:none;cursor:pointer !important;margin:0 auto !important">
<span style="background:url(./images/powerlogo.png) no-repeat center 7px; margin:0 auto;display:inline-block !important;visibility:visible !important;text-indent:-9000px !important;position:static !important;overflow: auto !important;width:62px !important;height:30px !important">Wufoo</span>
<b style="display:block !important;visibility:visible !important;text-indent:0 !important;position:static !important;height:auto !important;width:auto !important;overflow: auto !important;font-weight:normal;font-size:9px;color:#777;padding:0 0 0 3px;">Designed</b>
</a>
</body>
</html>
<?php
} // closes function
// recordform
function recordformcomplete ($cardid)
{
global $volcard;
// call query to get existing record data and fill in field where data entered and see if it has been validated or not?
$db->query="SELECT * FROM ".VOLCARD.".volreport LEFT JOIN ".VOLCARD.".volconnect ON ".VOLCARD.".volconnect.volid = ".VOLCARD.".volreport.volid LEFT JOIN ".VOLCARD.".individual ON ".VOLCARD.".individual.individ = ".VOLCARD.".volconnect.individ WHERE ".VOLCARD.".volreport.volid = $cardid ";
//echo $db->query;
$resultcard = mysql_query($db->query) or die ("Error in query: $db->query. ".mysql_error());
// present results in table
if ( (mysql_num_rows ($resultcard)) > 0 )
{
while ($row = mysql_fetch_object($resultcard)) {
$cardr[] .= $row->title;
$cardr[] .= $row->description;
$cardr[] .= $row->time;
$cardr[] .= $row->dateentered;
$cardr[] .= $row->url;
} // closes while
} // closes if
//print_r($cardr);
$resultprof = mysql_query($db->query) or die ("Error in query: $db->query. ".mysql_error());
?>
<body id="public">
<div id="container">
<?php
navigation ();
?>
<form id="form1" name="form1" class="wufoo topLabel page" autocomplete="off" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<div class="info">
<h2>Volunteer Form Copy</h2>
<div></div>
</div>
<ul>
<li id="foli9" class=" ">
<label class="desc" id="title9" for="Field9">
Subject
<span id="req_9" class="req">*</span>
</label>
<div>
<input id="Field9" name="Field9" type="text" class="field text medium" value="<?php echo $cardr[0] ?>" maxlength="255" tabindex="1" />
</div>
</li>
<li id="foli111"
class=" ">
<label class="desc" id="title111" for="Field111">
Please let us know any previous voluntary work that you have done.
<span id="req_111" class="req">*</span>
</label>
<div>
<textarea id="Field111"
name="Field111"
class="field textarea medium"
rows="10" cols="50"
tabindex="2"
onkeyup=""
><?php echo $cardr[1] ?></textarea>
</div>
</li>
<li id="foli224" class=" ">
<label class="desc" id="title224" for="Field224">
Hours
</label>
<div>
<input id="Field224" name="Field224" type="text" class="field text medium" value="<?php echo $cardr[2] ?>" maxlength="255" tabindex="3" onkeyup="validateRange(224, 'digit');" />
<label for="Field224">Must be between <var id="rangeMinMsg224">1</var> and <var id="rangeMaxMsg224">3</var> digits. <em class="currently">Currently Used: <var id="rangeUsedMsg224">0</var> digits.</em></label>
</div>
</li>
<li id="foli225" class=" ">
<label class="desc" id="title225" for="Field225">
URL
</label>
<div>
<input id="Field225" name="Field225" type="text" class="field text medium" value="<?php echo $cardr[4] ?>" maxlength="255" tabindex="4" onkeyup="" />
</div>
</li>
<?php
if ($volcard == 1)
{
?>
<li>
<img src="/volreportcard/images/linkedin.gif"><a href="http://www.linkedin.com/benrmatthews/"><img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/hs473.snc4/49700_222300160_8923_n.jpg" height="60" width="60" >Ben Matthews</a>
<label>
<br /><b>Validation</b>
</label>
<div>
<input id="Field229" name="Field229" type="text" size="80" value="<?php echo 'James did a great job, the service gets used by 2,323 users a day'; ?>" maxlength="500" tabindex="4" onkeyup="" />
</div>
</li>
<?php
}
?>
<li class="buttons ">
<div>
<input type="hidden" name="currentPage" id="currentPage" value="dB5YAYUJLThQ1vViLqkRtO8PC6nWmLuPsz2BRQNT4gw=" />
<input id="saveForm" name="saveForm" class="btTxt submit" type="submit" value="Submit Validation" onmousedown="doSubmitEvents();" />
</div>
</li>
<li style="display:none">
<label for="comment">Do Not Fill This Out</label>
<textarea name="comment" id="comment" rows="1" cols="1"></textarea>
<input type="hidden" id="idstamp" name="idstamp" value="" />
<input type="hidden" id="stats" name="stats" value="" />
<input type="hidden" id="clickOrEnter" name="clickOrEnter" value="" />
</li>
</ul>
</form>
</div><!--container-->
<img id="bottom" src="images/bottom.png" alt="" />
<a class="powertiny" href="http://wufoo.com" title="Powered by Wufoo"
style="display:block !important;visibility:visible !important;text-indent:0 !important;position:relative !important;height:auto !important;width:95px !important;overflow:visible !important;text-decoration:none;cursor:pointer !important;margin:0 auto !important">
<span style="background:url(./images/powerlogo.png) no-repeat center 7px; margin:0 auto;display:inline-block !important;visibility:visible !important;text-indent:-9000px !important;position:static !important;overflow: auto !important;width:62px !important;height:30px !important">Wufoo</span>
<b style="display:block !important;visibility:visible !important;text-indent:0 !important;position:static !important;height:auto !important;width:auto !important;overflow: auto !important;font-weight:normal;font-size:9px;color:#777;padding:0 0 0 3px;">Designed</b>
</a>
</body>
</html>
<?php
} // closes function