$artiste=$_GET["artiste"]; ?>
include ('manager/module.php');
$jourj=date("d");
$nommoisj=date("m");
$anneej=date("Y");
$datedujourj="$anneej-$nommoisj-$jourj";
$db=mysql_connect($serveur,$login,$pass);
mysql_select_db($base,$db);
mysql_query ("SET NAMES UTF8");
$artiste=$_GET["artiste"];
$artiste2= str_replace("_"," ",$artiste);
$idart=$_GET["idart"];
if ($idart !="")
{$reqTR = mysql_query ("SELECT * FROM artiste WHERE id='$idart' and ( presentation_english = '' or presentation_english IS NULL)");
$res_TR = mysql_num_rows ($reqTR);
$artiste2 =mysql_result ($reqTR,0,"nom");
}
$req = mysql_query ("SELECT * FROM oeuvre WHERE artiste='$artiste2' ORDER BY tri");
$res_oeuvre = mysql_num_rows ($req);
if ($n=="") {$n=0;}
$i=$n;
$id =mysql_result ($req,$i,"id");
$image = "oeuvres/".mysql_result ($req,$i,"nom_image");
$titre = mysql_result ($req,$i,"composition");
$titre= str_replace("
",", ",$titre);
$titre=ucfirst(strtolower($titre));
$size2 = GetImageSize($image);
$wt = $size2[0];
$ht = $size2[1];
$h="";
$w="";
$wt = 630 ;
$ht = 380 ;
$clp_width = $size2[0];
$clp_height = $size2[1];
$xsc = $wt/$clp_width;
$ysc = $ht/$clp_height;
if($wt > $clp_width and $ht > $clp_height)
{
$w1 = $clp_width;
$h1 = $clp_height;
}
elseif($xsc > $ysc)
{
$w1 = $clp_width * $ysc;
$h1 = $clp_height * $ysc;
}
else
{
$w1 = $clp_width * $xsc;
$h1 = $clp_height * $xsc;
}
?>
echo $artiste3; ?> |
|
||||
include('menu_works.php'); ?> | |||||
include('menu.php'); ?> | |||||
|
< |
> |
|||