Пример #1
0
/*******Setting Page access Rules & checking Authorization****************/
$access_rule = array("Admin" => "Admin");
$page->setAccessRules($access_rule);
$page->setAccessRulesType('all');
// any or all
$page->CheckAuthorization();
/************************************************************************/
$page->setPageKeywords('');
$page->setPageDescription('');
$page->setPageTitle("ADMIN");
$page->setActiveButton('5');
$page->setInnerNav('');
//$page -> setImportCss1('main_style.css');
//$page -> setImportCss2('form.css'); // each page should have it's own .css sheet.  Link mulitple sheets here and below
$page->SetDynamicCSS_1('main_style.php');
$page->SetDynamicCSS_2('form.php');
$page->setImportCss3('css/JTip.css');
$page->setImportCss4('');
$page->setImportCss5('');
$page->setExtJavaScripts2('<script language="javascript" SRC="js/jtip.js"></script>');
// might not need
$page->setExtJavaScripts1('<script language="javascript" SRC="js/jquery.js"></script>');
// might not need
$page->setExtJavaScripts3('');
// might not need
$page->setExtJavaScripts4('');
// might not need
//*********************Page Style *******************************//
// used to set page styles.  This should be used sparingly.  External css should be used instead.
$page_style = '';
$page->setPageStyle($page_style);