-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar_guidebook_form.php
78 lines (60 loc) · 2.86 KB
/
calendar_guidebook_form.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php require_once('access.php'); echo $event_tools_event_name; ?> Calendar Download</title>
<link href="clinics.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1><?php require_once('access.php'); echo $event_tools_event_name; ?> Calendar Download for Guidebook Gears</h1>
<form method="get" action="calendar_guidebook_download.php">
<?php
// -------------------------------------------------------------------------
// Part of EventTools, a package for managing model railroad meeting information
//
// By Bob Jacobsen, [email protected], Copyright 2010, 2011
// -------------------------------------------------------------------------
parse_str($_SERVER["QUERY_STRING"], $args);
echo '<h4>My Events</h4>';
echo '<input name="purchases" id="purchases" type="checkbox" ';
if ($args["purchases"] == "on") echo ' checked="yes" ';
echo '>My Purchased Tours</input><br/>';
echo '<input name="shopcart" id="shopcart" type="checkbox" ';
if ($args["shopcart"] == "on") echo ' checked="yes" ';
echo '>My Shopping Cart</input><br/>';
echo '(Please enter your email address: <input name="email">)<br/>';
echo '<h4>Full Schedule</h4>';
echo '<p>The following will put a lot of concurrent items in your calendar, because there are a lot of clinics and tours. ';
echo 'It might be best to download them one at a time.<p/>';
echo '<input name="clinics" id="clinics" type="checkbox" ';
if ($args["clinics"] == "on") echo 'checked="yes" ';
echo '>All Clinics</input><br/>';
echo '<input name="general" id="general" type="checkbox" ';
if ($args["general"] == "on") echo 'checked="yes" ';
echo '>All General and Prototype Tours</input><br/>';
echo '<input name="layout" id="layout" type="checkbox" ';
if ($args["layout"] == "on") echo 'checked="yes" ';
echo '>All Layout Tours</input><br/>';
echo '<input name="misc" id="misc" type="checkbox" ';
if ($args["misc"] == "on") echo 'checked="yes" ';
echo '>Other Events</input><br/>';
echo '<h4>Formatting Options</h4>';
echo "\nMost calendar programs want their event listings in plain text. ";
echo "\nIf your program accepts HTML-formatted event listings, you can select HTML below.<br/>";
echo '<input name="text" id="text" type="radio" value="on"';
if ($args["text"] != "off") echo ' checked ';
echo '>Text<br/>';
echo '<input name="text" id="text" type="radio" value="off"';
if ($args["text"] == "off") echo ' checked ';
echo '>HTML<br/>';
echo '<p>';
echo '<input name="advance" id="advance" type="checkbox" ';
if ($args["advance"] == "on") echo ' checked="yes" ';
echo '>Advance Section only (check only tours, not clinics or misc)<br/>';
?>
<p/>
<button type="submit" name="download" value="yes" id="download">Download</button>
</form>
</body>
</html>