<TD> <?php if ($issueObj->getWorkflowStatus() == 'Y') { $t2 = getGS('Published'); $t3 = getGS('Not published'); } else { $t2 = getGS('Not published'); $t3 = getGS('Published'); } ?> <?php if ($issueObj->getWorkflowStatus() == 'Y') { ?> <INPUT TYPE="TEXT" class="input_text" NAME="f_publication_date" SIZE="20" MAXLENGTH="19" value="<?php p(htmlspecialchars($issueObj->getPublicationDate())); ?> "> <?php } ?> <A HREF="/<?php echo $ADMIN; ?> /issues/do_status.php?Pub=<?php p($Pub); ?> &Issue=<?php p($issueObj->getIssueNumber()); ?> &Language=<?php
/** * @param int $p_publicationId * * @param int $p_languageId * * @param int $p_skipCache * * * @return mixed * array of issue publication dates * null if query does not match any issue */ public static function GetPublicationDates($p_publicationId, $p_languageId, $p_skipCache = false) { global $g_ado_db; $queryStr = 'SELECT Number FROM Issues ' . 'WHERE IdPublication = ' . $p_publicationId . ' AND ' . 'IdLanguage = ' . $p_languageId . " AND Published = 'Y'"; $rows = $g_ado_db->GetAll($queryStr); $dates = array(); if (is_array($rows)) { foreach ($rows as $row) { $tmpObj = new Issue($p_publicationId, $p_languageId, $row['Number']); if ($tmpObj->exists()) { $dates[] = $tmpObj->getPublicationDate(); } } } if (empty($dates)) { return null; } return array_unique($dates); } // fn GetPublicationDates
<TR> <TD ALIGN="RIGHT"><?php putGS("Publication date<BR><SMALL>(yyyy-mm-dd)</SMALL>"); ?>:</TD> <TD> <?php if ($issueObj->getWorkflowStatus() == 'Y') { $t2 = getGS('Published'); $t3 = getGS('Not published'); } else { $t2 = getGS('Not published'); $t3 = getGS('Published'); } ?> <?php if ($issueObj->getWorkflowStatus() == 'Y') { ?> <INPUT TYPE="TEXT" class="input_text" NAME="f_publication_date" SIZE="20" MAXLENGTH="19" value="<?php p(htmlspecialchars($issueObj->getPublicationDate())); ?>"> <?php } ?> <A HREF="/<?php echo $ADMIN; ?>/issues/do_status.php?Pub=<?php p($Pub); ?>&Issue=<?php p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>&f_target=edit.php&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to change the issue $1 status from $2 to $3?',$issueObj->getIssueNumber().'. '.htmlspecialchars($issueObj->getName()).' ('.htmlspecialchars($issueObj->getLanguageName()).')',"\'$t2\'","\'$t3\'"); ?> ');"> <?php if ($issueObj->getWorkflowStatus() == 'Y') { print putGS("Unpublish"); } else { print putGS("Click here to publish this issue"); } ?> </A> </TD> </TR> <TR> <TD COLSPAN="2" style="padding-top: 20px;">