Current File : /home/inlingua/public_html/sensoriumpsychologists.com/diagnostics/admin/treatment_codes.php |
<?php require_once("../franchise_between/admin_constants.php");?>
<?php require_once("../franchise_between/check_admin.php");?>
<?php require_once("../franchise_between/user_details_msg_setup.php");?>
<?php require_once("../franchise_back/connection.php");?>
<?php require_once("../franchise_back/database_admin.php");?>
<?php require_once("../franchise_back/validate_admin.php");?>
<?php require_once("../franchise_between/admin.php");?>
<?php
$page_no=0;
$pages_return=0;
if(isset($_GET['page_no']))
{
$page_no = $_GET['page_no'];
}
$fetch_obj=new admin;
$result=$fetch_obj->all_treatment_codes($page_no,$pages_return);
?>
<!DOCTYPE html>
<html>
<head>
<?php require("common/head_links.php");?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php require("common/header.php");?>
<?php require("common/left_side_bar.php");?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
All Treatment Codes
</h1>
</section>
<form action="" method="get" role="form" class="form-inline" name="filter_form" onSubmit="return submit_form()">
<input type="hidden" name="page_no" id="page_no" value="<?=$page_no?>" />
</form>
<!-- Main content -->
<section class="content">
<div class="row" style="margin-top:20px;">
<div class="col-xs-12">
<div class="box box-primary">
<div class="box-body table-responsive">
<table id="example2" class="table table-bordered table-hover">
<thead>
<tr>
<th style="width:30px;">S.NO</th>
<th>CODE</th>
</tr>
</thead>
<tbody>
<?php
if($result==="not found")
{
?>
<tr>
<td colspan="6" style="color:#F00;">No records found...</td>
</tr>
<?php
}
else
{
$x=1;
while($DATA = $result->fetch_assoc())
{
$sno=$page_no*PER_PAGE_TREATMENT_CODES+$x;
?>
<tr>
<td><?php echo $sno; ?></td>
<td><?php echo "<a href=\"treatment_stds.php?code=".$DATA['code']."\">".$DATA['code']."</a>";?></td>
</tr>
<?php
$x++;
}
}
?>
</tbody>
</table>
</div>
<!-- /.box-body -->
<?php
if($pages_return>1)
{
?>
<div class="box-footer clearfix">
<ul class="pagination pagination-sm no-margin pull-right">
<?php
if($page_no==0)
{
echo("<li class=\"disabled\"><a href=\"#\">«</a></li>");
}
else
{
echo("<li><a href=\"javascript:submit_form_page_no('".($page_no-1)."')\">«</a></li>");
}
?>
<?php
for($i=1;$i<=$pages_return;$i++)
{
$j=$i-1;
echo("<li");
if($j==$page_no)echo(" class=\"active\"");
echo("><a href=\"javascript:submit_form_page_no('".$j."')\">".$i."</a></li>");
}
?>
<?php
if(($page_no+1)==$pages_return)
{
echo("<li class=\"disabled\"><a href=\"#\">»</a></li>");
}
else
{
echo("<li><a href=\"javascript:submit_form_page_no('".($page_no+1)."')\">»</a></li>");
}
?>
</ul>
</div>
<?php
}
?>
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
<?php require("common/footer.php");?>
</div><!-- ./wrapper -->
<?php require("common/footer_links.php");?>
<script>
function submit_form_page_no(temp_val)
{
$("#page_no").val(temp_val);
submit_form();
}
function submit_form()
{
$("#blackout").css({'visibility':'visible'});
document.filter_form.submit();
}
</script>
</body>
</html>