$tmp['FILEIMPORT_BGCOLOR'] = 'content7'; $tmp['FILEIMPORT_TEXT'] = $cms_lang['css_fileimport']; $tmp['FILEIMPORT_NAME'] = 'cssuploadfile'; $tmp['FILEIMPORT_PICT'] = 'tpl/' . $cfg_cms['skin'] . '/img/upl_upload.gif'; $tmp['FILEIMPORT_HINT'] = $cms_lang["upl_upload"]; $tmp['FILEIMPORT_BUTTONWIDTH'] = '16'; $tmp['FILEIMPORT_BUTTONHEIGHT'] = '16'; $tpl->setVariable($tmp); $tpl->parseCurrentBlock(); unset($tmp); } // // display error message if a rule has warnings // if ($ruleserror) { show_none('RULESERROR', 'content3a', $cms_lang['err_1118']); } unset($tmp); // // function for displaying a message if no rules or files available // function show_none($block, $bgcolor, $content) { global $tmp, $tpl; $tpl->setCurrentBlock($block); $tmp['BGCOLOR'] = $bgcolor; $tmp['CONTENT'] = $content; $tpl->setVariable($tmp); $tpl->parseCurrentBlock(); } //
} else { // set import list $block = 'import'; $nothing_text = $cms_lang['js_nofiles']; $_client = 0; } // query all js-file for the given $idclient $db = !empty($idclient) ? get_jsfile_list($client) : get_jsfile_list(0); // show the list of js-files $_found == 0; while ($db->next_record()) { $_found += set_filedata($db, $block, $_client); } if ($_found == 0) { // no js-files found show_none('NODETAIL', 'contenta', $nothing_text); } unset($tmp); // generate js-file upload // Upload nur wenn wir im Projektbereich sind if (!empty($idclient) && $perm->have_perm(9, 'area_js')) { // upload rechte gesetzt?? $tpl->setCurrentBlock('FILEIMPORT'); $tmp['FILEIMPORT_ACTION'] = $sess->url("main.php"); $tmp['FILEIMPORT_TYPE'] = 'js'; $tmp['FILEIMPORT_FUNC'] = 'uploadfile'; $tmp['FILEIMPORT_DIR'] = 'cms/js/'; $tmp['FILEIMPORT_CLIENT'] = $client; $tmp['FILEIMPORT_BGCOLOR'] = 'content7'; $tmp['FILEIMPORT_TEXT'] = $cms_lang['js_fileimport']; $tmp['FILEIMPORT_NAME'] = 'jsuploadfile';