<?php
  include "include/dbcon.php";
//  include "include/CADMIN.php";
  include "include/CPRODUCT.php";
  include "include/CORDER.php";
?>
<?php
  if( !empty($_SESSION["SESID"]) ){
?>
<html>
<head>
<style>

	.mainpage{
	  background: url("img/bg01.png");
		background-repeat: no-repeat;
		background-size:100% 100%;
	}
	
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body onLoad="getFocus()" bgcolor="#FFFFFF">

<table width="100%" height="100%" border="0" class="mainpage">
<tr>
  
  <!-- item list -->
  <td style="vertical-align: top">

  <?php
  if( empty($_GET["pid"]) ){
    include "main_itemlist.php";
  }else{
    include "main_itemphoto.php";
  }
  ?>

  </td>
  
  <!-- cart list -->
  <td style="vertical-align:top; width:310px">
    <?php
	include "main_receipt.php";
	?>
  </td>
  
  <!-- button -->
  <td style="vertical-align:top; width:200px">
  <center>

	  <table><tr><td valign="top">

		  <?php
	    include "main_keys.php";
	  ?>

	  </td></tr>
	  <tr><td height="200px" valign="bottom" align="right">

	    <a href="logout.php"><img src="img/ico_logout.png" ></a>

	  </td></tr>
	</table>
	  
</center>
  </td>
</tr>
</table>

</body>
</html>

<?php
  }else{
	$_SESSION["errmsg"] = "#ERROR:<br>PLEASE LOGIN";
	header("location: index.php");
  }
?>