extranet/www/includeheader.php
2009-07-15 15:58:10 +00:00

36 lines
1003 B
PHP

<?php
require_once 'includecss.php';
if($sortie!='prt') require_once 'includejs.php';
if(isset($tabStyles) && count($tabStyles)>0){
foreach($tabStyles as $name => $group){
if( in_array('all', $group['pages']) || in_array($page, $group['pages']) ){
if(ENVIRONNEMENT == 'DEV'){
foreach($group['list'] as $style){
print '<link rel="stylesheet" type="text/css" href="./css/'.$style.'" />';
print "\n";
}
}else{
print '<link rel="stylesheet" type="text/css" href="./min/?g='.$name.'"/>';
print "\n";
}
}
}
}
if(isset($tabScripts) && count($tabScripts)>0){
foreach($tabScripts as $name => $group){
if(in_array('all', $group['pages']) || in_array($page, $group['pages'])){
if(ENVIRONNEMENT == 'DEV'){
foreach($group['list'] as $script){
print '<script type="text/javascript" src="./js/'.$script.'"></script>';
print "\n";
}
}else{
print '<script type="text/javascript" src="./min/?g='.$name.'"></script>';
print "\n";
}
}
}
}