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


PHP Issue::getIssueNumber方法代码示例

本文整理汇总了PHP中Issue::getIssueNumber方法的典型用法代码示例。如果您正苦于以下问题:PHP Issue::getIssueNumber方法的具体用法?PHP Issue::getIssueNumber怎么用?PHP Issue::getIssueNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Issue的用法示例。


在下文中一共展示了Issue::getIssueNumber方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Publication

// Only create the translated issue and section if the article has been
// categorized.
if ($f_publication_id > 0) {
    $publicationObj = new Publication($f_publication_id);
    if (!$publicationObj->exists()) {
        camp_html_display_error(getGS('Publication does not exist.'), $backLink);
        exit;
    }
    $f_issue_number = $articleObj->getIssueNumber();
    $issueObj = new Issue($f_publication_id, $f_language_id, $f_issue_number);
    if (!$issueObj->exists()) {
        camp_html_display_error(getGS('No such issue.'), $backLink);
        exit;
    }
    //$translationIssueObj = new Issue($f_publication_id, $f_translation_language, $f_issue_number);
    $translationIssueObj = $issueObj->copy(null, $issueObj->getIssueNumber(), $f_translation_language);
    if (!$translationIssueObj) {
        $translationIssueObj = new Issue($f_publication_id, $f_translation_language, $f_issue_number);
    }
    if (!$translationIssueObj->exists()) {
        if (!$g_user->hasPermission("ManageIssue")) {
            camp_html_add_msg(getGS('An issue must be created for the selected language but you do not have the right to create an issue.'));
            camp_html_goto_page($backLink);
        }
        foreach ($issueObj->getData() as $field => $fieldValue) {
            if ($field != 'IdLanguage') {
                $translationIssueObj->setProperty($field, $fieldValue, false);
            }
        }
        $f_issue_name = Input::Get('f_issue_name', 'string', '');
        if ($f_issue_name != '') {
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:do_translate.php

示例2: getGS

	if ($cSubs == "d") {
		$numSubscriptionsDeleted = Subscription::DeleteSubscriptionsInSection($Pub, $Section);
		if ($numSubscriptionsDeleted < 0) {
			$errors[] = getGS('Error updating subscriptions.');
		}
	}

	$conflictingSection = array_pop(Section::GetSections($Pub, $Issue, $Language, $cShortName, null, null, true));
	if (is_object($conflictingSection) && ($conflictingSection->getSectionNumber() != $Section)) {
		$conflictingSectionLink = "/$ADMIN/sections/edit.php?Pub=$Pub&Issue=$Issue&Language=$Language&Section=".$conflictingSection->getSectionNumber();

		$msg = getGS('The URL name must be unique for all sections in this issue.<br>The URL name you specified ("$1") conflicts with section "$2$3. $4$5"',
			$cShortName,
			"<a href='$conflictingSectionLink' class='error_message' style='color:#E30000;'>",
			$conflictingSection->getSectionNumber(),
			htmlspecialchars($conflictingSection->getName()),
			"</a>");
		camp_html_add_msg($msg);
		// placeholder for localization string - we might need this later.
		// getGS("The section could not be changed.");
	} else {
		$modified &= $sectionObj->setUrlName($cShortName);
		camp_html_add_msg(getGS("Section updated"), "ok");
	}
	$logtext = getGS('Section "$1" ($2) updated. (Publication: $3, Issue: $4)',
			 $cName, $Section, $publicationObj->getPublicationId(), $issueObj->getIssueNumber());
	Log::Message($logtext, $g_user->getUserId(), 21);
}
camp_html_goto_page($editUrl);

?>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:do_edit.php

示例3: htmlspecialchars

<TR>
	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php 
echo $translator->trans("Publication");
?>
:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php 
echo htmlspecialchars($publicationObj->getName());
?>
</TD>

	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php 
echo $translator->trans("Issue");
?>
:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php 
echo $issueObj->getIssueNumber();
?>
. <?php 
echo htmlspecialchars($issueObj->getName());
?>
 (<?php 
echo htmlspecialchars($issueLanguage->getName());
?>
)</TD>

	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php 
echo $translator->trans("Section");
?>
:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php 
echo $sectionObj->getSectionNumber();
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:index.php

示例4: putGS

			<TD>
				<A HREF="/<?php echo $ADMIN; ?>/pub/" class="breadcrumb"><?php putGS("Publications");  ?></A>
			</TD>
		</TR>
		</TABLE>
	</TD>
</TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="1" WIDTH="100%" class="current_location_table">
<TR>
	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php putGS("Publication"); ?>:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php echo htmlspecialchars($publicationObj->getName()); ?></TD>

	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php putGS("Issue"); ?>:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php echo $issueObj->getIssueNumber(); ?>. <?php echo htmlspecialchars($issueObj->getName()); ?> (<?php echo htmlspecialchars($issueLanguage->getName()); ?>)</TD>

	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php putGS("Section"); ?>:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php echo $sectionObj->getSectionNumber(); ?>. <?php echo htmlspecialchars($sectionObj->getName()); ?></TD>

	<TD ALIGN="RIGHT" WIDTH="1%" NOWRAP VALIGN="TOP" class="current_location_title">&nbsp;<?php putGS("Article"); ?>:</TD>
	<TD VALIGN="TOP" class="current_location_content"><?php echo htmlspecialchars($articleObj->getTitle()); ?> (<?php echo htmlspecialchars($articleLanguage->getName()); ?>)</TD>
</TR>
</TABLE>

<table width="100%" border="0">
<tr>
	<td style="padding:20px;" align="center">
		Here you can upload an article that has been written in Open Office (files with extension ".sxw").  Click <a href="CampsiteArticleTemplate.stw">here</a> to get the template.
	</td>
</tr>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例5: explode

	$publish_date = $datetime[0];
	$publish_time = explode(":", trim($datetime[1]));
	$publish_hour = $publish_time[0];
	$publish_min = $publish_time[1];
}

camp_html_content_top(getGS('Issue Publishing Schedule'), array('Pub' => $publicationObj, 'Issue' => $issueObj), true, true);

?>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
	<TD><A HREF="/<?php echo $ADMIN; ?>/issues/?Pub=<?php  p($Pub); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></A></TD>
	<TD><A HREF="/<?php echo $ADMIN; ?>/issues/?Pub=<?php  p($Pub); ?>"><B><?php  putGS("Issue List"); ?></B></A></TD>
	<TD style="padding-left: 20px;"><A HREF="/<?php echo $ADMIN; ?>/issues/?Pub=<?php  p($Pub); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></A></TD>
	<TD><A HREF="/<?php echo $ADMIN; ?>/issues/edit.php?Pub=<?php  p($Pub); ?>&Issue=<?php  p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><B><?php  echo getGS("Issue").": ".htmlspecialchars($issueObj->getName()); ?></B></A></TD>
</TR>
</TABLE>

<P>
<FORM NAME="dialog" METHOD="POST" ACTION="autopublish_do_add.php" onsubmit="return <?php camp_html_fvalidate(); ?>;">
<?php echo SecurityToken::FormParameter(); ?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" class="box_table">
<TR>
	<TD COLSPAN="2">
		<?php if (is_null($event_id)) { ?>
		<B><?php  putGS("Schedule a new action"); ?></B>
		<?php } else { ?>
		<B><?php  putGS("Edit"); ?></B>
		<?php } ?>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:autopublish.php

示例6: htmlspecialchars

?>
/issues/?Pub=<?php 
p($f_publication_id);
?>
"><IMG SRC="<?php 
echo $Campsite["ADMIN_IMAGE_BASE_URL"];
?>
/left_arrow.png" BORDER="0"></A></TD>
	<TD><A HREF="/<?php 
echo $ADMIN;
?>
/issues/edit.php?Pub=<?php 
p($f_publication_id);
?>
&Issue=<?php 
p($issueObj->getIssueNumber());
?>
&Language=<?php 
p($issueObj->getLanguageId());
?>
"><B><?php 
echo $translator->trans("Issue") . ": " . htmlspecialchars($issueObj->getName());
?>
</B></A></TD>
</TR>
</TABLE>

<?php 
camp_html_display_msgs();
?>
开发者ID:sourcefabric,项目名称:newscoop,代码行数:30,代码来源:translate.php

示例7:

?>
/issues/?Pub=<?php 
p($Pub);
?>
"><B><?php 
putGS("Issue List");
?>
</B></A></TD>
	<TD style="padding-left: 20px;"><A HREF="/<?php 
echo $ADMIN;
?>
/sections/?Pub=<?php 
p($Pub);
?>
&Issue=<?php 
p($issueObj->getIssueNumber());
?>
&Language=<?php 
p($issueObj->getLanguageId());
?>
"><B><?php 
putGS("Go To Sections");
?>
</B></A></TD>
	<TD><A HREF="/<?php 
echo $ADMIN;
?>
/sections/?Pub=<?php 
p($Pub);
?>
&Issue=<?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例8: Language

$url_args1 = "Pub=$Pub&Issue=$Issue&Language=$Language";
$url_args2 = $url_args1."&Section=$Section";

$languageObj = new Language($Language);
if (!is_object($languageObj)) {
    $languageObj = new Language(1);
}
//$editorLanguage = camp_session_get('TOL_Language', $languageObj->getCode());
$editorLanguage = !empty($_COOKIE['TOL_Language']) ? $_COOKIE['TOL_Language'] : $languageObj->getCode();
editor_load_tinymce('cDescription', $g_user, 0, $editorLanguage, 'section');
?>
<script type="text/javascript" src="<?php echo $Campsite['WEBSITE_URL']; ?>/js/campsite.js"></script>

<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($Pub); ?>&Issue=<?php p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" border="0" /></a></td>
  <td><a href="/<?php echo $ADMIN; ?>/sections/?Pub=<?php p($Pub); ?>&Issue=<?php p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><b><?php putGS("Section List"); ?></b></a></td>
  <td style="padding-left: 20px;"><a href="/<?php echo $ADMIN; ?>/articles/?f_publication_id=<?php p($Pub); ?>&f_issue_number=<?php p($sectionObj->getIssueNumber()); ?>&f_section_number=<?php p($sectionObj->getSectionNumber()); ?>&f_language_id=<?php p($sectionObj->getLanguageId()); ?>"><b><?php putGS("Go To Articles"); ?></b></a></td>
  <td><a href="/<?php echo $ADMIN; ?>/articles/?f_publication_id=<?php p($Pub); ?>&f_issue_number=<?php p($sectionObj->getIssueNumber()); ?>&f_section_number=<?php p($sectionObj->getSectionNumber()); ?>&f_language_id=<?php p($sectionObj->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/go_to.png" border="0" /></a></td>
</tr>
</table>

<p>
<table border="0" cellspacing="0" cellpadding="1" class="action_buttons">
<tr>
  <td><a href="add.php?<?php p($url_args1); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/add.png" border="0" /></a></td>
  <td><a href="add.php?<?php p($url_args1); ?>"><b><?php putGS("Add new section"); ?></b></a></td>
  <td style="padding-left: 20px;"><a href="duplicate.php?<?php p($url_args2); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/duplicate.png" border="0" /></a></td>
  <td><a href="duplicate.php?<?php p($url_args2); ?>" ><b><?php putGS("Duplicate"); ?></b></a></td>
  <td style="padding-left: 20px;"><a href="del.php?<?php p($url_args2); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" /></a></td>
  <td><a href="del.php?<?php p($url_args2); ?>" ><b><?php putGS("Delete"); ?></b></a></td>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例9: p

$url_args1 = "Pub=$Pub";
$url_args2 = $url_args1."&Issue=$Issue&Language=$Language";

$url_args3 = "f_publication_id=$Pub&f_issue_number=$Issue&f_language_id=$Language";

if (Issue::GetNumIssues($Pub) <= 0) {
	$url_add = "add_new.php";
} else {
	$url_add = "qadd.php";
}
?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;">
<TR>
	<TD><A HREF="/<?php echo $ADMIN; ?>/issues/?Pub=<?php  p($Pub); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></A></TD>
	<TD><A HREF="/<?php echo $ADMIN; ?>/issues/?Pub=<?php  p($Pub); ?>"><B><?php  putGS("Issue List"); ?></B></A></TD>
	<TD style="padding-left: 20px;"><A HREF="/<?php echo $ADMIN; ?>/sections/?Pub=<?php  p($Pub); ?>&Issue=<?php  p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><B><?php  putGS("Go To Sections"); ?></B></A></TD>
	<TD><A HREF="/<?php echo $ADMIN; ?>/sections/?Pub=<?php  p($Pub); ?>&Issue=<?php  p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/go_to.png" BORDER="0"></A></TD>
</TR>
</TABLE>

<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons">
<TR>
	<TD><A HREF="<?php p($url_add); ?>?<?php p($url_args1); ?>" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/add.png" BORDER="0"></A></TD>
	<TD><A HREF="<?php p($url_add); ?>?<?php p($url_args1); ?>" ><B><?php  putGS("Add new issue"); ?></B></A></TD>

	<TD style="padding-left: 20px;"><A HREF="" ONCLICK="window.open('preview.php?<?php p($url_args2); ?>', 'fpreview', 'resizable=yes, menubar=no, toolbar=yes, width=800, height=600'); return false;"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/preview.png" BORDER="0"></A></TD>
	<TD><A HREF="" ONCLICK="window.open('preview.php?<?php p($url_args2); ?>', 'fpreview', 'resizable=yes, menubar=no, toolbar=yes, width=800, height=600'); return false;"><B><?php  putGS("Preview"); ?></B></A></TD>

	<TD style="padding-left: 20px;"><A HREF="translate.php?<?php p($url_args2); ?>" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/translate.png" BORDER="0"></A></TD>
	<TD><A HREF="translate.php?<?php p($url_args2); ?>" ><B><?php  putGS("Translate"); ?></B></A></TD>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例10: array

?>
/issues/?Pub=<?php 
p($Pub);
?>
"><B><?php 
echo $translator->trans("Issue List");
?>
</B></A></TD>
	<TD style="padding-left: 20px;"><A HREF="/<?php 
echo $ADMIN;
?>
/sections/?Pub=<?php 
p($Pub);
?>
&Issue=<?php 
p($issueObj->getIssueNumber());
?>
&Language=<?php 
p($issueObj->getLanguageId());
?>
"><B><?php 
echo $translator->trans("Go To Sections", array(), 'issues');
?>
</B></A></TD>
	<TD><A HREF="/<?php 
echo $ADMIN;
?>
/sections/?Pub=<?php 
p($Pub);
?>
&Issue=<?php 
开发者ID:alvsgithub,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例11: Publication

}
$publicationObj = new Publication($f_publication_id);
$issueObj = new Issue($f_publication_id, $f_language_id, $f_issue_number);
$backLink = "/{$ADMIN}/issues/translate.php?Pub={$f_publication_id}&Issue={$f_issue_number}&Language={$f_language_id}";
$created = false;
if ($f_new_language_id == 0) {
    camp_html_add_msg($translator->trans('You must select a language.'));
}
if ($f_name == "") {
    camp_html_add_msg($translator->trans('You must fill in the $1 field.', array('$1' => "'" . $translator->trans('Name') . "'")));
}
if ($f_url_name == "") {
    camp_html_add_msg($translator->trans('You must fill in the $1 field.', array('$1' => "'" . $translator->trans('URL Name') . "'")));
}
$errorMsg = camp_is_issue_conflicting($f_publication_id, $f_issue_number, $f_new_language_id, $f_url_name, false);
if ($errorMsg) {
    camp_html_add_msg($errorMsg);
}
if (camp_html_has_msgs()) {
    camp_html_goto_page($backLink);
}
$newIssue = $issueObj->copy(null, $issueObj->getIssueNumber(), $f_new_language_id);
if ($newIssue->exists()) {
    $newIssue->setName($f_name);
    $newIssue->setUrlName($f_url_name);
    camp_html_add_msg($translator->trans('The issue $1 has been successfuly added.', array('$1' => '"<B>' . htmlspecialchars($f_name) . '</B>"'), 'issues'), "ok");
    camp_html_goto_page("/{$ADMIN}/issues/?Pub={$f_publication_id}");
} else {
    camp_html_add_msg($translator->trans('The issue could not be added.', array(), 'issues'));
    camp_html_goto_page($backLink);
}
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:do_translate.php


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