本文整理汇总了PHP中camp_html_content_top函数的典型用法代码示例。如果您正苦于以下问题:PHP camp_html_content_top函数的具体用法?PHP camp_html_content_top怎么用?PHP camp_html_content_top使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了camp_html_content_top函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: camp_load_translation_strings
<?php
require_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/pub/pub_common.php";
require_once $GLOBALS['g_campsiteDir'] . "/classes/SimplePager.php";
camp_load_translation_strings("api");
// Check permissions
$PubOffs = camp_session_get('PubOffs', 0);
if ($PubOffs < 0) {
$PubOffs = 0;
}
$ItemsPerPage = 15;
$sqlOptions = array("LIMIT" => array("START" => $PubOffs, "MAX_ROWS" => $ItemsPerPage), "ORDER BY" => array("Name" => "ASC"));
$publications = Publication::GetPublications(null, null, $sqlOptions);
$numPublications = Publication::GetNumPublications();
$pager = new SimplePager($numPublications, $ItemsPerPage, "PubOffs", "index.php?");
camp_html_content_top(getGS('Publication List'), null);
if ($g_user->hasPermission("ManagePub") && SaaS::singleton()->hasPermission("AddPub")) {
?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons">
<TR>
<TD>
<A HREF="/<?php
echo $ADMIN;
?>
/pub/add.php?Back=<?php
p(urlencode($_SERVER['REQUEST_URI']));
?>
"><IMG SRC="<?php
echo $Campsite["ADMIN_IMAGE_BASE_URL"];
?>
示例2: getGS
if ($articlesRemaining > 0) {
$errorMsgs[] = getGS('There are $1 article(s) left.', $articlesRemaining);
$doDelete = false;
}
$subscriptionsRemaining = Subscription::GetNumSubscriptions($Pub);
if ($subscriptionsRemaining > 0) {
$errorMsgs[] = getGS('There are $1 subscription(s) left.', $subscriptionsRemaining);
$doDelete = false;
}
if ($doDelete) {
$publicationObj->delete();
camp_html_goto_page("/{$ADMIN}/pub");
} else {
$errorMsgs[] = getGS('The publication $1 could not be deleted.', '<B>' . htmlspecialchars($publicationObj->getName()) . '</B>');
}
echo camp_html_content_top(getGS("Deleting publication"), array("Pub" => $publicationObj));
?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
<TD COLSPAN="2">
<B> <?php
putGS("Deleting publication");
?>
</B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<BLOCKQUOTE>
示例3: Publication
exit;
}
$Pub = Input::Get('Pub', 'int');
if (!Input::IsValid()) {
camp_html_display_error(getGS('Invalid Input: $1', Input::GetErrorString()));
exit;
}
$publicationObj = new Publication($Pub);
$allLanguages = Language::GetLanguages(null, null, null, array(), array(), true);
$newIssueId = Issue::GetUnusedIssueId($Pub);
$lastCreatedIssue = Issue::GetLastCreatedIssue($Pub);
include_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/javascript_common.php");
camp_html_content_top(getGS('Copy previous issue'), array('Pub' => $publicationObj), true, true, array(getGS("Issues") => "/$ADMIN/issues/?Pub=$Pub"));
if (is_null($lastCreatedIssue)) { ?>
<BLOCKQUOTE>
<LI><?php putGS('No previous issue.'); ?></LI>
</BLOCKQUOTE>
<?php
} else {
camp_html_display_msgs();
?>
<P>
<FORM name="issue_add" METHOD="POST" ACTION="do_add_prev.php" onsubmit="return <?php camp_html_fvalidate(); ?>;">
<?php echo SecurityToken::FormParameter(); ?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" CLASS="box_table">
示例4: Issue
$issuePublishObj->setActionTime($publish_time);
$created = 1;
}
if ($created) {
$action = ($issuePublishExists) ? 'updated' : 'added';
$issueObj = new Issue($Pub, $Language, $Issue);
$logtext = getGS('Scheduled action $1 for issue #$2: "$3" (Publication: $4)', $action, $Issue, $issueObj->getName(), $Pub);
Log::Message($logtext, $g_user->getUserId(), 16);
camp_html_goto_page("/$ADMIN/issues/edit.php?Pub=$Pub&Issue=$Issue&Language=$Language");
}
$issueObj = new Issue($Pub, $Language, $Issue);
$publicationObj = new Publication($Pub);
$crumbs = array("Pub" => $publicationObj, "Issue" => $issueObj);
camp_html_content_top(getGS("Scheduling a new publish action"), $crumbs);
?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" class="box_table">
<TR>
<TD COLSPAN="2">
<B> <?php putGS("Scheduling a new publish action"); ?> </B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD COLSPAN="2"><BLOCKQUOTE>
<?php
if ( $publish_date == "" ) {
$correct= 0; ?> <LI><?php putGS('You must fill in the $1 field.','<B>'.getGS('Date').'</B>' ); ?></LI>
<?php }
示例5: camp_session_get
<?php
require_once LIBS_DIR . '/ArticleList/ArticleList.php';
$translator = \Zend_Registry::get('container')->getService('translator');
$f_publication_id = Input::Get('f_publication_id', 'int', null);
$f_issue_number = Input::Get('f_issue_number', 'int', null);
$f_section_number = Input::Get('f_section_number', 'int', null);
$f_language_id = Input::Get('f_language_id', 'int', 1);
if (isset($_SESSION['f_language_selected'])) {
$f_old_language_selected = (int) $_SESSION['f_language_selected'];
} else {
$f_old_language_selected = 0;
}
$f_language_selected = (int) camp_session_get('f_language_selected', 0);
camp_html_content_top($translator->trans('Search'), NULL);
$controller->view->headTitle($translator->trans('Search') . ' - Newscoop Admin', 'SET');
// set up
$articlelist = new ArticleList();
$articlelist->setPublication($f_publication_id);
$articlelist->setIssue($f_issue_number);
$articlelist->setSection($f_section_number);
$articlelist->setLanguage($f_language_id);
$articlelist->setColVis(TRUE);
$articlelist->setSearch(TRUE);
// render
$articlelist->renderFilters();
$articlelist->renderActions();
$articlelist->render();
camp_html_copyright_notice();
?>
</body>
示例6: array
<?php
require_once LIBS_DIR . '/ImageList/ImageList.php';
require_once LIBS_DIR . '/MediaList/MediaList.php';
$translator = \Zend_Registry::get('container')->getService('translator');
$controller->view->headTitle($translator->trans('Media Archive', array(), 'media_archive') . ' - Newscoop Admin', 'SET');
camp_html_content_top($translator->trans('Media Archive', array(), 'media_archive'), NULL);
?>
<script>
var adminUrl = '<?php
global $ADMIN;
echo $ADMIN;
?>
';
</script>
<?php
camp_html_display_msgs();
?>
<div id="archive">
<ul>
<li><a href="#images"><?php
echo $translator->trans('Images');
?>
</a></li>
<li><a href="#slideshows"><?php
echo $translator->trans('Slideshows', array(), 'media_archive');
?>
</a></li>
<li><a href="#files"><?php
示例7: camp_html_display_error
// Check permissions
if (!$g_user->hasPermission('DeleteIssue')) {
camp_html_display_error($translator->trans('You do not have the right to delete issues.', array(), 'issues'));
exit;
}
$f_publication_id = Input::Get('f_publication_id', 'int');
$f_issue_number = Input::Get('f_issue_number', 'int');
$f_language_id = Input::Get('f_language_id', 'int');
if (!Input::IsValid()) {
camp_html_display_error($translator->trans('Invalid Input: $1', array('$1' => Input::GetErrorString()), 'issues'));
exit;
}
$numArticles = count(Article::GetArticles($f_publication_id, $f_issue_number, null, $f_language_id));
$publicationObj = new Publication($f_publication_id);
$issueObj = new Issue($f_publication_id, $f_language_id, $f_issue_number);
camp_html_content_top($translator->trans('Delete issue', array(), 'issues'), array('Pub' => $publicationObj, 'Issue' => $issueObj));
?>
<P>
<FORM METHOD="POST" ACTION="/<?php
echo $ADMIN;
?>
/issues/do_del.php">
<?php
echo SecurityToken::FormParameter();
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
<TD COLSPAN="2">
<B> <?php
echo $translator->trans("Delete issue", array(), 'issues');
?>
示例8: Publication
$f_publication_id = Input::Get('f_publication_id', 'int');
$f_issue_number = Input::Get('f_issue_number', 'int');
$f_language_id = Input::Get('f_language_id', 'int');
if (!Input::IsValid()) {
camp_html_display_error(getGS('Invalid Input: $1', Input::GetErrorString()));
exit;
}
$publicationObj = new Publication($f_publication_id);
$issueObj = new Issue($f_publication_id, $f_language_id, $f_issue_number);
$numArticlesDeleted = $issueObj->delete(true, true);
$tmpArray = array("Pub" => $publicationObj, "Issue"=> $issueObj);
camp_html_content_top(getGS("Deleted issue"), $tmpArray);
?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
<TD>
<B> <?php putGS("Deleted issue"); ?> </B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD>
<BLOCKQUOTE>
<LI><?php putGS('The issue $1 has been deleted.','<B>'.htmlspecialchars($issueObj->getName()).'</B>'); ?></LI>
<LI><?php putGS('A total of $1 articles were deleted.','<B>'.$numArticlesDeleted.'</B>'); ?></LI>
示例9: camp_html_display_error
require_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/issues/issue_common.php";
// Check permissions
if (!$g_user->hasPermission('ManageIssue')) {
camp_html_display_error(getGS('You do not have the right to add issues.'));
exit;
}
$Pub = Input::Get('Pub', 'int');
if (!Input::IsValid()) {
camp_html_display_error(getGS('Invalid Input: $1', Input::GetErrorString()));
exit;
}
$publicationObj = new Publication($Pub);
$allLanguages = Language::GetLanguages(null, null, null, array(), array(), true);
$newIssueId = Issue::GetUnusedIssueId($Pub);
camp_html_content_top(getGS('Add new issue'), array('Pub' => $publicationObj), true, false, array(getGS("Issues") => "/{$ADMIN}/issues/?Pub={$Pub}"));
?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" class="box_table">
<TR>
<TD VALIGN="TOP"><A HREF="/<?php
echo $ADMIN;
?>
/issues/add_prev.php?Pub=<?php
p($Pub);
?>
"><IMG SRC="<?php
echo $Campsite['ADMIN_IMAGE_BASE_URL'];
?>
/tol.gif" BORDER="0"></A></TD>
<TD><B><A HREF="/<?php
示例10: count
$allArticles = Article::GetArticles($f_publication_id, $f_issue_number, $f_section_number, $f_language_selected, $sqlOptions);
$numUniqueArticles = $totalArticles;
$numUniqueArticlesDisplayed = count($allArticles);
} else {
// Show articles in all languages.
$totalArticles = Article::GetArticles($f_publication_id, $f_issue_number, $f_section_number, null, null, true);
$allArticles = Article::GetArticlesGrouped($f_publication_id, $f_issue_number, $f_section_number, null, $f_language_id, $sqlOptions);
$numUniqueArticles = Article::GetArticlesGrouped($f_publication_id, $f_issue_number, $f_section_number, null, null, null, true);
$numUniqueArticlesDisplayed = count(array_unique(DbObjectArray::GetColumn($allArticles, 'Number')));
}
$numArticlesThisPage = count($allArticles);
$previousArticleNumber = 0;
$pagerUrl = "index.php?f_publication_id=" . $f_publication_id . "&f_issue_number=" . $f_issue_number . "&f_section_number=" . $f_section_number . "&f_language_id=" . $f_language_id . "&f_language_selected=" . $f_language_selected . "&";
$pager = new SimplePager($numUniqueArticles, $ArticlesPerPage, $offsetVarName, $pagerUrl);
$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj, 'Section' => $sectionObj);
camp_html_content_top(getGS('Article List') . ': ' . $this->view->escape($sectionObj->getName()), $topArray);
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
<TD><A HREF="/<?php
echo $ADMIN;
?>
/sections/?Pub=<?php
p($f_publication_id);
?>
&Issue=<?php
p($f_issue_number);
?>
&Language=<?php
p($f_language_id);
?>
示例11: Section
$sectionObj = new Section($f_publication_id, $f_issue_number, $f_article_language, $f_section_number);
}
}
}
// Only show the languages for sections which have been translated.
$sections = Section::GetSections($f_publication_id, $f_issue_number, null, null, null, null, true);
$languageIds = DbObjectArray::GetColumn($sections, 'IdLanguage');
$allLanguages = array();
foreach ($languageIds as $languageId) {
if (!isset($allLanguages[$languageId])) {
$allLanguages[$languageId] = new Language($languageId);
}
}
$allArticleTypes = ArticleType::GetArticleTypes();
$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj, 'Section' => $sectionObj);
camp_html_content_top(getGS('Add new article'), $topArray, true, false, array(getGS("Articles") => "/{$ADMIN}/articles/?f_publication_id={$f_publication_id}&f_issue_number={$f_issue_number}&f_section_number={$f_section_number}&f_language_id={$f_language_id}"));
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
<TD><A HREF="<?php
echo "/{$ADMIN}/articles/?f_publication_id={$f_publication_id}&f_issue_number={$f_issue_number}&f_section_number={$f_section_number}&f_language_id={$f_language_id}";
?>
"><IMG SRC="<?php
echo $Campsite["ADMIN_IMAGE_BASE_URL"];
?>
/left_arrow.png" BORDER="0"></A></TD>
<TD><A HREF="<?php
echo "/{$ADMIN}/articles/?f_publication_id={$f_publication_id}&f_issue_number={$f_issue_number}&f_section_number={$f_section_number}&f_language_id={$f_language_id}";
?>
"><B><?php
putGS("Article List");
示例12: camp_html_display_error
// Check permissions
if (!$g_user->hasPermission('ManageIssue')) {
camp_html_display_error($translator->trans('You do not have the right to add issues.', array(), 'issues'));
exit;
}
$Pub = Input::Get('Pub', 'int');
if (!Input::IsValid()) {
camp_html_display_error($translator->trans('Invalid Input: $1', array('$1' => Input::GetErrorString()), 'issues'));
exit;
}
$publicationObj = new Publication($Pub);
$allLanguages = Language::GetLanguages(null, null, null, array(), array(), true);
$newIssueId = Issue::GetUnusedIssueId($Pub);
$lastCreatedIssue = Issue::GetLastCreatedIssue($Pub);
include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php";
camp_html_content_top($translator->trans('Copy previous issue', array(), 'issues'), array('Pub' => $publicationObj), true, true, array($translator->trans("Issues") => "/{$ADMIN}/issues/?Pub={$Pub}"));
if (is_null($lastCreatedIssue)) {
?>
<BLOCKQUOTE>
<LI><?php
echo $translator->trans('No previous issue.', array(), 'issues');
?>
</LI>
</BLOCKQUOTE>
<?php
} else {
camp_html_display_msgs();
?>
<P>
<FORM name="issue_add" METHOD="POST" ACTION="/<?php
示例13: array
if ($f_publication_id > 0) {
$f_translation_issue_name = Input::Get('f_issue_name', 'string', $issueObj->getName(), true);
$f_translation_issue_urlname = Input::Get('f_issue_urlname', 'string', $issueObj->getUrlName(), true);
$f_translation_section_name = Input::Get('f_section_name', 'string', $sectionObj->getName(), true);
$f_translation_section_urlname = Input::Get('f_section_urlname', 'string', $sectionObj->getUrlName(), true);
}
$allLanguages = Language::GetLanguages(null, null, null, array(), array(array('field' => 'byname', 'dir' => 'asc')), true);
$articleLanguages = $articleObj->getLanguages();
$articleLanguages = DbObjectArray::GetColumn($articleLanguages, "Id");
if ($f_language_selected > 0 && $f_issue_number > 0) {
$translationIssueObj = new Issue($f_publication_id, $f_language_selected, $f_issue_number);
$translationSectionObj = new Section($f_publication_id, $f_issue_number, $f_language_selected, $f_section_number);
}
if ($f_publication_id > 0) {
$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj, 'Section' => $sectionObj, 'Article' => $articleObj);
camp_html_content_top(getGS('Translate article'), $topArray, true, true);
} else {
$crumbs = array();
$crumbs[] = array(getGS("Actions"), "");
$crumbs[] = array(getGS('Translate article'), "");
echo camp_html_breadcrumbs($crumbs);
}
?>
<table cellpadding="1" cellspacing="0" class="action_buttons" style="padding-top: 10px;">
<tr>
<?php
if ($f_publication_id > 0) {
?>
<td><IMG SRC="<?php
echo $Campsite["ADMIN_IMAGE_BASE_URL"];
?>
示例14: Article
$articleObj = new Article($f_language_id, $f_article_number);
if (!$articleObj->exists()) {
exit;
}
if (!$articleObj->commentsEnabled() || $articleObj->commentsLocked()) {
camp_html_goto_page(camp_html_article_url($articleObj, $f_language_selected, "edit.php"));
}
$publicationObj = new Publication($articleObj->getPublicationId());
$issueObj = new Issue($articleObj->getPublicationId(), $f_language_id, $articleObj->getIssueNumber());
$sectionObj = new Section($articleObj->getPublicationId(), $articleObj->getIssueNumber(), $f_language_id, $articleObj->getSectionNumber());
$languageObj = new Language($articleObj->getLanguageId());
$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj,
'Section' => $sectionObj, 'Article'=>$articleObj);
camp_html_content_top(getGS("Reply to comment"), $topArray);
if (SystemPref::Get("UseDBReplication") == 'Y') {
$dbReplicationObj = new DbReplication();
$connectedToOnlineServer = $dbReplicationObj->connect();
if ($connectedToOnlineServer == false) {
camp_html_add_msg(getGS("Comments Disabled: you are either offline or not able to reach the Online server"));
} else {
$comment = new Phorum_message($f_comment_id);
}
} else {
$comment = new Phorum_message($f_comment_id);
}
?>
<table cellpadding="1" cellspacing="0" class="action_buttons" style="padding-top: 10px;">
示例15: camp_html_display_error
if (!$g_user->hasPermission('ManageSection')) {
camp_html_display_error($translator->trans('You do not have the right to add sections.', array(), 'sections'));
exit;
}
$f_publication_id = Input::Get('Pub', 'int', 0);
$f_issue_number = Input::Get('Issue', 'int', 0);
$f_language_id = Input::Get('Language', 'int', 0);
if (!Input::IsValid()) {
camp_html_display_error($translator->trans('Invalid input: $1', array('$1' => Input::GetErrorString())), $_SERVER['REQUEST_URI']);
exit;
}
$publicationObj = new Publication($f_publication_id);
$issueObj = new Issue($f_publication_id, $f_language_id, $f_issue_number);
$newSectionNumber = Section::GetUnusedSectionNumber($f_publication_id, $f_issue_number);
$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj);
camp_html_content_top($translator->trans('Add new section', array(), 'sections'), $topArray, true, true, array($translator->trans("Sections") => "/{$ADMIN}/sections/?Pub={$f_publication_id}&Issue={$f_issue_number}&Language={$f_language_id}"));
$controller->view->headTitle($translator->trans('Add new section', array(), 'sections') . ' - Newscoop Admin', 'SET');
$languageObj = new Language($f_language_id);
if (!is_object($languageObj)) {
$languageObj = new Language(1);
}
$editorLanguage = camp_session_get('TOL_Language', $languageObj->getCode());
editor_load_tinymce('f_description', $g_user, 0, $editorLanguage, 'section');
?>
<p>
<form name="section_add" method="POST" action="/<?php
echo $ADMIN;
?>
/sections/do_add.php" onsubmit="return <?php
camp_html_fvalidate();
?>