コード例 #1
0
ファイル: inc.css.php プロジェクト: rbraband/iSefrengo-Dev
            break;
        default:
            $tmp['ERR_MSG'] = $cms_lang["err_{$errno}"];
    }
}
if ($css_warnings != '') {
    $tmp['CSS_WARN'] = preg_replace('/\\-ele\\-([^:]*):/i', "\\1", trim($css_warnings));
    $tmp['CSS_WARN'] = '<br>&nbsp;<span class="errormsg">' . str_replace(',', '<br />', $tmp['CSS_WARN']) . '</span>&nbsp;';
}
$tmp['SUB_NAV_RIGHT'] = '';
if (!empty($idclient)) {
    if ($perm->have_perm('2', 'area_css')) {
        $tmp['SUB_NAV_RIGHT'] = $tmp['SUB_NAV_RIGHT'] . make_nav_link('action', "main.php?area=css_edit_file&idclient={$idclient}", $cms_lang['css_file_new'], $cms_lang['css_file_new']);
    }
} else {
    $tmp['SUB_NAV_RIGHT'] = $tmp['SUB_NAV_RIGHT'] . make_nav_link('action', "main.php?area=css&idclient={$client}&idexpand={$idexpand}&idcssfile={$idcssfile}", $cms_lang['gen_back'], $cms_lang['gen_back']);
}
$tmp['FOOTER_LICENSE'] = $cms_lang['login_licence'];
// Templatedatei laden
$tpl->loadTemplatefile('filelist.tpl');
//
// headline
//
$tmp['FILENAME'] = $cms_lang['css_filename'];
$tmp['DESCRIPTION'] = $cms_lang['css_description'];
$tmp['ACTIONS'] = $cms_lang['css_action'];
$tpl->setVariable($tmp);
unset($tmp);
//
// show the css-rules of a particular css-file, i.e. $idclient != 0
//
コード例 #2
0
ファイル: inc.js.php プロジェクト: rbraband/iSefrengo-Dev
$tmp['SUB_NAV_RIGHT'] = '';
if ($idclient) {
    // Im Client-Bereich ... Buttons je nach Rechten
    if ($perm->have_perm(2, 'area_js')) {
        // edit rechte gesetzt?
        $end = $perm->have_perm(13, 'area_js') ? ' | ' : ' ';
        // import rechte gesetzt?
        $tmp['SUB_NAV_RIGHT'] = $tmp['SUB_NAV_RIGHT'] . make_nav_link('action', "main.php?area=js_edit_file&idclient={$client}", $cms_lang['js_file_new'], $cms_lang['js_file_new'], $end);
    }
    if ($perm->have_perm(13, 'area_js')) {
        // import rechte gesetzt?
        $tmp['SUB_NAV_RIGHT'] = $tmp['SUB_NAV_RIGHT'] . make_nav_link('action', "main.php?area=js&idclient=0", $cms_lang['js_import'], $cms_lang['js_import']);
    }
} else {
    // Im Import-Bereich ... nur der Button "Zurück"
    $tmp['SUB_NAV_RIGHT'] = $tmp['SUB_NAV_RIGHT'] . make_nav_link('action', "main.php?area=js&idclient={$client}", $cms_lang['gen_back'], $cms_lang['gen_back']);
}
// Tabellenformatierung
$tmp['TABLE_PADDING'] = $cellpadding;
$tmp['TABLE_SPACING'] = $cellspacing;
$tmp['TABLE_BORDER'] = $border;
// Templatedatei laden
$tpl->loadTemplatefile('filelist.tpl');
//
// headline
//
$tmp['FILENAME'] = $cms_lang['js_filename'];
$tmp['DESCRIPTION'] = $cms_lang['js_description'];
$tmp['ACTIONS'] = $cms_lang['js_action'];
$tpl->setVariable($tmp);
unset($tmp);