require_once("./common.inc.php");
getget();
getpost();
$num_of_files = 10;
$sql = "SELECT * FROM `job` WHERE `display` = 1 and `id` = ".$id;
$result=mysql_query($sql);
$count=mysql_num_rows($result);
$row = $db->fetch_array($result);
//get attactment
$photo_main_list = '';
$photo_side_list = '';
$paging_count = 0;
for($i = 1 ; $i <= $num_of_files ; $i++){
$file = get_attachment("job", $id, "photo".$i);
if ($file["file_name"] != "") {
list($width, $height, $type, $attr) = getimagesize($file["path"].'original/'.$file["file_name"]);
if($height < $width){
$imgset = "width=680px";
}else{
$imgset = "height=580px";
}
if($paging_count == 8){
$photo_side_list .= '
';
}
$photo_main = '
';
$photo_side = '
';
$photo_main_list .= '
'.$row['photo_content_'.$i].'
';
$photo_side_list .= '
'.$photo_side.'
'.substr($row['photo_content_'.$i],0,25).((strlen($row['photo_content_'.$i]) > 25)?'...':'').'
';
$paging_count ++;
}
}
//$photo_side_list .='
';
//echo htmlspecialchars($photo_side_list);
?>
Vbond
$myBasePath =$_SERVER['PHP_SELF'];
//echo "path=".$myBasePath;
$foundpos = strrpos ($myBasePath, "/");
//echo "
found =".$foundpos;
$tmppage = "".substr($myBasePath, $foundpos+1);
$tmppage=str_replace('.php','',$tmppage);
//echo "
found =".$tmppage;
if($_SERVER['QUERY_STRING']!=""){
// $tmppage.="?".$_SERVER['QUERY_STRING'];
}
$bannertype=$tmppage;
?>
require_once("./common.inc.php");
?>
CLIENT NAME
=$row['client_name']?>
YEAR
=$row['year']?>
WORK NATURE
=$row['work_nature']?>
DESCRIPTION
=preg_replace('#\n#','
',$row['e_content'])?>