include "../include/topmenu.php"; ?>
include "../include/visit_menu.php"; ?>
include "../include/submenu_visit.php"; ?>
include "../dbconn/dbconn.php"; ?>
--- Choose 'list' ---
$query = "select uid, name from report where kind = 'journal' order by uid desc "; $result = mysql_query($query); err_chk($result); while($listrow = mysql_fetch_array($result)){ ?>
>=$listrow[name]?>
} ?>
if($subjectList) $nameQuery = "AND uid = '$subjectList'"; else $nameQuery = "order by uid desc limit 1"; $query = "select * from report where kind = 'journal' "; $query .= $nameQuery; $result = mysql_query($query); err_chk($result); $row = mysql_fetch_array($result); if($row[tag] == "Y"){ $content = stripslashes($row[content]); }else{ $content = stripslashes($row[content]); $content = htmlspecialchars($content); $content = nl2br($content); } ?>
=$row[name]?>
=$content?>
for($i=1; $i <= 10; $i++) { $picture = $row[picture.$i]; $filename = "../admin/report/$picture"; if($row[picture.$i] && file_exists($filename)){ $image_size = GetImageSize("../admin/report/$picture"); $width = $image_size[0]; $height = $image_size[1]; $width_1 = $image_size[0]; $height_1 = $image_size[1]; $max_width = 162; $max_height = 128; while($width > $max_width || $height > $max_height){ if($width < $max_width) { $width = $width; } else { $percent_w = $width / $max_width; $width = $max_width; $height = $height / $percent_w; } if($height < $max_height) { $height = $height; } else { $percent_h = $height / $max_height; $height = $max_height; $width = $width / $percent_h; } } $subject = $row[subject.$i]; ?>
=$subject?>
} else { ?>
} } ?>
include "../include/copy.php"; ?>
include "../include/scroll.php"; ?>