" src=" echo "previews/$filnavn"; ?>" width=" echo "$foo[0]"; ?>" height=" echo "$foo[1]"; ?>" class="billedramme-preview">
}
if ($status == "upload") {
$foo = getimagesize("upload/$filnavn");
$width=$foo[0];
$height=$foo[1];
echo "
";
}
?>
echo "
Titel: $titel
Kommentarer: $beskrivelse
" ; } if ($description != "") { echo "Description: $description
" ; } if ($lokalitet != "") { echo "Lokalitet: $lokalitet
" ; } if ($kommune != "") { echo "Kommune: $kommune
" ; } if ($dato != "") { echo "Dato: $dato
" ; } if ($land != "") { echo "Land: $land
" ; } if ($naturtype != "") { echo "Naturtype: $naturtype
" ; } //if ($keywords != "") { // echo "Nøgleord: $keywords
" ; //} echo "Fotograf: $copyright
"; echo "Format: $medie
"; if ($status1 == "super") { echo "Bestillingsnummer: $bestillingsnummer
" ; echo "Filnavn: $filnavn
" ; } echo "ID: $id
" ; echo " "; echo ""; ?>
Bestilling kan også foretages direkte på e-mail: jmg@naturplan.dk
Det viste billede er et preview. Ved bestilling modtager kunden billedet i høj opløsning.
Læs om printstørrelse af digitale billeder og dias
if ($_SESSION['logget_ind'] == 1) { if ($status1 == "super") { echo "
"; } if ($status1 == "fotograf") { $navn = $_SESSION['navn']; if ($navn == $copyright) { echo " "; } } $get_lightbox = "select * from lightbox where brugernavn = '$brugernavn'"; $get_lightbox_res = mysql_query($get_lightbox, $conn) or die(mysql_error()); if (mysql_num_rows($get_lightbox_res) < 1) { echo "
Du har ingen lightbox.
"; echo ""; } else { echo "Lightboxe for $brugernavn:
Billeder | ||
---|---|---|
$lightbox_navn | "; $get_lightbox_images = "select * from lightbox_images where lightboxId = '$lightbox_id'"; $get_lightbox_images_res = mysql_query($get_lightbox_images, $conn) or die(mysql_error()); $antal = mysql_num_rows($get_lightbox_images_res); echo " $antal | Tilføj billede |
"; ?>
$kategorier = explode(" ", $kategori); $antal = count($kategorier); if ($antal>2) { echo "
Dette billede tilhører kategorierne:
";
} else if ($antal==2) {
echo "
Dette billede tilhører kategorien: Andre billeder fra disse kategorier: Andre billeder fra denne kategori:
";
}
if ($antal>1) {
for($i=1;$i
";
}
}
if ($antal>2) {
echo "
";
for ($p = 1; $p<= 6 ; $p++) {
$random = rand(1,($antal-1));
$query = $kategorier[$random];
// echo "p = $p - id= $resultatId[$p] ";
$sql = "select * from billed_navn where kategori like '%$query%' ORDER BY RAND() limit 1";
$result = mysql_query($sql,$conn) or die(mysql_error());
$resultArray = mysql_fetch_array($result);
$resultatId[$p] = $resultArray[id];
$resultatTitel[$p] =$resultArray[titel];
$resultatFilnavn[$p] =$resultArray[filnavn];
$id = $resultatId[$p];
if ($p>1) {
for ($q=0; $q<$p; $q++) {
if ( $resultatId[$q] == $resultatId[$p] ) {
$sql = "select * from billed_navn where kategori like '%$query%' ORDER BY RAND() limit 1";
$result = mysql_query($sql,$conn) or die(mysql_error());
$resultArray = mysql_fetch_array($result);
$resultatId[$p] = $resultArray[id];
$resultatTitel[$p] =$resultArray[titel];
$resultatFilnavn[$p] =$resultArray[filnavn];
$id = $resultatId[$p];
//echo "--> ny id= $id ";
}
}
}
//echo "
";
}
for ($r=1;$r<=6;$r++) {
$id = $resultatId[$r];
$titel = $resultatTitel[$r];
$thumbnail = "tn_" . $resultatFilnavn[$r];
echo "";
echo " ";
}
// -----------------
?>