Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

show_document.php

Go to the documentation of this file.
00001 <?
00002 /*
00003  *   This file is part of PhpCompta.
00004  *
00005  *   PhpCompta is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   PhpCompta is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with PhpCompta; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 /* $Revision: 1.7 $ */
00020 // Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
00021 // Verify parameters
00026 include_once ("postgres.php");
00027 require_once("ac_common.php");
00028 require_once( "class_document.php");
00029 
00030 $cn=DbConnect($_SESSION['g_dossier']);
00031 
00032 
00033 include ('class_user.php');
00034 $User=new cl_user(DbConnect());
00037 $User->Check();
00038 // retrieve the document
00039 $doc=new Document($cn,$_REQUEST['d_id']);
00040 $doc->Send();