<?
session_start();
$selelag = $HTTP_SESSION_VARS["SelLanguage"];
if (empty($selelag)) header("location:../break.php");
require("../config/".$selelag);
require "../_ConnectString.php";
require "../_function.php";
$DATAS_PATH ="/datas/";

$_AUTO = $HTTP_GET_VARS["_AUTO"];
$_TYPE = $HTTP_GET_VARS["_TYPE"];


$str = "select * from ATTACHMENT where _NEWIDX='$_AUTO' and _TYPE='$_TYPE'";
$strSQL = mysql_query($str);
$j=1;
$_Attachment="";
while ($attach=mysql_fetch_array($strSQL)){
	$_FILENAME = $attach["_NAME"];
	$_DB_NAME  = $attach["_DB_NAME"];
	$_DBTAG    = $attach["_DBTAG"];
		
	$_Attachment = $_Attachment."<span style=\"font-family: Arial, Helvetica,sans-serif; font-size: x-small;\">&nbsp;".$j++.".&nbsp;<a href=\"".$DATAS_PATH.$_DBTAG."/".$_DB_NAME."\" target=\"_blank\">".$_FILENAME."</a>&nbsp;</span><br>\n";

}
	//$_Attachment = substr($_Attachment,0,strlen($_Attachment)-7);
echo $_Attachment;
?>
<html>
<head><title></title>
<link href="../Display/display.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
A:link {
	FONT-SIZE: 13; COLOR: blue; FONT-FAMILY:Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
A:visited {
	FONT-SIZE: 13; COLOR: blue; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
A:hover {
	FONT-SIZE: 13; COLOR: #003399; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
A:active {
	FONT-SIZE: 13; COLOR: #003399; FONT-FAMILY: Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
</head>
<body></body></html>
