File: C:/xampp/htdocs/FograCT1/rankDP16.php
<?php
//session_start();
?>
<?php
/*
All source code copyright and proprietary Melonfire, 2002. All content, brand names and trademarks copyright and proprietary Melonfire, 2002. All rights reserved. Copyright infringement is a violation of law.
This source code is provided with NO WARRANTY WHATSOEVER. It is produced and meant for illustrative purposes only, and is NOT recommended for use in production environments.
Read more articles like this one at http://www.melonfire.com/community/columns/trog/ and http://www.melonfire.com/
*/
// add.php - add a new press release
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Fogra Production </title>
<style type="text/css">
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
</style>
<script src="../../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<style type="text/css">
body,td,th {
font-size: 12px;
}
</style>
<basefont face="Verdana">
</head>
<body vlink="#0000FF">
<!-- standard page header begins -->
<a name="DETAILS"></a>
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td></td>
</tr>
<tr>
<td bgcolor="Navy"><font size="-1" color="White"><b>PSA Production : List</b></font></td>
</tr>
</table>
<!-- standard page header ends -->
<p>
<table style="width=:100%; text-align:left;" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<font size="-1">
<td style="width:100px;">date</td>
<td style="width:76px;">Job id</td>
<td style="width:250px;">file name</td>
<td style="width:76px;">Score</td>
<td style="width:100px;">Remark</td>
</font>
</tr>
</tbody>
</table>
<?php
error_reporting(0);
$host="127.0.0.1";
$user="root";
$pass="fredsql";
$db="tvicheck-st";
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
mysql_query("SET NAMES 'utf8'");
//$link = mssql_connect("MACBOOK7", "sa", "fred5697");
mysql_select_db($db) or die ("Unable to select database!");
// generate and execute query
$query = "SELECT * from dptool order by id desc";
//echo $query;
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
// if records present
// iterate iii through resultset
// print title with links to edit and delete scripts
while($row = mysql_fetch_object($result))
{
?>
<table style="width=:100%; text-align:left;" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<td style="width:100px;"><?php echo $row->date;?> </td>
<td style="width:76px;"><?php echo $row->po; ?> </td>
<td style="width:250px;"> <a href="tvireportDP16.php?tvifile=<?php echo $row->filename;?> &po=<?php echo $row->po;?>&sNo=<?php echo $row->sNo;?>&target=<?php echo $row->target;?>&press=<?php echo $row->press;?>&paper=<?php echo $row->paper;?>&date=<?php echo $row->ddate;?>">
<?php echo $row->filename;?> </a> </td>
<td style="width:76px;"><?php echo round($row->score,2); ?> </td>
<td style="width:100px;"><?php echo $row->Fscore; ?> </td>
</tr>
</tbody>
</table>
<p>
<?php
}
mysql_close($connection);
?>
<!-- standard page footer begins -->
<p>
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="center"><font size="-2">Everything here is copyright © <a href="http://www.fredkuo.idv.tw/wordpress/">Fred Kuo</a>, 2010. All rights reserved.<br> <a href="http://www.fredkuo.idv.tw/wordpress/?tag=fogra">Read more.</a></td>
</tr>
</table>
<!-- standard page footer ends -->
<script type="text/javascript">
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../../SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html>