'.$value.'
';
}
$list .= 'require_once("./common.inc.php");
getget();
getpost();
$sql = "SELECT * FROM `category` WHERE `display` = 1 order by `sorting`";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
$list = '';
while($row=$db->fetch_array($result)){
$file = get_attachment("category", $row["id"], "photo1");
if ($file["file_name"] != "") {
list($width, $height, $type, $attr) = getimagesize($file["path"].$file["file_name"]);
if($height>$width){ $imgset = "width=200";
}else{ $imgset = "height=200"; }
$photo = '';
} else {
$photo = '';
}
$temp_str = preg_replace('#\n#','
',$row['e_content']);
$content_array = explode('
',$temp_str);
$list .='