extranet/www/includeheader.php
2009-07-21 13:55:40 +00:00

38 lines
1.0 KiB
PHP

<?php
require_once 'includecss.php';
if($sortie!='prt') require_once 'includejs.php';
$force = FALSE;
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' || $force){
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' || $force){
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";
}
}
}
}