""){
$filepath ="pdf/logigate.pdf";
header('Content-Disposition: attachment; filename="'.basename($filepath).'"');
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($filepath));
readfile($filepath);
} elseif ($_GET[dl3] <> ""){
$filepath ="pdf/shukka.pdf";
header('Content-Disposition: attachment; filename="'.basename($filepath).'"');
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($filepath));
readfile($filepath);
} elseif ($_GET[dl4] <> ""){
$filepath ="pdf/nyukazaiko.pdf";
header('Content-Disposition: attachment; filename="'.basename($filepath).'"');
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($filepath));
readfile($filepath);
} else {
}
header('pragma: no-cache');
header("Cache-Control: no-cache, must-revalidate");
include "func.cgi";
if ($_GET[logout] <> "") {
Logout();
}
Testecho ("SID: ".SID."
session_id(): ".session_id()."
COOKIE: ".$_COOKIE["PHPSESSID"]);
Testecho ("DATABASE: ".$databasenaming."
COMPANY: ".$company."
");
switch ($_GET[testmode]) {
case "1":
setcookie("testmode","1",time()+7200); //テストモード開始
$_SESSION[testmode] = 1; //テストモード開始
break;
case "2":
setcookie("testmode"); //テストモード終了
$_SESSION[testmode] = 2; //テストモード
break;
}
myopen();
//再チェック
SecurityCheck();
//FunctionUseCheck2();
if($userdata[roleid] == "") {
echo "";
echo "
| 現在、お知らせはありません。 | |
| ".nl2br(htmlspecialchars($data[2])); //お知らせとタイトルを表示する ?> | |
| ".$data[3];
//添付ファイルデータ取得
$strsqlfile ="SELECT info_fileid,infonum, f_name, f_disp, f_type, creater, createdate
FROM information_file
WHERE
infonum = '".$data["infonum"]."' ORDER BY info_fileid";
$resultfile=@mysql_query($strsqlfile,$my_con);
Testecho($strsqlfile);
$i = 0;
while ($filedata=@mysql_fetch_array($resultfile)) {
$i++;
if ($filedata['f_type']=='xls'){
$imagepath = $excelimage;
}elseif ($filedata['f_type']=='doc'){
$imagepath = $wordimage;
}elseif ($filedata['f_type']=='pic'){
$imagepath = $picimage;
}elseif ($filedata['f_type']=='ppt'){
$imagepath = $pptimage;
}elseif ($filedata['f_type']=='pdf'){
$imagepath = $pdfimage;
}else{
$imagepath = $noimage;
}
if (($i % 8) == 0){
$style1 = "color: blue;";
}elseif($i == $maxrow){
$style1 = "color: blue;";
}else{
$style1 = "float:left;";
}
if (!empty($data)) {
?>
>
|
| No | 商品コード | 商品名 | 規格 | 状況 |
|---|---|---|---|---|