From 239020df37bc341089d0a353f8655610b765dd50 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 15 Apr 2005 08:05:18 +0000 Subject: [PATCH] Deplacement des chargement de langues et permissions dans pre.inc.php --- htdocs/expedition/liste.php | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php index c7bdcb6ba64..43c067a888a 100644 --- a/htdocs/expedition/liste.php +++ b/htdocs/expedition/liste.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2005 Rodolphe Quiedeville * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -22,18 +22,14 @@ */ /** - \file htdocs/expedition/liste.php - \ingroup expedition - \brief Page de la liste des expéditions/livraisons + \file htdocs/expedition/liste.php + \ingroup expedition + \brief Page de la liste des expéditions/livraisons */ require("./pre.inc.php"); -$langs->load("sendings"); - -$user->getrights('expedition'); -if (!$user->rights->expedition->lire) - accessforbidden(); +if (!$user->rights->expedition->lire) accessforbidden(); /* * Sécurité accés client @@ -51,13 +47,11 @@ if (! $sortorder) $sortorder="DESC"; $limit = $conf->liste_limit; $offset = $limit * $_GET["page"] ; -$pageprev = $_GET["page"] - 1; -$pagenext = $_GET["page"] + 1; - - /******************************************************************************/ +/* */ /* Fin des Actions */ +/* */ /******************************************************************************/ llxHeader('',$langs->trans('ListOfSendings'),'ch-expedition.html'); @@ -104,7 +98,8 @@ if ($resql) $var=!$var; print ""; - print "rowid\">".img_object($langs->trans("ShowSending"),"sending").' '.$objp->ref."\n"; + print "rowid\">".img_object($langs->trans("ShowSending"),"sending").' '; + print "rowid\">".$objp->ref."\n"; $now = time(); $lim = 3600 * 24 * 15 ;