ESH/interim_ohc_selection.php
2024-10-23 18:28:06 +05:30

150 lines
3.9 KiB
PHP

<?php
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
include('techsyn_header_blank.php');
//echo $_SESSION['role_home_page'];
//echo "<script>alert('".$_SESSION['RoleCode']."')</script>";
?>
<link rel="stylesheet" href="css/wizard.css">
<!-- Main Content Container for side bar and body-->
<div class="main-container ace-save-state" id="main-container">
<script type="text/javascript">
try {
ace.settings.loadState('main-container')
} catch (e) {}
</script>
<div class="main-content">
<div class="main-content-inner">
<div class="page-content">
<div class="row ">
<div class="col-sm-9 wizard-card box box-danger" style="width: 40%; margin-top: 10%;margin-left:30%; background-color:#fff">
<h3 style="text-align: center">Please Select the Center you want to login to</h3>
<form method="post" action="review_ohc_selection.php">
<input type="hidden" name="hide" value="1">
<input type="hidden" name="current_ohcttype" id="current_ohcttype" value="">
<?php
$sql = "select * from ohc_type where ohc_type_id in " . getCommaSeperatedValuesToInClause($_SESSION['ohctypes']);
// echo $sql;
// echo $_SESSION['ohctypes'];
$result = mysqli_query($conn, $sql);
$num = @mysqli_num_rows($result);
if ($num > 0) {
while ($row = @mysqli_fetch_array($result)) {
?>
<div class="col-sm-6">
<div class="choice" data-toggle="wizard-radio" rel="tooltip" title="OPDs" data-original-title="OPDs" onClick="">
<input type="radio" name="ohc_type" value="<?php echo $row['ohc_type_id'] ?>">
<div class="icon <?php echo $row['icon_color'] ?>" style="background-color:<?php echo $row['icon_color'] ?> ;">
<!-- <img style="height: 96px;border-radius: 50%;" src="data:<?php echo $row['image_type']?>;base64,<?php echo base64_encode( $row['ohc_logo'] )?>" alt="img" > -->
</div>
<h6>
<span class="info-box-text"><?php echo $row['ohc_type_name'] ?></span>
<span class="info-box-number"></span>
</h6>
</div>
</div>
<?php
}
}
?>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
$(document).ready(function() {
$(".choice").on("click", function() {
var v = $(this).closest("div").find("input[name='ohc_type']").attr("checked", "checked").val()
$("#current_ohcttype").val(v);
document.forms[0].submit();
});
});
</script>
<style>
* {
text-transform: none !important;
font-family: Arial, Helvetica, sans-serif;
}
</style>