include("php/config.php");
include("php/ModulePage.php");
$nautor=$_GET['autor'];
$query="SELECT * FROM `autori` WHERE `nume` LIKE '".$nautor."'";
$result=mysql_query($query);
$biorow=mysql_fetch_array($result, MYSQL_ASSOC);
// prelucrare poze
$picname=$biorow['poza'];
$pic='';
if($picname!=''){
if (file_exists($path.$autpath.$picname)){
//$pic="
";
$pic="
";
}
}
if($biorow['site']!=''){$site="
{$biorow['site']} ";}
if($biorow['blog']!=''){$blog="
{$biorow['blog']} ";}
$bio="";
if($biorow['biografie']!=''){
$bio="
|
{$pic}{$biorow['biografie']} {$site}{$blog} |
|
";
}
$query="SELECT * FROM `carti` WHERE `autor` LIKE '%".$nautor."%' ORDER BY `ana` DESC, `lunaa` DESC";
$result=mysql_query($query);
$tablecod=makeprodlist($result,"",true);
if ($tablecod == ''){
$pags="";
$tablecod="{$picerr} Nu au fost gasite produse !";
}
$page=new ModulePage;
$page->page_location("$path"."templates/autor.html");
$page->parse_variable(array(PTITLU=>"{$nautor}",PROPCAT=>$tablecod,BIO=>$bio,AUTOR=>$nautor) );
echo $page->send_page;
exit;
?>