diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php
deleted file mode 100644
index 313d7aca72468b27c09eb7ad7e62d38c0913e3da..0000000000000000000000000000000000000000
--- a/htdocs/fourn/product/fiche.php
+++ /dev/null
@@ -1,618 +0,0 @@
-<?php
-/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
- * Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- */
-
-/**
- \file htdocs/fourn/product/fiche.php
- \ingroup product
- \brief Page de la fiche produit
- \version $Revision$
- */
-
-require("./pre.inc.php");
-require_once(DOL_DOCUMENT_ROOT."/product.class.php");
-
-$langs->load("products");
-
-$mesg = '';
-
-if (!$user->rights->produit->lire) accessforbidden();
-
-
-/*
- *
- */
-
-if ($_GET["action"] == 'fastappro')
-{
- $product = new Product($db);
- $product->fetch($_GET["id"]);
- $result = $product->fastappro($user);
- Header("Location: fiche.php?id=".$_GET["id"]);
- exit;
-}
-
-
-// Action ajout d'un produit ou service
-if ($_POST["action"] == 'add' && $user->rights->produit->creer)
-{
- $product = new Product($db);
-
- $product->ref = $_POST["ref"];
- $product->libelle = $_POST["libelle"];
- $product->price = $_POST["price"];
- $product->catid = $_POST["catid"];
- $product->tva_tx = $_POST["tva_tx"];
- $product->type = $_POST["type"];
- $product->status = $_POST["statut"];
- $product->description = $_POST["desc"];
- $product->duration_value = $_POST["duration_value"];
- $product->duration_unit = $_POST["duration_unit"];
- $product->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
-
- $e_product = $product;
-
- $id = $product->create($user);
- if ($id > 0)
- {
- Header("Location: fiche.php?id=$id");
- }
- else
- {
- if ($id == -3)
- {
- $mesg='<div class="error">'.$product->error.'</div>';
- $_error = 1;
- $_GET["action"] = "create";
- $_GET["type"] = $_POST["type"];
- }
- }
-}
-
-// Action mise a jour d'un produit ou service
-if ($_POST["action"] == 'update' &&
-$_POST["cancel"] <> $langs->trans("Cancel") &&
-$user->rights->produit->creer)
-{
- $product = new Product($db);
- if ($product->fetch($_POST["id"]))
- {
- $product->ref = $_POST["ref"];
- $product->libelle = $_POST["libelle"];
- $product->price = $_POST["price"];
- $product->description = $_POST["desc"];
- $product->seuil_stock_alerte = $_POST["seuil_stock_alerte"];
- $product->duration_value = $_POST["duration_value"];
- $product->duration_unit = $_POST["duration_unit"];
-
- if ($product->check())
- {
- if ($product->update($product->id, $user) > 0)
- {
- $_GET["action"] = '';
- $_GET["id"] = $_POST["id"];
-
- Header("Location: fiche.php?id=".$_POST["id"]);
-
- }
- else
- {
- $_GET["action"] = 're-edit';
- $_GET["id"] = $_POST["id"];
- $mesg = $product->mesg_error;
- }
- }
- else
- {
- $_GET["action"] = 're-edit';
- $_GET["id"] = $_POST["id"];
- $mesg = $langs->trans("ErrorProductBadRefOrLabel");
- }
- }
-}
-
-if ($_POST["action"] == 'add_fourn' && $_POST["cancel"] <> $langs->trans("Cancel"))
-{
-
- $product = new Product($db);
- if( $product->fetch($_GET["id"]) )
- {
- if ($product->add_fournisseur($user, $_POST["id_fourn"], $_POST["ref_fourn"]) > 0)
- {
- $action = '';
- }
- else
- {
- $action = '';
- }
- }
-}
-if ($_GET["action"] == 'remove_fourn')
-{
- $product = new ProductFournisseur($db);
- if( $product->fetch($_GET["id"]) )
- {
- if ($product->remove_fournisseur($_GET["id_fourn"]) > 0)
- {
- $_GET["action"] = '';
- $mesg = $langs->trans("SupplierRemoved");
- }
- else
- {
- $_GET["action"] = '';
- }
- }
-}
-
-
-if ($_POST["action"] == 'update_price' &&
-$_POST["cancel"] <> $langs->trans("Cancel") && $user->rights->produit->creer)
-{
- $product = new Product($db);
-
- $result = $product->fetch($_GET["id"]);
-
- $product->price = ereg_replace(" ","",$_POST["price"]);
-
- if ( $product->update_price($product->id, $user) > 0 )
-
- {
- $_GET["action"] = '';
- $mesg = 'Fiche mise � jour';
- }
- else
- {
- $_GET["action"] = 'edit_price';
- $mesg = 'Fiche non mise � jour !' . "<br>" . $product->mesg_error;
- }
-}
-
-
-if ($_POST["cancel"] == $langs->trans("Cancel"))
-{
- $action = '';
- Header("Location: fiche.php?id=".$_POST["id"]);
-}
-
-
-
-/*
- * View
- */
-
-llxHeader("","",$langs->trans("CardProduct0"));
-
-// Le produit n'est pas encore charg� a ce stade
-
-/*
- * Cr�ation du produit
- *
- */
-if ($_GET["action"] == 'create' && $user->rights->produit->creer)
-{
- $html = new Form($db);
- $nbligne=0;
- $product = new Product($db);
- if ($_error == 1)
- {
- $product = $e_product;
- }
-
- print '<form action="fiche.php" method="post">';
- print '<input type="hidden" name="action" value="add">';
- print '<input type="hidden" name="type" value="'.$_GET["type"].'">'."\n";
- print '<input type="hidden" name="catid" value="'.$_REQUEST["catid"].'">'."\n";
-
- if ($_GET["type"]!=1) { $title=$langs->trans("NewProduct"); }
- if ($_GET["type"]==1) { $title=$langs->trans("NewService"); }
- print_fiche_titre($title);
-
- print '<table class="border" width="100%">';
-
- if ($mesg) print $mesg;
-
- if ($conf->categorie->enabled)
- {
- print '<tr><td>'.$langs->trans("Categorie");
- print '</td><td>';
-
- if (isset($_REQUEST["catid"]))
- {
- $c = new Categorie ($db, $_REQUEST["catid"]);
- $ways = $c->print_all_ways(' > ','fourn/product/liste.php');
- print $ways[0]."<br />\n";
- }
- print '</td></tr>';
- }
-
- print '<tr><td>'.$langs->trans("Ref").'</td><td><input name="ref" size="20" value="'.$product->ref.'">';
- if ($_error == 1)
- {
- print $langs->trans("RefAlreadyExists");
- }
- print '</td></tr>';
- print '<tr><td>'.$langs->trans("Label").'</td><td><input name="libelle" size="40" value="'.$product->libelle.'"></td></tr>';
-
- if ($_GET["type"] != 1 && $conf->stock->enabled)
- {
- print "<tr>".'<td>Seuil stock</td><td colspan="2">';
- print '<input name="seuil_stock_alerte" size="4" value="0">';
- print '</td></tr>';
- }
- else
- {
- print '<input name="seuil_stock_alerte" type="hidden" value="0">';
- }
- print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>';
- print '<textarea name="desc" rows="8" cols="50">';
- print "</textarea></td></tr>";
- if ($_GET["type"] == 1)
- {
- print '<tr><td>'.$langs->trans("Duration").'</td><td><input name="duration_value" size="6" maxlength="5" value="'.$product->duree.'"> ';
- print '<input name="duration_unit" type="radio" value="d">'.$langs->trans("Day").' ';
- print '<input name="duration_unit" type="radio" value="w">'.$langs->trans("Week").' ';
- print '<input name="duration_unit" type="radio" value="m">'.$langs->trans("Month").' ';
- print '<input name="duration_unit" type="radio" value="y">'.$langs->trans("Year").' ';
- print '</td></tr>';
- }
-
- print '<tr><td> </td><td><input type="submit" class="button" value="'.$langs->trans("Create").'"></td></tr>';
- print '</table>';
- print '</form>';
-}
-else
-{
- /*
- * Fiche produit
- */
- if ($_GET["id"])
- {
- if ($_GET["action"] <> 're-edit')
- {
- $product = new Product($db);
- $result = $product->fetch($_GET["id"]);
- }
-
- if ( $product->id > 0 )
- {
- if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
- {
- /*
- * En mode visu
- */
-
- $h=0;
-
- $head[$h][0] = DOL_URL_ROOT."/fourn/product/fiche.php?id=".$product->id;
- $head[$h][1] = $langs->trans("Card");
- $hselected = $h;
- $h++;
-
- if($product->isproduct())
- {
- if ($conf->stock->enabled)
- {
- $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
- $head[$h][1] = $langs->trans("Stock");
- $h++;
- }
- }
-
- $head[$h][0] = DOL_URL_ROOT."/fourn/product/photos.php?id=".$product->id;
- $head[$h][1] = $langs->trans("Photos");
- $h++;
-
- //Affichage onglet Cat�gories
- if ($conf->categorie->enabled){
- $head[$h][0] = DOL_URL_ROOT."/fourn/product/categorie.php?id=".$product->id;
- $head[$h][1] = $langs->trans('Categories');
- $h++;
- }
-
- $head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
- $head[$h][1] = $langs->trans("CommercialCard");
- $h++;
-
- dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
-
- if ($mesg) print($mesg);
-
- print '<table class="border" width="100%">';
-
- if ($conf->categorie->enabled)
- {
- print '<tr id="ways">';
- print '<td colspan="3">';
- $cat = new Categorie ($db);
- $way = $cat->print_primary_way($product->id," > ",'fourn/product/liste.php',"product");
- if ($way == "")
- {
- print "Ce produit n'appartient � aucune cat�gorie";
- }
- else
- {
- print $langs->trans("Categorie")." : ";
- print $way;
- }
- print '</td>';
- print '</tr>';
- }
-
- print "<tr>";
- print '<td width="20%">'.$langs->trans("Ref").'</td><td width="40%">'.$product->ref.'</td>';
- print '<td width="40%">';
- print $product->getLibStatut(2);
- print '</td></tr>';
- print '<tr><td>'.$langs->trans("Label").'</td><td colspan="2">'.$product->libelle.'</td></tr>';
- print '<tr><td>'.$langs->trans("SellingPrice").'</td><td>'.price($product->price).'</td>';
-
- $nblignefour=2;
- if ($product->isproduct() && $conf->stock->enabled) $nblignefour++;
- if ($product->isservice()) $nblignefour++;
-
- print '<td valign="middle" align="center" rowspan="'.$nblignefour.'">';
- $product->show_photos($conf->produit->dir_output,1,1,0);
- print '</td></tr>';
-
- // Description
- print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>'.nl2br($product->description).'</td></tr>';
-
- // Stock
- if ($product->isproduct() && $conf->stock->enabled)
- {
- print '<tr><td><a href="'.DOL_URL_ROOT.'/product/stock/product.php?id='.$product->id.'">'.$langs->trans("Stock").'</a></td>';
- if ($product->no_stock)
- {
- print "<td>Pas de d�finition de stock pour ce produit";
- }
- else
- {
- if ($product->stock_reel <= $product->seuil_stock_alerte)
- {
- print '<td>'.img_warning().' '.$product->stock_reel.' Seuil : '.$product->seuil_stock_alerte;
- }
- else
- {
- print "<td>".$product->stock_reel;
- }
- }
- print '</td></tr>';
- }
-
- // Duration
- if ($product->isservice())
- {
- print '<tr><td>'.$langs->trans("Duration").'</td><td>'.$product->duration_value.' ';
-
- if ($product->duration_value > 1)
- {
- $dur=array("d"=>$langs->trans("Days"),"w"=>$langs->trans("Weeks"),"m"=>$langs->trans("Months"),"y"=>$langs->trans("Years"));
- }
- else
- {
- $dur=array("d"=>$langs->trans("Day"),"w"=>$langs->trans("Week"),"m"=>$langs->trans("Month"),"y"=>$langs->trans("Year"));
- }
- print $langs->trans($dur[$product->duration_unit])." ";
-
- print '</td></tr>';
- }
- print "</table><br>\n";
-
- // Liste des fournisseurs
- print '<table class="noborder" width="100%">';
- print '<tr class="liste_titre"><td>';
- print $langs->trans("Suppliers").'</td>';
- print '<td>'.$langs->trans("Ref").'</td>';
- print '<td align="right">'.$langs->trans("BuiingPrice").'</td>';
- print '<td align="center">'.$langs->trans("Quantity").'</td>';
- print '</tr>';
-
- $sql = "SELECT s.nom, s.rowid as socid, pf.ref_fourn, pfp.price, pfp.quantity";
- $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."product_fournisseur as pf";
- $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_fournisseur_price as pfp ON s.rowid = pfp.fk_soc";
- $sql .= " AND pfp.fk_product =".$product->id;
- $sql .= " WHERE pf.fk_soc = s.rowid AND pf.fk_product = ".$product->id;
- $sql .= " ORDER BY pfp.price ASC, lower(s.nom)";
-
- if ( $db->query($sql) )
- {
- $num_fournisseur = $db->num_rows($resql);
- $i = 0;
- $var=True;
- while ($i < $num_fournisseur)
- {
- $objp = $db->fetch_object($resql);
- $var=!$var;
- print "<tr $bc[$var]>";
- print '<td><a href="'.DOL_URL_ROOT.'/fourn/fiche.php?socid='.$objp->socid.'">'.$objp->nom.'</a></td>';
- print '<td>';
- print '<a href="fourn.php?id='.$product->id.'&id_fourn='.$objp->socid.'">';
- print img_edit($langs->trans("Modify"));
- print ' <a href="fourn.php?id='.$product->id.'&id_fourn='.$objp->socid.'">';
- print $objp->ref_fourn.'</a></td>';
-
- print '<td align="right">';
- print price($objp->price);
- print '</td>';
- print '<td align="center">'.$objp->quantity.'</td></tr>';
- $i++;
- }
- $db->free();
- }
- print '</table>';
- print "</div>\n";
-
-
- /*
- * Ajouter un fournisseur
- *
- */
- if ($_GET["action"] == 'ajout_fourn' && $user->rights->produit->creer)
- {
- $langs->load("suppliers");
-
- print_titre($langs->trans("AddSupplier"));
- print '<form action="fiche.php?id='.$product->id.'" method="post">';
- print '<input type="hidden" name="action" value="add_fourn">';
- print '<input type="hidden" name="id" value="'.$product->id.'">';
- print '<table class="border" width="100%"><tr>';
- print '<td>'.$langs->trans("Suppliers").'</td><td><select name="id_fourn">';
-
- $sql = "SELECT s.rowid as socid, s.nom, s.ville";
- $sql .= " FROM ".MAIN_DB_PREFIX."societe as s WHERE s.fournisseur=1";
- $sql .= " ORDER BY lower(s.nom)";
-
- $resql = $db->query($sql);
- if ($resql)
- {
- $num = $db->num_rows($resql);
- $i = 0;
- while ($i < $num)
- {
- $obj = $db->fetch_object($resql);
- print '<option value="'.$obj->socid.'">'.$obj->nom . ($obj->ville?" ($obj->ville)":"");
- $i++;
- }
- $db->free($resql);
- }
- print '</select></td></tr><tr><td>'.$langs->trans("SupplierRef").'</td>';
- print '<td><input name="ref_fourn" size="25" value=""></td></tr>';
- print '<tr><td colspan="2" align="center">';
- print '<input type="submit" value="'.$langs->trans("Save").'"> ';
- print '<input type="submit" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';
- print '</table>';
- print '</form>';
- }
- }
-
- /*
- * Fiche en mode edition
- */
- if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer)
- {
-
- if ($product->isservice()) {
- print_fiche_titre($langs->trans('Modify').' '.$langs->trans('Service').' : '.$product->ref, "");
- } else {
- print_fiche_titre($langs->trans('Modify').' '.$langs->trans('Product').' : '.$product->ref, "");
- }
-
- if ($mesg) {
- print '<br><div class="error">'.$mesg.'</div><br>';
- }
-
- print "<form action=\"fiche.php\" method=\"post\">\n";
- print '<input type="hidden" name="action" value="update">';
- print '<input type="hidden" name="id" value="'.$product->id.'">';
- print '<table class="border" width="100%">';
- print "<tr>".'<td width="20%">'.$langs->trans("Ref").'</td><td colspan="2"><input name="ref" size="20" value="'.$product->ref.'"></td></tr>';
- print '<td>'.$langs->trans("Label").'</td><td colspan="2"><input name="libelle" size="40" value="'.$product->libelle.'"></td></tr>';
-
-
- if ($product->isproduct() && $conf->stock->enabled)
- {
- print "<tr>".'<td>Seuil stock</td><td colspan="2">';
- print '<input name="seuil_stock_alerte" size="4" value="'.$product->seuil_stock_alerte.'">';
- print '</td></tr>';
- }
- else
- {
- print '<input name="seuil_stock_alerte" type="hidden" value="0">';
- }
- print '<tr><td valign="top">'.$langs->trans("Description").'</td><td colspan="2">';
- print '<textarea name="desc" rows="8" cols="50">';
- print $product->description;
- print "</textarea></td></tr>";
-
- if ($product->isservice())
- {
- print '<tr><td>'.$langs->trans("Duration").'</td><td colspan="2"><input name="duration_value" size="3" maxlength="5" value="'.$product->duration_value.'">';
- print ' ';
- print '<input name="duration_unit" type="radio" value="d"'.($product->duration_unit=='d'?' checked':'').'>'.$langs->trans("Day");
- print ' ';
- print '<input name="duration_unit" type="radio" value="w"'.($product->duration_unit=='w'?' checked':'').'>'.$langs->trans("Week");
- print ' ';
- print '<input name="duration_unit" type="radio" value="m"'.($product->duration_unit=='m'?' checked':'').'>'.$langs->trans("Month");
- print ' ';
- print '<input name="duration_unit" type="radio" value="y"'.($product->duration_unit=='y'?' checked':'').'>'.$langs->trans("Year");
-
- print '</td></tr>';
- }
-
- print '<tr><td colspan="3" align="center"><input type="submit" value="'.$langs->trans("Save").'"> ';
- print '<input type="submit" name="cancel" value="'.$langs->trans("Cancel").'"></td></tr>';
- print '</table>';
- print '</form>';
- }
-
-
-
-
- /* ************************************************************************** */
- /* */
- /* Barre d'action */
- /* */
- /* ************************************************************************** */
-
- print "\n<div class=\"tabsAction\">\n";
-
- if ($_GET["action"] == '')
- {
- if ( $user->rights->produit->creer)
- {
- print '<a class="butAction" href="fiche.php?action=edit&id='.$product->id.'">'.$langs->trans("Modify").'</a>';
- }
-
- if ($product->isproduct() && $conf->stock->enabled)
- {
- print '<a class="butAction" href="'.DOL_URL_ROOT.'/product/stock/product.php?id='.$product->id.'&action=correction">'.$langs->trans("CorrectStock").'</a>';
- }
-
- print '<a class="butAction" href="fiche.php?id='.$product->id.'&action=ajout_fourn">'.$langs->trans("AddSupplier").'</a>';
-
- if ($product->isproduct() && $user->rights->commande->creer)
- {
- $langs->load('orders');
- print '<a class="butAction" href="fiche.php?action=fastappro&id='.$product->id.'">';
- print $langs->trans("CreateOrder").'</a>';
- }
-
- }
-
- print "\n</div>\n";
-
- }
- else
- {
- print $langs->trans("BadId");
- }
- }
- else
- {
- print $langs->trans("BadId");
- }
-}
-
-$db->close();
-
-llxFooter('$Date$ - $Revision$');
-?>
diff --git a/htdocs/lolix/cv/cv.class.php b/htdocs/lolix/cv/cv.class.php
deleted file mode 100644
index aa4c78c2bc87ea8496875960d4c6a83b0a0ee5f4..0000000000000000000000000000000000000000
--- a/htdocs/lolix/cv/cv.class.php
+++ /dev/null
@@ -1,107 +0,0 @@
-<?PHP
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-
-class Cv {
- var $db;
- var $id;
-
- Function Cv($DB, $id=0)
- {
- $this->db = $DB;
- $this->id = $id;
-
- return 1;
- }
-
- /*
- *
- *
- */
- Function fetch()
- {
- $sql = "SELECT c.idp, c.nom, c.prenom, c.email";
- $sql .= " FROM lolixfr.candidat as c";
- $sql .= " WHERE c.idp = ".$this->id;
-
- $result = $this->db->query($sql);
-
- if ($result)
- {
- if ($this->db->num_rows())
- {
- $obj = $this->db->fetch_object(0);
-
- $this->id = $obj->idp;
- $this->active = $obj->active;
- $this->date_activation = $obj->da;
- $this->nom = stripslashes($obj->nom);
- $this->prenom = stripslashes($obj->prenom);
- $this->email = stripslashes($obj->email);
-
- return 1;
-
- }
- $this->db->free();
- }
- else
- {
- print $this->db->error();
- }
- }
-
-
- Function deactivate()
- {
- $sql = "UPDATE lolixfr.candidat SET active=0,deacmeth='b',pubkey='$digest' WHERE idp=" . $this->id;
- $result = $this->db->query($sql);
-
- $sql = "INSERT INTO lolixfr.res_statutlog (datel, fk_cand, fk_statut,author)";
- $sql .= " VALUES (".$this->db->idate(mktime()).",$this->id,0,'bots')";
- $result = $this->db->query($sql);
-
- $header = "From: webmaster@lolix.org\r\nReply-To: webmaster@lolix.org\r\nX-Mailer: Dolibarr";
-
- $email = $this->email;
-
- $message = ' Bonjour,
-
- Le CV que vous avez d�pos� sur http://fr.lolix.org est arriv� � expiration,
-celui-ci n\'est plus consultable en ligne, nous vous invitons � le r�activer si
-vous �tes toujours � la recherche d\'un emploi.
-
-
-Cordialement,
-
----
-L\'�quipe Lolix - http://fr.lolix.org/
-Le guide des prestataires logiciels libres - http://www.support-libre.com
-';
-
-
- mail($email, "Desactivation de votre CV sur Lolix", $message, $header);
-
- print "mail sent to : $email";
-
- }
-}
-
-?>
diff --git a/htdocs/lolix/cv/liste.php b/htdocs/lolix/cv/liste.php
deleted file mode 100644
index da6d48bacd8b6f74fc7fcb2ac2cbee2f38b6f1a9..0000000000000000000000000000000000000000
--- a/htdocs/lolix/cv/liste.php
+++ /dev/null
@@ -1,118 +0,0 @@
-<?PHP
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-require("./pre.inc.php");
-
-llxHeader("","","Lolix, liste des candidats");
-
-if ($_GET["action"] == 'deac')
-{
- $cv = new Cv($db);
- $cv->id = $_GET["id"];
- $cv->fetch();
- $cv->deactivate();
-}
-
-
-/*
- * S�curit� acc�s client
- */
-if ($user->societe_id > 0)
-{
- $action = '';
- $socid = $user->societe_id;
-}
-
-if ($page == -1) { $page = 0 ; }
-
-$offset = $conf->liste_limit * $page ;
-$pageprev = $page - 1;
-$pagenext = $page + 1;
-
-$sql = "SELECT c.idp, c.nom, c.prenom";
-$sql .= ",".$db->pdate("c.datea")." as da";
-$sql .= " FROM lolixfr.candidat as c";
-$sql .= " WHERE c.active = 1";
-
-$sortfield = "c.datea";
-$sortorder = "ASC";
-
-$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit +1, $offset);
-
-$result = $db->query($sql);
-if ($result)
-{
- $num = $db->num_rows();
-
-
- print_barre_liste("Liste des CV", $page, $PHP_SELF,"",$sortfield,$sortorder,'',$num);
-
- $i = 0;
-
- if ($sortorder == "DESC")
- {
- $sortorder="ASC";
- }
- else
- {
- $sortorder="DESC";
- }
- print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
- print '<TR class="liste_titre">';
- print "<td>id</td><TD valign=\"center\">";
- print_liste_field_titre("Nom",$PHP_SELF,"c.nom","","",'valign="center"',$sortfield,$sortorder);
- print "</td><td>";
- print_liste_field_titre("Pr�nom",$PHP_SELF,"c.prenom","","",'valign="center"',$sortfield,$sortorder);
- print "</td>";
- print "<td align=\"center\">";
- print_liste_field_titre("Activ� le",$PHP_SELF,"s.fk_departement","","",'valign="center"',$sortfield,$sortorder);
- print "</td>";
- print "</TR>\n";
- $var=True;
-
- while ($i < min($num,$conf->liste_limit))
- {
- $obj = $db->fetch_object( $i);
-
- $var=!$var;
-
- print "<tr $bc[$var]><td>".($i+1).'</td>';
- print '<td><a href="offre.php?id='.$obj->idp.'">';
- print img_file();
- print "</a> <a href=\"offre.php?id=$obj->idp\">$obj->nom</A></td>\n"; print "<TD>".$obj->prenom." </TD>\n";
-
- print '<td align="center">'.dolibarr_print_date($obj->da,'day')."</td>\n";
- print '<td align="center"><a href="liste.php?id='.$obj->idp.'&action=deac">Deac</a></td>';
- print "</TR>\n";
- $i++;
- }
- print "</TABLE>";
- $db->free();
-}
-else
-{
- print $db->error() . ' ' . $sql;
-}
-
-$db->close();
-
-llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
-?>
diff --git a/htdocs/lolix/cv/pre.inc.php b/htdocs/lolix/cv/pre.inc.php
deleted file mode 100644
index 384be95d31d76f015c6923a567dc63a5efb60038..0000000000000000000000000000000000000000
--- a/htdocs/lolix/cv/pre.inc.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<?PHP
-/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-require("../../main.inc.php");
-require("./cv.class.php");
-
-function llxHeader($head = "", $urlp = "", $title="")
-{
- global $user, $conf, $db;
-
- /*
- *
- *
- */
- top_menu($head, $title);
-
- $menu = new Menu();
-
- $menu->add(DOL_URL_ROOT."/lolix/index.php", "Lolix");
-
- $menu->add_submenu(DOL_URL_ROOT."/lolix/cv/liste.php", "Liste des CV");
- left_menu($menu->liste);
-}
-
-Function fiche_header($id)
-{
- $h = 0;
- $head[0][0] = DOL_URL_ROOT.'/lolix/offre.php?id='.$id;
- $head[0][1] = "Offre";
- $h++;
-
- for($i = 0 ; $i < sizeof($head) ; $i++)
- {
- if (strstr($head[$i][0], $GLOBALS["SCRIPT_URL"]) )
- {
- $a = $i;
- // sort de la boucle
- $i = sizeof($head);
- }
- }
-
- dolibarr_fiche_head($head, $a);
-}
-?>
diff --git a/htdocs/lolix/index.php b/htdocs/lolix/index.php
deleted file mode 100644
index 881dbae12d6c39549709fbe5a06e82e5d7392028..0000000000000000000000000000000000000000
--- a/htdocs/lolix/index.php
+++ /dev/null
@@ -1,122 +0,0 @@
-<?php
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-require("./pre.inc.php");
-
-if ($user->societe_id > 0)
-{
- $socid = $user->societe_id;
-}
-
-
-
-llxHeader("","","Lolix");
-
-print_titre("Espace Lolix");
-
-print '<table border="0" width="100%" cellspacing="0" cellpadding="4">';
-print '<tr><td valign="top" width="50%">';
-/*
- *
- *
- */
-$sql = "SELECT count(*) as cc, o.active";
-$sql .= " FROM lolixfr.offre as o ";
-$sql .= " GROUP BY o.active DESC";
-
-$active[1] = "Active";
-$active[0] = "Inactive";
-$active[-2] = "Inactive";
-$active[-3] = "Inactive (d�sactiv�e robots)";
-$active[-4] = "Inactive (???)";
-
-if ( $db->query($sql) )
-{
- $num = $db->num_rows();
- $i = 0;
- if ($num > 0 )
- {
- print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
- print '<tr class="liste_titre">';
- print '<td colspan="2">Offres</td></tr>';
-
- while ($i < $num)
- {
- $obj = $db->fetch_object();
- $var=!$var;
- print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
- print '<td align="center">'.$obj->cc."</td></tr>";
- $i++;
- }
- print "</table><br>";
- }
-}
-
-/*
- *
- *
- */
-print '</td><td valign="top" width="50%">';
-/*
- *
- *
- */
-$sql = "SELECT count(*) as cc, o.active";
-$sql .= " FROM lolixfr.candidat as o ";
-$sql .= " GROUP BY o.active DESC";
-
-$active[1] = "Active";
-$active[0] = "Inactive";
-$active[-2] = "Inactive";
-$active[-3] = "Inactive (d�sactiv�e robots)";
-$active[-4] = "Inactive (???)";
-
-if ( $db->query($sql) )
-{
- $num = $db->num_rows();
- $i = 0;
- if ($num > 0 )
- {
- print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
- print '<tr class="liste_titre">';
- print '<td colspan="2">Candidats</td></tr>';
-
- while ($i < $num)
- {
- $obj = $db->fetch_object();
- $var=!$var;
- print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
- print '<td align="center">'.$obj->cc."</td></tr>";
- $i++;
- }
- print "</table><br>";
- }
-}
-
-
-print '</td></tr>';
-print '</table>';
-
-$db->close();
-
-
-llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
-?>
diff --git a/htdocs/lolix/lolix.societe.class.php b/htdocs/lolix/lolix.societe.class.php
deleted file mode 100644
index 024b79f1b899f703ac33f99d055e1439cd6120aa..0000000000000000000000000000000000000000
--- a/htdocs/lolix/lolix.societe.class.php
+++ /dev/null
@@ -1,139 +0,0 @@
-<?php
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-
-class LolixSociete {
- var $db;
-
- var $id;
- var $nom;
- var $adresse;
- var $cp;
- var $ville;
- var $tel;
- var $fax;
- var $url;
- var $siren;
- var $client;
- var $note;
- var $fournisseur;
-
-
- Function LolixSociete($DB, $id=0)
- {
- global $config;
-
- $this->db = $DB;
- $this->id = $id;
-
- return 1;
- }
- /*
- *
- *
- *
- */
- Function update($id)
- {
- $sql = "SELECT short_desc";
- $sql .= " FROM ".MAIN_DB_PREFIX."societe_details as sd";
- $sql .= " WHERE sd.fk_soc = ".$this->id;
-
- if ($this->db->query($sql))
- {
- if ($this->db->num_rows() == 0)
- {
- $this->db->free();
- $sql = "INSERT INTO ".MAIN_DB_PREFIX."societe_details (fk_soc) VALUES ($id)";
- $result = $this->db->query($sql);
- }
- }
-
- $sql = "UPDATE ".MAIN_DB_PREFIX."societe_details ";
- $sql .= " SET short_desc = '" . trim($this->short_desc) ."'";
- $sql .= ", long_desc = '" . trim($this->long_desc) ."'";
- $sql .= ", contact_nom = '" . trim($this->contact_nom) ."'";
- $sql .= ", contact_email = '" . trim($this->contact_email) ."'";
- $sql .= ", date_creation = ',".$this->db->idate($this->date_creation). "'";
- $sql .= " WHERE fk_soc = " . $id .";";
-
- if ($this->db->query($sql))
- {
-
- }
- else
- {
- print $this->db->error();
- }
- }
-
- /*
- *
- *
- */
- Function fetch($socid)
- {
- $this->id = $socid;
-
- $sql = "SELECT s.nom,s.active,s.siren,s.tel,s.url,s.fax,";
- $sql .= $this->db->pdate("s.datec")." as dc";
- $sql .= " FROM lolixfr.societe as s";
- $sql .= " WHERE s.rowid = ".$this->id;
-
- if ($this->db->query($sql))
- {
- if ($this->db->num_rows())
- {
- $obj = $this->db->fetch_object();
-
- $this->nom = $obj->nom;
- $this->active = $obj->active;
- $this->tel = $obj->tel;
- $this->fax = $obj->fax;
- $this->url = $obj->url;
-
- $this->date_creation = $obj->dc;
-
- $this->siren = $obj->siren;
-
-
- return 1;
-
- }
- else
- {
- print "Error";
- }
- $this->db->free();
- }
- else
- {
- print $this->db->error();
- }
- }
- /*
- *
- *
- */
-
-}
-
-?>
diff --git a/htdocs/lolix/pre.inc.php b/htdocs/lolix/pre.inc.php
deleted file mode 100644
index d551caeb20ef243ac8ec6d5100bb329a4dcf054f..0000000000000000000000000000000000000000
--- a/htdocs/lolix/pre.inc.php
+++ /dev/null
@@ -1,76 +0,0 @@
-<?php
-/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-require("../main.inc.php");
-require_once DOL_DOCUMENT_ROOT."/lolix/lolix.societe.class.php";
-
-function llxHeader($head = "", $urlp = "", $title="")
-{
- global $user, $conf, $db;
-
- /*
- *
- *
- */
- top_menu($head, $title);
-
- $menu = new Menu();
-
-
-
- $menu->add(DOL_URL_ROOT."/lolix/index.php", "Lolix");
-
- $menu->add_submenu(DOL_URL_ROOT."/lolix/liste.php", "Liste des offres");
- $menu->add_submenu(DOL_URL_ROOT."/lolix/cv/liste.php", "Liste des CV");
-
- $menu->add(DOL_URL_ROOT."/lolix/societe/", "Soci�t�s");
-
- $menu->add_submenu(DOL_URL_ROOT."/lolix/societe/activation.php", "Activation");
- $menu->add_submenu(DOL_URL_ROOT."/lolix/societe/liste.php", "Liste");
-
-
- $menu->add(DOL_URL_ROOT."/lolix/tode.php", "Offres � d�sactiver");
-
-
- $menu->add(DOL_URL_ROOT."/lolix/linuxmag.php", "Linux Mag");
- left_menu($menu->liste);
-}
-
-Function fiche_header($id)
-{
- $h = 0;
- $head[0][0] = DOL_URL_ROOT.'/lolix/offre.php?id='.$id;
- $head[0][1] = "Offre";
- $h++;
-
- for($i = 0 ; $i < sizeof($head) ; $i++)
- {
- if (strstr($head[$i][0], $GLOBALS["SCRIPT_URL"]) )
- {
- $a = $i;
- // sort de la boucle
- $i = sizeof($head);
- }
- }
-
- dolibarr_fiche_head($head, $a);
-}
-?>
diff --git a/htdocs/lolix/societe/activation.php b/htdocs/lolix/societe/activation.php
deleted file mode 100644
index 1b89840c6f07fea219e2b01ccf099a3b46a96f96..0000000000000000000000000000000000000000
--- a/htdocs/lolix/societe/activation.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-
-require("./pre.inc.php");
-
-$langs->load("companies");
-
-llxHeader("","","Lolix - Soci�t� a activer");
-
-/*
- * S�curit� acc�s client
- */
-if ($user->societe_id > 0)
-{
- $action = '';
- $socid = $user->societe_id;
-}
-
-if ($page == -1) { $page = 0 ; }
-
-$offset = $conf->liste_limit * $page ;
-$pageprev = $page - 1;
-$pagenext = $page + 1;
-
-$sql = "SELECT s.idp,s.nom, s.ville,".$db->pdate("datec") ." as da";
-$sql .= " FROM lolixfr.societe as s";
-$sql .= " WHERE active = 0";
-
-$sortfield = "s.datec";
-$sortorder = "DESC";
-
-$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit +1, $offset);
-
-$result = $db->query($sql);
-if ($result)
-{
- $num = $db->num_rows();
-
-
- print_barre_liste("Societe a activer", $page, "activation.php","",$sortfield,$sortorder,'',$num);
-
- $i = 0;
-
- if ($sortorder == "DESC")
- {
- $sortorder="ASC";
- }
- else
- {
- $sortorder="DESC";
- }
- print '<table class="noborder" width="100%">';
- print '<tr class="liste_titre">';
- print_liste_field_titre($langs->trans("Company"),$PHP_SELF,"s.nom","","",'valign="center"',$sortfield,$sortorder);
- print_liste_field_titre($langs->trans("Town"),$PHP_SELF,"s.ville","","",'valign="center"',$sortfield,$sortorder);
- print "<td> </td>";
-
- print "</tr>\n";
- $var=True;
-
- while ($i < min($num,$conf->liste_limit))
- {
- $obj = $db->fetch_object();
-
- $var=!$var;
-
- print "<tr $bc[$var]>";
- print '<td><a href="fiche.php?id='.$obj->idp.'">';
- print img_file();
- print " ".$obj->nom.'</td>';
-
-
- print "</a> <a href=\"offre.php?id=$obj->idp\">$obj->ref</A></td>\n";
- print "<TD>".$obj->ville." </TD>\n";
-
- print '<td align="center">'.dolibarr_print_date($obj->da,'day')."</td>\n";
-
- print "</TR>\n";
- $i++;
- }
- print "</TABLE>";
- $db->free();
-}
-else
-{
- print $db->error() . ' ' . $sql;
-}
-
-$db->close();
-
-llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
-?>
diff --git a/htdocs/lolix/societe/fiche.php b/htdocs/lolix/societe/fiche.php
deleted file mode 100644
index e6b032ce83e53036f0c016a817839e8f0ad13fc5..0000000000000000000000000000000000000000
--- a/htdocs/lolix/societe/fiche.php
+++ /dev/null
@@ -1,181 +0,0 @@
-<?php
-/* Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-
-require("pre.inc.php");
-
-/*
- * S�curit� acc�s client
- */
-
-$socid = $_GET["id"];
-
-/*
- *
- *
- */
-llxHeader();
-$form = new Form($db);
-
-$soc = new LolixSociete($db);
-$soc->fetch($_GET["id"]);
-
-fiche_header($soc->id);
-
-/*
- *
- */
-
-if ($_GET["action"] == 'edit')
-{
- print_titre("Edition de la soci�t�");
-
- if ($socid)
- {
- $soc = new Societe($db);
- $soc->id = $socid;
- $soc->fetch($socid);
-
- print '<form action="fiche.php?id='.$socid.'" method="post">';
- print '<input type="hidden" name="action" value="update">';
-
- print '<table class="border" width="100%">';
- print '<tr><td>'.$langs->trans("Name").'</td><td colspan="3"><input type="text" size="40" name="nom" value="'.$soc->nom.'"></td></tr>';
- print '<tr><td valign="top">Adresse</td><td><textarea name="adresse" cols="30" rows="3" wrap="soft">';
- print $soc->adresse;
- print '</textarea></td>';
-
- print '<td>'.$langs->trans("Zip").'</td><td><input size="6" type="text" name="cp" value="'.$soc->cp.'"> ';
- print $langs->trans("Town").' <input type="text" name="ville" value="'.$soc->ville.'"></td></tr>';
- print '<tr><td>'.$langs->trans("State").'</td><td>';
- print $form->select_departement($soc->departement_id);
- print '</td>';
-
- print '<td>'.$langs->trans("Country").'</td><td>';
- print $form->select_pays($soc->pays_id);
- print '</td></tr>';
-
- print '<tr><td>'.$langs->trans("Phone").'</td><td><input type="text" name="tel" value="'.$soc->tel.'"></td>';
- print '<td>'.$langs->trans("Fax").'</td><td><input type="text" name="fax" value="'.$soc->fax.'"></td></tr>';
- print '<tr><td>'.$langs->trans("web").'</td><td colspan="3">http://<input type="text" name="url" size="40" value="'.$soc->url.'"></td></tr>';
-
- print '<tr><td>'.$langs->transcountry("ProfId1",$soc->pays_code).'</td><td><input type="text" name="siren" size="10" maxlength="9" value="'.$soc->siren.'"></td>';
- print '<td>'.$langs->transcountry("ProfId2",$soc->pays_code).'</td><td><input type="text" name="siret" size="15" maxlength="14" value="'.$soc->siret.'"></td></tr>';
-
- print '<tr><td>'.$langs->transcountry("ProfId3",$soc->pays_code).'</td><td><input type="text" name="ape" size="5" maxlength="4" value="'.$soc->ape.'"></td>';
- print '<td>'.$langs->trans("Capital").'</td><td><input type="text" name="capital" size="10" value="'.$soc->capital.'"> '.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
-
-
- print '<tr><td>Forme juridique</td><td colspan="3">';
- $html = new Form($db);
- print $html->select_array("forme_juridique_id",$form->forme_juridique_array(), $soc->forme_juridique_id,0,1);
- print '</td></tr>';
-
- print '<tr><td>'.$langs->trans("Type").'</td><td>';
- $form->select_array("typent_id",$form->typent_array(), $soc->typent_id);
- print '</td>';
- print '<td>'.$langs->trans("Staff").'</td><td>';
- $form->select_array("effectif_id",$form->effectif_array(), $soc->effectif_id);
- print '</td></tr>';
-
- print '<input type="hidden" name="tva_intra_code" value="'.$soc->tva_intra_code.'">';
- print '<input type="hidden" name="tva_intra_num" value="'.$soc->tva_intra_num.'">';
-
- print '<input type="hidden" name="client" value="'.$soc->client.'">';
- print '<input type="hidden" name="fournisseur" value="'.$soc->fournisseur.'">';
- print '<tr><td align="center" colspan="4"><input type="submit" value="Mettre � jour"></td></tr>';
- print '</table>';
- print '</form>';
-
- }
-}
-else
-{
-
- print '<table class="border" width="100%">';
- print '<tr><td width="20%">Nom</td><td width="30%">'.$soc->nom.'</td>';
- print '<td>Mise � jour</td><td>'.dolibarr_print_date($socdet->date_fiche_update,'dayhour').' ';
- print '</td></tr>';
-
-
- print '<tr><td valign="top">Adresse</td><td colspan="3">'.nl2br($soc->adresse).' ';
- print '<br>'.$soc->cp.' '.$soc->ville.'<br>'.$soc->pays.'</td></tr>';
-
-
- print '<tr><td>T�l�phone</td><td>'.dolibarr_print_phone($soc->tel).'</td>';
- print '<td>Fax</td><td>'.dolibarr_print_phone($soc->fax).'</td></tr>';
- print '<tr><td>Web</td><td>';
- if ($soc->url) { print '<a href="http://'.$soc->url.'">http://'.$soc->url.'</a>'; }
- print '</td>';
-
- print '<td>Siren</td><td><a target="_blank" href="http://www.societe.com/cgi-bin/recherche?rncs='.$soc->siren.'">'.$soc->siren.'</a> </td></tr>';
-
- print '<tr><td>Forme juridique</td><td colspan="3">'.$soc->forme_juridique.'</td></tr>';
-
- print '<tr><td>'.$langs->trans("Staff").'</td><td>'.$soc->effectif.'</td>';
- print '<td>Cr�ation</td><td>'.dolibarr_print_date($soc->date_creation,'day').'</td></tr>';
-
- print '<tr><td>Contact</td><td>'.$socdet->contact_nom.' '.$socdet->contact_email.'</td>';
- print '<td> </td><td> </td></tr>';
-
- $file = DOL_DOCUMENT_ROOT . "/document/sl/catalogue-".$soc->id.".pdf";
-
- print '<tr><td><a href="fiche.php?action=pdf&id='.$soc->id.'">'.img_file_new().'</a></td>';
-
- if (file_exists($file))
- {
- print '<td><a href="'.DOL_URL_ROOT.'/document/sl/catalogue-'.$soc->id.'.pdf">'.img_pdf().'</a></td>';
- print '<td>'.filesize($file). ' bytes</td>';
- print '<td>'.dolibarr_print_date(filemtime($file),'dayhour').'</td>';
- }
- print '</tr>';
-/*
- *
- */
-
-
-print '</table>';
-print '<br></div>';
-/*
- *
- */
-
-}
-
-print '<div class="tabsAction">';
-
-if ($soc->active == 0)
-{
- print '<a class="butAction" href="fiche.php?id='.$_GET["id"].'&action=activer">Activer</a>';
-}
-
-
-
-print '</div>';
-/*
- *
- */
-
-
-$db->close();
-
-llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
-?>
diff --git a/htdocs/lolix/societe/index.php b/htdocs/lolix/societe/index.php
deleted file mode 100644
index 2c82fcb6a9d4164f5f8748ec58dbc76002e525e0..0000000000000000000000000000000000000000
--- a/htdocs/lolix/societe/index.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- */
-require("./pre.inc.php");
-
-if ($user->societe_id > 0)
-{
- $socid = $user->societe_id;
-}
-
-
-
-llxHeader("","","Lolix");
-
-print_titre("Espace Lolix");
-
-print '<table border="0" width="100%" cellspacing="0" cellpadding="4">';
-print '<tr><td valign="top" width="50%">';
-/*
- *
- *
- */
-$sql = "SELECT count(*) as cc, o.active";
-$sql .= " FROM lolixfr.offre as o ";
-$sql .= " GROUP BY o.active DESC";
-
-$active[1] = "Active";
-$active[0] = "Inactive";
-$active[-2] = "Inactive";
-$active[-3] = "Inactive (d�sactiv�e robots)";
-$active[-4] = "Inactive (???)";
-
-if ( $db->query($sql) )
-{
- $num = $db->num_rows();
- $i = 0;
- if ($num > 0 )
- {
- print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
- print '<tr class="liste_titre">';
- print '<td colspan="2">Offres</td></tr>';
-
- while ($i < $num)
- {
- $obj = $db->fetch_object();
- $var=!$var;
- print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
- print '<td align="center">'.$obj->cc."</td></tr>";
- $i++;
- }
- print "</table><br>";
- }
-}
-
-/*
- *
- *
- */
-print '</td><td valign="top" width="50%">';
-/*
- *
- *
- */
-$sql = "SELECT count(*) as cc, o.active";
-$sql .= " FROM lolixfr.candidat as o ";
-$sql .= " GROUP BY o.active DESC";
-
-$active[1] = "Active";
-$active[0] = "Inactive";
-$active[-2] = "Inactive";
-$active[-3] = "Inactive (d�sactiv�e robots)";
-$active[-4] = "Inactive (???)";
-
-if ( $db->query($sql) )
-{
- $num = $db->num_rows();
- $i = 0;
- if ($num > 0 )
- {
- print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
- print '<tr class="liste_titre">';
- print '<td colspan="2">Candidats</td></tr>';
-
- while ($i < $num)
- {
- $obj = $db->fetch_object();
- $var=!$var;
- print "<tr $bc[$var]><td><a href=\"liste.php?catid=".$obj->rowid."\">".$active[$obj->active]."</a></td>";
- print '<td align="center">'.$obj->cc."</td></tr>";
- $i++;
- }
- print "</table><br>";
- }
-}
-
-
-print '</td></tr>';
-print '</table>';
-
-$db->close();
-
-
-llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
-?>
diff --git a/htdocs/lolix/societe/liste.php b/htdocs/lolix/societe/liste.php
deleted file mode 100644
index 854bd3504840356e5ff5f7fe31de0a966f6e7916..0000000000000000000000000000000000000000
--- a/htdocs/lolix/societe/liste.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-require("./pre.inc.php");
-
-llxHeader("","","Lolix, liste des offres");
-
-/*
- * S�curit� acc�s client
- */
-if ($user->societe_id > 0)
-{
- $action = '';
- $socid = $user->societe_id;
-}
-
-if ($page == -1) { $page = 0 ; }
-
-$offset = $conf->liste_limit * $page ;
-$pageprev = $page - 1;
-$pagenext = $page + 1;
-
-$sql = "SELECT s.nom, s.ville,".$db->pdate("datea") ." as da";
-$sql .= " FROM lolixfr.societe as s";
-
-
-$sortfield = "s.nom";
-$sortorder = "DESC";
-
-$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit +1, $offset);
-
-$result = $db->query($sql);
-if ($result)
-{
- $num = $db->num_rows();
-
-
- print_barre_liste("Liste des offres", $page, $PHP_SELF,"",$sortfield,$sortorder,'',$num);
-
- $i = 0;
-
- if ($sortorder == "DESC")
- {
- $sortorder="ASC";
- }
- else
- {
- $sortorder="DESC";
- }
- print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
- print '<TR class="liste_titre">';
- print "<TD valign=\"center\">";
- print_liste_field_titre("Soci�t�",$PHP_SELF,"s.nom","","",'valign="center"',$sortfield,$sortorder);
- print "</td><td>";
- print_liste_field_titre("Ville",$PHP_SELF,"s.ville");
- print "</td><td> </td>";
-
- print "</tr>\n";
- $var=True;
-
- while ($i < min($num,$conf->liste_limit))
- {
- $obj = $db->fetch_object($result);
-
- $var=!$var;
-
- print "<tr $bc[$var]>";
- print '<td><a href="fiche.php?id='.$obj->idp.'">';
- print img_file();
- print " ".$obj->nom.'</td>';
-
-
- print "</a> <a href=\"offre.php?id=$obj->idp\">$obj->ref</A></td>\n";
- print "<TD>".$obj->ville." </TD>\n";
-
- print '<td align="center">'.dolibarr_print_date($obj->da,'day')."</td>\n";
-
- print "</TR>\n";
- $i++;
- }
- print "</TABLE>";
- $db->free();
-}
-else
-{
- print $db->error() . ' ' . $sql;
-}
-
-$db->close();
-
-llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
-?>
diff --git a/htdocs/lolix/societe/pre.inc.php b/htdocs/lolix/societe/pre.inc.php
deleted file mode 100644
index 178f015c0b874e2b95383ff800861ac765c628c8..0000000000000000000000000000000000000000
--- a/htdocs/lolix/societe/pre.inc.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Id$
- * $Source$
- *
- */
-require("../../main.inc.php");
-require_once DOL_DOCUMENT_ROOT."/lolix/lolix.societe.class.php";
-
-function llxHeader($head = "", $urlp = "", $title="")
-{
- global $user, $conf, $db;
-
- /*
- *
- *
- */
- top_menu($head, $title);
-
- $menu = new Menu();
-
- $menu->add(DOL_URL_ROOT."/lolix/index.php", "Lolix");
-
- $menu->add(DOL_URL_ROOT."/lolix/societe/", "Soci�t�s");
-
- $menu->add_submenu(DOL_URL_ROOT."/lolix/societe/activation.php", "Activation");
- $menu->add_submenu(DOL_URL_ROOT."/lolix/societe/liste.php", "Liste");
-
- $menu->add(DOL_URL_ROOT."/lolix/tode.php", "Offres � d�sactiver");
-
-
- $menu->add(DOL_URL_ROOT."/lolix/linuxmag.php", "Linux Mag");
- left_menu($menu->liste);
-}
-
-Function fiche_header($id)
-{
- $h = 0;
- $head[0][0] = DOL_URL_ROOT.'/lolix/societe/fiche.php?id='.$id;
- $head[0][1] = "Societe";
- $h++;
-
- for($i = 0 ; $i < sizeof($head) ; $i++)
- {
- if (strstr($head[$i][0], $GLOBALS["SCRIPT_URL"]) )
- {
- $a = $i;
- // sort de la boucle
- $i = sizeof($head);
- }
- }
-
- dolibarr_fiche_head($head, $a);
-}
-?>