if (!empty($panel)) {
        $tpl->setCurrentBlock('CSS_RIGHTS');
        $tmp['CSS_RIGHTS_CONTENT'] = implode("", $panel);
        $tpl->setVariable($tmp);
        $tpl->parseCurrentBlock();
        unset($tmp);
    }
}
/*
** show css-managementinfo
*/
if (!empty($idcssfile)) {
    $tpl->setCurrentBlock('CSS_MANAGEMENT');
    set_management_info($cms_lang['css_created'], $filecreated);
    set_management_info($cms_lang['css_lastmodified'], $filelastmodified);
    set_management_info($cms_lang['css_editor'], $fileauthor);
    unset($tmp);
}
function set_management_info($topic, $value)
{
    global $tmp, $tpl;
    $tmp['CSS_MANAGEMENT_TOPIC'] = $topic;
    $tmp['CSS_MANAGEMENT_CONTENT'] = $value;
    $tpl->setVariable($tmp);
    $tpl->parseCurrentBlock();
    unset($tmp);
}
//
// set_option_tag($value, $rule, $selected)
//
// creates an option tag in the template
** show right management
*/
if (!empty($idjsfile) && !empty($idclient) && $perm->have_perm(6, 'js_file', $idjsfile)) {
    $panel = $perm->get_right_panel('js_file', $idjsfile, array('formname' => 'editjsfile'), 'text');
    if (!empty($panel)) {
        $tpl->setCurrentBlock('JS_RIGHTS');
        $tmp['JS_RIGHTS_CONTENT'] = implode("", $panel);
        $tpl->setVariable($tmp);
        $tpl->parseCurrentBlock();
        unset($tmp);
    }
}
/*
** show js-managementinfo
*/
if (!empty($idjsfile)) {
    $tpl->setCurrentBlock('JS_MANAGEMENT');
    set_management_info($cms_lang["js_created"], $jsfilecreated);
    set_management_info($cms_lang["js_lastmodified"], $jsfilelastmodified);
    set_management_info($cms_lang["js_editor"], $jsfileauthor);
    unset($tmp);
}
function set_management_info($topic, $value)
{
    global $tmp, $tpl;
    $tmp['JS_MANAGEMENT_TOPIC'] = $topic;
    $tmp['JS_MANAGEMENT_CONTENT'] = $value;
    $tpl->setVariable($tmp);
    $tpl->parseCurrentBlock();
    unset($tmp);
}