Modif des permissions d'accés
This commit is contained in:
parent
c2f3006f62
commit
2ee33bdc03
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -20,7 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/*!
|
||||||
\file htdocs/compta/ventilation/lignes.php
|
\file htdocs/compta/ventilation/lignes.php
|
||||||
\ingroup facture
|
\ingroup facture
|
||||||
\brief Page de detail des lignes de ventilation d'une facture
|
\brief Page de detail des lignes de ventilation d'une facture
|
||||||
@ -29,13 +29,16 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
$user->getrights('facture');
|
||||||
|
$user->getrights('banque');
|
||||||
|
$langs->load("bills");
|
||||||
|
|
||||||
|
if (!$user->rights->facture->lire) accessforbidden();
|
||||||
|
if (!$user->rights->compta->ventiler) accessforbidden();
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0) accessforbidden();
|
||||||
{
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
llxHeader('');
|
llxHeader('');
|
||||||
|
|
||||||
@ -66,11 +69,9 @@ $sql .= $db->plimit($limit+1,$offset);
|
|||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num_lignes = $db->num_rows();
|
$num_lignes = $db->num_rows($result);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
print_barre_liste("Lignes de facture ventilées",$page,"lignes.php","",$sortfield,$sortorder,'',$num_lignes);
|
print_barre_liste("Lignes de facture ventilées",$page,"lignes.php","",$sortfield,$sortorder,'',$num_lignes);
|
||||||
@ -93,7 +94,7 @@ if ($result)
|
|||||||
$var=True;
|
$var=True;
|
||||||
while ($i < min($num_lignes, $limit))
|
while ($i < min($num_lignes, $limit))
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object();
|
$objp = $db->fetch_object($result);
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
|
|
||||||
|
|||||||
@ -36,16 +36,13 @@ $user->getrights('facture');
|
|||||||
$user->getrights('banque');
|
$user->getrights('banque');
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
if (!$user->rights->facture->lire)
|
if (!$user->rights->facture->lire) accessforbidden();
|
||||||
accessforbidden();
|
if (!$user->rights->compta->ventiler) accessforbidden();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0) accessforbidden();
|
||||||
{
|
|
||||||
accessforbidden();
|
|
||||||
}
|
|
||||||
|
|
||||||
llxHeader('','Ventilation');
|
llxHeader('','Ventilation');
|
||||||
|
|
||||||
@ -67,7 +64,7 @@ $sql .= " ORDER BY l.rowid DESC ".$db->plimit($limit+1,$offset);
|
|||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num_lignes = $db->num_rows();
|
$num_lignes = $db->num_rows($result);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
print_barre_liste("Lignes de facture à ventiler",$page,"liste.php","",$sortfield,$sortorder,'',$num_lignes);
|
print_barre_liste("Lignes de facture à ventiler",$page,"liste.php","",$sortfield,$sortorder,'',$num_lignes);
|
||||||
@ -82,7 +79,7 @@ if ($result)
|
|||||||
$var=True;
|
$var=True;
|
||||||
while ($i < min($num_lignes, $limit))
|
while ($i < min($num_lignes, $limit))
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object();
|
$objp = $db->fetch_object($result);
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user