<?php
 
session_start();
header("Content-type: text/html; charset=".$_SESSION['encodingmode']);
if($_SESSION['dbName']==""){
header("location:../index.php");
}


include("config.inc.php");
include("function.inc.php");



$connection = mysql_connect($config['dbServer'],$config['dbUser'],$config['dbPass']) or die("Could not connect to DB");
mysql_select_db($_SESSION['dbName'],$connection) or die("Could not find DB");

if(	$_SESSION['encodingmode'] == 'utf8' || $_SESSION['encodingmode'] == 'utf-8'){
	mysql_query("SET NAMES 'utf8'"); 
	mysql_query('SET CHARACTER SET utf8'); 
	mysql_set_charset('utf8', $connection);
}
   

print <<<HERE

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 


<link rel="stylesheet" type="text/css" media="all" href="css-v2/style.css">
<script type="text/javascript" language="javascript">
 
function SetSlip(){
	document.SlipPass.action='Form_SlipPass_actions.php?txtKeyword='+document.SlipPass.SlipNo.value;;
	document.itemLocations.submit();
}

           

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Slip Pass</title>

<style type="text/css">

body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
}
body {
	margin-top: 2px;
	margin-left: 1px;
}
a:link {
	text-decoration: none;
	color: #0000FF;
}
a:visited {
	text-decoration: none;
	color: #0000FF;
}
a:hover {
	text-decoration: none;
	color: #0000FF;
}
a:active {
	text-decoration: none;
	color: #0000FF;
}

.style12 {
	font-size: 9px;
	color: #999999;
	font-weight: bold;
}
.style15 {color: #5151FF; font-size: 10px;}
.style16 {
	font-size: 16px;
	color: #FF0000;
	font-weight: bold;
	font-family: "Times New Roman", Times, serif;
}
.style17 {font-size: 9px}
.style25 {color: #999999; font-weight: bold; font-size: 10px; }
.style26 {color: #FF0000}
.style27 {color: #999999 ;font-size: 10px;}
.style28 {color: #FFFFFF ;font-size: 10px;}

</style>

<link type="text/css" rel="stylesheet" href="dhtmlgoodies_calendar.css?random=20051112" media="screen"></LINK>
<SCRIPT type="text/javascript" src="dhtmlgoodies_calendar.js?random=20060118"></script>

</head>
<body >
<form name='SlipPass' method='post'> 
HERE;


 
//$style= "style=' background-color:#4069A7; color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;'";

echo"<table cellpadding='0' cellspacing='0' border='0'  align='center' class='layout-width'>";
include_once("header.php"); 


echo" <tr style='height:26px;'>
		<td  valign='top' id='content-top'>
			<table border='0' cellpadding='0' cellspacing='0' style='table-layout:fixed; height:26px;' class='layout-width'>
			<tr style='height:26px;'>
				<td style='width:38px; height:26px;'>&nbsp;</td>
				<td valign='middle' style='width:300px; height:26px;'><span class='title'>Slip PAss</span></td>
				
			</tr></table>
		</td>
	  </tr>";

// <td class='message' valign='middle' style='height:26px;'>".htmlspecialchars($message, ENT_QUOTES)."</td>
echo"<tr>
		<td  height='34'  valign='top' id='content-top2'>
			<table border='0' cellpadding='0' cellspacing='0' class='layout-width'>
			<tr>
				<td width='38'  height='34'>&nbsp;</td>
				 <td align='left' width='260px'>
	 </tr>";
echo"	</table>";
echo"</td></tr>";

echo"<tr><td id='content-body'>
<table border='0'  align='center' valign='top' width=100% class='tablecontent'>
	<col width=65%>";
	
echo"   <tr bgcolor='#F7F7F7'><td valign='top'>";	 
	  
echo"<table border='0' style='table-layout:fixed' align='left' valign='top'>
		<col width=120>
		<col width=120>
		<col width=80>
		<col width=80>
		<col width=80>
		<col width=80> <col width=80>";
	  
	  
	echo"<tr bgcolor='#F7F7F7' height='25'>
		<td valign='center' align='left' ><span class='style1'> Slip No. <span class='style26'>*</span></span></td>";
		
		echo"
		<td align='left' colspan = '4'>
		<input type='text' name='SlipNo' value='' style='font-size:12px; width:100px; height:18px;'  onchange='SetSlip();' />
		 
	</tr>";
			 
echo"</table></td></tr><tr>";

echo"<td  valign='top'>";
 
echo" </tr></table>";


echo"</td></tr>";		
		 
print <<< HERE
       </td>
      </tr><tr height='30'><td align='center' id='content-bottom' ></td></tr>
	  </table>
HERE;

if($message != ''){
	echo"<script>
		alert('".$message."');
		

	</script>";
}
print <<<HERE
</form>


</body>

HERE;

?>














