Esempio n. 1
0
	</tr>
	</table>
	<div class="edit-form">
	<strong>Description</strong><br/>
	<textarea class="full" name="description" id="description"><?php 
    echo $_POST['description'];
    ?>
</textarea>
	</div>
	
	<div class="edit-form">
		<input type="submit" value="Add Performer" name="submit" class="button">
		<input type="submit" value="Return to Guest Performers" name="preview" onclick="location.href='band_gps.php'; return false" class="button">
	</div>
	</form>
	</div>
	
<?php 
} else {
    ?>

	<?php 
    echo Error::outputDialog('Return to Guest Performers', 'band_gps.php', 'You do not have permission to add a guest performer.');
    ?>

<?php 
}
?>

<?php 
include 'layout/footer.php';
			</select>
			<input type="submit" name="incomingfile" value="Add Incoming File" class="button">
		</form>
		
		<?php 
        } else {
            ?>
			<h2>Add Incoming File</h2>
			There are no files in your incoming directory.<br>
		<?php 
        }
        ?>
		</div>
	<?php 
    } else {
        Error::outputDialog('Return to Release Track', 'release_track_edit.php?id=' . $_GET['id'], 'You are not allowed to add audio to a track.');
    }
} else {
    ?>


<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	<a href="releases.php">Releases &#62;</a>
	Invalid Entry
</div>

<?php 
    if (db::isError($r)) {
        $r->outputDialog('Return to Releases', 'releases.php');
    } else {
</td>
						<td><?php 
                    echo $bm->getRole();
                    ?>
</td>
					</tr>
				
					<?php 
                }
                ?>
	
				</table>
				<br/>
				<input type="submit" value="Select Band Members" name="submit" class="button">
				<input type="submit" value="Exit and Close Window" name="exit" onclick="javascript:top.close(); return false" class="button">
				</form>
				</div>
			<?php 
            } else {
                $bmArray->outputDialog('Close Window', 'javascript:self.close()');
            }
        } else {
            $selectedBMArray->outputDialog('Close Window', 'javascript:self.close()');
        }
    } else {
        $r->outputDialog('Close Window', 'javascript:self.close()');
    }
} else {
    Error::outputDialog('Close Window', 'javascript:self.close()', 'Only an administrator may specify this information.');
}
include 'layout/footer_popup.php';
Esempio n. 4
0
include 'layout/header.php';
$bi = BandInformation::get();
$defaultStateProvince = $bi->getDefaultStateProvince();
$defaultCity = $bi->getDefaultcity();
$defaultCountry = $bi->getDefaultCountry();
?>

<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	<a href="live.php">Live &#62;</a>
	<a href="shows.php">Shows &#62;</a>
	Add Show
</div>
<?php 
if (!Show::canAdd()) {
    Error::outputDialog('Return to Shows', 'shows.php', 'You are not an administrator, and you are not a band member. Therefore, you cannot add shows.');
} else {
    if (db::isError($sh)) {
        $sh->outputList();
    }
    ?>
	<h1>new entry:</h1>
	<div class="inset">
	<form id="edit_entry" action="<?php 
    echo $PHP_SELF;
    ?>
?task=add" method="post">
	<table border="0" class="edit-form" cellspacing="0" cellpadding="0">
	
	<?php 
    $sl = new VenueList();
Esempio n. 5
0
	<div class="edit-form">
		<strong>URL</strong><br/>
		<?php 
    $url = $_POST ? $_POST['url'] : "http://";
    ?>
		<input type="text" name="url" value="<?php 
    echo $url;
    ?>
" class="text">
	</div>
	<div class="edit-form">
		<strong>Description</strong><br/>
		<textarea name="description" class="full" id="description"><?php 
    echo $_POST['description'];
    ?>
</textarea>
	</div>
	<div class="edit-form">
		<input type="submit" value="Add Link" class="button" name="submit">
		<input type="submit" value="Exit Without Adding" class="button" name="preview" onclick="location.href='links.php?category_id=<?php 
    echo $category_id;
    ?>
'; return false">
	</div>
	</div>
	
<?php 
} else {
    Error::outputDialog('Return to Links', 'links.php', 'Only an administrator may add links.');
}
include 'layout/footer.php';
			<br>
			<form name="entry_status" method="get">
				<input type="submit" name="" value="Edit Entry" onclick="location.href='<?php 
            echo $PHP_SELF;
            ?>
?task=edit&id=<?php 
            echo $_GET['id'];
            ?>
';return false" class="button">
				<input type="submit" value="Exit and Close Window" name="" onclick="javascript:top.close(); return false" class="button">
			</form>
			
			</div>
	
		
		<?php 
        }
        ?>
		
	
	<?php 
    } else {
        Error::outputDialog(null, null, 'Only an administrator may set media preferences.');
    }
} else {
    $ma->outputDialog(null, null);
}
?>

<?php 
include 'layout/footer_popup.php';
Esempio n. 7
0
    echo $_POST['date'];
    ?>
"></td>
	</tr>
	</table>
	<div class="edit-form">
		<strong>Notes</strong><br/>
		<textarea name="notes" class="full" id="notes"><?php 
    echo $_POST['notes'];
    ?>
</textarea>
	</div>
	<div class="edit-form">
		<strong>Press Notes</strong><br/>
		<textarea name="press_notes" class="full" id="press_notes"><?php 
    echo $_POST['press_notes'];
    ?>
</textarea>
	</div>
	<div class="edit-form">
		<input type="submit" value="Add Release" class="button" name="submit">
		<input type="submit" value="Exit Without Adding" class="button" name="preview" onclick="location.href='releases.php'; return false">
	</div>
	
	</div>

<?php 
} else {
    Error::outputDialog('Return to Releases', 'releases.php', 'You do not have access to add releases.');
}
include 'layout/footer.php';
	Add Media
</div>

<?php 
    $canAdd = User::isAdmin();
    if ($res) {
        // it's an error
        if (db::isError($res)) {
            $res->outputList();
        }
    }
    if (!db::isError($ma)) {
        if ($canAdd) {
            include 'layout/media_add.php';
        } else {
            Error::outputDialog('Return to Tour', 'tour_edit.php?id=' . $_GET['id'], 'You are not allowed to add media to a tour.');
        }
    } else {
        $ma->outputDialog('Return to Tours', 'tour_edit.php?id=' . $_GET['id']);
    }
} else {
    ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href=".php">Manage&nbsp;Band&nbsp;&#62;</a>&nbsp;<a href="tours.php">Tours&nbsp;&#62;</a>&nbsp;Invalid Entry
</div>

<?php 
    $sh->outputDialog('Return to Tours', 'tours.php');
    ?>
	
">Media&nbsp;&#62;</a>
</div>

<?php 
    $canAdd = User::isAdmin();
    if ($res) {
        // it's an error
        if (db::isError($res)) {
            $res->outputList();
        }
    }
    if (!db::isError($ma)) {
        if ($canAdd) {
            include 'layout/media_add.php';
        } else {
            Error::outputDialog('Return to Release', 'release_edit.php?id=' . $_GET['id'], 'You are not allowed to add media to a release.');
        }
    } else {
        $ma->outputDialog('Return to Release', 'release_edit.php?id=' . $_GET['id']);
    }
} else {
    ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>
	<a href="releases.php">Releases &#62;</a>
	Invalid Entry
</div>

<?php 
    $re->outputDialog('Return to Releases', 'releases.php');
Esempio n. 10
0
">Media&nbsp;&#62;</a>
</div>

<?php 
    $canAdd = User::isAdmin();
    if ($res) {
        // it's an error
        if (db::isError($res)) {
            $res->outputList();
        }
    }
    if (!db::isError($ma)) {
        if ($canAdd) {
            include 'layout/media_add.php';
        } else {
            Error::outputDialog('Return to Show', 'show_edit.php?id=' . $_GET['id'], 'You are not allowed to add media to a show.');
        }
    } else {
        $ma->outputDialog('Return to Show', 'show_edit.php?id=' . $_GET['id']);
    }
} else {
    ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>
	<a href="live.php">Live&nbsp;&#62;</a>
	<a href="shows.php">Shows&nbsp;&#62;</a>
	Invalid Entry
</div>

<?php 
Esempio n. 11
0
$page_title = 'Add/Edit Band News';
include 'layout/header.php';
?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="band.php">Manage&nbsp;Band&nbsp;&#62;</a>&nbsp;<a href="band_news.php">Band News&nbsp;&#62;</a>&nbsp;Add News Entry
</div>

<?php 
$uo = User::getCurrent();
$bm = BandMember::getByUserID($uo->getID());
if (!db::isError($bm)) {
    $bmFirstName = $uo->getFirstName();
}
if (!BandNews::canAdd()) {
    Error::outputDialog('Return to Band News', 'band_news.php', 'You are not an administrator, and you are not a band member. Therefore, you cannot add band news.');
} else {
    if (db::isError($bn)) {
        $bn->outputList();
    }
    ?>
		<h1>add entry:</h1>
		<div class="inset">
		<form id="edit_entry" action="<?php 
    echo $PHP_SELF;
    ?>
?task=add" method="post">
		<table border="0" class="edit-form" cellspacing="0" cellpadding="0">
		<tr>
			<td colspan="3" valign="top">
			<strong>Headline</strong><br/>
Esempio n. 12
0
</a></b></li>
		<?php 
            }
            ?>
		</ul>
		<?php 
        } else {
            echo '<blockquote>None</blockquote>';
        }
        ?>
		
		</div>
	
	<?php 
    } else {
        Error::outputDialog('Return to Media', 'media.php', 'This is not a general media area.');
    }
    ?>

<?php 
} else {
    if ($id == 0) {
        ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="media.php">Media&nbsp;&#62;</a>
</div>

<?php 
        if (db::isError($res)) {
            $res->outputList();
Esempio n. 13
0
<?php 
    } else {
        ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="band.php">Manage&nbsp;Band&nbsp;&#62;</a>&nbsp;<a href="band_diaries.php">Diaries&nbsp;&#62;</a>&nbsp;<a href="band_diaries.php?memberID=<?php 
        echo $_GET['memberID'];
        ?>
"><?php 
        echo $uo->getFirstName();
        ?>
's Diary&nbsp;&#62;</a>&nbsp;No Access
</div>

	<?php 
        Error::outputDialog('Return to Band Diaries', 'band_diaries.php', 'You do not have permission to add an entry to this diary.');
        ?>

<?php 
    }
    ?>

<?php 
} else {
    ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="band.php">Manage&nbsp;Band&nbsp;&#62;</a>&nbsp;<a href="band_diaries.php">Diaries&nbsp;&#62;</a>&nbsp;Invalid Band Member
</div>

	<?php 
">Media&nbsp;&#62;</a>&nbsp;Add Media
</div>

<?php 
    if ($res) {
        // it's an error
        if (db::isError($res)) {
            $res->outputList();
        }
    }
    $canAdd = $bm->canEdit();
    if (!db::isError($ma)) {
        if ($canAdd) {
            include 'layout/media_add.php';
        } else {
            Error::outputDialog('Return to Band Member', 'band_member_edit.php?id=' . $_GET['id'], 'You are not allowed to add media to another band member.');
        }
    } else {
        $ma->outputDialog('Return to Band Member', 'band_member_edit.php?id=' . $_GET['id']);
    }
} else {
    ?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="band.php">Manage&nbsp;Band&nbsp;&#62;</a>&nbsp;<a href="band_members.php">Band Members&nbsp;&#62;</a>&nbsp;Invalid Entry
</div>

<?php 
    $bm->outputDialog('Return to Band Members', 'band_members.php');
    ?>
	
        $isNotGeneralMedia = !$ma->isGeneralMedia();
    }
}
if ($_POST['submit'] && !db::isError($ma)) {
    $res = $ma->updateInformation($_POST, $gm);
    if (!db::isError($res)) {
        header('Location: media.php?id=' . $ma->getID());
        exit;
    }
}
$editors = array('description');
$section = 'media';
$page_title = 'Edit Media Area';
include 'layout/header.php';
if ($isNotGeneralMedia) {
    Error::outputDialog('Return to Media', 'media.php', 'You may only edit general media here. Any media that has been added to a specific band member, show or release must be edited in its appropriate section.');
} else {
    if (!db::isError($ma)) {
        ?>
 
 	<div id="breadcrumb">
		<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="media.php">Media&nbsp;&#62;</a>
	<?php 
        if (!db::isError($ma)) {
            $breadcrumb = $ma->getAreaTrail();
            if ($breadcrumb) {
                foreach ($breadcrumb as $maBC) {
                    echo '<a href="media.php?id=' . $maBC->getID() . '">' . $maBC->getTitle() . '&nbsp;&#62;&nbsp;</a>';
                }
            }
        }
Esempio n. 16
0
"></td>
		</tr>
		</table>
		<div class="edit-form">
			<strong>Title</strong><br/>
			<input type="text" name="title" class="text" value="<?php 
    echo $_POST['title'];
    ?>
">
		</div>
		<div class="edit-form">
		<strong>Description:</strong><br/>
		<textarea name="description" class="full" id="description"><?php 
    echo $_POST['description'];
    ?>
</textarea>
		</div>	
		
		<div class="edit-form">
			<input type="submit" value="Add Tour" class="button" name="submit">
			<input type="submit" value="Exit Without Adding" class="button" name="preview" onclick="location.href='tours.php'; return false">
		</div>
		</div>
<?php 
} else {
    Error::outputDialog('Return to Tours', 'tours.php', 'Only an administrator may create tours.');
}
?>

<?php 
include 'layout/footer.php';
Esempio n. 17
0
$section = 'admin_users';
$page_title = 'Add/Edit Users';
$ul = new UserList();
$userlist = $ul->get($_GET['entries_per_page'], $_GET['start']);
$news_total = $ul->getTotal();
include 'layout/header.php';
?>

<div id="breadcrumb">
	<a href="index.php">Audition&nbsp;&#62;</a>&nbsp;<a href="admin.php">Administer Audition&nbsp;&#62;</a>&nbsp;Users
</div>

<?php 
$u = User::getCurrent();
if (!$u->isAdmin()) {
    Error::outputDialog('Return to Main Menu', 'index.php', 'Only an administrator may access administrator options.');
} else {
    if (db::isError($newslist)) {
        $newslist->outputList();
    }
    ?>
	
	<h1>users:</h1>
	<div class="inset">
	<p>
	<form id="amount_form" action="<?php 
    echo $PHP_SELF;
    ?>
" method="get">
		<a href="admin_user_add.php">Add User</a><span class="padded">|</span>
		<?php 
        echo $_POST['meta_information'];
        ?>
</textarea>
		</div>
		<div class="edit-form">
			<input type="submit" value="Add Track" class="button" name="submit" class="button">
			<input type="submit" value="Exit Without Updating" class="button" name="preview" onclick="location.href='release_edit.php?id=<?php 
        echo $_GET['id'];
        ?>
'; return false" class="button">
		</div>
		</div>
		
		<?php 
    } else {
        Error::outputDialog('Return to Release', 'release_edit.php?id=' . $_GET['id'], 'You do not have permission to add tracks.');
    }
} else {
    ?>


<div id="breadcrumb">
	<a href="index.php">Audition &#62;</a>
	<a href="releases.php">Releases &#62;</a>
	Invalid Entry
</div>

		
<?php 
    $r->outputDialog('Return to Releases', 'releases.php');
}
Esempio n. 19
0
				<strong>Birth Date (mm/dd/yyyy)</strong><br/>
				<input type="text" value="<?php 
    echo $_POST['birthdate'];
    ?>
" class="text" name="birthdate" id="birthdate" />

			</td>
			<td>&nbsp;</td>
		</tr>
		</table>
	</div>
	<div style=" text-align: right"><input type="submit" name="submit" value="Install Audition" /></div>
	</form>

<?php 
} else {
    ?>
	<div id="breadcrumb">
		Audition Installation &#62;
	</div>
	
	<?php 
    Error::outputDialog(null, null, 'Audition has already been installed.');
    ?>

<?php 
}
?>

<?php 
include BASE_FULL_DIRECTORY . AUDITION_WEB_DIRECTORY . '/layout/footer.php';