FIX IE7 : bug with infobulle Improve infobulle with mouseover and mouseclick Check browser version and refuse to work if using IE < 7
106 lines
4.5 KiB
PHP
106 lines
4.5 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PhpCompta is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
/*! \file
|
|
* \brief Welcome page where the folder and module are choosen
|
|
*/
|
|
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
// $Revision$
|
|
include_once ("ac_common.php");
|
|
include_once("postgres.php");
|
|
$rep=DbConnect();
|
|
include_once ("class_user.php");
|
|
$User=new User($rep);
|
|
|
|
$User->Check();
|
|
|
|
/* Check Browser version if < IE6 then unsupported */
|
|
$browser=$_SERVER['HTTP_USER_AGENT'];
|
|
if ( strpos($browser,'MSIE 6')!=false ||
|
|
strpos($browser,'MSIE 5')!=false ) {
|
|
|
|
echo <<<EOF
|
|
<!--[if lt IE 7]>
|
|
<div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
|
|
<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
|
|
<div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
|
|
<div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
|
|
<div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
|
|
<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>Vous utilisez un navigateur dépassé depuis près de 8 ans!</div>
|
|
<div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>Pour une meilleure expérience web, prenez le temps de mettre votre navigateur à jour.</div>
|
|
</div>
|
|
<div style='width: 75px; float: left;'><a href='http://fr.www.mozilla.com/fr/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
|
|
<div style='width: 73px; float: left;'><a href='http://www.apple.com/fr/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
|
|
<div style='float: left;'><a href='http://www.google.com/chrome?hl=fr' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
|
|
</div>
|
|
</div>
|
|
<![endif]-->
|
|
EOF;
|
|
exit();
|
|
}
|
|
|
|
|
|
html_min_page_start($_SESSION['g_theme']);
|
|
include_once("user_menu.php");
|
|
|
|
$priv=($User->admin==1)?"Administrateur":"Utilisateur";
|
|
echo '<div class="info"> ';
|
|
|
|
$result="<table border=\"0\">";
|
|
$result.='<TR>';
|
|
if ( $User->Admin() == 1 ) {
|
|
$result.="<TD class=\"cell\" ><A class=\"cell\" HREF=\"admin_repo.php\"> Administration </A></TD>";
|
|
}
|
|
$result.='<TD class="cell" ><A class="cell" HREF="manuel-fr.pdf" > Aide </a></TD>';
|
|
$result.='<TD class="cell"><A class="cell" HREF="user_pref.php">Préférence</a></TD>';
|
|
$result.='<TD class="cell" ><A class="cell" HREF="logout.php" >Deconnexion</a></TD>';
|
|
$result.="</TR>";
|
|
$result.="</table>";
|
|
|
|
echo '<h2 class="info">Bienvenue '.$User->first_name.' '.$User->name." dans PhpCompta </h2>";
|
|
echo '<br>Choississez votre dossier';
|
|
echo '<span style="position:absolute;right:10px;top:30px">'.$result.'</span>';
|
|
echo '</div>';
|
|
?>
|
|
<form method="get" action="?">
|
|
<input type="submit" value="Rechercher">
|
|
<?php
|
|
$w=new widget("text");
|
|
$p_nom=isset($_GET ['p_nom'])?$_GET['p_nom']:"";
|
|
echo $w->IOValue('p_nom',$p_nom);
|
|
|
|
?>
|
|
<span class="notice">Donnez une partie du nom du dossier à rechercher</span>
|
|
</form>
|
|
<?php
|
|
$filtre="";
|
|
if ( isset ($_GET ['p_nom'])) {
|
|
$filtre=FormatString($_GET['p_nom']);
|
|
}
|
|
|
|
// If admin show everything otherwise only the available dossier
|
|
$res=u_ShowDossier($_SESSION['g_user'],$User->Admin(),$filtre);
|
|
echo $res;
|
|
?>
|
|
<P>
|
|
|
|
</P>
|
|
<?php
|
|
html_page_stop();
|
|
?>
|