| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/comservices/backend/ |
Upload File : |
<?php require_once('../Connections/comservice.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['inform_date'])) {
$colname_Recordset1 = $_GET['inform_date'];
}
mysql_select_db($database_comservice, $comservice);
$query_Recordset1 = sprintf("SELECT * FROM com_inform WHERE inform_date LIKE %s ORDER BY inform_date ASC", GetSQLValueString("%" . $colname_Recordset1, "date"));
$Recordset1 = mysql_query($query_Recordset1, $comservice) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = "-1";
if (isset($_POST['b_date'])) {
$totalRows_Recordset1 = $_POST['b_date'];
}
$colname_Recordset1 = "-1";
if (isset($_POST['e_date'])) {
$totalRows_Recordset1 = $_POST['e_date'];
}
mysql_select_db($database_comservice, $comservice);
$query_Recordset1 = sprintf("SELECT * FROM com_inform WHERE inform_date LIKE %s ORDER BY inform_date ASC", GetSQLValueString("%" . $colname_Recordset1 . "%", "date"));
$Recordset1 = mysql_query($query_Recordset1, $comservice) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);$colname_Recordset1 = "-1";
if (isset($_POST['b_date'])) {
$colname_Recordset1 = $_POST['b_date'];
}
mysql_select_db($database_comservice, $comservice);
$query_Recordset1 = sprintf("SELECT * FROM com_inform WHERE inform_date LIKE %s ORDER BY inform_date ASC", GetSQLValueString("%" . $colname_Recordset1 . "%", "date"));
$Recordset1 = mysql_query($query_Recordset1, $comservice) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ระบบแจ้งซ่อมครุภัณฑ์คอมพิวเตอร์ออนไลน์ คณะวิทยาการจัดการ</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.6.min.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.8.12.custom.min.js" type="text/javascript"></script>
<link href="css/smoothness/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document) .ready(function() {
$("#b_date, #e_date") .datepicker({
dateFormat : "yy-mm-dd"
});
});
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#EEEEEE"><img src="../img/logo.gif" width="70" /><br />
<h3> ระบบแจ้งซ่อมครุภัณฑ์คอมพิวเตอร์ออนไลน์ คณะวิทยาการจัดการ </h3></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="5" cellspacing="5">
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF"><font color="#3366FF"><span class="glyphicon glyphicon-user"></span> ยินดีต้อนรับคุณ : </font> <? print " Date : " . date("D d F Y " ); ?></td>
</tr>
<tr>
<td width="26%" align="left" valign="top" bgcolor="#FFFFFF"><? include ("menuadmin1.php")?></td>
<td width="74%" align="center" valign="top" bgcolor="#FFFFFF"><form id="frmreport" name="frmreport" method="post" action="report_case1.php">
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" align="right">วันที่</td>
<td width="31%"><label for="b_date"></label>
<input name="b_date" type="text" id="b_date" size="30" readonly="readonly" /></td>
<td width="3%" align="right">ถึง </td>
<td width="44%"><label for="e_date"></label>
<input name="e_date" type="text" id="e_date" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="right"> </td>
<td><label for="member_name"></label></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="submit" class="btn btn-primary btn-md">Report</button>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"> </td>
<td align="center" bgcolor="#FFFFFF">
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td>inform_id</td>
<td>inform_date</td>
<td>item_id</td>
<td>device_name</td>
<td>inform_location</td>
<td>job_type</td>
<td>inform_detail</td>
<td>inform_img</td>
<td>member_name</td>
<td>admin_id</td>
<td>inform_detailrepair</td>
<td>inform_status</td>
<td>inform_remark</td>
<td>date_closeorder</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['inform_id']; ?></td>
<td><?php echo $row_Recordset1['inform_date']; ?></td>
<td><?php echo $row_Recordset1['item_id']; ?></td>
<td><?php echo $row_Recordset1['device_name']; ?></td>
<td><?php echo $row_Recordset1['inform_location']; ?></td>
<td><?php echo $row_Recordset1['job_type']; ?></td>
<td><?php echo $row_Recordset1['inform_detail']; ?></td>
<td><?php echo $row_Recordset1['inform_img']; ?></td>
<td><?php echo $row_Recordset1['member_name']; ?></td>
<td><?php echo $row_Recordset1['admin_id']; ?></td>
<td><?php echo $row_Recordset1['inform_detailrepair']; ?></td>
<td><?php echo $row_Recordset1['inform_status']; ?></td>
<td><?php echo $row_Recordset1['inform_remark']; ?></td>
<td><?php echo $row_Recordset1['date_closeorder']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"> </td>
<td align="center" bgcolor="#FFFFFF">
</td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"> </td>
<td align="center" bgcolor="#FFFFFF"><strong><font color="#FF0000">รวมรายการแจ้งซ่อมทั้งสิ้น รายการ </font></strong></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"> </td>
<td align="center" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="#DFDFD9"><span class="glyphicon glyphicon-log-out"></span> </td>
</tr>
</table>
<?php
include("../footer.php") ?>
<?php
mysql_free_result($Recordset1);
?>
</body>
</html>