// 会社概要ページ
require("../load/functions.php") ;
require("../load/db_load.php") ;
require("../load/php_setting.php") ;
$id = "" ; $itemid = "" ; $cID= "" ;
if ($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $k => $v){
if (!is_array($v)){
if (get_magic_quotes_gpc()) {
$v = stripslashes($v) ;
}
$v = f_escape($v);
$$k = $v;
}
}
}
if (isset($_GET["cID"])){ $cID = f_escape($_GET["cID"]) ; }
require("page_parts/login_check.php") ;
require("page_parts/header_a.php") ;
if ($prof_title){ $this_title = $prof_title ; } else { $this_title = "プロフィール" ; }
?>
-
require("page_parts/header_b.php") ;
$sql = "SELECT * FROM prof WHERE cID = '".$cID."' ;" ;
$res = mysql_query($sql, $conn) or die(mysql_error());
$row = mysql_fetch_array($res, MYSQL_ASSOC) ;
$prof_title = "会社概要" ;
if (isset($row["title"])){
if ($row["title"]){ $prof_title = $row["title"] ; }
}
$prof_subcopy = "" ;
if (isset($row["subcopy"])){
if ($row["subcopy"]){ $prof_subcopy = $row["subcopy"] ; }
}
?>
if ($row["jun"]){
$jun_arr = explode("<+>",$row["jun"]) ;
array_values($jun_arr) ;
sort($jun_arr) ;
} else {
$jun_arr = array(
"001<>kaisya/会社名<>表示","002<>daihyo/代表者<>表示","003<>addr/所在地<>表示",
"004<>tel/TEL<>表示","005<>fax/FAX<>表示","006<>setYM/設立<>表示","007<>sihon/資本金<>表示","008<>member/従業員数<>表示",
"009<>gyoumu/業務内容<>表示","010<>tokui/得意分野<>表示","011<>setubi/主要設備<>表示","012<>tanto/担当者<>表示",
"999<>ex1/<>表示","999<>ex2/<>表示","999<>ex3/<>表示","999<>ex4/<>表示"
) ;
}
foreach($jun_arr as $v){
$n = explode("<>",$v) ;
$this_jun = intval($n[0]) ; if ($this_jun == 999){ $this_jun = "" ; }
$n1_arr = explode("/",$n[1]) ;
$this_kigou = $n1_arr[0] ;
$this_title = $n1_arr[1] ;
$this_disp = $n[2] ;
if ($this_kigou){
if (($this_disp == "表示")and(($this_title)or($row[$this_kigou]))){
echo "\n" ;
echo "".$this_title." | \n" ;
echo "\n" ;
if (($this_kigou=="gyoumu")or($this_kigou=="tokui")or($this_kigou=="setubi")){
$this_val_arr = explode("<>",$row[$this_kigou]) ;
foreach($this_val_arr as $v){
if ($v){ echo $v." \n" ; }
}
} else {
echo $row[$this_kigou] ;
}
echo " |
\n" ;
}
}
}
?>
- if ($row["img1"]){ ?>
} ?>
- if ($row["img2"]){ ?>
} ?>
- if ($row["img3"]){ ?>
} ?>
- if ($row["img4"]){ ?>
} ?>
会社紹介
require("page_parts/footer.php") ;
mysql_close($conn);
?>