Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/mis_software/bkp/add-quantity-book.php |
<?php require_once('header.php'); require_once('header-left-section.php'); $flag = 0; $success_flag = 0; $class_error = 0; if(isset($_GET['edit_id'])) { $edit_id = $_GET['edit_id']; $_SESSION['current_edit_id'] = $edit_id; } else if(isset($_SESSION['current_edit_id'])) { $edit_id = $_SESSION['current_edit_id']; } $add_volume = ""; $source = ""; $bill_no = ""; $cost = ""; $brought_date = ""; $call_class_no = ""; $call_book_no = ""; $barcode_no = ""; if(isset($_POST['add'])) { $add_volume = $_POST['add_volume']; $source = $_POST['source']; $bill_no = $_POST['bill_no']; $brought_date = $_POST['brought_date']; $cost = $_POST['cost']; $call_class_no = $_POST['call_class_no']; $call_book_no = $_POST['call_book_no']; if($db->save_books_quantity_details($add_volume,$source,$bill_no,$brought_date,$cost,$call_class_no,$call_book_no,$acd_year,$edit_id)) { $db->update_volume_details_in_master($add_volume,$edit_id); $success_flag = 1; $add_volume = ""; $source = ""; $bill_no = ""; $brought_date = ""; $cost = ""; $call_class_no = ""; $call_book_no = ""; $barcode_no = ""; $type = ""; $place_publisher = ""; } else { $success_flag = 2; } } $data = array(); $data = $db->get_all_books_info_by_id($edit_id,$acd_year); if(!empty($data)) { $res_id = $data[0]; $res_accession_no = $data[1]; $res_author = $data[2]; $res_title = $data[3]; $res_edition = $data[4]; $res_place_publisher = $data[5]; $res_year = $data[6]; $res_pages = $data[7]; $res_volume = $data[8]; $res_book_date = $data[9]; $res_type = $data[10]; $res_date = $data[11]; $res_time = $data[12]; } ?> <style> .form-control { background-color:#FFF !important; } h1 { text-align:center; color:#101566; font-weight:bold; } .content { margin:10px; } </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper" style="background-color:#D3D5F5;"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-12"> <h1>Add Books Details</h1> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>" enctype="multipart/form-data" autocomplete="off"> <section class="content"> <div class="row"> <div class="col-md-12"> <div class="card card-primary"> <div class="card-body"> <?php if($success_flag==1) { ?> <div class="alert alert-success"> <span class="alert-link">Success ! </span>Books Details Updated Successfully. </div> <?php } if($success_flag==2) { ?> <div class="alert alert-danger"> <span class="alert-link">Failed ! </span> To Updated </div> <?php } ?> <div class="row" style="background-color:#E4E4EC;"> <div class="form-group col-lg-3"> <label><u>Accession No :</u> <span style="color:green;"><?php echo $res_accession_no; ?></span></label> </div> <div class="form-group col-lg-3"> <label><u>Book Title :</u> <span style="color:green;"><?php echo $res_title; ?></span></label> </div> <div class="form-group col-lg-4"> <label><u>Author & Edition :</u> <span style="color:green;"><?php echo $res_author." & ".$res_edition; ?></span></label> </div> <div class="form-group col-lg-3"> <label> Volume:</label> <input type="number" class="form-control" name="add_volume" placeholder="Enter add_volume of Book" value="<?php echo $add_volume; ?>" required /> </div> <div class="form-group col-lg-3"> <label>Source:</label> <input type="text" class="form-control" name="source" placeholder="Enter Source" value="<?php echo $source; ?>" required /> </div> <div class="form-group col-lg-3"> <label>Bill No. :</label> <input type="number" class="form-control" name="bill_no" placeholder="Enter Bill No." value="<?php echo $bill_no; ?>" /> </div> <div class="form-group col-lg-3"> <label>Cost:</label> <input type="number" class="form-control" name="cost" placeholder="Enter Cost" style="resize:none;" value="<?php echo $cost; ?>" /> </div> <div class="form-group col-lg-3"> <label>Date:</label> <input type="text" class="form-control" name="brought_date" placeholder="Enter Date" style="resize:none;" id="date_picker" value="<?php echo $brought_date; ?>" /> </div> <div class="form-group col-lg-3"> <label>Call No./Class No :</label> <input type="text"class="form-control" name="call_class_no" placeholder="Enter Class Number" style="resize:none;" value="<?php echo $call_class_no; ?>" /> </div> <div class="form-group col-lg-3"> <label> Call No/Book No:</label> <input type="text" class="form-control" name="call_book_no" placeholder="Enter Book Number" value="<?php echo $call_book_no; ?>" required /> </div> </div> </div> <div class="row"> <div class="col-12"> <center> <input type="submit" value="ADD BOOKS DETAILS" name="add" class="btn btn-success"></center> </div> </div> </section> </form> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php require_once('footer.php'); ?> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $(document).ready(function() { $( "#date_picker" ).datepicker({ dateFormat: 'dd-mm-yy' }); } ); </script>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4