Add link to warehouse and bank account in cashdesk page.

This commit is contained in:
Laurent Destailleur 2008-10-26 14:14:37 +00:00
parent 055c4411ff
commit 3e0608154f
5 changed files with 49 additions and 36 deletions

View File

@ -15,12 +15,12 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
include('../master.inc.php'); include('../master.inc.php');
require ('include/environnement.php'); require ('include/environnement.php');
if ( $_SESSION['uid'] <= 0 ) { if ( $_SESSION['uid'] <= 0 ) {
header ('Location: index.php'); header ('Location: index.php');
exit;
} }
?> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
@ -42,10 +42,14 @@
<link href="style.css" rel="stylesheet" type="text/css" media="screen" /> <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<!-- Import des fichiers nécessaires à JsCalendar --> <!-- Import des fichiers nécessaires à JsCalendar -->
<style type="text/css">@import url(include/jscalendar/calendar-blue.css);</style> <style type="text/css">
@import url(include/jscalendar/calendar-blue.css);
</style>
<script type="text/javascript" src="include/jscalendar/calendar.js"></script> <script type="text/javascript" src="include/jscalendar/calendar.js"></script>
<script type="text/javascript" src="include/jscalendar/lang/calendar-fr.js"></script> <script type="text/javascript"
<script type="text/javascript" src="include/jscalendar/calendar-setup.js"></script> src="include/jscalendar/lang/calendar-fr.js"></script>
<script type="text/javascript"
src="include/jscalendar/calendar-setup.js"></script>
</head> </head>
<body> <body>
@ -56,21 +60,15 @@
<h1 class="entete"><span>CAISSE</span></h1> <h1 class="entete"><span>CAISSE</span></h1>
<div class="menu_principal"> <div class="menu_principal"><?php
<?php
include ('templates/menu.tpl.php'); include ('templates/menu.tpl.php');
?> ?></div>
</div>
<div class="contenu"> <div class="contenu"><?php
<?php
include ('affContenu.php'); include ('affContenu.php');
?> ?></div>
</div>
<?php include ('affPied.php'); ?> <?php include ('affPied.php'); ?></div>
</div>
</div> </div>
</div> </div>

View File

@ -1,2 +1,5 @@
# Language file - en_US - cashdesk # Language file - en_US - cashdesk
CashDesk=Cash desk CashDesk=Cash desk
CashDeskBank=Bank accountre
CashDeskWarehouse=Warehouse
CashDeskThirdParty=Third party

View File

@ -1,2 +1,5 @@
# Language file - fr_FR - cashdesk # Language file - fr_FR - cashdesk
CashDesk=Caisse CashDesk=Caisse
CashDeskBank=Compte bancaire
CashDeskWarehouse=Entrepôt
CashDeskThirdParty=Tiers

View File

@ -131,7 +131,6 @@ p {
color: #333; color: #333;
text-decoration: none; text-decoration: none;
padding-right: 25px; padding-right: 25px;
background: url('images/lock.png') no-repeat top right;
} }
.menu_choix0 a:hover{ .menu_choix0 a:hover{

View File

@ -14,10 +14,20 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--> -->
<?php
$langs->load("@cashdesk");
$logout='<img class="login" border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/logout.png">';
?>
<div class="menu_bloc"> <div class="menu_bloc">
<ul class="menu"> <ul class="menu">
<li class="menu_choix1"><a href="affIndex.php?menu=facturation&id=NOUV"><span>Nouvelle vente</span></a></li> <li class="menu_choix1"><a href="affIndex.php?menu=facturation&id=NOUV"><span>Nouvelle vente</span></a></li>
<li class="menu_choix2"><a href="<?php echo eregi_replace('/cashdesk','',$conf_url_racine); ?>/"><span>Gestion commerciale</span></a></li> <li class="menu_choix2"><a href="<?php echo eregi_replace('/cashdesk','',$conf_url_racine); ?>/"><span>Gestion commerciale</span></a></li>
<li class="menu_choix0"><a href="deconnexion.php"><span title="Cliquez pour quitter la session">Utilisateur : <?php echo $_SESSION['prenom'].' '.$_SESSION['nom']; ?></span></a></li> <li class="menu_choix0"><a href="deconnexion.php"><span title="Cliquez pour quitter la session">Utilisateur : <?php echo $_SESSION['prenom'].' '.$_SESSION['nom'].' '.$logout; ?></span></a>
<?php echo '<a href="'.DOL_URL_ROOT.'/soc.php?socid='.$conf->global->CASHDESK_ID_THIRDPARTY.'">'.$langs->trans("CashDeskThirdParty").' : '.$conf->global->CASHDESK_ID_THIRDPARTY.'</a>'; ?>
<?php echo '<a href="'.DOL_URL_ROOT.'/compta/bank/fiche.php?id='.$conf->global->CASHDESK_ID_BANKACCOUNT.'">'.$langs->trans("CashDeskBank").' : '.$conf->global->CASHDESK_ID_BANKACCOUNT.'</a>'; ?>
<?php echo '<a href="'.DOL_URL_ROOT.'/product/stock/fiche.php?id='.$conf->global->CASHDESK_ID_WAREHOUSE.'">'.$langs->trans("CashDeskWarehouse").' : '.$conf->global->CASHDESK_ID_WAREHOUSE.'</a>'; ?>
</li>
</ul> </ul>
</div> </div>