Execute("select * from {$PRE_DB_TABLE}web where prgid = '$prgid'") or die('setup SQL error'); $row_layout = $res_layout->FetchRow(); $web_style = 'style' . $row_layout["web_css_kind"]; if($row_layout["web_col_kind"] == 4) // 左 中 右 $layout_colspan = 3; elseif($row_layout["web_col_kind"] == 3) // 左 中 $layout_colspan = 2; elseif($row_layout["web_col_kind"] == 2) // 中 右 $layout_colspan = 2; elseif($row_layout["web_col_kind"] == 1) // 中 $layout_colspan = 1; ?> <?php echo $row_layout["web_web_name"] ?>
" valign="top">
Execute("select * from {$PRE_DB_TABLE}web_area where ara_pos = 'top' and ara_hidden='0' and prgid='$prgid' order by ara_sort asc"); while($row_top = $res_top->FetchRow()) { $trans_title_img = '../data/global/web/' .$row_top["ara_body_bg_img"]; $ext = explode(".",$row_top["ara_body_bg_img"]); if(strtolower($ext[count($ext)-1]) == "swf"){ @$swf_size = getimagesize($trans_title_img); $scr_type = 'swf'; $scr_top = ""; $scr_top .= ""; $scr_top .= ""; $scr_top .= ""; }else{ @$pic_size = getimagesize($trans_title_img); $scr_type = 'pic'; $scr_top = $SELF_URL . 'data/global/web/' .$row_top["ara_body_bg_img"]; } if($row_top["ara_body_show"] == 1) { if($scr_type == 'swf'){ $table_body_height = ($row_top["ara_body_height"] != 0) ? " height = \"{$row_top["ara_body_height"]}\" " : $swf_size[3] ; echo ""; } } ?>
"; echo $scr_top; if($row_top["ara_body_content"] == '') echo $row_top["ara_body_content"]; }else{ //pic $table_body_height = ($row_top["ara_body_height"] != 0) ? " height = \"{$row_top["ara_body_height"]}\" " : $pic_size[3] ; echo "
"; if($row_top["ara_body_content"] != '') echo $row_top["ara_body_content"]; } echo "
::: EOD; $accesskey_center=<<::: EOD; $accesskey_right=<<::: EOD; //上層超連結 $res_toplink = $conn->Execute("select * from {$PRE_DB_TABLE}web_area where ara_pos = 'top_link' and ara_hidden='0' and prgid='$prgid' order by ara_sort asc"); while($row_toplink = $res_toplink->FetchRow()){ if($row_toplink["ara_body_bg_img"] == '' and $row_toplink["ara_body_bg_color"] == ''){ echo ""; } //--------------------------------------------------------------------------------------------------------- ?>
"; }else{ $scr_top_link = $SELF_URL . 'data/web/' . $row_toplink["ara_body_bg_img"]; echo "
"; } if($row_toplink["ara_body_content"] != ''){ echo $row_toplink["ara_body_content"]; } echo "