Beispiel #1
0
<?php

require_once $GLOBALS['g_campsiteDir'] . '/classes/Input.php';
require_once $GLOBALS['g_campsiteDir'] . '/classes/ArticleType.php';
require_once $GLOBALS['g_campsiteDir'] . '/classes/Translation.php';
$translator = \Zend_Registry::get('container')->getService('translator');
$request = \Zend_Registry::get('container')->get('request');
$locale = $request->getLocale();
if (!Saas::singleton()->hasPermission('ManageArticleTypes')) {
    camp_html_display_error($translator->trans("You do not have the right to manage article types.", array(), 'article_type_fields'));
    exit;
}
$articleTypeName = Input::Get('f_article_type');
// return value is sorted by language
$allLanguages = Language::GetLanguages(null, null, null, array(), array(), true);
$lang = Language::GetLanguageByCode($locale);
$languageObj = new Language($lang->getLanguageId());
$articleType = new ArticleType($articleTypeName);
$fields = $articleType->getUserDefinedColumns(null, true, true);
$crumbs = array();
$crumbs[] = array($translator->trans("Configure"), "");
$crumbs[] = array($translator->trans("Article Types"), "/{$ADMIN}/article_types/");
$crumbs[] = array($articleTypeName, "");
$crumbs[] = array($translator->trans("Article type fields", array(), 'article_type_fields'), "");
echo camp_html_breadcrumbs($crumbs);
$row_rank = 0;
if ($g_user->hasPermission("ManageArticleTypes")) {
    include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php";
    ?>
<script>
var field_ids = new Array;
Beispiel #2
0
:</td>
                	<td>
                    <input type="text" class="input_text" NAME="f_comments_moderator_from" id="moderator_from" value="<?php 
echo isset($publicationObj) ? $publicationObj->getCommentsModeratorFrom() : '';
?>
">
                	</TD>
                </TR>
                </table>
            </td>
        </tr>
        </table>
        <!-- END left column -->
    </td>
	<?php 
if (Saas::singleton()->hasPermission("ManagePublicationSubscriptions")) {
    ?>
    <!-- BEGIN right column -->
    <td style="" valign="top">
        <table BORDER="0" CELLSPACING="0" CELLPADDING="3" style="padding-top: 0.5em; padding-left: 10px; padding-right: 10px;">
        <tr>
            <td colspan="2">
                <font size="+1"><b><?php 
    putGS("Subscription defaults");
    ?>
</b></font>
            </td>
        </tr>

        <TR>
        	<TD ALIGN="RIGHT"><?php