本文整理汇总了PHP中Error::outputDialog方法的典型用法代码示例。如果您正苦于以下问题:PHP Error::outputDialog方法的具体用法?PHP Error::outputDialog怎么用?PHP Error::outputDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Error
的用法示例。
在下文中一共展示了Error::outputDialog方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</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';
示例2:
</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 ></a>
<a href="releases.php">Releases ></a>
Invalid Entry
</div>
<?php
if (db::isError($r)) {
$r->outputDialog('Return to Releases', 'releases.php');
} else {
示例3:
</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';
示例4: VenueList
include 'layout/header.php';
$bi = BandInformation::get();
$defaultStateProvince = $bi->getDefaultStateProvince();
$defaultCity = $bi->getDefaultcity();
$defaultCountry = $bi->getDefaultCountry();
?>
<div id="breadcrumb">
<a href="index.php">Audition ></a>
<a href="live.php">Live ></a>
<a href="shows.php">Shows ></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();
示例5:
<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';
示例6:
<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';
示例7:
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';
示例8:
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 ></a> <a href=".php">Manage Band ></a> <a href="tours.php">Tours ></a> Invalid Entry
</div>
<?php
$sh->outputDialog('Return to Tours', 'tours.php');
?>
示例9:
">Media ></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 ></a>
<a href="releases.php">Releases ></a>
Invalid Entry
</div>
<?php
$re->outputDialog('Return to Releases', 'releases.php');
示例10:
">Media ></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 ></a>
<a href="live.php">Live ></a>
<a href="shows.php">Shows ></a>
Invalid Entry
</div>
<?php
示例11:
$page_title = 'Add/Edit Band News';
include 'layout/header.php';
?>
<div id="breadcrumb">
<a href="index.php">Audition ></a> <a href="band.php">Manage Band ></a> <a href="band_news.php">Band News ></a> 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/>
示例12:
</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 ></a> <a href="media.php">Media ></a>
</div>
<?php
if (db::isError($res)) {
$res->outputList();
示例13:
<?php
} else {
?>
<div id="breadcrumb">
<a href="index.php">Audition ></a> <a href="band.php">Manage Band ></a> <a href="band_diaries.php">Diaries ></a> <a href="band_diaries.php?memberID=<?php
echo $_GET['memberID'];
?>
"><?php
echo $uo->getFirstName();
?>
's Diary ></a> 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 ></a> <a href="band.php">Manage Band ></a> <a href="band_diaries.php">Diaries ></a> Invalid Band Member
</div>
<?php
示例14:
">Media ></a> 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 ></a> <a href="band.php">Manage Band ></a> <a href="band_members.php">Band Members ></a> Invalid Entry
</div>
<?php
$bm->outputDialog('Return to Band Members', 'band_members.php');
?>
示例15: header
$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 ></a> <a href="media.php">Media ></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() . ' > </a>';
}
}
}