Appel des fichiers includecss et includejs pour la génération des styles et javascripts
This commit is contained in:
parent
f45e5d1dc6
commit
0844ad10b9
21
www/includecss.php
Normal file
21
www/includecss.php
Normal 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
24
www/includejs.php
Normal 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
|
||||
}
|
||||
?>
|
@ -3,74 +3,37 @@ 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 & Dé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')
|
||||
{
|
||||
<?php
|
||||
if ($sortie!='prt') {
|
||||
?>
|
||||
<body onResize="JSFX_FloatTopDiv()">
|
||||
<?php
|
||||
} elseif ($sortie=='prt') {
|
||||
<?php
|
||||
} elseif ($sortie=='prt') {
|
||||
?>
|
||||
<body onLoad="window.print();window.close();">
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<center>
|
||||
<table border="0" width="800" height="600">
|
||||
<tr>
|
||||
<?php
|
||||
if ($sortie<>'pdf' && $sortie<>'prt') {
|
||||
<?php
|
||||
if ($sortie<>'pdf' && $sortie<>'prt') {
|
||||
?>
|
||||
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />--> </td>
|
||||
<td width="580">
|
||||
@ -82,8 +45,8 @@ if ($sortie<>'pdf' && $sortie<>'prt') {
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<?php
|
||||
} else {
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<td width="800">
|
||||
<table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%">
|
||||
@ -98,30 +61,30 @@ if ($sortie<>'pdf' && $sortie<>'prt') {
|
||||
</tr>
|
||||
</table><br/>
|
||||
<font size="1" face="Arial, Helvetica, sans-serif">
|
||||
© 2006-<?=date('Y')?> Scores & Décisions SAS -
|
||||
© 2006-<?=date('Y')?> Scores & Décisions SAS -
|
||||
Tous droits réservés - <a href="<?=SITEINST_URL2?>mentions.php" target="_blank">Mentions légales</a>
|
||||
<?
|
||||
<?
|
||||
if ($sortie!='prt') {
|
||||
if ($page=='recherche'){
|
||||
if ($_REQUEST['vue']=='list' ) $_SERVER['REQUEST_URI'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['REQUEST_URI']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$printUrl = $_SERVER['REQUEST_URI'];
|
||||
if ($page=='bilans' && isset($_REQUEST['type']) && $_REQUEST['type']!=''){
|
||||
$printUrl.= '&type='.$_REQUEST['type'];
|
||||
}
|
||||
?>
|
||||
?>
|
||||
- <a href="<?=$printUrl;?>&sortie=prt" target="_blank"><img src="./img/icone_print.png"/></a>
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</font>
|
||||
</center>
|
||||
<?php
|
||||
if ($sortie!='pdf' && $sortie!='prt') {
|
||||
<?php
|
||||
if ($sortie!='pdf' && $sortie!='prt') {
|
||||
require_once('menu.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user