Appel des fichiers includecss et includejs pour la génération des styles et javascripts

This commit is contained in:
Michael RICOIS 2009-07-09 10:19:52 +00:00
parent f45e5d1dc6
commit 0844ad10b9
3 changed files with 69 additions and 61 deletions

21
www/includecss.php Normal file
View File

@ -0,0 +1,21 @@
<?php
//Inclusion des css en fonction de la variable page
?>
<link rel="stylesheet" type="text/css" href="./css/infogreffe_base.css" />
<link rel="stylesheet" type="text/css" href="./css/infogreffe.css" />
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/menu.css" />
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete.css" />
<?php
if($page=='international_recherche' || $page=='international_identite' || $page=='international_identitec'){
?>
<link rel="stylesheet" type="text/css" href="./css/international.css" />
<?php
}
if($page=='saisie'){
?>
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete2.css" />
<link rel="stylesheet" href="./css/saisie.css" type="text/css" />
<link rel="stylesheet" href="./css/thickbox.css" type="text/css" />
<?php
}

24
www/includejs.php Normal file
View File

@ -0,0 +1,24 @@
<?php
//Inclusion des js en fonction de la variable page
?>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="./js/jquery.autocomplete.js"></script>
<?php
/*
<script type="text/javascript" src="./js/jquery.dimensions.js"></script>
<script type="text/javascript" src="./js/jquery.easing.js"></script>
<script type="text/javascript" src="./js/jquery-ui.js"></script>
*/
?>
<script type="text/javascript" src="./js/dropDownOverlapping.js"></script>
<script type="text/javascript" src="./js/menu.js"></script>
<script type="text/javascript" src="./js/scripts.js"></script>
<?php
//Ajout script ajax pour la saisie
if($page=='saisie'){
?>
<script type="text/javascript" src="./js/saisieajax.js"></script>
<?php
}
?>

View File

@ -3,60 +3,23 @@ if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
//Affectation de valeur par défaut pour arriver sur la page de recherche
if (!isset($page2)){
$title='Recherche';
$page2='recherche.php';
$vueRecherche = 'ent';
}
require_once(realpath(dirname(__FILE__).'/../../includes/siren.php'));
require_once 'siren.php';
?>
<html>
<head>
<title>Extranet Scores &amp; D&eacute;cisions - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="./css/infogreffe_base.css" />
<link rel="stylesheet" type="text/css" href="./css/infogreffe.css" />
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/menu.css" />
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete.css" />
<?php
if($page=='international_recherche' || $page=='international_identite' || $page=='international_identitec'){
?>
<link rel="stylesheet" type="text/css" href="./css/international.css" />
<?php
}
if($sortie!='prt'){
?>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="./js/jquery.autocomplete.js"></script>
<?php
/*
<script type="text/javascript" src="./js/jquery.dimensions.js"></script>
<script type="text/javascript" src="./js/jquery.easing.js"></script>
<script type="text/javascript" src="./js/jquery-ui.js"></script>
*/
?>
<script type="text/javascript" src="./js/dropDownOverlapping.js"></script>
<script type="text/javascript" src="./js/menu.js"></script>
<script type="text/javascript" src="./js/scripts.js"></script>
<?php
//Ajout script ajax pour la saisie
if($page2=='saisie.php'){
?>
<script type="text/javascript" src="./js/saisieajax.js"></script>
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete2.css" />
<link rel="stylesheet" href="./css/saisie.css" type="text/css" />
<link rel="stylesheet" href="./css/thickbox.css" type="text/css" />
<?php
}
}
require_once 'includecss.php';
if($sortie!='prt') require_once 'includejs.php';
?>
</head>
<?php
if ($sortie!='prt')
{
if ($sortie!='prt') {
?>
<body onResize="JSFX_FloatTopDiv()">
<?php