2004-10-19 22:19:58 +02:00
|
|
|
<?php
|
2012-08-01 18:40:47 +02:00
|
|
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
|
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
2012-12-30 15:13:49 +01:00
|
|
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
2004-07-20 15:58:21 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
2013-01-16 15:36:08 +01:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-07-20 15:58:21 +02:00
|
|
|
* (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
|
2011-08-03 02:45:22 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-07-20 15:58:21 +02:00
|
|
|
*/
|
2004-08-14 14:54:50 +02:00
|
|
|
|
2005-07-10 16:51:20 +02:00
|
|
|
/**
|
2011-08-27 17:14:31 +02:00
|
|
|
* \file htdocs/comm/propal/info.php
|
2013-12-14 01:28:59 +01:00
|
|
|
* \ingroup propal
|
2011-08-27 17:14:31 +02:00
|
|
|
* \brief Page d'affichage des infos d'une proposition commerciale
|
|
|
|
|
*/
|
2004-08-14 14:54:50 +02:00
|
|
|
|
2012-08-22 23:24:21 +02:00
|
|
|
require '../../main.inc.php';
|
2012-08-22 23:11:24 +02:00
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
|
2004-07-20 15:58:21 +02:00
|
|
|
|
2005-06-27 23:47:44 +02:00
|
|
|
$langs->load('propal');
|
2005-09-11 13:49:43 +02:00
|
|
|
$langs->load('compta');
|
2004-11-07 16:14:09 +01:00
|
|
|
|
2012-08-01 18:40:47 +02:00
|
|
|
$id=GETPOST('id','int');
|
|
|
|
|
$socid=GETPOST('socid','int');
|
2007-06-21 20:10:45 +02:00
|
|
|
|
2008-02-24 14:18:40 +01:00
|
|
|
// Security check
|
2012-08-01 18:40:47 +02:00
|
|
|
if (! empty($user->societe_id)) $socid=$user->societe_id;
|
|
|
|
|
$result = restrictedArea($user, 'propal', $id);
|
2005-07-10 16:51:20 +02:00
|
|
|
|
|
|
|
|
|
2004-07-20 15:58:21 +02:00
|
|
|
/*
|
2009-08-05 19:49:12 +02:00
|
|
|
* View
|
2004-07-20 15:58:21 +02:00
|
|
|
*/
|
2005-07-10 16:51:20 +02:00
|
|
|
|
2012-07-28 17:34:21 +02:00
|
|
|
llxHeader('',$langs->trans('Proposal'),'EN:Commercial_Proposals|FR:Proposition_commerciale|ES:Presupuestos');
|
2004-07-20 15:58:21 +02:00
|
|
|
|
2012-08-01 18:40:47 +02:00
|
|
|
$object = new Propal($db);
|
|
|
|
|
$object->fetch($id);
|
|
|
|
|
$object->fetch_thirdparty();
|
2005-06-27 23:47:44 +02:00
|
|
|
|
2012-08-01 18:40:47 +02:00
|
|
|
$head = propal_prepare_head($object);
|
2009-08-05 19:49:12 +02:00
|
|
|
dol_fiche_head($head, 'info', $langs->trans('Proposal'), 0, 'propal');
|
2005-06-27 23:47:44 +02:00
|
|
|
|
2012-08-01 18:40:47 +02:00
|
|
|
$object->info($object->id);
|
2005-06-27 23:47:44 +02:00
|
|
|
|
2005-10-02 21:32:45 +02:00
|
|
|
print '<table width="100%"><tr><td>';
|
2012-08-01 18:40:47 +02:00
|
|
|
dol_print_object_info($object);
|
2005-10-02 21:32:45 +02:00
|
|
|
print '</td></tr></table>';
|
|
|
|
|
|
|
|
|
|
print '</div>';
|
2009-02-19 20:06:12 +01:00
|
|
|
|
2005-10-02 21:32:45 +02:00
|
|
|
|
2011-08-27 16:24:16 +02:00
|
|
|
llxFooter();
|
2012-08-01 18:40:47 +02:00
|
|
|
$db->close();
|
2004-07-20 15:58:21 +02:00
|
|
|
?>
|