<?php
include_once("../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"../class/clsDocuments.php";
include_once 
"../class/clsDocattatches.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);


$oDoc3=new Documents($oC);
$oDatt = new Docattatches($oC);

$oDatt->RSDocAttatches();
while(
$oDatt->GetRecord()){  
                                    
$pathfile="../documents/".$oDatt->DaUpFileName
                                
?>
                                    &nbsp;<a href="<? echo $pathfile ?>" target="_blank"><img src="../picture/allregistered_ico.gif" alt=""  border="0"  style="cursor:pointer;" ></a>&nbsp; 
                                <?    echo "&nbsp;".$c.".&nbsp;".$oDatt->DaFileName."<br>";


?>