2003-03-04 19:13:21 +00:00
|
|
|
<?php
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/prefs.inc");
|
2003-03-04 19:13:21 +00:00
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2003-03-04 19:13:21 +00:00
|
|
|
|
2005-02-13 06:13:33 +00:00
|
|
|
$venue = get_str("venue");
|
|
|
|
check_venue($venue);
|
|
|
|
$subset = get_str("subset");
|
|
|
|
check_subset($subset);
|
2003-03-04 19:13:21 +00:00
|
|
|
|
|
|
|
$x = subset_name($subset);
|
2003-03-06 17:42:49 +00:00
|
|
|
page_head("Add $x preferences for $venue");
|
2003-03-04 19:13:21 +00:00
|
|
|
echo "<form action=add_venue_action.php>
|
|
|
|
<input type=hidden name=venue value=$venue>
|
|
|
|
<input type=hidden name=subset value=$subset>
|
|
|
|
";
|
|
|
|
start_table();
|
|
|
|
if ($subset == "global") {
|
|
|
|
$prefs = default_prefs_global();
|
|
|
|
prefs_form_global($user, $prefs, null);
|
|
|
|
} else {
|
|
|
|
$prefs = default_prefs_project();
|
2003-03-05 06:21:24 +00:00
|
|
|
prefs_form_resource($prefs);
|
|
|
|
prefs_form_project($prefs);
|
2003-03-04 19:13:21 +00:00
|
|
|
}
|
2003-03-06 17:42:49 +00:00
|
|
|
row2("","<input type=submit value=\"Add preferences\">");
|
2003-03-04 19:13:21 +00:00
|
|
|
end_table();
|
|
|
|
echo "</form>\n";
|
|
|
|
page_tail();
|
|
|
|
|
|
|
|
?>
|