function drawNoResults() { ?> <table width="100%"> <tr> <td class="noResult"><?php putGS("No Media Files Found"); ?></td> </tr> </table> <?php } // fn drawNoResults
/** * @param array p_dbColumns * @param object p_user The User object * @param int p_editorLanguage The current or selected language * * @return void */ function editor_load_tinymce($p_dbColumns, $p_user, $p_articleNumber, $p_editorLanguage, $p_objectType = 'article') { global $Campsite; $stylesheetFile = $Campsite['WEBSITE_URL'] . '/admin/articles/article_stylesheet.css'; /** STEP 1 ******************************************************** * What are the names of the textareas you will be turning * into editors? ******************************************************************/ $editors = array(); if (is_array($p_dbColumns)) { foreach ($p_dbColumns as $dbColumn) { if ($dbColumn->getType() == ArticleTypeField::TYPE_BODY) { if ($p_articleNumber > 0) { $editors[] = $dbColumn->getName() . '_' . $p_articleNumber; } else { $editors[] = $dbColumn->getName(); } } } } else { if ($p_articleNumber > 0) { $editors[] = $p_dbColumns . '_' . $p_articleNumber; } else { $editors[] = $p_dbColumns; } } $textareas = implode(",", $editors); /** STEP 2 ******************************************************** * Now, what are the plugins you will be using in the editors * on this page. List all the plugins you will need, even if not * all the editors will use all the plugins. ******************************************************************/ $plugins = array(); if ($p_user->hasPermission('EditorCopyCutPaste')) { $plugins[] = 'paste'; } if ($p_user->hasPermission('EditorFindReplace')) { $plugins[] = 'searchreplace'; } if ($p_user->hasPermission('EditorEnlarge')) { $plugins[] = 'fullscreen'; } if ($p_user->hasPermission('EditorTable')) { $plugins[] = 'table'; } if ($p_user->hasPermission('EditorLink')) { $plugins[] = 'campsiteinternallink'; if ($p_objectType == 'article') { $plugins[] = 'campsiteattachment'; } } if ($p_user->hasPermission('EditorImage') && $p_objectType == 'article') { $plugins[] = 'campsiteimage'; $plugins[] = 'media'; } $plugins[] = 'iframe'; $plugins[] = 'codehighlighting'; $plugins_list = implode(",", $plugins); $statusbar_location = "none"; if ($p_user->hasPermission('EditorStatusBar')) { $statusbar_location = "bottom"; } /** STEP 3 ******************************************************** * We create a default configuration to be used by all the editors. * If you wish to configure some of the editors differently this * will be done in step 4. ******************************************************************/ $toolbar1 = array(); if ($p_user->hasPermission('EditorBold')) { $toolbar1[] = "bold"; } if ($p_user->hasPermission('EditorItalic')) { $toolbar1[] = "italic"; } if ($p_user->hasPermission('EditorUnderline')) { $toolbar1[] = "underline"; } if ($p_user->hasPermission('EditorStrikethrough')) { $toolbar1[] = "strikethrough"; } if ($p_user->hasPermission('EditorTextAlignment')) { $toolbar1[] = "|"; $toolbar1[] = "justifyleft"; $toolbar1[] = "justifycenter"; $toolbar1[] = "justifyright"; $toolbar1[] = "justifyfull"; } if ($p_user->hasPermission('EditorIndent')) { $toolbar1[] = "|"; $toolbar1[] = "outdent"; $toolbar1[] = "indent"; $toolbar1[] = "blockquote"; } if ($p_user->hasPermission('EditorCopyCutPaste')) { $toolbar1[] = "|"; $toolbar1[] = "copy"; $toolbar1[] = "cut"; $toolbar1[] = "paste"; } if ($p_user->hasPermission('EditorTextDirection')) { $toolbar1[] = "|"; $toolbar1[] = "ltr"; $toolbar1[] = "rtl"; $toolbar1[] = "charmap"; } if ($p_user->hasPermission('EditorLink')) { $toolbar1[] = "|"; $toolbar1[] = "link"; $toolbar1[] = "anchor"; if ($p_objectType == 'article') { $toolbar1[] = "campsiteattachment"; } } if ($p_user->hasPermission('EditorSourceView')) { $toolbar1[] = "code"; } if ($p_user->hasPermission('EditorEnlarge')) { $toolbar1[] = "fullscreen"; } if ($p_user->hasPermission('EditorHorizontalRule')) { $toolbar1[] = "hr"; } $toolbar2 = array(); // Slice up the first toolbar if it is too long. if (count($toolbar1) > 34) { $toolbar2 = array_splice($toolbar1, 34); } // This is to put the bulleted and numbered list controls // on the most appropriate line of the toolbar. if ($p_user->hasPermission('EditorListBullet') && $p_user->hasPermission('EditorListNumber') && count($toolbar1) < 19) { $toolbar1[] = "|"; $toolbar1[] = "bullist"; $toolbar1[] = "numlist"; } elseif ($p_user->hasPermission('EditorListBullet') && !$p_user->hasPermission('EditorListNumber') && count($toolbar1) < 34) { $toolbar1[] = "|"; $toolbar1[] = "bullist"; } elseif (!$p_user->hasPermission('EditorListBullet') && $p_user->hasPermission('EditorListNumber') && count($toolbar1) < 20) { $toolbar1[] = "|"; $toolbar1[] = "numlist"; } $theme_buttons1 = count($toolbar1) > 0 ? implode(',', $toolbar1) : ''; $theme_buttons2 = ''; $theme_buttons3 = ''; $localeFile = $Campsite['CAMPSITE_DIR'] . '/js/tinymce/langs/' . $p_editorLanguage . '.js'; if (!file_exists($localeFile)) { $p_editorLanguage = 'en'; } ?> <!-- Load TinyMCE --> <script type="text/javascript" src="<?php echo $Campsite['WEBSITE_URL']; ?> /js/tinymce/jquery.tinymce.js"></script> <script type="text/javascript"> <?php if ($p_objectType == 'article') { ?> function CampsiteSubhead(ed) { element = ed.dom.getParent(ed.selection.getNode(), 'span'); if (element && ed.dom.getAttrib(element, 'class') == 'campsite_subhead') { return false; } else { html = ed.selection.getContent({format : 'text'}); ed.selection.setContent('<span class="campsite_subhead">' + html + '</span>'); } } // fn CampsiteSubhead <?php } ?> $().ready(function() { $('textarea.tinymce').tinymce({ // Location of TinyMCE script script_url : '<?php echo $Campsite['WEBSITE_URL']; ?> /js/tinymce/tiny_mce.js', // General options language : "<?php p($p_editorLanguage); ?> ", theme : "advanced", plugins : "<?php p($plugins_list); ?> ", file_browser_callback : "campsitemedia", forced_root_block : "", relative_urls : false, onchange_callback : function() { $('form#article-main').change(); }, extended_valid_elements : "iframe[src|width|height|name|align|frameborder|scrolling|marginheight|marginwidth]", // Theme options theme_advanced_buttons1 : "<?php p($theme_buttons1); ?> ", theme_advanced_buttons2 : "<?php p($theme_buttons2); ?> ", theme_advanced_buttons3 : "<?php p($theme_buttons3); ?> ", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_resizing : false, theme_advanced_statusbar_location: "<?php p($statusbar_location); ?> ", // Example content CSS (should be your site CSS) content_css : "<?php echo $stylesheetFile; ?> ", // Drop lists for link/image/media/template dialogs template_external_list_url : "lists/template_list.js", external_link_list_url : "lists/link_list.js", external_image_list_url : "lists/image_list.js", media_external_list_url : "lists/media_list.js", // paste options paste_auto_cleanup_on_paste: true, paste_convert_headers_to_strong: true, paste_remove_spans: true, paste_remove_styles: true, // not escaping greek characters entity_encoding: 'raw', <?php if ($p_user->hasPermission('EditorSpellcheckerEnabled')) { ?> gecko_spellcheck : true, <?php } ?> <?php if ($p_user->hasPermission('EditorSubhead') && $p_objectType == 'article') { ?> setup : function(ed) { ed.onInit.add(function(){ed.controlManager.setDisabled('pasteword', true);}); ed.onNodeChange.add(function(){ed.controlManager.setDisabled('pasteword', true);}); ed.onKeyUp.add(function(ed, l) { var idx = ed.id.lastIndexOf('_'); var buttonId = ed.id.substr(0, idx); }); ed.addButton('campsite-subhead', { title : '<?php putGS("Newscoop Subhead"); ?> ', image : website_url + '/js/tinymce/themes/advanced/img/campsite_subhead.gif', onclick : function() { CampsiteSubhead(ed); } }); }, <?php } ?> }); }); <?php if ($p_objectType == 'article') { ?> function campsitemedia(field_name, url, type, win) { topDoc = window.top.document; articleNo = topDoc.getElementById('f_article_number').value; langId = topDoc.getElementById('f_language_selected').value; tinyMCE.activeEditor.windowManager.open({ url: website_url + "/js/tinymce/plugins/campsitemedia/popup.php?article_id="+articleNo+'&language_selected='+langId, width: 580, height: 320, inline : "yes", close_previous : "no" },{ window : win, input : field_name }); } <?php } ?> </script> <!-- /TinyMCE --> <?php }
$map_width = 600; $map_height = 400; echo Geo_Map::GetMapSearchHeader($map_width, $map_height, $bbox_divs); ?> </head> <body onLoad="return false;"> <div class="map_preview_serach"> <div class="map_mappart_outer_serach"> <div class="map_mappart_serach"> <div class="map_mapmenu_serach"> <a href="#" onClick="<?php echo Geo_Map::GetMapSearchCenter(); ?> return false;"><?php putGS('show initial map view'); ?> </a> </div><!-- end of map_mapmenu --> <?php echo Geo_Map::GetMapSearchBody(); ?> </div><!-- end of map_mappart --> </div><!-- end of map_mappart_outer --> </div><!-- end of map_preview --> <div class="map_search_rectangle"> <ol>Top left <li>longitude: <span id="top_left_longitude"> </span></li> <li>latitude: <span id="top_left_latitude"> </span></li> </ol> </div>
", "name": $('#commenter_name').val(), "subject": $('#comment_subject').val(), "message" :$('#comment_message').val() }; var call_url = '../comment/add-to-article/format/json'; var res_handle = function(data) { $('#comment-add').each(function(){ this.reset(); }); loadComments(); flashMessage('<?php putGS('Comment saved.'); ?> '); }; callServer(call_url, call_data, res_handle, true); return false; }); }; </script> <script> $(function() { addComment(); });
echo " / ".htmlspecialchars($name); } ?> </td> </tr> <?PHP } ?> </table> <p></p> <DIV class="action_buttons" align="center"> <?php if ($is_admin) { ?> <INPUT type="submit" value="<?php putGS("Save and Close"); ?>" class="button"> <?php } ?> <INPUT type="submit" value="<?php putGS("Cancel"); ?>" class="button" onclick="window.close();"> </div> </FORM> <?php } else { ?> <BLOCKQUOTE> <LI><?php putGS('No topics.'); ?></LI> </BLOCKQUOTE> <DIV align="center" style="padding-top: 20px;"> <INPUT type="submit" value="<?php putGS("Close"); ?>" class="button" onclick="window.close();"> </div> <?php } ?> </body> </html>
<BLOCKQUOTE> <?php foreach ($errorMsgs as $errorMsg) { ?> <li><?php echo $errorMsg; ?> </li> <?php } ?> </BLOCKQUOTE> </TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?> " ONCLICK="location.href='/<?php p($ADMIN); ?> /pub/'"> </DIV> </TD> </TR> </TABLE> <P> <?php camp_html_copyright_notice();
<P> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box"> <TR> <TD COLSPAN="2"> <B> <?php putGS("Change topic name"); ?> </B> <HR NOSHADE SIZE="1" COLOR="BLACK"> </TD> </TR> <TR> <TD COLSPAN="2"> <BLOCKQUOTE> <?php foreach ($errorMsgs as $errorMsg) { ?> <li><?php p($errorMsg); ?></li> <?php } ?> </BLOCKQUOTE> </TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?>" ONCLICK="location.href='/admin/topics/edit.php?f_topic_language_id=<?php p($f_topic_language_id); ?>&f_topic_edit_id=<?php p($f_topic_edit_id); ?>'"> </DIV> </TD> </TR> </TABLE> <P> <?php camp_html_copyright_notice(); ?>
$event = new Event($entry->getEventId(), 1); echo htmlspecialchars($event->getName()); ?> </TD> <?php } ?> <TD> <?php p(htmlspecialchars($entry->getText())); ?> </TD> <TD> <?php p(htmlspecialchars($entry->getClientIP())); ?> </TD> </TR> <?php } ?> </table> <table class="indent"> <TR> <TD> <?php echo $pager->render(); ?> </TD> </TR> </TABLE> <?php } else { ?> <BLOCKQUOTE> <LI><?php putGS('No events.'); ?></LI> </BLOCKQUOTE> <?php } ?> <?php camp_html_copyright_notice(); ?>
$('tbody input:checkbox:checked', smartlist).each(function() { items.push($(this).attr('name')); }); if (items.length == 0) { flashMessage('<?php putGS('Select some article first.'); ?> ', 'error'); return; } params = []; if (action == 'delete') { if (!confirm('<?php putGS('Are you sure you want to delete selected articles?'); ?> ')) { return; } } else if (action == 'move' || action == 'duplicate_interactive' || action == 'publish_schedule') { params = { 'f_publication_id': <?php echo (int) $this->publication; ?> , 'f_issue_number': <?php echo (int) $this->issue; ?>
</TR> </TABLE> </TD> <TD style="padding-left: 10px;"> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TD><A HREF="/<?php echo $ADMIN; ?>/templates/new_template.php?Path=<?php p(urlencode($path)); ?>" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/add.png" BORDER="0"></A></TD> <TD><A HREF="/<?php echo $ADMIN; ?>/templates/new_template.php?Path=<?php p(urlencode($path)); ?>" ><B><?php putGS("Create new template"); ?></B></A></TD> </TR> </TABLE> </TD> <TD style="padding-left: 10px;"> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TD><A HREF="/<?php echo $ADMIN; ?>/templates/upload_templ.php?Path=<?php p(urlencode($path)); ?>" ><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/tol.gif" BORDER="0"></A></TD> <TD><A HREF="/<?php echo $ADMIN; ?>/templates/upload_templ.php?Path=<?php p(urlencode($path)); ?>" ><B><?php putGS("Upload template"); ?></B></A></TD> </TR> </TABLE> </TD> <?PHP } ?> </TR> </TABLE> <P> <?php camp_html_display_msgs("0.5em", 0); $listbasedir = $path; require_once($Campsite['HTML_DIR'] . "/$ADMIN_DIR/templates/list_dir.php"); ?>
?> <br/> <form name="f_set_author" method="post"> <TABLE BORDER="0" CELLSPACING="4" CELLPADDING="2" CLASS="table_input"> <TR> <TD VALIGN="TOP" align="left" nowrap> <?php putGS("Select the field from which to generate the author"); ?>: </td> <td valign="top" align="left"> <select name="f_src_author_field"> <?php foreach ($availableFields as $field) { echo "<option value=\"" . htmlspecialchars($field->getPrintName()) . "\">" . $field->getPrintName() . "</option>\n"; } ?> </select> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" name="f_submit" value="<?php putGS("Submit"); ?>"> </td> </tr> </table> </form> <?php camp_html_copyright_notice(false); ?>
camp_load_translation_strings("plugin_debate"); ?> <div class="articlebox" title="<?php putGS('Debates'); ?> "> <?php if ($f_edit_mode == "edit" && $g_user->hasPermission('plugin_debate_admin')) { ?> <a class="iframe ui-state-default icon-button right-floated" href="<?php p("/{$ADMIN}/debate/assign_popup.php?f_debate_item=article&f_language_id={$articleObj->getLanguageId()}&f_article_nr=" . $articleObj->getArticleNumber()); ?> "><span class="ui-icon ui-icon-plusthick"></span><?php putGS('Attach'); ?> </a> <div class="clear"></div> <?php } ?> <ul class="block-list"> <?php foreach (DebateArticle::getAssignments(null, $articleObj->getLanguageId(), $articleObj->getArticleNumber()) as $debateArticle) { $debate = $debateArticle->getDebate($articleObj->getLanguageId()); ?> <li><?php echo htmlspecialchars($debate->getName()), ' (', htmlspecialchars($debate->getLanguageName()), ')'; ?>
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Expires" content="now" /> <link rel="stylesheet" type="text/css" href="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/admin_stylesheet_new.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/admin_stylesheet.css" /> <title><?php putGS("Attach Image To Article"); ?></title> </head> <body> <?php camp_html_display_msgs(); ?> <table style="margin-top: 10px; margin-left: 5px;" cellpadding="0" cellspacing="0"> <tr> <?php if ($g_user->hasPermission('AddImage')) { ?> <td style="padding: 3px; background-color: #EEE; border-top: 1px solid #8baed1; border-left: 1px solid #8baed1; <?php if ($f_image_attach_mode != "new") { ?>border-bottom: 1px solid #8baed1;<?php } ?>"><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "images/popup.php", "", "&f_image_attach_mode=new"); ?>"><img src="<?php p($Campsite['ADMIN_IMAGE_BASE_URL']); ?>/add.png" border="0"><b><?php putGS("Attach New Image"); ?></b></a></td> <?php } ?> <td style="padding: 3px; background-color: #EEE; border-top: 1px solid #8baed1; border-right: 1px solid #8baed1; border-left: 1px solid #8baed1; <?php if ($f_image_attach_mode != "existing") { ?>border-bottom: 1px solid #8baed1;<?php } ?>"><a href="<?php echo camp_html_article_url($articleObj, $f_language_id, "images/popup.php", "", "&f_image_attach_mode=existing"); ?>"><img src="<?php p($Campsite['ADMIN_IMAGE_BASE_URL']); ?>/add.png" border="0"><b><?php putGS("Attach Existing Image"); ?></b></a></td> </tr> <tr> <td colspan="2" style="background-color: #EEE; padding-top: 5px; border-bottom: 1px solid #8baed1; border-right: 1px solid #8baed1; border-left: 1px solid #8baed1;"> <?php if ($f_image_attach_mode == "existing") { include("search.php"); } else { include("add.php"); }?> </td> </tr> </table> </body> </html>
$allTemplates = Template::GetAllTemplates(null, true, true, true); $timeUnits = TimeUnit::GetTimeUnits(camp_session_get('TOL_Language', 'en')); $shortNameUrlType = UrlType::GetByName('short names'); $aliases = array(); $crumbs = array(); $crumbs[] = array(getGS("Publications"), "/$ADMIN/pub/"); $crumbs[] = array(getGS("Add new publication"), ""); echo camp_html_breadcrumbs($crumbs); include_once($GLOBALS['g_campsiteDir']."/$ADMIN_DIR/javascript_common.php"); ?> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="action_buttons" style="padding-top: 5px;"> <TR> <TD><A HREF="/<?php echo $ADMIN; ?>/pub/"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" BORDER="0"></A></TD> <TD><A HREF="/<?php echo $ADMIN; ?>/pub/"><B><?php putGS("Publication List"); ?></B></A></TD> </TR> </TABLE> <?php camp_html_display_msgs(); ?> <p> <FORM NAME="publication_add" METHOD="POST" ACTION="do_add.php" onsubmit="return <?php camp_html_fvalidate(); ?>;"> <?php echo SecurityToken::FormParameter(); ?> <?php include("pub_form.php"); ?> </FORM> <P> <script> document.publication_add.f_name.focus(); </script> <?php camp_html_copyright_notice(); ?>
:</TD> <TD> <SELECT NAME="f_country_language" class="input_select"> <?php foreach ($languages as $language) { camp_html_select_option($language->getLanguageId(), 0, $language->getNativeName()); } ?> </SELECT> </TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="submit" class="button" NAME="OK" VALUE="<?php putGS('Save'); ?> "> <!--<INPUT TYPE="button" class="button" NAME="Cancel" VALUE="<?php putGS('Cancel'); ?> " ONCLICK="location.href='/admin/country/'">--> </DIV> </TD> </TR> </TABLE> </FORM> <P> <?php camp_html_copyright_notice();
?> ',<?php echo $showMessage['fixed']; ?> ); <? endif ?> }); </script> <div class="ui-widget-content small-block block-shadow soundcloud soundcloud-attach"> <div class="padded clearfix inner-tabs"> <div class="tabs"> <ul> <li <?php echo !$g_user->hasPermission('plugin_soundcloud_upload') ? 'style="display:none"' : ''; ?> > <a href="#tabs-1"><? putGS('Upload') ?></a></li> <li><a href="#tabs-2"><? putGS('Tracks') ?></a></li> <li id="edit-tab" style="display:none"><a href="#tabs-3"><? putGS('Edit') ?></a></li> </ul> <div id="tabs-1"><? include 'upload.php' ?></div> <div id="tabs-2"><? include 'tracks.php' ?></div> <div id="tabs-3"> <form id="edit-form" name="edit-form" method="post" action="controller.php" enctype="multipart/form-data"> </form> </div> </div> </div> </div>
<P> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box"> <TR> <TD COLSPAN="2"> <B> <?php putGS("Deleting publication"); ?> </B> <HR NOSHADE SIZE="1" COLOR="BLACK"> </TD> </TR> <TR> <TD COLSPAN="2"> <BLOCKQUOTE> <?PHP foreach ($errorMsgs as $errorMsg) { ?> <li><?php echo $errorMsg; ?></li> <?PHP } ?> </BLOCKQUOTE> </TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?>" ONCLICK="location.href='/<?php p($ADMIN); ?>/pub/'"> </DIV> </TD> </TR> </TABLE> <P> <?php camp_html_copyright_notice(); ?>
value="<?php p(SystemPref::Get('PLUGIN_SOUNDCLOUD_USERNAME')); ?> " /></td> </tr> <tr> <td><?php putGS('Enter password'); ?> :</td> <td><input type="text" name="f_soundcloud_password" class="input_text" size="50" value="<?php p(SystemPref::Get('PLUGIN_SOUNDCLOUD_PASSWORD')); ?> " /></td> </tr> <tr> <td colspan="2" align="center" style="padding-top: 10px;"> <input type="submit" name="save" value="<?php putGS('Save'); ?> " class="button" /> <input type="submit" name="check" value="<?php putGS('Check connection'); ?> " class="button" /> </td> </tr> </table> </form>
<TD COLSPAN="2"> <B> <?php putGS("Merge article type"); ?> </B> <HR NOSHADE SIZE="1" COLOR="BLACK"> </TD> </TR> <TR> <TD COLSPAN="2"> <BLOCKQUOTE> <?php foreach ($errMsgs as $errorMsg) { echo "<li>".$errorMsg."</li>"; } ?> </BLOCKQUOTE> </TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?>" ONCLICK="location.href='/<?php p($ADMIN); ?>/article_types/merge2.php?f_src=<?php echo $f_src; ?>&f_dest=<?php echo $f_dest . $getString ?>'"> </DIV> </TD> </TR> </TABLE> <P> <?php echo camp_html_copyright_notice(); ?> <?php } ?>
</table> </center> </body> </html> <?php } ?> <script type="text/javascript"> window.opener.location.reload(); </script> <table border="0" cellspacing="0" cellpadding="0" class="box_table"> <tr> <td align="center"> <b> <?php if ($banned) { putGS("The user has been banned. Any future attempts by the user to post comments will not be allowed."); } else { putGS("The user is now allowed to post comments."); } ?> </b> </td> </tr> <tr> <td align="center"> <input type="button" name="close" value="<?php putGS("Close"); ?>" class="button" onclick="window.close();" /> </td> </tr> </table>
putGS('Save'); ?> " class="button"> </TD> </TR> </TABLE> </FORM> <script language="javascript"> function checkForm() { var checked = false; for (var i = 0; i < document.forms['duplicate_debate'].length; i++) { if (document.forms['duplicate_debate'].elements[i].name.indexOf('[number]') != -1 && document.forms['duplicate_debate'].elements[i].checked) { checked = true; } } if (!checked) { alert("<?php putGS('You need to activate at least 1 answer.'); ?> "); return false; } return true; } </script>
</table> <form name="recaptcha_prefs" method="post"> <?php echo SecurityToken::FormParameter(); ?> <table border="0" width="600" cellspacing="0" cellpadding="0" class="box_table"> <tr> <td align="left"><?php putGS('Enable reCAPTCHA for comments'); ?></td> <td><input type="checkbox" name="f_recaptcha_enabled" value="Y" <?php if (SystemPref::Get('PLUGIN_RECAPTCHA_ENABLED') == 'Y') p('checked'); ?> /></td> </tr> <tr> <td align="left"><?php putGS('Enable reCAPTCHA for subscriptions'); ?></td> <td><input type="checkbox" name="f_recaptcha_subscriptions_enabled" value="Y" <?php if (SystemPref::Get('PLUGIN_RECAPTCHA_SUBSCRIPTIONS_ENABLED') == 'Y') p('checked'); ?> /></td> </tr> <tr> <td><?php putGS('Enter your reCAPTCHA public key'); ?>:</td> <td><input type="text" name="f_recaptcha_public_key" class="input_text" size="40" value="<?php p(SystemPref::Get('PLUGIN_RECAPTCHA_PUBLIC_KEY')); ?>" /></td> </tr> <tr> <td><?php putGS('Enter your reCAPTCHA private key'); ?>:</td> <td><input type="text" name="f_recaptcha_private_key" class="input_text" size="40" value="<?php p(SystemPref::Get('PLUGIN_RECAPTCHA_PRIVATE_KEY')); ?>" /></td> </tr> <tr> <td colspan="2" align="center" style="padding-top: 10px;"> <input type="submit" name="save" value="<?php putGS('Save'); ?>" class="button" /> </td> </tr> </table> </form>
class="ui-icon ui-icon-closethick"></span><?php putGS('Remove'); ?></a> <a class="iframe ui-state-default icon-button right-floated" href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/preview.php'); ?>"><span class="ui-icon ui-icon-zoomin"></span><?php putGS('Preview'); ?></a> <?php } else { ?> <a href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/preview.php'); ?>" class="iframe map-thumb"><img src="<?php echo $Campsite['ADMIN_STYLE_URL']; ?>/images/map_thumb.png" alt="<?php putGS('Preview'); ?>" title="<?php putGS('Preview'); ?>" /></a> <a class="iframe ui-state-default icon-button right-floated" href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/preview.php'); ?>"><span class="ui-icon ui-icon-zoomin"></span><?php putGS('Preview'); ?></a> <?php } } elseif ($canEdit) { ?> <a class="iframe ui-state-default icon-button right-floated" href="<?php echo camp_html_article_url($articleObj, $f_language_id, 'locations/popup.php'); ?>"><span class="ui-icon ui-icon-plusthick"></span><?php putGS('Add'); ?></a> <?php } ?> <?php if ($map->exists()) { ?> <h4 class="geo_map_name"<?php echo $map_name_title; ?>> <?php echo $map_name; ?> </h4> <?php } ?> <div class="clear"></div> <?php if ($map->exists() && !empty($locations)) { ?> <ul class="block-list"> <?php $language_usage = $f_language_selected; if (!$language_usage) { $language_usage = $f_language_id; } foreach ($locations as $location) { $content = $location->getContent($language_usage);
if ($languageObj->getLanguageId() == $tmpLanguage->getLanguageId()) { $selected = true; } else { $selected = false; } camp_html_select_option($tmpLanguage->getLanguageId(), $selected, $tmpLanguage->getNativeName()); } ?> </SELECT> </td> <td><input type="text" name="f_field_translation_name" value="" class="input_text" size="15" alt="blank" emsg="<?php putGS('You must enter a name for the field.'); ?> "></td> <td><input type="submit" name="f_submit" value="<?php putGS("Translate"); ?> " class="button"></td> </tr> </table> </td> </tr> </table> </FORM> </td> </tr> </table> </td> </tr>
<P> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box"> <TR> <TD COLSPAN="2"> <B> <?php putGS("Adding new alias"); ?> </B> <HR NOSHADE SIZE="1" COLOR="BLACK"> </TD> </TR> <TR> <TD COLSPAN="2"> <BLOCKQUOTE> <?php foreach ($errorMsgs as $errorMsg) { ?> <li><?php p($errorMsg); ?></li> <?PHP } ?> </BLOCKQUOTE> </TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?>" ONCLICK="location.href='/<?php p($ADMIN); ?>/pub/add_alias.php?Pub=<?php p($cPub); ?>'"> </DIV> </TD> </TR> </TABLE> <P> <?php camp_html_copyright_notice(); ?>
<?php } if ( ($action != "P") && ($action != "U") ) { $correct= 0; ?> <LI><?php putGS('You must select an action.'); ?></LI> <?php } if ($past_publish) { ?> <LI><?php putGS('The publishing schedule can not be set in in the past'); ?></LI> <?php } if ($correct) { if (!$created) { ?> <LI><?php putGS('There was an error scheduling the $1 action on $2', getGS($action_str), $publish_time); ?></LI> <?php } } ?> </BLOCKQUOTE></TD> </TR> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="button" class="button" NAME="OK" VALUE="<?php putGS('OK'); ?>" ONCLICK="location.href='/<?php echo $ADMIN; ?>/issues/edit.php?Pub=<?php p($Pub); ?>&Issue=<?php p($Issue); ?>&Language=<?php p($Language); ?>'"> </DIV> </TD> </TR> </TABLE> <P> <?php camp_html_copyright_notice(); ?>
} echo '<option value="' . $topic->getTopicId() . '">' . htmlspecialchars(implode(" / ", $printTopic)) . "</option>\n"; } ?> </select> </td> </tr> <TR> <TD COLSPAN="2"> <DIV ALIGN="CENTER"> <INPUT TYPE="HIDDEN" NAME="f_article_type" VALUE="<?php print htmlspecialchars($articleTypeName); ?> "> <INPUT TYPE="submit" class="button" NAME="OK" VALUE="<?php putGS('Save'); ?> "> </DIV> </TD> </TR> </TABLE> </FORM> <P> <?php if ($articleField->getType() == ArticleTypeField::TYPE_TOPIC) { ?> <script> UpdateArticleFieldContext(); </script> <?php
oData.aaSorting = [[2, 'asc']]; // show correct order on reload <?php } ?> return true; }, <?php } ?> <?php if ($this->colVis) { ?> 'oColVisx': { // disable Show/hide column //'aiExclude': [0, 1, 2], // 'buttonText': '<?php putGS('Show / hide columns'); ?> ', }, <?php } ?> <?php if ($this->order) { ?> 'fnRowCallback': function(nRow, aData, iDisplayIndex, iDisplayIndexFull ) { var id = $(aData[0]).attr('name').split('_')[0]; $(nRow).attr('id', 'article_' + id); return nRow; }, <?php
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" CLASS="box_table"> <TR> <TD COLSPAN="2"> <B><?php putGS("Copy previous issue"); ?></B> <HR NOSHADE SIZE="1" COLOR="BLACK"> </TD> </TR> <TR> <TD COLSPAN="2"><?php putGS('Copy structure from issue number $1','<B>'. $lastCreatedIssue->getIssueNumber().'</B>'); ?></TD> </TR> <TR> <TD ALIGN="RIGHT" ><?php putGS("Issue Number"); ?>:</TD> <TD> <INPUT TYPE="TEXT" class="input_text" NAME="f_issue_number" VALUE="<?php print ($lastCreatedIssue->getIssueNumber() + 1); ?>" SIZE="5" MAXLENGTH="10" alt="number|0|1|1000000000" emsg="<?php putGS("You must input a number greater than 0 into the $1 field.", "'".getGS("Number")."'"); ?>"> </TD> </TR> <TR> <TD COLSPAN="2" align="center"> <INPUT TYPE="HIDDEN" NAME="f_publication_id" VALUE="<?php p($Pub); ?>"> <INPUT TYPE="submit" class="button" NAME="Save" VALUE="<?php putGS('Save'); ?>"> </TD> </TR> </TABLE> </FORM> <P> <script> document.issue_add.f_issue_number.focus(); </script> <?php } ?> <?php camp_html_copyright_notice(); ?>
case 'article': foreach ($f_poll_exists as $poll_nr => $val) { $PollArticle = new PollArticle($poll_nr, $f_language_id, $f_article_nr); if (array_key_exists($poll_nr, $f_poll_checked) && !$PollArticle->exists()) { $PollArticle->create(); $p_a++; } elseif (!array_key_exists($poll_nr, $f_poll_checked) && $PollArticle->exists()) { $PollArticle->delete(); $p_u++; } } ?> <script> try { //window.opener.document.forms['article_edit'].f_message.value = "<?php putGS("$1/$2 polls assigned/unassigned.", $p_a, $p_u); ?>"; window.opener.document.forms['article_edit'].onsubmit(); window.opener.document.forms['article_edit'].submit(); } catch (e) {} window.close(); </script> <?php break; default: camp_html_display_error(getGS('Invalid input'), 'javascript: window.close()'); exit; break; } ?>