<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header  alert alert-info">Tally Debit</h1>
                </div>
                <!--end page header -->
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Details
                        </div>
                        <div class="panel-body">
                            <div class="row">
 <input type="button" value="Print" onclick="PrintElem('#mydiv')"  style="margin:20px;">
  <div class="alert alert-info">Tally For Debit</div>
    <form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
   <div id="mydiv">
   <div class="table-responsive">
  <table class="table table-bordered table-hover"><thead>
  <tr class="info">
						<th>Particulars</th>
						<th>Amount</th>
											
					</tr> </thead>
					 <tbody>
		<tr> <?php $sql = "SELECT SUM(debit) FROM debit";
                                    $q = mysqli_query($conn, $sql);
                                    $row7 = mysqli_fetch_array($q); ?>
		<td>Direct Expenses</td>
		<td><?php echo $row7[0];?></td> </tr>
		
	 </table>
		
			</div>
</div>
</div></div>
</div></div></div><?php include "layouts/footer.php"; ?></body></html>
