<?php
$query="SELECT order_no,reference,ord_date,contact_email,deliver_to,delivery_date,total,b.debtor_no,b.debtor_ref AS phone,b.name,b.address FROM ".$prefix."sales_orders AS a,".$prefix."debtors_master AS b WHERE a.debtor_no=b.debtor_no";
//echo $query;exit;
$resultType=mysqli_query($linkid,$query);
?>
<div id="loading_layer" style="display:none"><img src="img/ajax_loader.gif" alt="" /></div>
<?php include "templates/stylechange.php";?>
<div id="maincontainer" class="clearfix">
  <!-- header -->
  <?php include "templates/header.php"?>
  <!-- main content -->
  <?php include "modules/production-print/sales-record-history-all.php"?>
  <!-- sidebar -->
  <a href="javascript:void(0)" class="sidebar_switch on_switch ttip_r" title="Hide Sidebar">Sidebar switch</a>
  <?php include "templates/sidebar.php" ?>
  <?php include "templates/javascript-dataload.php" ?>
</div>
