当前位置: 首页>>代码示例>>PHP>>正文


PHP Error::outputDialog方法代码示例

本文整理汇总了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';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:band_gp_add.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 &#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 {
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:release_track_audio_add.php

示例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';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:release_band_members.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 &#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();
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:show_add.php

示例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';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:link_add.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';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:media_preferences.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';
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:release_add.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&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');
    ?>
	
开发者ID:pinecreativelabs,项目名称:audition,代码行数:30,代码来源:tour_media_add.php

示例9:

">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');
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:release_media_add.php

示例10:

">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 
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:show_media_add.php

示例11:

$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/>
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:band_news_add.php

示例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&nbsp;&#62;</a>&nbsp;<a href="media.php">Media&nbsp;&#62;</a>
</div>

<?php 
        if (db::isError($res)) {
            $res->outputList();
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:media.php

示例13:

<?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 
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:band_diary_add.php

示例14:

">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');
    ?>
	
开发者ID:pinecreativelabs,项目名称:audition,代码行数:30,代码来源:band_member_media_add.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&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>';
                }
            }
        }
开发者ID:pinecreativelabs,项目名称:audition,代码行数:31,代码来源:media_area_edit.php


注:本文中的Error::outputDialog方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。