D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
epksuofuukz9
/
www
/
admin
/
Filename :
edit_menu_placement.php
back
Copy
<?php include("includes/header.php"); ?> <?php $the_id=$_GET['edit']; ?> <body class="hold-transition sidebar-mini"> <div class="wrapper"> <!-- Navbar --> <?php include("includes/top_nav.php");?> <!-- /.navbar --> <!-- Main Sidebar Container --> <?php include("includes/side_nav.php");?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Edit Menu Placement</h1> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="dashboard.php" style="color:#111;">Dashboard</a></li> <li class="breadcrumb-item"><a href="view_all_menu.php" style="color:#111;">View Menu Courses</a></li> <li class="breadcrumb-item"><a href="edit_menu_posts.php?edit=<?php echo $the_id; ?>" style="color:#111;">Edit Menu Courses</a></li> <li class="breadcrumb-item active">Edit Menu P</li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h3 class="card-title">View All Placement</h3> <a href="edit_menu_posts.php?edit=<?php echo $the_id; ?>" ><button style="float: right;" class="btn btn-dark btn-sm">Go Back</button></a> </div> <!-- /.card-header --> <div class="card-body table-responsive"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>S.N.</th> <th>Placement Name</th> <th>Placement Profession</th> <th>Placement Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=0; $get_all="SELECT * FROM menu_course_placement WHERE menu_placement_menu_course_id ='$the_id'"; $run_all=query($get_all); while($row_all=fetch($run_all)) { $cp_id=$row_all['menu_placement_id']; $cp_name=$row_all['menu_placement_name']; $cp_profession=$row_all['menu_placement_profession']; $cp_image=$row_all['menu_placement_image']; $i++; ?> <tr> <td><?php echo $i;?></td> <td><?php echo $cp_name;?></td> <td><?php echo $cp_profession;?></td> <td><a href="images/menu/placement/<?php echo $cp_image;?>" target="_blank"><img src="images/menu/placement/<?php echo $cp_image;?>" width="100px" height="100px"></a></td> <td><button type="button" class="btn btn-block btn-secondary btn-sm" data-toggle="modal" data-target="#modal-default<?php echo $cp_id; ?>"> Edit </button> <div class="modal fade" id="modal-default<?php echo $cp_id; ?>" style="display: none;" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Edit Placement</h4> </div> <form role="form" method="POST" action="php/edit_menu_placement.php" enctype="multipart/form-data"> <div class="modal-body"> <div class="form-group"> <label for="exampleInputEmail1">Placement Name</label> <input type="text" class="form-control" name="name" id="exampleInputEmail1" value="<?php echo $cp_name; ?>" placeholder="Placement Name" required> <input type="hidden" name="cp_id" value="<?php echo $cp_id; ?>"> <input type="hidden" name="course_id" value="<?php echo $the_id; ?>"> </div> <div class="form-group"> <label for="exampleInputEmail1">Placed Company</label> <input type="text" class="form-control" name="profession" id="exampleInputEmail1" value="<?php echo $cp_profession; ?>" placeholder="Placed Company" required> </div> <div class="form-group"> <label for="exampleInputFile">Placement Image</label> <div class="input-group"> <div class="custom-file"> <input type="file" class="custom-file-input" name="image" id="exampleInputFile" > <label class="custom-file-label" for="exampleInputFile">Choose file</label> <input type="hidden" name="hidden_image" value="<?php echo $cp_image; ?>"> </div> </div> </div> <img src="images/menu/placement/<?php echo $cp_image;?>" width="100px" height="100px"> <!-- /.card-body --> </div> <div class="modal-footer justify-content-between"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Save changes</button> </div> </form> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div></td> </tr> <?php } ?> </tbody> <tfoot> <tr> <th>S.N.</th> <th>Placement Name</th> <th>Placement Profession</th> <th>Placement Image</th> <th>Action</th> </tr> </tfoot> </table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php ?> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("includes/footer.php");?> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Control sidebar content goes here --> </aside> <!-- /.control-sidebar --> </div> <!-- ./wrapper --> <?php include("includes/scripts.php"); ?> <script> $(function () { $("#example1").DataTable(); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false, }); }); </script> </body> </html>