Merge branch '3.1' of ssh://git@github.com/Dolibarr/dolibarr.git into 3.1

This commit is contained in:
Laurent Destailleur 2011-11-04 00:47:21 +01:00
commit 05d113133a
348 changed files with 11 additions and 9 deletions

View File

@ -40,13 +40,13 @@ $search_compta_fournisseur = GETPOST("search_compta_fournisseur");
$search_datec = GETPOST("search_datec");
// Security check
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
$socid = GETPOST('socid');
if ($user->societe_id) $socid=$user->societe_id;
$result = restrictedArea($user, 'societe',$socid,'');
$result = restrictedArea($user,'societe',$socid,'');
$page = isset($_GET["page"])?$_GET["page"]:'';
$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:'';
$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:'';
$page = GETPOST('page');
$sortorder = GETPOST('sortorder');
$sortfield = GETPOST('sortfield');
if ($page == -1) { $page = 0 ; }
$offset = $conf->liste_limit * $page ;
$pageprev = $page - 1;
@ -55,7 +55,7 @@ if (! $sortorder) $sortorder="ASC";
if (! $sortfield) $sortfield="nom";
// Load categ filters
$search_categ = isset($_GET["search_categ"])?$_GET["search_categ"]:$_POST["search_categ"];
$search_categ = GETPOST('search_categ');
/*
@ -74,12 +74,14 @@ if (!$user->rights->societe->client->voir && !$socid) $sql .= ", sc.fk_soc, sc.f
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."c_stcomm as st";
if ($search_categ) $sql.= ", ".MAIN_DB_PREFIX."categorie_fournisseur as cf";
if (!$user->rights->societe->client->voir && !$socid) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
$sql.= " WHERE s.fk_stcomm = st.id AND s.fournisseur=1";
$sql.= " WHERE s.fk_stcomm = st.id AND s.fournisseur = 1";
$sql.= " AND s.entity = ".$conf->entity;
if ($search_categ) $sql.= " AND s.rowid = cf.fk_societe"; // Join for the needed table to filter by categ
if (!$user->rights->societe->client->voir && !$socid) $sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
if ($socid) $sql .= " AND s.rowid = ".$socid;
if ($socname) {
$sql .= " AND s.nom like '%".$db->escape($socname)."%'";
if ($socname)
{
$sql .= " AND s.nom LIKE '%".$db->escape($socname)."%'";
$sortfield = "s.nom";
$sortorder = "ASC";
}

0
htdocs/langs/ar_SA/admin.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/agenda.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/banks.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/bills.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/bookmarks.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/boxes.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/categories.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/commercial.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/companies.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/compta.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/contracts.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/deliveries.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/dict.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/donations.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/ecm.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/errors.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/exports.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/ftp.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/help.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/install.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/interventions.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/languages.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/ldap.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/mails.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/main.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/members.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/orders.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/oscommerce.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/other.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/paybox.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/products.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/projects.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/propal.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/sendings.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/shop.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/stocks.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/suppliers.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/trips.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/users.lang Executable file → Normal file
View File

0
htdocs/langs/ar_SA/withdrawals.lang Executable file → Normal file
View File

0
htdocs/langs/ca_ES/cashdesk.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/admin.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/agenda.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/banks.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/bills.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/bookmarks.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/boxes.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/categories.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/commercial.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/companies.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/compta.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/contracts.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/deliveries.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/dict.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/donations.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/ecm.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/errors.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/exports.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/ftp.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/help.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/install.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/interventions.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/languages.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/ldap.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/mails.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/main.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/members.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/orders.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/oscommerce.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/other.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/paybox.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/products.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/projects.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/propal.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/sendings.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/shop.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/stocks.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/suppliers.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/trips.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/users.lang Executable file → Normal file
View File

0
htdocs/langs/da_DK/withdrawals.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/admin.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/agenda.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/banks.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/bills.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/boxes.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/categories.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/commercial.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/companies.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/compta.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/contracts.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/deliveries.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/dict.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/donations.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/ecm.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/errors.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/exports.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/ftp.lang Executable file → Normal file
View File

0
htdocs/langs/de_AT/help.lang Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More