phpDocumentor ComCal
[ class tree: ComCal ] [ index: ComCal ] [ all elements ]

Source for file addvenue.php

Documentation is available at addvenue.php


1 <?include "functions.php";?>
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
4 <html>
5 <head>
6 <title>Untitled</title>
7 <link rel="stylesheet" type="text/css" href="<?=$baseurl.$caldir?>styles/cal.css">
8 <style type="text/css">@import url(styles/cal.css);</style>
9 <script language="JavaScript" src="/newwindow.js"></script>
10 </head>
11
12 <body style="background-color:#cccc99;">
13 <h1><?if ($edit) echo "Edit"; else echo "Add";?> a Venue</h1>
14 <?if ($submitter) {
15 $posted = postvenue($sub, $edit, get_user_id($HTTP_SESSION_VARS['cal_login_status']));
16 if ($posted) {
17 $community = read_community($posted[community_id]);
18 $state = read_state($community[community_state]);
19 echo "<p>Venue added as follows:</p>\n";
20 echo "<div>$posted[venue_name]</div>\n";
21 echo "<div>$posted[venue_addr]</div>\n";
22 echo "<div>".community_namefix($community['community_name']).', '.$state['state_name'].', '.$community['community_country']."</div>\n";
23 echo "<div>Phone: $posted[venue_phone]</div>\n";
24 echo "<div>Fax: $posted[venue_fax]</div>\n";
25 echo "<div>Email: $posted[venue_email]</div>\n";
26 echo '<p><a href="'.$PHP_SELF.'?edit=true&amp;venue_id='.$posted['venue_id'].'">Edit This Venue</a>&nbsp;|&nbsp;<a href="#" onclick="opener.document.subform.newven.value=\'true\';opener.document.subform.submit();">Close and Update Event</a></p>';?>
27
28 <form name="newven" id="newven">
29 <input type="hidden" name="venid" id="venid" value="<?=$posted['venue_id']?>">
30 <input type="hidden" name="venname" id="venname" value="<?=$posted['venue_name']?>">
31 </form>
32
33 <? }
34 else {
35 echo "<p>Couldn't add venue!</p>";
36 }
37 ?>
38
39 <?
40 }
41 else {
42 include $forms_dir."venueform.php";
43 }?>
44 </body>
45 </html>

Documentation generated on Wed, 19 Nov 2003 23:07:23 -0500 by phpDocumentor 1.2.3