<?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 Role you want to login to</h3> <form method="post" action="review_role_selection.php"> <input type="hidden" name="hide" value="1"> <input type="hidden" name="RoleId" id="RoleId" value=""> <?php error_log("roles ".$_SESSION['roleids']); $sql = "select * from role_master where role_id in " . getCommaSeperatedValuesToInClause($_SESSION['roleids']); // 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="role_id" value="<?php echo $row['role_id'] ?>"> <?php if ($row['role_code'] != 'ELAB') { ?> <div class="icon <?php echo $row['icon_color'] ?>"> <i class="ace-icon <?php echo $row['icon_text'] ?>"></i> </div> <?php } else { ?> <div class="icon"> <img src="images/microscope.png" style="width:inherit;" alt=""> </div> <?php } ?> <h6> <span class="info-box-text"><?php echo $row['role_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='role_id']").attr("checked", "checked").val() $("#Role_Id").val(v); document.forms[0].submit(); }); }); </script> <style> .main-container:before, .page-content { background-color: <?php echo getTableFieldValue('ohc_type', 'background_color', 'ohc_type_id', $_SESSION["current_ohcttype"]) ?>; } * { text-transform: none !important; font-family: Arial, Helvetica, sans-serif; } </style>