Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/ombree/Admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("Includes/db.php");; $bid = $_GET['id']; $sql = "select * from tbl_co where id='$bid'"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); $sql_row = mysqli_fetch_assoc($sql_res); ?> <!doctype html> <html lang="en"> <head> <?php include 'Includes/head.php'; ?> <link href="assets/libs/select2/css/select2.min.css" rel="stylesheet" type="text/css" /> <style> .img-block img { /*margin: 15px;*/ max-height: 65px; } .img-block { position: relative; overflow: auto; } .img-block img { /*margin: 15px;*/ max-height: 65px; } .img-block button { position: absolute; right: 0px; top: 0px; font-size: 10px; border: none; background-color: #999; color: white; } </style> </head> <body data-sidebar="dark"> <!-- <body data-layout="horizontal" data-topbar="dark"> --> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'Includes/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <?php include 'Includes/sidebar.php'; ?> <!-- Sidebar --> </div> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Add Current Cases</h4> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="card"> <div class="card-body"> <h4 class="card-title"></h4> <form class="needs-validation" method="POST" action="action/carrer_obj_edit.php?id=<?php echo $bid; ?>" enctype="multipart/form-data"> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Category </label> <select class="form-select" id="cat" name="cat"> <option value="">Choose</option> <?php $new_qu = "select * from tbl_sub_category"; $new_res = mysqli_query($con, $new_qu) or die(mysqli_error($con)); while ($new_row = mysqli_fetch_assoc($new_res)) { ?> <?php if ($new_row['id'] == $sql_row['did']) { ?> <option value="<?php echo $new_row['id']; ?>" selected><?php echo $new_row['name']; ?></option> <?php } else { ?> <option value="<?php echo $new_row['id']; ?>"><?php echo $new_row['name']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Description </label> <textarea class="form-control " name="desc" id="desc" ><?php echo $sql_row['co_detail']; ?></textarea> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Surgical Experience : </label> <textarea class="form-control " name="edu_detail" id="option_text_1" ><?php echo $sql_row['edu_detail']; ?></textarea> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Skills: </label> <textarea class="form-control " name="ach_detail" id="option_text_2" ><?php echo $sql_row['ach_detail']; ?></textarea> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Achievements: </label> <textarea class="form-control " name="sur_detail" id="option_text_3"><?php echo $sql_row['sur_detail']; ?></textarea> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Education: </label> <textarea class="form-control " name="work_exp" id="option_text_4" ><?php echo $sql_row['work_exp']; ?></textarea> </div> </div> <div class="col-md-12"> <div class="mb-3"> <label for="validationCustom01" class="form-label"> Email: </label> <textarea class="form-control " name="strengths" id="option_text_5" ><?php echo $sql_row['strengths']; ?></textarea> </div> </div> <!-- <div class="col-md-12">--> <!--<div class="mb-3">--> <!-- <label for="validationCustom01" class="form-label"> PERSONAL INFORMATION : </label>--> <!-- <textarea class="form-control " name="per_info" id="option_text_6" ><?php //echo $sql_row['per_info']; ?></textarea>--> <!-- </div>--> <!--</div>--> </div> </div> </div> </div> <div> <button class="btn btn-primary" type="submit">Submit </button> </div> </form> </div> </div> <!-- end card --> <!-- end col --> </div> <!-- end row --> <!-- end row --> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <footer class="footer"> <?php include 'Includes/footer.php'; ?> </footer> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <?php include 'Includes/bscript.php'; ?> <script src="assets/libs/select2/js/select2.min.js"></script> <script src="assets/js/pages/form-advanced.init.js"></script> </body> <script type="text/javascript"> // $(".cs").hide(); $("#services").click(function() { if($(this).is(":checked")) { // alert('abc'); $(".cs").show(); } else { // alert('abcd'); } }); </script> <script type="text/javascript"> // $(".cs").hide(); $("#goods").click(function() { if($(this).is(":checked")) { $(".cs").hide(); } else { } }); </script> <script type="text/javascript"> $(document).ready(function() { var myRadio = $("input[name=itype]"); var checkedValue = myRadio.filter(":checked").val(); // alert(tpaytypecash); // alert(checkedValue); // alert(ser); if ( checkedValue == 'alllindia') { // alert("ll"); $(".cs").hide(); } else { $(".cs").show(); } }); </script> <script type="text/javascript"> $(document).ready(function() { $('#state').on('change', function() { var stateID = $(this).val(); // alert(conID); $.ajax({ type: 'POST', url: 'get_state.php', data: {city: stateID }, success: function(response) { // alert(response); $('#citys').html(response); // content.html(response); } }); }); }); </script> <script type="text/javascript"> $(document).ready(function() { $('#cat').on('change', function() { var stateID = $(this).val(); // alert(conID); $.ajax({ type: 'POST', url: 'get_sub_cate.php', data: {city: stateID }, success: function(response) { // alert(response); $('#subcat').html(response); // content.html(response); } }); }); }); </script> <script type="text/javascript"> function removeImage(selectedDiv) { var image = selectedDiv.getElementsByTagName('img')[0].src; var tmpArr = image.split("/"); var imageName = decodeURIComponent(tmpArr[tmpArr.length - 1]); var ele = document.getElementById("removeImages"); if (ele.value == "") { ele.value = imageName; } else { var tmpImg = ele.value; var IMGs = tmpImg.split(","); IMGs[IMGs.length] = imageName; ele.value = IMGs.join(","); } selectedDiv.remove(); var IMGs = document.getElementsByClassName("img-block"); // if (IMGs.length == 0) { // var imgEle = document.getElementById("images"); // imgEle.setAttribute("required", "true"); // } } </script> <script type="text/javascript"> function readImages(input, errorClass) { // console.log(errorClass); document.getElementById(errorClass).style.display = "none"; var len = input.files.length; var error = false; for (var i = 0; i < len; i++) { var filePath = input.files[i].name; var allowedExtensions = /(\.jpg|\.jpeg|\.png)$/i; if (!allowedExtensions.exec(filePath)) { document.getElementById(errorClass).style.display = "block"; input.value = ''; error = true; break; } } if (error == true) { return false; } else if (input.files && input.files[0]) { var total = input.files.length; for (i = 0; i < total; i++) { var reader = new FileReader(); reader.onload = function(e) { var newDiv = document.createElement("div"); newDiv.classList.add("img-block", "float-left"); var newimg = document.createElement("img"); newimg.setAttribute("src", e.target.result); newDiv.appendChild(newimg); document.getElementById("img-container").appendChild(newDiv); } reader.readAsDataURL(input.files[i]); } } } </script> <script type="text/javascript" src="ckeditor/ckeditor.js"></script> <script> CKEDITOR.replace('option_text_1'); CKEDITOR.replace('option_text_2'); CKEDITOR.replace('option_text_3'); CKEDITOR.replace('option_text_4'); CKEDITOR.replace('option_text_5'); CKEDITOR.replace('option_text_6'); </script> </html>