extranet/www/pages/main.php

127 lines
3.6 KiB
PHP
Raw Normal View History

2009-03-11 07:51:18 +00:00
<?php
if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
2009-03-04 16:46:29 +00:00
//Affectation de valeur par d<>faut pour arriver sur la page de recherche
if (!isset($page2)){
$page2='recherche.php';
$vueRecherche = 'ent';
}
2009-03-04 16:46:29 +00:00
require_once(realpath(dirname(__FILE__).'/../../includes/siren.php'));
2009-02-26 17:16:11 +00:00
?>
<html>
<head>
<title>Extranet Scores &amp; D&eacute;cisions - <?=$title?></title>
2009-03-13 19:09:34 +00:00
<link rel="stylesheet" type="text/css" href="./css/infogreffe_base.css" />
<link rel="stylesheet" type="text/css" href="./css/infogreffe.css" />
2009-03-02 14:25:00 +00:00
<link rel="stylesheet" type="text/css" href="./css/main.css" />
2009-05-28 07:42:54 +00:00
<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'){
2009-04-06 17:05:03 +00:00
?>
<link rel="stylesheet" type="text/css" href="./css/international.css" />
<?php
}
if($sortie!='prt'){
?>
2009-02-23 11:08:09 +00:00
<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>
2009-05-26 10:03:51 +00:00
2009-05-28 07:42:54 +00:00
<?php
/*
2009-05-26 10:03:51 +00:00
<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>
2009-05-28 07:42:54 +00:00
*/
?>
<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>
2009-03-11 07:51:18 +00:00
<?php
//Ajout script ajax pour la saisie
2009-03-13 19:09:34 +00:00
if($page2=='saisie.php'){
2009-03-11 07:51:18 +00:00
?>
2009-03-13 17:31:17 +00:00
<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
2009-03-11 07:51:18 +00:00
}
}
?>
</head>
<?php
if ($sortie!='prt')
{
?>
2009-05-28 07:42:54 +00:00
<body onResize="JSFX_FloatTopDiv()">
<?php
} elseif ($sortie=='prt') {
?>
<body onLoad="window.print();window.close();">
<?php
2009-03-02 14:25:00 +00:00
}
?>
<center>
<table border="0" width="800" height="600">
<tr>
<?php
2009-03-02 14:25:00 +00:00
if ($sortie<>'pdf' && $sortie<>'prt') {
?>
2009-03-11 07:51:18 +00:00
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />-->&nbsp;</td>
<td width="580">
<table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%">
<tr>
<td valign="top">
<?include($page2)?>
</td>
</tr>
</table>
</td>
<?php
2009-03-02 14:25:00 +00:00
} else {
?>
2009-03-11 07:51:18 +00:00
<td width="800">
<table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%">
<tr>
<td valign="top">
<?include($page2)?>
</td>
</tr>
2009-03-11 07:51:18 +00:00
</table>
</td>
<?php } ?>
</tr>
</table><br/>
<font size="1" face="Arial, Helvetica, sans-serif">
&copy; 2006-<?=date('Y')?> Scores &amp; D&eacute;cisions SAS -
Tous droits r&eacute;serv&eacute;s - <a href="<?=SITEINST_URL2?>mentions.php" target="_blank">Mentions l&eacute;gales</a>
<?
if ($sortie!='prt') {
2009-03-06 17:12:26 +00:00
if ($page=='recherche'){
if ($_REQUEST['vue']=='list' ) $_SERVER['REQUEST_URI'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['REQUEST_URI']);
2009-03-06 16:20:20 +00:00
}
$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>
2009-03-06 16:20:20 +00:00
<?php
}
?>
</font>
</center>
<?php
2009-03-06 16:20:20 +00:00
if ($sortie!='pdf' && $sortie!='prt') {
2009-05-28 07:42:54 +00:00
require_once('menu.php');
2009-03-06 16:20:20 +00:00
}
?>
</body>
</html>