?? job_jl.php
字號:
<?
session_start();
if (!empty($downfile)) {
if (!@file_exists($downfile)) {
echo "<script>alert('你要下的文件不存在!')</script>";
//echo "下載出錯";
} else {
$filename = basename($downfile);
$filename_info = explode('.', $filename);
$fileext = $filename_info[count($filename_info)-1];
header('Content-type: application/x-'.$fileext);
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Description: PHP Generated Data');
header('Content-Length: '.filesize($downfile));
@readfile($downfile);
exit;
}
}
include "middle.php";
require_once "../MessageBox.php";
$Message = new MessageBox;
?>
<link href="../css/a1.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0">
<table width="789" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="../images/home_12.jpg" width="789" height="12"></td>
</tr>
<tr>
<td width="776" valign="top">
<?php
if ( !empty($_SESSION["userid"]) ) {
include "../datasource.inc.php";
$page = $_REQUEST['page'];
$id = $_REQUEST['id'];
?>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD vAlign=top><FONT color=#565656> <IMG height=14
src="../images/closedfold.gif" width=14> 您當前的位置<BR> <IMG
height=15 src="../images/bar.gif" width=15> <IMG height=14
src="../images/openfold.gif" width=14> 相關資料共享</FONT></TD>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0 width=766 align="right">
<tr><td width=766 bgcolor=#3494d4 height=1></td>
</tr>
</table>
<?php
switch ($page){
default:
$sql = "select * from job_fl1 order by id asc;";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result) ) {
echo "<div align=right><table border=0 cellpadding=0 cellspacing=1 bgcolor=#3494d4 width=776>";
echo "<tr height=24>";
echo "<td colspan=5 bgColor=#3494d4><font color=#ffffff><b>$row[fl]</b></font></td>";
echo "</tr><br>";
$sql1 = "select * from job_jl where job_fl='$row[fl]' order by id asc;";
$result1 = mysql_query($sql1);
$num1 = mysql_num_rows($result1);
if ($num1>0) {
while ($row1 = mysql_fetch_array($result1) ) {
echo "<tr bgcolor=ffffff height=22>";
echo "<td width=400>$row1[job_name]</td>";
echo "<td width=193 align=center><a href=# onClick=\"window.open('job_jl_show.php?id=$row[id]',1,'top=50,left=50,height=450,width=450,scrollbars=yes')\">查看</td>";
$path0 = "../upload-files";
$path1 = $row1['job_path'];
$filepath = "$path0/$path1";
echo "<td width=183 align=center><a href=\"?downfile=".urlencode($filepath)."\">下載</a></td>";
echo "</tr>";
}
}
}
echo "</div></table><br>";
break;
}
} else {
$Message->setMessage("對不起,您沒有權限進入后臺管理!","index.php");
$Message->showMessage();
}
?>
</td>
<td width="13" align="right" background="../images/home_16.jpg" height="457"> </td>
</tr>
<tr>
<td height="8" colspan="2" valign="top"><img src="../images/home_24.jpg" width="789" height="8"></td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -