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


PHP Issue::getName方法代码示例

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


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

示例1: array

$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>
		</BLOCKQUOTE>
	</TD>
</TR>

<TR>
	<TD align="center">
		<INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php  putGS('OK'); ?>" ONCLICK="location.href='/<?php echo $ADMIN; ?>/issues/?Pub=<?php echo $f_publication_id; ?>'">
	</TD>
</TR>
</TABLE>
<P>
<?php camp_html_copyright_notice(); ?>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:29,代码来源:do_del.php

示例2: 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

示例3: htmlspecialchars

?>
/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();
?>

<P>
<FORM NAME="issue_translate" METHOD="POST" ACTION="/<?php 
echo $ADMIN;
?>
/issues/do_translate.php" onsubmit="return <?php 
camp_html_fvalidate();
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:translate.php

示例4: htmlspecialchars

?>
:</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();
?>
. <?php 
echo htmlspecialchars($sectionObj->getName());
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:index.php

示例5: getGS

     $f_issue_urlname = Input::Get('f_issue_urlname', 'string', $issueObj->getUrlName());
     if ($f_issue_urlname == "") {
         camp_html_add_msg(getGS('You must fill in the $1 field.', '"' . getGS('New issue URL name') . '"'));
         camp_html_goto_page($backLink);
     }
     if (!camp_is_valid_url_name($f_issue_urlname)) {
         camp_html_add_msg(getGS('The $1 field may only contain letters, digits and underscore (_) character.', '"' . getGS('New issue URL name') . '"'));
         camp_html_goto_page($backLink);
     }
     $translationIssueObj->create($f_issue_urlname);
     if (!$translationIssueObj->exists()) {
         camp_html_add_msg(getGS('Unable to create the issue for translation $1.', $translationLanguageObj->getName()));
         camp_html_goto_page($backLink);
     }
 } else {
     $f_issue_name = Input::Get('f_issue_name', 'string', $issueObj->getName());
     $f_issue_urlname = Input::Get('f_issue_urlname', 'string', $issueObj->getUrlName());
     $translationIssueObj->update(array('Name' => $f_issue_name, 'ShortName' => $f_issue_urlname));
 }
 $f_section_number = $articleObj->getSectionNumber();
 $sectionObj = new Section($f_publication_id, $f_issue_number, $f_language_id, $f_section_number);
 if (!$sectionObj->exists()) {
     camp_html_display_error(getGS('No such section.'), $backLink);
     exit;
 }
 $translationSectionObj = new Section($f_publication_id, $f_issue_number, $f_translation_language, $f_section_number);
 if (!$translationSectionObj->exists()) {
     if (!$g_user->hasPermission("ManageSection")) {
         camp_html_add_msg(getGS('A section must be created for the selected language but you do not have the right to create a section.'));
         camp_html_goto_page($backLink);
     }
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:do_translate.php

示例6: Publication

$correct = ($f_dest_publication_id > 0) && ($f_dest_issue_number > 0) && ($f_dest_section_number > 0);
$created = false;

if ($correct) {
    $dstSectionObj = $srcSectionObj->copy($f_dest_publication_id, $f_dest_issue_number,
    									  $f_language_id, $f_dest_section_number);
    if (($radioButton == "new_section") && ($f_dest_section_name != "")) {
        $dstSectionObj->setName($f_dest_section_name);
    }
	$dstPublicationObj = new Publication($f_dest_publication_id);
	$dstIssueObj = new Issue($f_dest_publication_id, $f_language_id, $f_dest_issue_number);
	$created = true;
	// Record the event in the log.
    $logtext = getGS('Section "$1" has been duplicated to $2. "$3" of "$4"',
                     $dstSectionObj->getName(), $f_dest_issue_number, $dstIssueObj->getName(),
                     $dstPublicationObj->getName());
    Log::Message($logtext, $g_user->getUserId(), 154);
	camp_html_goto_page("/$ADMIN/sections/duplicate_complete.php?"
		   ."f_src_publication_id=$f_src_publication_id"
		   ."&f_src_issue_number=$f_src_issue_number"
		   ."&f_src_section_number=$f_src_section_number"
		   ."&f_language_id=$f_language_id"
		   ."&f_dest_publication_id=$f_dest_publication_id"
		   ."&f_dest_issue_number=$f_dest_issue_number"
		   ."&f_dest_section_number=$f_dest_section_number");
} else {
	$topArray = array('Pub' => $srcPublicationObj, 'Issue' => $srcIssueObj, 'Section' => $srcSectionObj);
	camp_html_content_top(getGS('Duplicating section'), $topArray);
}
开发者ID:nistormihai,项目名称:Newscoop,代码行数:29,代码来源:do_duplicate.php

示例7: htmlspecialchars

		<?php 
}
?>
	</td>
</tr>

<tr >
	<TD VALIGN="middle" style="padding-left: 20px; padding-top: 6px;"><?php 
putGS('Issue');
?>
: </TD>
	<TD valign="middle" ALIGN="LEFT" style="padding-top: 6px;">
		<?php 
if ($f_dest_publication_id > 0 && count($allIssues) > 0) {
    if (count($allIssues) == 1) {
        echo htmlspecialchars($destIssueObj->getName());
    } else {
        ?>
		<FORM NAME="FORM_ISS" METHOD="POST">
		<input type="hidden" name="Pub" value="<?php 
        p($f_src_publication_id);
        ?>
">
		<input type="hidden" name="Issue" value="<?php 
        p($f_src_issue_number);
        ?>
">
		<input type="hidden" name="Section" value="<?php 
        p($f_src_section_number);
        ?>
">
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:duplicate.php

示例8: array

echo $translator->trans("Delete issue", array(), 'issues');
?>
 </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
		<?php 
echo $translator->trans('There are $1 articles in this issue.', array('$1' => '<b>' . $numArticles . '</b>'), 'issues');
?>
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center"><?php 
echo $translator->trans('Are you sure you want to delete the issue $1?', array('$1' => '<B>' . htmlspecialchars($issueObj->getName()) . ' (' . $issueObj->getLanguageName() . ')</B>'), 'issues');
?>
</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
	<INPUT TYPE="HIDDEN" NAME="f_publication_id" VALUE="<?php 
p($f_publication_id);
?>
">
	<INPUT TYPE="HIDDEN" NAME="f_issue_number" VALUE="<?php 
p($f_issue_number);
?>
">
	<INPUT TYPE="HIDDEN" NAME="f_language_id" VALUE="<?php 
p($f_language_id);
开发者ID:alvsgithub,项目名称:Newscoop,代码行数:31,代码来源:delete.php

示例9: array

     }
     if ($f_issue_urlname == "") {
         camp_html_add_msg($translator->trans('You must fill in the $1 field.', array('$1' => '"' . $translator->trans('New issue URL name', array(), 'articles') . '"')));
         camp_html_goto_page($backLink);
     }
     if (!camp_is_valid_url_name($f_issue_urlname)) {
         camp_html_add_msg($translator->trans('The $1 field may only contain letters, digits and underscore (_) character.', array('$1' => '"' . $translator->trans('New issue URL name', array(), 'articles') . '"')));
         camp_html_goto_page($backLink);
     }
     $translationIssueObj->create($f_issue_urlname);
     if (!$translationIssueObj->exists()) {
         camp_html_add_msg($translator->trans('Unable to create the issue for translation $1.', array('$1' => $translationLanguageObj->getName()), 'articles'));
         camp_html_goto_page($backLink);
     }
 } else {
     $f_issue_name = Input::Get('f_issue_name', 'string', $translationIssueObj->getName());
     $f_issue_urlname = Input::Get('f_issue_urlname', 'string', $translationIssueObj->getUrlName());
     $translationIssueObj->update(array('Name' => $f_issue_name, 'ShortName' => $f_issue_urlname));
 }
 $f_section_number = $articleObj->getSectionNumber();
 $sectionObj = new Section($f_publication_id, $f_issue_number, $f_language_id, $f_section_number);
 if (!$sectionObj->exists()) {
     camp_html_display_error($translator->trans('No such section.', array(), 'articles'), $backLink);
     exit;
 }
 $translationSectionObj = new Section($f_publication_id, $f_issue_number, $f_translation_language, $f_section_number);
 if (!$translationSectionObj->exists()) {
     if (!$g_user->hasPermission("ManageSection")) {
         camp_html_add_msg($translator->trans('A section must be created for the selected language but you do not have the right to create a section.', array(), 'articles'));
         camp_html_goto_page($backLink);
     }
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:do_translate.php

示例10: array

:</TD>
			<TD>
				<?php 
p($issueObj->getIssueNumber());
?>
			</TD>
		</TR>

		<TR>
			<TD ALIGN="RIGHT" ><?php 
echo $translator->trans("Name");
?>
:</TD>
			<TD>
			<INPUT TYPE="TEXT" class="input_text" NAME="f_issue_name" SIZE="32" value="<?php 
p(htmlspecialchars($issueObj->getName()));
?>
" alt="blank" emsg="<?php 
echo $translator->trans('You must fill in the $1 field.', array('$1' => "'" . $translator->trans('Name') . "'"));
?>
">
			</TD>
		</TR>

		<TR>
			<TD ALIGN="RIGHT"><?php 
echo $translator->trans("URL Name");
?>
:</TD>
			<TD>
			<INPUT TYPE="TEXT" class="input_text" NAME="f_url_name" SIZE="32" value="<?php 
开发者ID:alvsgithub,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例11: trim

// Check permissions
if (!$g_user->hasPermission('Publish')) {
	camp_html_display_error(getGS("You do not have the right to schedule issues or articles for automatic publishing."));
}

$Pub = Input::Get('Pub', 'int', 0);
$Issue = Input::Get('Issue', 'int', 0);
$Language = Input::Get('Language', 'int', 0);
$event_id = trim(Input::Get('event_id', 'string', ''));

$action = new IssuePublish($event_id);
$deleted = $action->delete();

if ($deleted) {
        $issueObj = new Issue($Pub, $Language, $Issue);
        $logtext = getGS('Scheduled action deleted from issue #$1: "$2" (Publication: $3)', $Issue, $issueObj->getName(), $Pub);
        Log::Message($logtext, $g_user->getUserId(), 17);
        camp_html_goto_page("/$ADMIN/issues/edit.php?Pub=$Pub&Issue=$Issue&Language=$Language");
}
$publicationObj = new Publication($Pub);
$issueObj = new Issue($Pub, $Language, $Issue);
$crumbs = array("Pub" => $publicationObj, "Issue" => $issueObj);
camp_html_content_top(getGS("Delete scheduled publish action"), $crumbs);
?>

<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
	<TD COLSPAN="2">
		<B> <?php  putGS("Delete scheduled publish action"); ?> </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:autopublish_del.php

示例12: htmlspecialchars

putGS("Delete issue");
?>
 </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
		<?php 
putGS('There are $1 articles in this issue.', '<b>' . $numArticles . '</b>');
?>
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center"><?php 
putGS('Are you sure you want to delete the issue $1?', '<B>' . htmlspecialchars($issueObj->getName()) . ' (' . $issueObj->getLanguageName() . ')</B>');
?>
</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
	<INPUT TYPE="HIDDEN" NAME="f_publication_id" VALUE="<?php 
p($f_publication_id);
?>
">
	<INPUT TYPE="HIDDEN" NAME="f_issue_number" VALUE="<?php 
p($f_issue_number);
?>
">
	<INPUT TYPE="HIDDEN" NAME="f_language_id" VALUE="<?php 
p($f_language_id);
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:delete.php

示例13: array

$topArray = array('Pub' => $srcPublicationObj, 'Issue' => $srcIssueObj, 'Section' => $srcSectionObj);
camp_html_content_top(getGS('Duplicating section'), $topArray);

?>
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
	<TD COLSPAN="2">
		<B> <?php  putGS("Duplicating section"); ?> </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD COLSPAN="2">
		<BLOCKQUOTE>
 	  <?php  putGS('Section $1 has been duplicated to $2. $3 of $4', '<B>'.$srcSectionObj->getName().'</B>', '<B>'.$dstSectionObj->getIssueNumber().'</B>', '<B>'.$dstIssueObj->getName().' ('.$dstIssueObj->getLanguageName().')</B>', '<B>'.$dstPublicationObj->getName().'</B>'); ?>
		</BLOCKQUOTE>
	</TD>
</TR>
<TR>
	<TD COLSPAN="2">
		<DIV ALIGN="CENTER">
            <table>
            <tr>
                <td>
                   <b><a href="<?php echo "/$ADMIN/sections/edit.php?Pub=$f_dest_publication_id&Issue=$f_dest_issue_number&Section=$f_dest_section_number&Language=$f_language_id"; ?>"><?php putGS("Go to new section"); ?></a></b>
                </td>
                <td style="padding-left: 50px;">
    	           <b><a href="<?php echo "/$ADMIN/sections/edit.php?Pub=$f_src_publication_id&Issue=$f_src_issue_number&Section=$f_src_section_number&Language=$f_language_id"; ?>"><?php putGS("Go to source section"); ?></a></b>
    	        </td>
    	    </tr>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:duplicate_complete.php

示例14: putGS

<FORM METHOD="POST" ACTION="do_del.php">
<?php echo SecurityToken::FormParameter(); ?>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<TR>
	<TD COLSPAN="2">
		<B> <?php  putGS("Delete issue"); ?> </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
		<?php putGS('There are $1 articles in this issue.', '<b>'.$numArticles.'</b>'); ?>
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center"><?php  putGS('Are you sure you want to delete the issue $1?','<B>'.htmlspecialchars($issueObj->getName()).' ('.$issueObj->getLanguageName().')</B>'); ?></TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
	<INPUT TYPE="HIDDEN" NAME="f_publication_id" VALUE="<?php p($f_publication_id); ?>">
	<INPUT TYPE="HIDDEN" NAME="f_issue_number" VALUE="<?php p($f_issue_number); ?>">
	<INPUT TYPE="HIDDEN" NAME="f_language_id" VALUE="<?php p($f_language_id); ?>">
	<INPUT TYPE="submit" class="button" NAME="Yes" VALUE="<?php  putGS('Yes'); ?>">
	&nbsp;&nbsp;&nbsp;&nbsp;
	<INPUT TYPE="button" class="button" NAME="No" VALUE="<?php  putGS('No'); ?>" ONCLICK="location.href='/<?php p($ADMIN);?>/issues/?Pub=<?php p($f_publication_id); ?>'">
	</TD>
</TR>
</TABLE>
    </FORM>
<P>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:delete.php

示例15: putGS

				<B><?php  putGS("Change issue details"); ?></B>
				<HR NOSHADE SIZE="1" COLOR="BLACK">
			</TD>
		</TR>

		<TR>
			<TD ALIGN="RIGHT" ><?php  putGS("Number"); ?>:</TD>
			<TD>
				<?php  p($issueObj->getIssueNumber()); ?>
			</TD>
		</TR>

		<TR>
			<TD ALIGN="RIGHT" ><?php  putGS("Name"); ?>:</TD>
			<TD>
			<INPUT TYPE="TEXT" class="input_text" NAME="f_issue_name" SIZE="32" value="<?php  p(htmlspecialchars($issueObj->getName())); ?>" alt="blank" emsg="<?php putGS('You must fill in the $1 field.',"'".getGS('Name')."'"); ?>">
			</TD>
		</TR>

		<TR>
			<TD ALIGN="RIGHT"><?php  putGS("URL Name"); ?>:</TD>
			<TD>
			<INPUT TYPE="TEXT" class="input_text" NAME="f_url_name" SIZE="32" value="<?php  p(htmlspecialchars($issueObj->getUrlName())); ?>" alt="alnum|1|A|true|false|_" emsg="<?php putGS('The $1 field may only contain letters, digits and underscore (_) character.', "'" . getGS('URL Name') . "'"); ?>">
			</TD>
		</TR>

		<TR>
			<TD ALIGN="RIGHT" ><?php  putGS("Language"); ?>:</TD>
			<TD>
			    <SELECT NAME="f_new_language_id" class="input_select">
				<?php
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php


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