<?php } ?> <td> <?php $creationDate = $row['time_created']; if ((int)$creationDate == 0) { putGS('N/A'); } else { echo $creationDate; } ?> </td> <?php if ($canDelete) { ?> <td align="center"> <a href="/<?php echo $ADMIN; ?>/users/do_del.php?<?php echo get_user_urlparams($userId, false, true, true) . '&' . SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the user account $1 ?', $row['UName']); ?>');"> <img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" ALT="<?php putGS('Delete user $1', $row['UName']); ?>" title="<?php putGS('Delete user $1', $row['UName']); ?>"> </a> </td> <?php } ?> </tr> <?php } ?> </table> <?php /*?> <table class="indent"> <tr> <td>
<?php if ($g_user->hasPermission("ManageArticleTypes")) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?> /article_types/fields/do_del.php?f_article_type=<?php print urlencode($articleTypeName); ?> &f_field_name=<?php print urlencode($field->getPrintName()); ?> &<?php echo SecurityToken::URLParameter(); ?> " onclick="return confirm('<?php echo $translator->trans('Are you sure you want to delete the field $1?', array('$1' => htmlspecialchars($field->getPrintName() . ' ' . $translator->trans('You will also delete all fields with this name from all articles of this type from all publications.'))), 'article_type_fields'); ?> ');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?> /delete.png" BORDER="0" ALT="<?php echo $translator->trans('Delete field $1', array('$1' => htmlspecialchars($field->getPrintName())), 'article_type_fields'); ?> " TITLE="<?php $translator->trans('Delete field $1', array('$1' => htmlspecialchars($field->getPrintName())), 'article_type_fields'); ?> " ></A> </TD>
<td align="left" valign="top"><b><?php putGS("Delete"); ?></b></td> <?php } ?> </tr> <?php foreach ($userTypes as $userType) { ?> <tr <?php if ($color) { $color=0; ?>class="list_row_even"<?php } else { $color=1; ?>class="list_row_odd"<?php } ?>> <td> <?php p(htmlspecialchars($userType->getName())); ?> </td> <?php if ($canManage) { ?> <td align="center"> <a href="/<?php echo $ADMIN; ?>/user_types/access.php?UType=<?php p(urlencode($userType->getId())); ?>"><?php putGS('Change'); ?></a> </td> <td align="center"> <a href="/<?php echo $ADMIN; ?>/user_types/do_del.php?UType=<?php p(urlencode($userType->getId()) . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the user type $1?', $userType->getName()); ?>');"> <img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" alt="Delete user type <?php p(htmlspecialchars($userType->getName())); ?>" title="Delete user type <?php p(htmlspecialchars($userType->getName())); ?>"></a> </td> <?php } ?> </tr> <?php } // foreach ?> </table> <?php } else { ?><blockquote> <li><?php putGS('No user types.'); ?></li> </blockquote> <?php } ?> <?php camp_html_copyright_notice(); ?>
/** * Create a link to an article. * * @param Article $p_articleObj * The article we want to display. * * @param int $p_sectionLanguageId * The language ID for the publication/issue/section. * * @param string $p_targetFileName * Which file in the "articles" directory to call. * * @param string $p_backLink * A URL to get back to the previous page the user was on. * * @param string $p_extraParams */ function camp_html_article_url($p_articleObj, $p_sectionLanguageId, $p_targetFileName = "", $p_backLink = "", $p_extraParams = null, $p_securityParameter = false) { global $ADMIN; $str = "/{$ADMIN}/articles/" . $p_targetFileName . "?f_publication_id=" . $p_articleObj->getPublicationId() . "&f_issue_number=" . $p_articleObj->getIssueNumber() . "&f_section_number=" . $p_articleObj->getSectionNumber() . "&f_article_number=" . $p_articleObj->getArticleNumber() . "&f_language_id=" . $p_sectionLanguageId . "&f_language_selected=" . $p_articleObj->getLanguageId(); if ($p_securityParameter) { $str .= '&' . SecurityToken::URLParameter(); } if ($p_backLink != "") { $str .= "&Back=" . urlencode($p_backLink); } if (!is_null($p_extraParams)) { $str .= $p_extraParams; } return $str; }
<TD ALIGN="CENTER"> <?php if ($field->getType() == ArticleTypeField::TYPE_BODY) { ?> <input type="checkbox" <?php if ($field->isContent()) { ?>checked<?php } ?> id="set_is_content_<?php echo $i; ?>" name="set_is_content_<?php echo $i; ?>" onclick="if (confirm('<?php putGS('Are you sure you want to make $1 a $2 field?', $field->getPrintName(), $contentType); ?>')) { location.href='/<?php p($ADMIN); ?>/article_types/fields/set_is_content.php?f_article_type=<?php print urlencode($articleTypeName); ?>&f_field_name=<?php print urlencode($field->getPrintName()); ?>&f_is_content=<?php print $setContentField; ?>&<?php echo SecurityToken::URLParameter(); ?>' } else { document.getElementById('set_is_content_<?php echo $i; ?>').checked = <?php echo $isContentField; ?> }"> <?php } else { ?> <?php putGS('N/A'); ?> <?php } ?> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/fields/do_hide.php?f_article_type=<?php print urlencode($articleTypeName); ?>&f_field_name=<?php print urlencode($field->getPrintName()); ?>&f_status=<?php print $hideShowStatus; ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to $1 the article type field $2?', $hideShowText, $field->getPrintName()); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/<?php echo $hideShowImage; ?>" BORDER="0" ALT="<?php putGS('$1 article type field $2', ucfirst($hideShowText), $field->getPrintName()); ?>" TITLE="<?php putGS('$1 article type $2', ucfirst($hideShowText), $field->getPrintName()); ?>" ></A> </TD> <?php if ($g_user->hasPermission("ManageArticleTypes")) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/fields/do_del.php?f_article_type=<?php print urlencode($articleTypeName); ?>&f_field_name=<?php print urlencode($field->getPrintName()); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php echo getGS('Are you sure you want to delete the field $1?', htmlspecialchars($field->getPrintName())).' '.getGS('You will also delete all fields with this name from all articles of this type from all publications.'); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete field $1', htmlspecialchars($field->getPrintName())); ?>" TITLE="<?php putGS('Delete field $1', htmlspecialchars($field->getPrintName())); ?>" ></A> </TD> <?php } ?> </TR> <tr id="translate_field_<?php p($i); ?>" style="display: none;"><td colspan="7"> <table> <?php $color2 = 0; $isFirstTranslation = true; $fieldTranslations = $field->getTranslations(); foreach ($fieldTranslations as $languageId => $transName) { ?> <TR <?php if ($color2) { $color2 = 0; ?>class="list_row_even"<?php } else { $color2 = 1; ?>class="list_row_odd"<?php } ?>">
</TR> <tr class="table_list_header"> <TD ALIGN="LEFT" VALIGN="TOP" nowrap><B><?php putGS("trial subscription"); ?></B></TD> <TD ALIGN="LEFT" VALIGN="TOP" nowrap><B><?php putGS("paid subscription"); ?></B></TD> </tr> <?php $color = 0; foreach ($defaultTimes as $time) { $country = new Country($time->getCountryCode(), $Language); ?> <TR <?php if ($color) { $color=0; ?>class="list_row_even"<?php } else { $color=1; ?>class="list_row_odd"<?php } ?>> <TD> <A HREF="/<?php p($ADMIN); ?>/pub/editdeftime.php?Pub=<?php p($Pub); ?>&CountryCode=<?php p($time->getCountryCode()); ?>&Language=<?php p($Language); ?>"><?php p(htmlspecialchars($country->getName())); ?> (<?php p(htmlspecialchars($country->getCode())); ?>)</A> </TD> <TD ALIGN="center"> <?php p(htmlspecialchars($time->getTrialTime())); ?> </TD> <TD ALIGN="center"> <?php p(htmlspecialchars($time->getPaidTime())); ?> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/pub/do_deldeftime.php?Pub=<?php p($Pub); ?>&CountryCode=<?php p($time->getCountryCode()); ?>&Language=<?php p($Language); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the subscription settings for $1?', """.htmlspecialchars($publicationObj->getName()).':'.htmlspecialchars($time->getCountryCode())."""); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete'); ?>" TITLE="<?php putGS('Delete'); ?>" ></A> </TD> </TR> <?php } ?> <TR><TD COLSPAN="2" NOWRAP> </TABLE> <?php camp_html_copyright_notice(); ?>
putGS("Attach"); ?> </A> </TD> <?php } ?> </TR> </TABLE> </TD> </TR> <?php foreach ($DebateAnswerAttachments as $DebateAnswerAttachment) { $file = $DebateAnswerAttachment->getAttachment(); $fileEditUrl = "edit.php?f_publication_id=" . (isset($f_publication_id) ? $f_publication_id : '') . "&f_issue_number=" . (isset($f_issue_number) ? $f_issue_number : '') . "&f_section_number=" . (isset($f_section_number) ? $f_section_number : '') . "&f_article_number=" . (isset($f_article_number) ? $f_article_number : '') . "&f_attachment_id=" . $file->getAttachmentId() . "&f_language_id=" . (isset($f_language_id) ? $f_language_id : '') . "&f_language_selected=" . (isset($f_language_selected) ? $f_language_selected : ''); $deleteUrl = "do_del.php?f_debate_nr={$f_debate_nr}&f_debateanswer_nr={$f_debateanswer_nr}&f_fk_language_id={$f_fk_language_id}&f_attachment_id=" . $file->getAttachmentId() . '&' . SecurityToken::URLParameter(); $downloadUrl = "/attachment/" . basename($file->getStorageLocation()) . "?g_download=1"; if (strstr($file->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $file->getMimeType()) || strstr($_SERVER['HTTP_ACCEPT'], "*/*"))) { $previewUrl = "/attachment/" . basename($file->getStorageLocation()) . "?g_show_in_browser=1"; } ?> <TR> <TD align="center" width="100%"> <TABLE> <TR> <TD align="center" valign="top"> <?php if (isset($f_edit_mode) && $f_edit_mode == "edit") { ?> <a href="<?php p($fileEditUrl);
<?php p(htmlspecialchars($section->getUrlName())); ?> </TD> <?php if ($g_user->hasPermission('ManageSection')) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/sections/edit.php?Pub=<?php p($Pub); ?>&Issue=<?php p($section->getIssueNumber()); ?>&Section=<?php p($section->getSectionNumber()); ?>&Language=<?php p($section->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/configure.png" alt="<?php putGS("Configure"); ?>" title="<?php putGS("Configure"); ?>" border="0"></A> </TD> <?php } ?> <?php if ($g_user->hasPermission('ManageSection') && $g_user->hasPermission('AddArticle')) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN);?>/sections/duplicate.php?Pub=<?php p($Pub); ?>&Issue=<?php p($Issue); ?>&Section=<?php p($section->getSectionNumber()); ?>&Language=<?php p($Language); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/duplicate.png" alt="<?php putGS('Duplicate'); ?>" title="<?php putGS('Duplicate'); ?>" border="0"></A> </TD> <?php } ?> <?php if ($g_user->hasPermission('DeleteSection')) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/sections/del.php?Pub=<?php p($Pub); ?>&Issue=<?php p($section->getIssueNumber()); ?>&Section=<?php p($section->getSectionNumber()); ?>&Language=<?php p($section->getLanguageId()); ?>&SectOffs=<?php p($SectOffs); ?>&<?php echo SecurityToken::URLParameter(); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete section $1', htmlspecialchars($section->getName())); ?>" TITLE="<?php putGS('Delete section $1', htmlspecialchars($section->getName())); ?>"></A> </TD> <?php } ?> </TR> <?php } // foreach ?> </table> <table class="indent"> <TR> <TD> <?php echo $pager->render(); ?> </TD> </TR> </TABLE> <?php
<td align='center'> <?php if ($poll->isExtended()) { ?> <a href="copy.php?f_poll_nr=<?php p($poll->getNumber()); ?>&f_fk_language_id=<?php p($poll->getLanguageId()) ?>" title="<?php putGS('Copy') ?>"> <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/duplicate.png" BORDER="0"> </a> <?php } ?> </td> <td align='center'> <a href="result.php?f_poll_nr=<?php p($poll->getNumber()); ?>&f_fk_language_id=<?php p($poll->getLanguageId()); ?>" title="<?php putGS('Result') ?>"> <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/preview.png" BORDER="0"> </a> </td> <td align='center'> <a href="javascript: if (confirm('<?php echo camp_javascriptspecialchars(getGS('Are you sure you want to delete the poll "$1"?', $poll->getProperty('title'))); ?>')) location.href='do_delete.php?f_poll_nr=<?php p($poll->getNumber()); ?>&f_fk_language_id=<?php p($poll->getLanguageId()); ?>&<?php echo SecurityToken::URLParameter(); ?>'"> <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0"> </a> </td> </tr> <?php $counter++; } ?> </table> </FORM> <?php } else {?> <BLOCKQUOTE> <LI><?php putGS('No polls.'); ?></LI>
<li id="topic_<?php echo $currentTopic->getTopicId() ?>"> <?php $isFirstTranslation = true; $topicTranslations = $currentTopic->getTranslations(); foreach ($topicTranslations as $topicLanguageId => $topicName) { if (!in_array($topicLanguageId, $f_show_languages)) { continue; } $topicLanguage = new Language($topicLanguageId); $topicId = $currentTopic->getTopicId(); ?> <div class="item"><div> <a class="icon delete" href="<?php p("/$ADMIN/topics/do_del.php?f_topic_delete_id=".$currentTopic->getTopicId()."&f_topic_language_id=$topicLanguageId"); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the topic $1?', htmlspecialchars($topicName)); ?>');" title="<?php putGS("Delete"); ?>"><span></span>x</a> <a class="edit" title="<?php putGS('Edit'); ?>"><?php putGS('Edit'); ?></a> <span class="open" title="<?php putGS('Click to edit'); ?>"> <span><?php echo $topicLanguage->getCode(); ?></span> <strong><?php echo htmlspecialchars($topicName); ?></strong> </span> <form method="post" action="do_edit.php" onsubmit="return validate(this);"> <?php echo SecurityToken::FormParameter(); ?> <input type="hidden" name="f_topic_edit_id" value="<?php echo $topicId; ?>" /> <input type="hidden" name="f_topic_language_id" value="<?php echo $topicLanguageId; ?>" /> <fieldset class="name"> <legend><?php putGS("Change topic name"); ?></legend> <input type="text" class="input_text" name="f_name" value="<?php echo htmlspecialchars($topicName); ?>" size="32" maxlength="255" title="<?php putGS('You must fill in the $1 field.',getGS('Name')); ?>" />
<?php } ?> <?php p(htmlspecialchars($language->getName())); ?> <?php if ($g_user->hasPermission('ManageLanguages')) { ?> </a> <?php } ?> </TD> <TD> <?php p(htmlspecialchars($language->getNativeName())); ?> </TD> <TD> <?php p(htmlspecialchars($language->getCode())); ?> </TD> <?php if ($g_user->hasPermission('DeleteLanguages')) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php echo $ADMIN; ?>/languages/do_del.php?Language=<?php p($language->getLanguageId()); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the language $1?', $language->getNativeName());?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete language $1', htmlspecialchars($language->getNativeName())); ?>" TITLE="<?php putGS('Delete language $1', htmlspecialchars($language->getNativeName())); ?>"></A> </TD> <?php } ?> </TR> <?php } // foreach ?> </TABLE> <?php } else { ?> <BLOCKQUOTE> <LI><?php putGS('No language.'); ?></LI> </BLOCKQUOTE> <?php } ?> <?php camp_html_copyright_notice(); ?>
</a> <?php } ?> <label class="left-floated block-label"><?php putGS('Topics'); ?> </label> <div class="clear"></div> <?php if (sizeof($articleTopics) > 0) { ?> <ul class="block-list"> <?php foreach ($articleTopics as $tmpArticleTopic) { $detachUrl = "/{$ADMIN}/articles/topics/do_del.php?f_article_number={$f_article_number}&f_topic_id=" . $tmpArticleTopic->getTopicId() . "&f_language_selected={$f_language_selected}&f_language_id={$f_language_id}&" . SecurityToken::URLParameter(); $path = $tmpArticleTopic->getPath(); $pathStr = ''; foreach ($path as $element) { $name = $element->getName($f_language_selected); if (empty($name)) { // For backwards compatibility - // get the english translation if the translation // doesnt exist for the article's language. $name = $element->getName(1); if (empty($name)) { $name = '-----'; } } $pathStr .= ' / ' . htmlspecialchars($name); }
$color= 0; ?> <tr class="table_list_header"> <td align="left" valign="top" style="padding-left: 3px; padding-top: 3px; padding-bottom: 3px; "><B><?php putGS("Start IP"); ?></b></td> <td align="left" valign="top" style="padding-left: 3px;"><b><?php putGS("Number of addresses"); ?></b></td> <td align="left" valign="top" width="1%" style="padding-left: 3px;"><b><?php putGS("Delete"); ?></b></td> </tr> <?php foreach ($ipAccessList as $i=>$ipAccess) { $startIP = $ipAccess->getStartIPstring(); $addresses = $ipAccess->getAddresses(); ?> <tr style="padding-left: 3px;" <?php if ($color) { $color=0; ?>class="list_row_even"<?php } else { $color=1; ?>class="list_row_odd"<?php } ?>> <td style="padding-left: 3px; padding-top: 3px; padding-bottom: 3px; "><?php echo $startIP; ?></td> <td style="padding-left: 3px;"><?php p(htmlspecialchars($addresses)); ?></td> <td align="center" style="padding-left: 3px;"> <a href="/<?php echo $ADMIN; ?>/users/do_ipdel.php?User=<?php echo $editUser->getUserId() . '&' . SecurityToken::URLParameter(); ?>&StartIP=<?php p($startIP); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the IP Group $1:$2?', $startIP, htmlspecialchars($addresses)); ?>');"> <img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" ALT="<?php putGS('Delete'); ?>" title="<?php putGS('Delete'); ?>"></a> </td> </tr> <?php } } else { ?><tr class="list_row_odd"><td colspan="3" style="padding-left: 3px;"><?php putGS('No records.'); ?></td></tr> <?php } ?> <tr id="add_ip_row_id" style="display: none;"> <td colspan="3" align="center" style="padding-top: 3px;"> <form name="dialog" method="POST" action="do_ipadd.php" onsubmit="return <?php camp_html_fvalidate(); ?>;"> <?php echo SecurityToken::FormParameter(); ?> <input type="hidden" name="User" value="<?php echo $editUser->getUserId(); ?>"> <table border="0" cellspacing="0" cellpadding="0" class="box_table"> <tr>
putGS("N/A"); } print "</td>"; print "\n\t\t\t<td align=\"center\">"; if ($templateObj->exists()) { echo $templateObj->getCacheLifetime(); } else { putGS("N/A"); } print "</td>"; if ($g_user->hasPermission("ManageTempl")){ print "\n\t\t\t<TD ALIGN=\"CENTER\"><A HREF=\"/".$ADMIN.'/templates/dup.php?Path='.urlencode($listbasedir).'&Name='.urlencode($filename).'"><IMG SRC="'.$Campsite["ADMIN_IMAGE_BASE_URL"].'/duplicate.png" BORDER="0" ALT="'.getGS('Duplicate file').'" TITLE="'.getGS('Duplicate file').'"></A></TD>'; print "\n\t\t\t<TD ALIGN=\"CENTER\"><A HREF=\"/".$ADMIN.'/templates/rename.php?Path='.urlencode($listbasedir).'&Name='.urlencode($filename).'"><IMG SRC="'.$Campsite["ADMIN_IMAGE_BASE_URL"].'/rename.png" BORDER="0" ALT="'.getGS('Rename file').'" TITLE="'.getGS('Rename file').'"></A?</TD>'; } if ($g_user->hasPermission("DeleteTempl")) { print "\n\t\t\t<TD ALIGN=\"CENTER\"><A HREF=\"/".$ADMIN.'/templates/do_del.php?What=1&Path='.urlencode($listbasedir).'&Name='.urlencode($filename).'&'.SecurityToken::URLParameter().'" onclick="return confirm(\''.getGS('Are you sure you want to delete the template object $1 from folder $2?', htmlspecialchars($filename),htmlspecialchars($currentFolder)).'\');"><IMG SRC="'.$Campsite["ADMIN_IMAGE_BASE_URL"].'/delete.png" BORDER="0" ALT="'.getGS('Delete file').'" TITLE="'.getGS('Delete file').'"></A></TD>'; } print "</TR>\n"; $counter++; } } else{ echo '<TR><TD COLSPAN="2">'.getGS('No templates.').'</TD></TR>' ; } ?> </TABLE> </TD> </TR> </TABLE> <INPUT TYPE="HIDDEN" NAME="f_current_folder" VALUE="<?php p($currentFolder); ?>"> </FORM>
<?php if (($f_edit_mode == "edit") && $g_user->hasPermission('AddFile')) { ?> <TD align="right"> <IMG src="<?php p($Campsite["ADMIN_IMAGE_BASE_URL"]);?>/add.png" border="0"> <A href="javascript: void(0);" onclick="window.open('<?php echo camp_html_article_url($articleObj, $f_language_id, "files/popup.php"); ?>', 'attach_file', 'scrollbars=yes, resizable=yes, menubar=no, toolbar=no, width=500, height=400, top=200, left=100');"><?php putGS("Attach"); ?></A> </TD> <?php } ?> </TR> </TABLE> </TD> </TR> <?php foreach ($PollAnswerAttachments as $PollAnswerAttachment) { $file = $PollAnswerAttachment->getAttachment(); $fileEditUrl = "edit.php?f_publication_id=$f_publication_id&f_issue_number=$f_issue_number&f_section_number=$f_section_number&f_article_number=$f_article_number&f_attachment_id=".$file->getAttachmentId()."&f_language_id=$f_language_id&f_language_selected=$f_language_selected"; $deleteUrl = "do_del.php?f_poll_nr=$f_poll_nr&f_pollanswer_nr=$f_pollanswer_nr&f_fk_language_id=$f_fk_language_id&f_attachment_id=".$file->getAttachmentId().'&'.SecurityToken::URLParameter(); $downloadUrl = "/attachment/".basename($file->getStorageLocation())."?g_download=1"; if (strstr($file->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $file->getMimeType()) || (strstr($_SERVER['HTTP_ACCEPT'], "*/*")))) { $previewUrl = "/attachment/".basename($file->getStorageLocation())."?g_show_in_browser=1"; } ?> <TR> <TD align="center" width="100%"> <TABLE> <TR> <TD align="center" valign="top"> <?php if ($f_edit_mode == "edit") { ?><a href="<?php p($fileEditUrl); ?>"><?php } p(wordwrap($file->getFileName(), "25", "<br>", true)); ?><?php if ($f_edit_mode == "edit") { ?></a><?php } ?><br><?php p(htmlspecialchars($file->getDescription($f_language_selected))); ?> </TD> <?php if ($g_user->hasPermission('DeleteFile')) { ?> <TD>
</TD> <TD ALIGN="CENTER"> <?php p(htmlspecialchars($country->getCode())); ?> </TD> <?php if ($g_user->hasPermission("ManageCountries")) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/country/translate.php?f_country_code=<?php p(urlencode($country->getCode())); ?>&f_country_language=<?php p($country->getLanguageId()); ?>"><?php putGS("Translate"); ?></A> </TD> <?php } if ($g_user->hasPermission("DeleteCountries")) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/country/do_del.php?f_country_code=<?php p(urlencode($country->getCode())); ?>&f_country_language=<?php p($country->getLanguageId()); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the country $1?' ,htmlspecialchars($country->getName()).' ('.htmlspecialchars($language->getNativeName()).')'); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="Delete country <?php p(htmlspecialchars($country->getName())); ?>" TITLE="Delete country <?php p(htmlspecialchars($country->getName())); ?>" ></A> </TD> <?php } ?> </TR> <?php $previousCountryCode = $country->getCode(); } ?> </table> <table class="action_buttons"> <TR> <TD> <?php echo $pager->render(); ?> </TD> </TR> </TABLE> <?php camp_html_copyright_notice(); ?>
<img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/is_hidden.png" border="0"> <?php } ?> </TD> <TD align="center"> <?php $urlTypeObj = new UrlType($pub->getUrlTypeId()); p(htmlspecialchars($urlTypeObj->getName())); ?> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/pub/edit.php?Pub=<?php p($pub->getPublicationId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/configure.png" alt="<?php putGS("Configure"); ?>" title="<?php putGS("Configure"); ?>" border="0"></A> </TD> <?php } if ($g_user->hasPermission("DeletePub")) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/pub/do_del.php?Pub=<?php p($pub->getPublicationId()); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the publication $1?', htmlspecialchars($pub->getName())); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete publication $1',htmlspecialchars($pub->getName())); ?>" TITLE="<?php putGS('Delete publication $1',htmlspecialchars($pub->getName())); ?>" ></A> </TD> <?php } ?> </TR> <?php } // foreach ?> </table> <table class="indent"> <TR> <TD> <?php echo $pager->render(); ?> </TD> </TR> </TABLE> <?php } else {
</TD> <TD > <?php $publish_articles = $event->getPublishArticlesAction(); if ($publish_articles == "Y") { putGS("Yes"); } else { putGS("No"); } ?> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php echo $ADMIN; ?>/issues/autopublish_del.php?Pub=<?php p($Pub); ?>&Issue=<?php p($Issue); ?>&Language=<?php p($Language); ?>&event_id=<?php echo $event->getEventId(); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS("Are you sure you want to delete this scheduled action?"); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete entry'); ?>"></A> </TD> <?php } // foreach ?> <?php } // if ?> </TR> </table> <FORM NAME="dialog" METHOD="POST" ACTION="autopublish_do_add.php" onsubmit="return <?php camp_html_fvalidate(); ?>;"> <?php echo SecurityToken::FormParameter(); ?> <INPUT TYPE="HIDDEN" NAME="Pub" VALUE="<?php echo $Pub; ?>"> <INPUT TYPE="HIDDEN" NAME="Issue" VALUE="<?php echo $Issue; ?>"> <INPUT TYPE="HIDDEN" NAME="Language" VALUE="<?php echo $Language; ?>"> <p>
/** * Creates a form for translation. * @param array $p_request */ function translationForm($p_request) { global $g_localizerConfig; $localizerTargetLanguage = camp_session_get('localizer_target_language', $g_localizerConfig['DEFAULT_LANGUAGE']); $localizerSourceLanguage = camp_session_get('localizer_source_language', ''); if (empty($localizerSourceLanguage)) { if (isset($p_request['TOL_Language'])) { $lang = $p_request['TOL_Language']; } else { $lang = $g_localizerConfig['DEFAULT_LANGUAGE']; } $tmpLanguage = new LocalizerLanguage(null, $lang); $localizerSourceLanguage = $tmpLanguage->getLanguageId(); } $prefix = camp_session_get('prefix', ''); $screenDropDownSelection = $prefix; // Load the language files. //echo "Prefix: $prefix<br>"; $sourceLang = new LocalizerLanguage($prefix, $localizerSourceLanguage); $targetLang = new LocalizerLanguage($prefix, $localizerTargetLanguage); $defaultLang = new LocalizerLanguage($prefix, $g_localizerConfig['DEFAULT_LANGUAGE']); $mode = Localizer::GetMode(); if (!empty($prefix)) { // If the language files do not exist, create them. if (!$defaultLang->loadFile($mode)) { $defaultLang->saveFile($mode); } if (!$sourceLang->loadFile($mode)) { $sourceLang->saveFile($mode); } if (!$targetLang->loadFile($mode)) { $targetLang->saveFile($mode); } // Make sure that the languages have the same strings and are in the same // order as the default language file. $modified = $sourceLang->syncToDefault(); if ($modified) { $sourceSaveSuccess = $sourceLang->saveFile($mode); camp_html_add_msg($sourceSaveSuccess); } $modified = $targetLang->syncToDefault(); if ($modified) { $targetSaveSuccess = $targetLang->saveFile($mode); camp_html_add_msg($targetSaveSuccess); } } $defaultStrings = $defaultLang->getTranslationTable(); $searchString = camp_session_get('search_string', ''); if (!empty($searchString)) { $sourceStrings = $sourceLang->search($searchString); } else { $sourceStrings = $sourceLang->getTranslationTable(); } $targetStrings = $targetLang->getTranslationTable(); $languages = Localizer::GetAllLanguages($mode); $missingStrings = Localizer::FindMissingStrings($prefix); $unusedStrings = Localizer::FindUnusedStrings($prefix); // Mapping of language prefixes to human-readable strings. $mapPrefixToDisplay = array(); $mapPrefixToDisplay[] = ""; $mapPrefixToDisplay["globals"] = getGS("Globals"); $mapPrefixToDisplay["home"] = getGS("Dashboard"); $mapPrefixToDisplay["api"] = getGS("API"); $mapPrefixToDisplay["library"] = getGS("Libraries"); $mapPrefixToDisplay["pub"] = getGS("Publications"); $mapPrefixToDisplay["issues"] = getGS("Issues"); $mapPrefixToDisplay["sections"] = getGS("Sections"); $mapPrefixToDisplay["articles"] = getGS("Articles"); $mapPrefixToDisplay["article_images"] = getGS("Article Images"); $mapPrefixToDisplay["article_files"] = getGS("Article Files"); $mapPrefixToDisplay["article_topics"] = getGS("Article Topics"); $mapPrefixToDisplay["article_comments"] = getGS("Article Comments"); $mapPrefixToDisplay["media_archive"] = getGS("Media Archive"); $mapPrefixToDisplay["geolocation"] = getGS("Geo-location"); $mapPrefixToDisplay["comments"] = getGS("Comments"); $mapPrefixToDisplay["system_pref"] = getGS("System Preferences"); $mapPrefixToDisplay["templates"] = getGS("Templates"); $mapPrefixToDisplay["article_types"] = getGS("Article Types"); $mapPrefixToDisplay["article_type_fields"] = getGS("Article Type Fields"); $mapPrefixToDisplay["topics"] = getGS("Topics"); $mapPrefixToDisplay["languages"] = getGS("Languages"); $mapPrefixToDisplay["country"] = getGS("Countries"); $mapPrefixToDisplay["localizer"] = getGS("Localizer"); $mapPrefixToDisplay["logs"] = getGS("Logs"); $mapPrefixToDisplay["users"] = getGS("Users"); $mapPrefixToDisplay["user_subscriptions"] = getGS("User Subscriptions"); $mapPrefixToDisplay["user_subscription_sections"] = getGS("User Subscriptions Sections"); $mapPrefixToDisplay["user_types"] = getGS("Staff User Types"); $mapPrefixToDisplay["bug_reporting"] = getGS("Bug Reporting"); $mapPrefixToDisplay["feedback"] = getGS("Feedback"); $mapPrefixToDisplay["preview"] = getGS("Preview Window"); $mapPrefixToDisplay["tiny_media_plugin"] = getGS("Editor Media Plugin"); $mapPrefixToDisplay["plugins"] = getGS("Plugins"); $mapPrefixToDisplay["extensions"] = getGS("Extensions"); $mapPrefixToDisplay["authors"] = getGS("Authors"); foreach (CampPlugin::GetPluginsInfo(true) as $info) { if (array_key_exists('localizer', $info) && is_array($info['localizer'])) { $mapPrefixToDisplay[$info['localizer']['id']] = getGS($info['localizer']['screen_name']); } } // Whether to show translated strings or not. $hideTranslated = camp_session_get('hide_translated', 'off'); camp_html_display_msgs(); ?> <table> <tr> <td valign="top"> <!-- Begin top control panel --> <form action="index.php" method="post"> <?php echo SecurityToken::FormParameter(); ?> <input type="hidden" name="localizer_lang_id" value="<?php echo $targetLang->getLanguageId(); ?>"> <input type="hidden" name="search_string" value="<?php echo htmlspecialchars($searchString); ?>"> <table border="0" cellpadding="0" cellspacing="0" class="box_table"> <tr> <td> <table> <tr> <td> <?php putGS('Area to localize'); ?>: </td> </tr> <tr> <td> <SELECT name="prefix" class="input_select" onchange="this.form.submit();"> <?PHP foreach ($mapPrefixToDisplay as $prefix => $displayStr) { if (!empty($prefix)) { $transl_status[$prefix] = Localizer::GetTranslationStatus($prefix, $localizerTargetLanguage); } camp_html_select_option($prefix, $screenDropDownSelection, $displayStr, $transl_status[$prefix]['untranslated'] ? array('style' => 'color:red') : array()); } ?> </SELECT> </td> </tr> </table> </td> <td> <table> <tr> <td> <?php putGS('Translate from:'); ?> </td> </tr> <tr> <td> <SELECT NAME="localizer_source_language" onchange="this.form.submit();" class="input_select"> <?php echo LanguageMenu($languages, $localizerSourceLanguage); ?> </select> </td> </tr> </table> </td> <td> <table> <tr> <td> <?php putGS('Translate to:'); ?> </td> </tr> <tr> <td> <SELECT NAME="localizer_target_language" onChange="this.form.submit();" class="input_select"> <?php echo LanguageMenu($languages, $localizerTargetLanguage); ?> </select> </td> </tr> </table> </td> <td> <table> <tr> <td> <?php putGS('Translation status:'); ?> </td> </tr> <tr> <td> <?php if ($screenDropDownSelection) { $all = $transl_status[$screenDropDownSelection]['all']; $transl = $transl_status[$screenDropDownSelection]['translated']; $untransl = $transl_status[$screenDropDownSelection]['untranslated']; } else { foreach ($transl_status as $screen) { $all += $screen['all']; $transl += $screen['translated']; $untransl += $screen['untranslated']; } } if ($all) { putGS("$1 of $2 strings translated", $transl, $all); echo '<br>'.round(100 - 100 / $all * $untransl, 2) . ' %'; } else { echo 'N/A'; } ?> </td> </tr> </table> </td> </tr> <tr> <td align="center" colspan="4"> <table> <tr> <td> <select name="hide_translated" onChange="this.form.submit();" class="input_select"> <?php camp_html_select_option('off', $hideTranslated, getGS('Show translated strings')); ?> <?php camp_html_select_option('on', $hideTranslated, getGS('Hide translated strings')); ?> </select> </td> <td style="padding-left: 10px;"> <INPUT type="submit" value="<?php putGS("Submit"); ?>" class="button"> </td> </tr> </table> </td> </tr> </table> </form> </td><!-- End top controls --> </tr> <!-- Begin search dialog --> <tr> <td valign="top"> <form> <input type="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>"> <input type="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>"> <input type="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>"> <table border="0" cellspacing="0" cellpadding="0" class="box_table"> <tr> <td width="1%" style="padding-left: 5px;"> <img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/preview.png"> </td> <td style="padding-left: 10px;"> <input type="text" name="search_string" value="<?php echo $searchString; ?>" class="input_text" size="50"> </td> <td width="1%" nowrap> <input type="button" value="<?php putGS("Search"); ?>" onclick="this.form.submit();" class="button"> </td> </tr> </table> </form> </td> </tr> <!-- Begin Missing and Unused Strings popups --> <tr> <td valign="top"> <?PHP if ((count($missingStrings) > 0) && ($screenDropDownSelection != 'globals')) { ?> <form action="do_add_missing_strings.php" method="post"> <?php echo SecurityToken::FormParameter(); ?> <input type="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>"> <input type="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>"> <input type="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>"> <table border="0" cellspacing="0" cellpadding="0" class="box_table"> <tr> <td> <img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/add.png"> </td> <td> <?php putGS("The following strings are missing from the translation files:"); ?> <div style="overflow: auto; height: 50px; background-color: #EEEEEE; border: 1px solid black; padding-left: 3px;"> <?PHP foreach ($missingStrings as $missingString) { echo htmlspecialchars($missingString)."<br>"; } ?> </div> </td> <td> <input type="submit" value="<?php putGS("Add"); ?>" class="button"> </td> </tr> </table> </form> <?php } if ((count($unusedStrings) > 0) && ($screenDropDownSelection != 'globals')) { ?> <form action="do_delete_unused_strings.php" method="post"> <?php echo SecurityToken::FormParameter(); ?> <input type="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>"> <input type="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>"> <input type="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>"> <table border="0" cellspacing="0" cellpadding="0" class="box_table"> <tr> <td> <img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/delete.png"> </td> <td> <?php putGS("The following strings are not used:"); ?> <div style="overflow: auto; height: 50px; background-color: #EEEEEE; border: 1px solid black; padding-left: 3px;"> <?PHP foreach ($unusedStrings as $unusedString) { echo htmlspecialchars($unusedString)."<br>"; } ?> </div> </td> <td> <input type="submit" value="<?php putGS("Delete"); ?>" class="button"> </td> </tr> </table> </form> <?php } ?> <!-- Begin translated strings box --> <form action="do_save.php" method="post"> <?php echo SecurityToken::FormParameter(); ?> <INPUT TYPE="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>"> <INPUT TYPE="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>"> <INPUT TYPE="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>"> <INPUT TYPE="hidden" name="search_string" value="<?php echo $searchString; ?>"> <table border="0" cellpadding="0" cellspacing="0" class="box_table"> <?PHP $foundUntranslatedString = false; $count = 0; foreach ($sourceStrings as $sourceKey => $sourceValue) { if (!empty($targetStrings[$sourceKey])) { $targetValueDisplay = str_replace('"', '"', $targetStrings[$sourceKey]); $targetValueDisplay = str_replace("\\", "\\\\", $targetValueDisplay); $pre = ''; $post = ''; } else { $targetValueDisplay = ''; $pre = '<FONT COLOR="red">'; $post = '</FONT>'; } $sourceKeyDisplay = htmlspecialchars(str_replace("\\", "\\\\", $sourceKey)); // Dont display translated strings if ($hideTranslated == 'on' && !empty($targetStrings[$sourceKey])) { ?> <input name="data[<?php echo $count; ?>][key]" type="hidden" value="<?php echo $sourceKeyDisplay; ?>"> <input name="data[<?php echo $count; ?>][value]" type="hidden" value="<?php echo $targetValueDisplay; ?>"> <?php } else { // Display the interface for translating a string. $foundUntranslatedString = true; // Display string ?> <tr> <td style="padding-top: 7px;" width="500px"> <?php // If the string exists in the source language, display that if (!empty($sourceValue)) { ?> <b><?php echo $sourceLang->getLanguageId(); ?>:</b> <?php echo $pre.htmlspecialchars(str_replace("\\", "\\\\", $sourceValue)).$post; ?> <?php } // Otherwise, display it in the default language. else { if (isset($defaultStrings[$sourceKey])) { $defaultValue = $defaultStrings[$sourceKey]; } else { $defaultValue = ''; } ?> <b><?php echo $g_localizerConfig['DEFAULT_LANGUAGE']; ?>:</b> <?php echo $pre.$defaultValue.$post; ?> <?php } ?> </td> </tr> <tr> <td> <input name="data[<?php echo $count; ?>][key]" type="hidden" value="<?php echo $sourceKeyDisplay; ?>"> <table cellpadding="0" cellspacing="0"> <tr> <td style="padding-right: 5px;"> <input type="image" src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/save.png" name="save" value="save"> </td> <td> <input name="data[<?php echo $count; ?>][value]" type="text" size="<?php echo $g_localizerConfig['INPUT_SIZE']; ?>" value="<?php echo $targetValueDisplay; ?>" class="input_text"> </td> <?php // default language => can change keys if ($targetLang->getLanguageId() == $g_localizerConfig['DEFAULT_LANGUAGE']) { $fileparms = "localizer_target_language=".$targetLang->getLanguageId() ."&localizer_source_language=".$sourceLang->getLanguageId() ."&prefix=".urlencode($screenDropDownSelection) ."&search_string=".urlencode($searchString); if ($count == 0) { // swap last and first entry $prev = count($sourceStrings)-1; $next = $count+1; } elseif ($count == count($sourceStrings)-1) { // swap last and first entry $prev = $count-1; $next = 0; } else { // swap entrys linear $prev = $count-1; $next = $count+1; } $removeLink = "do_delete_string.php?pos=$count&$fileparms" ."&string=".urlencode($sourceKey).'&'.SecurityToken::URLParameter(); $moveUpLink = "do_reorder_string.php?pos1=$count&pos2=$prev&$fileparms&".SecurityToken::URLParameter(); $moveDownLink = "do_reorder_string.php?pos1=$count&pos2=$next&$fileparms&".SecurityToken::URLParameter(); if (empty($searchString)) { ?> <td style="padding-left: 3px;"> <a href="<?php echo $moveUpLink; ?>"><img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/up.png" border="0"></a> </td> <td style="padding-left: 3px;"> <a href="<?php echo $moveDownLink; ?>"><img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/down.png" border="0"></a> </td> <?php } ?> <td style="padding-left: 3px;"> <a href="<?php echo $removeLink; ?>" onClick="return confirm('<?php putGS('Are you sure you want to delete this entry?'); ?>');"><img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/delete.png" border="0" vspace="4"></a> </td> <td style="padding-left: 5px;" nowrap> <SELECT name="change_prefix_<?php echo $count; ?>" class="input_select"> <?PHP foreach ($mapPrefixToDisplay as $prefix => $displayStr) { if ($prefix != $screenDropDownSelection) { camp_html_select_option($prefix, null, $displayStr); } } ?> </SELECT> <input type="button" name="" value="Move" onclick="location.href='do_string_switch_file.php?string=<?php echo urlencode($sourceKey); ?>&new_prefix='+this.form.change_prefix_<?php echo $count; ?>.options[this.form.change_prefix_<?php echo $count; ?>.selectedIndex].value+'&<?php echo $fileparms; ?>&<?php echo SecurityToken::URLParameter(); ?>';" class="button"> </td> <?php } ?> </tr> </table> </td> </tr> <?php } $count++; } if (count($sourceStrings) <= 0) { if (empty($searchString)) { ?> <tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("No source strings found.");?> </td></tr> <?php } else { ?> <tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("No matches found.");?> </td></tr> <?php } } elseif (!$foundUntranslatedString) { if (empty($searchString)) { ?> <tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("All strings have been translated."); ?></td></tr> <?php } else { ?> <tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("No matches found.");?> </td></tr> <?php } } ?> </table> <table style="margin-left: 12px; margin-top: 5px;"> <tr> <td> <input type="submit" name="save_button" value="<?php putGS('Save'); ?>" class="button"> </td> </tr> </table> </form> </td> <!-- End translate strings box --> </tr> </table> <?php } // fn translationForm
putGS("Trial subscription"); } else { putGS("Paid subscription"); } ?> </TD> <TD ALIGN="CENTER"> <?php if ($subscription->isActive()) { ?> <A HREF="/<?php p($ADMIN); ?>/users/subscriptions/do_status.php?f_user_id=<?php p($f_user_id); ?>&f_subscription_id=<?php p($subscription->getSubscriptionId() . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to deactivate the subscription?'); ?>');">Yes</A> <?php } else { ?> <A HREF="/<?php p($ADMIN); ?>/users/subscriptions/do_status.php?f_user_id=<?php p($f_user_id); ?>&f_subscription_id=<?php p($subscription->getSubscriptionId() . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to activate the subscription?'); ?>');">No</A> <?php } ?> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/users/subscriptions/do_del.php?f_user_id=<?php p($f_user_id); ?>&f_subscription_id=<?php p($subscription->getSubscriptionId() . '&' . SecurityToken::URLParameter()); ?>&f_publication_id=<?php p($subscription->getPublicationId()); ?>"><IMG SRC="<?php echo $Campsite['ADMIN_IMAGE_BASE_URL']; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete subscriptions to $1', htmlspecialchars($publication->getName())); ?>" TITLE="<?php putGS('Delete subscriptions to $1', htmlspecialchars($publication->getName())); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the subscription to the publication $1?', htmlspecialchars($publication->getName())); ?>');"></A> </TD> </TR> <?php } ?> <TR> <TD COLSPAN="2" NOWRAP> <?php if ($f_subscription_offset > 0) { ?> <B><A HREF="index.php?f_user_id=<?php p($f_user_id); ?>&f_subscription_offset=<?php p(max(0, ($f_subscription_offset - $ItemsPerPage))); ?>"><< <?php putGS('Previous'); ?></A></B> <?php } ?> <?php if ($numSubscriptions > ($f_subscription_offset + $ItemsPerPage)) { ?> | <B><A HREF="index.php?f_user_id=<?php p($f_user_id); ?>&f_subscription_offset=<?php p($f_subscription_offset + $ItemsPerPage); ?>"><?php putGS('Next'); ?> >></A></B> <?php } ?> </TD>
<?php } ?> </ul> </div> <div id="media-attachments"> <?php if ($inEditMode && $g_user->hasPermission('AddFile')) { ?> <a class="iframe ui-state-default icon-button right-floated" href="<?php echo camp_html_article_url($articleObj, $f_language_id, "files/popup.php"); ?>"><span class="ui-icon ui-icon-plusthick"></span><?php putGS('Attach'); ?></a> <div class="clear"></div> <?php } ?> <ul class="block-list"> <?php foreach ($articleFiles as $file) { $fileEditUrl = "/$ADMIN/articles/files/edit.php?f_publication_id=$f_publication_id&f_issue_number=$f_issue_number&f_section_number=$f_section_number&f_article_number=$f_article_number&f_attachment_id=".$file->getAttachmentId()."&f_language_id=$f_language_id&f_language_selected=$f_language_selected"; $deleteUrl = "/$ADMIN/articles/files/do_del.php?f_publication_id=$f_publication_id&f_issue_number=$f_issue_number&f_section_number=$f_section_number&f_article_number=$f_article_number&f_attachment_id=".$file->getAttachmentId()."&f_language_selected=$f_language_selected&f_language_id=$f_language_id&".SecurityToken::URLParameter(); $downloadUrl = $file->getAttachmentUrl()."?g_download=1"; $previewUrl = null; if (strstr($file->getMimeType(), "image/") && (strstr($_SERVER['HTTP_ACCEPT'], $file->getMimeType()) || (strstr($_SERVER['HTTP_ACCEPT'], "*/*")))) { $previewUrl = $Campsite['SUBDIR']."/attachment/".basename($file->getStorageLocation())."?g_show_in_browser=1"; } ?> <li> <?php if ($inEditMode) { ?> <a class="text-link" href="<?php echo $fileEditUrl; ?>"><?php echo wordwrap($file->getFileName(), "25", "<br />", true); ?></a> <?php } else { ?> <?php echo wordwrap($file->getFileName(), "25", "<br />", true); ?> <?php } ?> <span class="info"><?php echo htmlspecialchars($file->getDescription($f_language_selected)), ', ', camp_format_bytes($file->getSizeInBytes()); ?></span>
<td width="100px"> <?php p($info['version']) ?> </td> <TD width="*"> <?php p($info['description']); ?> </TD> <TD width="80px" align="center"> <input type="hidden" name="p_plugins[<?php p(htmlspecialchars($info['name']))?>]" value="<?php p(htmlspecialchars($info['version'])) ?>"> <input type="checkbox" name="p_enabled[<?php p(htmlspecialchars($info['name']))?>]" <?php p($checked) ?>> </TD> <TD width="80px" align="center"> <a href="manage.php?p_plugin=<?php p(htmlspecialchars($info['name']))?>&p_uninstall=1&<?php echo SecurityToken::URLParameter(); ?>" onClick="return confirm('<?php putGS('Please confirm the plugin $1 uninstall. All plugin data will be deleted!', $info['name']) ?>')"> <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"] ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete plugin')?>" TITLE="<?php putGS('Delete plugin') ?>"> </a> </TD> </TR> <?php } ?> <tr class="table_list_header"> <td colspan="5" align="center"> <input type="submit" name="save" value="<?php putGS('Save') ?>" class="button"> </td> </tr> </table> </form> <?php } else { ?>
<td> <a href="javascript: void(0);" onclick="HideAll(type_ids); ShowElement('translate_type_<?php p($i); ?>');"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/localizer.png" alt="<?php putGS("Translate"); ?>" title="<?php putGS("Translate"); ?>" border="0"></a> </td> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/do_hide.php?f_article_type=<?php print urlencode($articleType); ?>&f_status=<?php print $hideShowStatus; ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to $1 the article type $2?', $hideShowText, "\'".htmlspecialchars($articleType)."\'"); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/<?php echo $hideShowImage; ?>" BORDER="0" ALT="<?php putGS('$1 article type $2', ucfirst($hideShowText), htmlspecialchars($articleType)); ?>" TITLE="<?php putGS('$1 article type $2', ucfirst($hideShowText), htmlspecialchars($articleType)); ?>" ></A> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/do_comment_activation.php?f_article_type=<?php print urlencode($articleType); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to $1 comments for article type $2?', $commentChangeText, "\'".htmlspecialchars($articleType)."\'"); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/<?php echo $commentImage; ?>" BORDER="0" ALT="<?php putGS('$1 comments for article type $1', ucfirst($commentChangeText), htmlspecialchars($articleType)); ?>" TITLE="<?php putGS('$1 comments for article type $2', ucfirst($commentChangeText), htmlspecialchars($articleType)); ?>" ></A> </TD> <?php if ($g_user->hasPermission("DeleteArticleTypes")) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/do_del.php?f_article_type=<?php print urlencode($articleType); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the article type $1? WARNING: Deleting this article type will delete all the articles associated with this article type.', htmlspecialchars($articleType)); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete article type $1', htmlspecialchars($articleType)); ?>" TITLE="<?php putGS('Delete article type $1.', htmlspecialchars($articleType)); ?>" ></A> </TD> <?php } ?> </TR> <tr id="translate_type_<?php p($i); ?>" style="display: none;"><td colspan="6"> <table> <?php $color2 = 0; $isFirstTranslation = true; $typeTranslations = $currentArticleType->getTranslations(); foreach ($typeTranslations as $typeLanguageId => $typeTransName) { ?> <TR <?php if ($color2) { $color2 = 0; ?>class="list_row_even"<?php } else { $color2 = 1; ?>class="list_row_odd"<?php } ?>">
<TD ><A HREF="/<?php echo $ADMIN; ?>/issues/?Pub=<?php p($f_publication_id); ?>"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/go_to.png" BORDER="0"></A></TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-bottom: 1em;"> <TR> <?php if ($g_user->hasPermission("ManagePub")) { ?> <P> <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"]; ?>/add.png" BORDER="0"></A> </TD> <TD> <A HREF="/<?php echo $ADMIN; ?>/pub/add.php?Back=<?php p(urlencode($_SERVER['REQUEST_URI'])); ?>"><B><?php putGS("Add new publication"); ?></B></A> </TD> <?php } ?> <?php if ($g_user->hasPermission("DeletePub")) { ?> <TD style="padding-left: 10px;"><A HREF="do_del.php?Pub=<?php p($f_publication_id); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the publication $1?', htmlspecialchars($publicationObj->getName())); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0"></A></TD> <TD><A HREF="do_del.php?Pub=<?php p($f_publication_id); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the publication $1?', htmlspecialchars($publicationObj->getName())); ?>');"><B><?php putGS("Delete"); ?></B></A></TD> <?php } ?> </TR> </TABLE> <?php camp_html_display_msgs(0); ?> <FORM METHOD="POST" ACTION="do_edit.php" onsubmit="return <?php camp_html_fvalidate(); ?>;"> <?php echo SecurityToken::FormParameter(); ?> <?php include("pub_form.php"); ?> </FORM> <P> <?php camp_html_copyright_notice(); ?>
<table cellpadding="0" cellspacing="0" class="action_buttons"> <tr> <?php if ($g_user->hasPermission('AddImage')) { ?> <td> <A HREF="add.php"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/add.png" BORDER="0" alt="<?php putGS('Add new image'); ?>"></A> </TD> <TD style="padding-left: 3px;"> <A HREF="add.php"><B><?php putGS('Add new image'); ?></B></A> </TD> <?php } ?> <?php if ($g_user->hasPermission('DeleteImage') && !$imageObj->inUse()) { ?> <td style="padding-left: 15px;"> <A HREF="do_del.php?f_image_id=<?php echo $f_image_id; ?>&<?php echo SecurityToken::URLParameter();?>" onclick="return confirm('<?php putGS("Are you sure you want to delete the image \\'$1\\'?", camp_javascriptspecialchars($imageObj->getDescription())); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete image $1',htmlspecialchars($imageObj->getDescription())); ?>"></A> </TD> <TD style="padding-left: 3px;"> <A HREF="do_del.php?f_image_id=<?php echo $f_image_id; ?>&<?php echo SecurityToken::URLParameter();?>" onclick="return confirm('<?php putGS("Are you sure you want to delete the image \\'$1\\'?", camp_javascriptspecialchars($imageObj->getDescription())); ?>');"><b><?php putGS('Delete'); ?></b></a> </TD> <?php } ?> </tr> </table> <?php camp_html_display_msgs(); ?> <p></p> <IMG SRC="<?php echo $imageObj->getImageUrl(); ?>" BORDER="0" ALT="<?php echo htmlspecialchars($imageObj->getDescription()); ?>" style="padding-left:15px"> <P> <?php if ($g_user->hasPermission('ChangeImage')) { ?> <FORM NAME="image_edit" METHOD="POST" ACTION="do_edit.php" ENCTYPE="multipart/form-data"> <?php echo SecurityToken::FormParameter(); ?> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" class="box_table"> <TR> <TD COLSPAN="2">
<TD > <?php $sType = $subscription->getType(); if ($sType == 'T') { putGS("Trial"); } else { putGS("Paid"); } ?> </TD> <TD ALIGN="CENTER"> <?php if ($subscription->isActive()) { ?> <a href="/<?php echo $ADMIN; ?>/users/subscriptions/do_status.php?f_user_id=<?php echo $editUser->getUserId(); ?>&f_subscription_id=<?php p($subscription->getSubscriptionId() . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to deactivate the subscription?'); ?>');"><?php putGS('Yes'); ?></a> <?php } else { ?> <a href="/<?php echo $ADMIN; ?>/users/subscriptions/do_status.php?f_user_id=<?php echo $editUser->getUserId(); ?>&f_subscription_id=<?php p($subscription->getSubscriptionId() . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to activate the subscription?'); ?>');"><?php putGS('No');?></a> <?php } ?> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php echo $ADMIN; ?>/users/subscriptions/do_del.php?f_user_id=<?php echo $editUser->getUserId(); ?>&f_subscription_id=<?php p($subscription->getSubscriptionId() . '&' . SecurityToken::URLParameter()); ?>" onclick="return confirm('<?php putGS('Are you sure you want to delete the subscription to the publication $1?', htmlspecialchars($publicationObj->getName())); ?>');"> <IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" BORDER="0" ALT="<?php putGS('Delete subscriptions to $1', htmlspecialchars($publicationObj->getName()) ); ?>" TITLE="<?php putGS('Delete subscriptions to $1', htmlspecialchars($publicationObj->getName()) ); ?>"></A> </TD> </TR> <?php } ?> <?php } else { ?> <tr class="list_row_odd"><td colspan="5"><?php putGS('No subscriptions.'); ?></td></tr> <?php } ?> </table> <br>
$map_name_title = str_replace("&", "&", $map_name_title); $map_name_title = str_replace("<", "<", $map_name_title); $map_name_title = str_replace(">", ">", $map_name_title); $map_name_title = str_replace("\\", "\", $map_name_title); $map_name_title = str_replace("'", "'", $map_name_title); $map_name_title = " title='$map_name_title'"; } $map_name_max_len = 20; if ($map_name_max_len < strlen($map_name)) { $map_name = substr($map_name, 0, $map_name_max_len) . "..."; } $map_name = str_replace("&", "&", $map_name); $map_name = str_replace("<", "<", $map_name); $map_name = str_replace(">", ">", $map_name); } $detachMapUrl = "/$ADMIN/articles/locations/do_unlink.php?f_publication_id=$f_publication_id&f_issue_number=$f_issue_number&f_section_number=$f_section_number&f_article_number=$f_article_number&f_language_selected=$f_language_selected&f_language_id=$f_language_id&".SecurityToken::URLParameter(); $map_language_used = $f_language_selected; if (0 == $map_language_used) { $map_language_used = $f_language_id; } $map_article_spec = '' . $f_article_number . '_' . $map_language_used; ?> <script type="text/javascript"> geomap_popup_editing = null; geomap_art_spec_popup = ""; geomap_art_spec_main = "" + '<?php echo $map_article_spec; ?>'; geomap_popup_show = function (edit) { var geomap_force_new = true; try { if ((!geomap_popup_editing) || geomap_popup_editing.closed) {geomap_art_spec_popup = "";}
putGS("Unpublish on: $1", $nextEvent->getActionTime()); } } ?> <br> <?php if ($g_user->hasPermission('ManageIssue')) { if ($issue->getWorkflowStatus() == 'Y') { $t2 = getGS('Published'); $t3 = getGS('Not published'); } else { $t2 = getGS('Not published'); $t3 = getGS('Published'); } ?> <A HREF="/<?php echo $ADMIN; ?>/issues/do_status.php?Pub=<?php p($Pub); ?>&Issue=<?php p($issue->getIssueNumber()); ?>&Language=<?php p($issue->getLanguageId()); ?>&f_target=index.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?',$issue->getIssueNumber().'. '.htmlspecialchars($issue->getName()).' ('.htmlspecialchars($issue->getLanguageName()).')',"\'$t2\'","\'$t3\'"); ?> ');"><?php ($issue->getWorkflowStatus() == 'Y') ? putGS("Unpublish") : putGS("Publish"); ?></A> - <A HREF="/<?php echo $ADMIN; ?>/issues/edit.php?Pub=<?php p($Pub); ?>&Issue=<?php p($issue->getIssueNumber()); ?>&Language=<?php p($issue->getLanguageId()); ?>"><?php putGS("Schedule"); ?></A> <?php } ?> </TD> <?php if ($g_user->hasPermission('ManageIssue')) { ?> <TD ALIGN="CENTER"> <A HREF="/<?php echo $ADMIN; ?>/issues/edit.php?Pub=<?php p($Pub); ?>&Issue=<?php p($issue->getIssueNumber()); ?>&Language=<?php p($issue->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/configure.png" alt="<?php putGS("Configure"); ?>" title="<?php putGS("Configure"); ?>" border="0"></A> </TD> <?php } ?> <?php if ($g_user->hasPermission('ManageIssue')) { ?> <TD ALIGN="CENTER">