HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/ctrack.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>job tracker </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>Job Tracker : 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:76px;">id</td> 
<td style="width:100px;">company</td>
<td style="width:150px;">date</td>
<td style="width:100px;">area</td> 
<td style="width:100px;">ip</td> 
<td style="width:76px;">CT1</td>
<td style="width:76px;">CT9</td>
<td style="width:76px;">CT12</td>
<td style="width:76px;">CT21</td>
<td style="width:76px;">CT23</td>
<td style="width:76px;">CT84</td>
<td style="width:76px;">SCCA</td>
<td style="width:76px;">DL</td>
<td style="width:76px;">DP16</td>
<td style="width:100px;">Ltool</td>
<td style="width:100px;">Total</td>
</font>
</tr>
</tbody>
</table>

<?php
//error_reporting(0);

$company=$_GET['company'];


if ($company=='') {
$company='web';}
else {
$company=$company;
}


$host="127.0.0.1";
$user="root";
$pass="fredsql";
$db="tvicheck-st";

$connection = mysqli_connect($host, $user, $pass) or die ("Unable to connect!");
if( !mysqli_select_db($connection, $db)) {
  die ("無法選擇資料庫");
}
mysqli_query( $connection, "SET NAMES 'utf8'");
$query = "SELECT * FROM pbnTrack WHERE company='$company' order by id desc";
//$query = "SELECT  * from pbnTrack group by company order by id asc";
//$query = "SELECT DISTINCT comapny,  from pbnTrack  order by id desc";
//echo $query;
//echo $query;
$result =  mysqli_query($connection, $query);

// if records present

	// iterate iii through resultset
	// print title with links to edit and delete scripts
	while($row = mysqli_fetch_object($result))
	{

	?>
	


<table style="width=:100%; text-align:left;" cellspacing="0" cellpadding="5">
<tbody>	
	<tr>
<td style="width:76;"><?php  echo $row->id;?> </td>
	<td style="width:100px;"><?php  echo $row->company; ?> </a></td>
	<td style="width:150px;"><?php  echo $row->lDate; ?> </td>
	<td style="width:100px;"><?php  echo $row->area; ?> </td>
	<td style="width:100px;"><?php  echo $row->ip; ?> </td>
	<td style="width:76;"><?php  echo $row->CT1; ?> </td>
	<td style="width:76;"><?php  echo $row->CT9; ?> </td>
	<td style="width:76;"><?php  echo $row->CT12; ?> </td>
	<td style="width:76;"><?php  echo $row->CT21; ?> </td>
	<td style="width:76;"><?php  echo $row->CT23; ?> </td>
	<td style="width:76;"><?php  echo $row->CT84; ?> </td>
	<td style="width:76;"><?php  echo $row->SCCA; ?> </td>
	<td style="width:76;"><?php  echo $row->DL; ?> </td>
	<td style="width:76;"><?php  echo $row->DP6; ?> </td>
	<td style="width:76;"><?php  echo $row->DP16; ?> </td>
	<td style="width:76;"><?php  echo $row->lTool; ?> </td>
	<?php
	if ($row->lTool=='CT9') {
		$tool="../FograCT1/rankCT9.php?";
	}
	elseif ($row->lTool=='CT84') {
		$tool="../FograCT1/rankCT84.php?";
	}
	elseif ($row->lTool=='CT23') {
		$tool="../FograCT1/rankCT23.php?";
	}
	elseif ($row->lTool=='CT25') {
		$tool="../FograCT1/rankCT25.php?";
	}
	elseif ($row->lTool=='CT72') {
		$tool="../FograCT1/rankCT72.php?";
	}
	elseif ($row->lTool=='CT125') {
		$tool="../FograCT1/rankCT125.php?";
	}
		elseif ($row->lTool=='DP6') {
		$tool="../FograCT1/rankDP6.php?";
	}
			elseif ($row->lTool=='DP16') {
		$tool="../FograCT1/rankDP16.php?";
	}
	?>
	<td style="width:100px;"><a href="<?php echo $tool;?>company=<?php echo $row->company; ?>"><?php  echo $row->lTool; ?> </a></td>
	<?php
	
	?>
	
	<td style="width:100;"><?php  echo $row->Total; ?> </td>

	</tr>
</tbody>
</table>
	
	<p>
<?php	
}
mysqli_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 &copy; <a href="http://www.fredkuo.idv.tw/wordpress/">Fred Kuo</a>, 2019. 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>