Change icon by SELECT

This commit is contained in:
sparkyx 2008-01-17 17:28:09 +00:00
parent 69a281623d
commit 773a6de04e
3 changed files with 122 additions and 6 deletions

View file

@ -65,18 +65,62 @@ if ( ! isset ( $gDossier ) ) {
echo "Vous devez choisir un dossier ";
exit -2;
}
require_once('class_widget.php');
include_once("preference.php");
include_once("user_menu.php");
$str_dossier=dossier::get();
echo '<div class="u_tmenu">';
echo '<div style="float:left">';
<<<<<<< commercial.php
echo '<div style="float:left;background-color:#879ED4">';
echo '<div style="float:left;margin-left:10px">';
echo "<H2 class=\"info\">Commercial ".dossier::name()."</h2> ";
echo '</div>';
echo '<div style="text-align:right" title="Recherche">
<input type="IMAGE" src="image/search.png" width="36" onclick="openRecherche(\''.$_REQUEST['PHPSESSID'].'\','.$gDossier.');">
<A HREF="?p_action=pref&'.$str_dossier.'" title="Pr&eacute;f&eacute;rence"><IMG SRC="image/preference.png" width="36" border="0" ></A>
/* echo '<div style="text-align:right" title="Recherche"> */
/* <input type="IMAGE" src="image/search.png" width="36" onclick="openRecherche(\''.$_REQUEST['PHPSESSID'].'\','.$gDossier.');"> */
/* <A HREF="?p_action=pref&'.$str_dossier.'" title="Pr&eacute;f&eacute;rence"><IMG SRC="image/preference.png" width="36" border="0" ></A> */
/* <A HREF="comptanalytic.php?gDossier='.$gDossier.'" title="CA"><IMG SRC="image/comptaanal.png" width="36" border="0" ></A> */
/* <A HREF="parametre.php?gDossier='.$gDossier.'" title="Param&egrave;tre"><IMG SRC="image/param.png" width="36" border="0" ></A> */
/* <A HREF="login.php" title="Accueil"><IMG src="image/home.png" width="36" title="Accueil" border="0" ></A> */
/* <A HREF="logout.php" title="Sortie"><IMG src="image/logout.png" title="Logout" width="36" border="0"></A> */
/* </div> '; */
echo '<div style="float:right;margin-right:10px;text-align:right">';
$amodule=array(
array('value'=>'budget','label'=>'Budget'),
array('value'=>'compta','label'=>'Comptabilite'),
array('value'=>'analytic','label'=>'Compt. Analytique'),
array('value'=>'home','label'=>'Accueil'),
array('value'=>'param','label'=>'Parametre'),
array('value'=>'logout','label'=>'Sortir')
);
echo '<form method="GET" action="control.php">';
$w=new widget('select');
$w->name='m';
$w->value=$amodule;
echo '<table><tr><td class="mtitle">';
echo '<A class="mtitle" HREF="javascript:openRecherche(\''.$_REQUEST['PHPSESSID'].'\','.$gDossier.')">'.
'Recheche</a></td>';
echo '<td>'.$w->IOValue().'</td>';
echo dossier::hidden();
echo '<td>'.widget::submit('','Acces Direct').'</td>';
echo '</table>';
echo '</form>';
echo '</div>';
=======
echo '<div style="float:left">';
echo "<H2 class=\"info\">Commercial ".dossier::name()."</h2> ";
>>>>>>> 1.35
echo '</div>';
<<<<<<< commercial.php
echo '</div>';
=======
<A HREF="comptanalytic.php?gDossier='.$gDossier.'" title="CA"><IMG SRC="image/comptaanal.png" width="36" border="0" ></A>
<A HREF="parametre.php?gDossier='.$gDossier.'" title="Param&egrave;tre"><IMG SRC="image/param.png" width="36" border="0" ></A>
@ -84,10 +128,12 @@ echo '<div style="text-align:right" title="Recherche">
<A HREF="logout.php" title="Sortie"><IMG src="image/logout.png" title="Logout" width="36" border="0"></A>
</div> ';
>>>>>>> 1.35
$p_action=(isset ($_REQUEST['p_action']))?$_REQUEST['p_action']:"";
// TODO Menu with all the customer
//echo '<div class="u_tmenu">';
echo '<div style="float:left">';
echo ShowItem(array(
array('?p_action=client&'.$str_dossier,'Client'),
array('?p_action=facture&'.$str_dossier,'Vente/Facture'),
@ -109,6 +155,7 @@ echo ShowItem(array(
//
echo '</div>';
$cn=DbConnect($gDossier);
$User->can_request($cn,SEC_GESTION);
echo JS_VIEW_JRN_MODIFY;

66
html/control.php Normal file
View file

@ -0,0 +1,66 @@
<?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
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/*!\file
* \brief Manage the hypothese for the budget module
*/
extract ($_GET);
/* m for requested module
* f from module
*/
foreach (array('gDossier','m','f') as $i) {
if ( ! isset (${i}) ) {
echo "Erreur parametre manquant";
exit();
}
}
require_once('class_dossier.php');
require_once('user_common.php');
switch ($m) {
case 'budget':
get_redirect('budget.php?'.dossier::get());
break;
case 'compta':
get_redirect('user_compta.php?'.dossier::get());
break;
case 'analytic':
get_redirect('comptanalytic.php?'.dossier::get());
break;
case 'home':
get_redirect('user_login.php');
break;
case 'gestion':
get_redirect('commercial.php?'.dossier::get());
break;
case 'param':
get_redirect('parametre.php?'.dossier::get());
break;
/* case 'search': */
/* echo '<script src="js/script.js">'. */
/* 'openRecherche(\''.$_REQUEST['PHPSESSID'].'\','.$dossier::id().');"'. */
/* '</script>'; */
case 'logout':
get_redirect('logout.php');
}

View file

@ -1187,4 +1187,7 @@ function CleanUrl()
}// if
return $url;
}
function get_redirect($p_string) {
echo '<HTML><head><META HTTP-EQUIV="REFRESH" content="0;url='.$p_string.'"></head><body> Connecting... </body></html>';
}
?>