<?php
$section = 'Products';
$title = 'Product Info';
@$page = $_GET['id'];
include('header.php');
require_once('include_classes.inc');
$tabOBJ = new  Med_functions();    
?>

<div id="body">
<div class="wrap">

<h2><?=$title?></h2>

<ul id="subnav">
	<li id="subnav-weekly"<?=(!isset($page))?' class="here"':'';?>><a href="pricesigns.php">Info</a></li>
	<li id="subnav-special"<?=($page=='special')?' class="here"':'';?>><a href="#" >Special Events</a></li> <!-- pricesigns.php?id=special  -->
	<li id="subnav-promotions"<?=($page=='promotions')?' class="here"':'';?>><a href="# ">Promotions</a></li> <!--pricesigns.php?id=promotions  -->
	<li id="subnav-library"<?=($page=='library')?' class="here"':'';?>><a href="#">Apointments</a></li>  <!--pricesigns.php?id=library  -->
</ul>

<?php if ($page == 'promotions'): ?>
<div id="create"><a class="create" href="custom.php">Create sign</a></div>
<?php endif; ?>



<form method="post" id="frmPricesignsFilter">
	
</form>

<form method="post" id="frmPricesignsPreview">
<table class="style sort" cellspacing="0">
<thead>
	<tr>
		<?php
			$result  = $tabOBJ->getTableHeading();
			 while ($row = $result->fetch_field()) {
		?> 
		          <th scope="col" >
		          <?php printf("%s\n", $row->name);?>
		          </th>
		<?php } ?>
		
		</tr>
</thead>
<tbody>
	<?php 
		  $v_col_count=	$result->field_count;
		   while ($row = $result->fetch_row()) {
    ?> 
	<tr<?=(!isset($page))?' class="new"':'';?>>
		<?php for($i=0;$i<$v_col_count;$i++){ ?>
		<td class="center">
			<?php printf ("%s\n", $row[$i]); ?>
		</td>
		<?php } ?>
	</tr>
	<?php } ?> 
</tbody>
</table>
<!-- 
<ul class="pagination">
	<li class="previous"><a href="#">Previous</a></li>
	<li class="here">1</li>
	<li><a href="#">2</a></li>
	<li><a href="#">3</a></li>
	<li class="next"><a href="#">Next</a></li>
</ul>
 -->
<div class="buttonrow add">
	<button type="button" class="remove">Remove</button>
	<button type="button" class="add">Add </button>
</div>
</form>

</div><!--/wrap-->
</div><!--/body-->

<?php include('footer.php'); ?>