Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/cms.ncriptech.com/../bmtrust.org.in/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("include/header.php"); include("include/sidebar.php"); if(!empty($_REQUEST['did'])){ $did=mysqli_real_escape_string($con,$_REQUEST['did']); $q=mysqli_query($con,"delete from information where id=$did"); if($q){ $_SESSION['msg']="Data Deleted Successfully"; }else{ $_SESSION['msg']="Data Deletion Failed"; } header("location:information.php"); } if(!empty($_REQUEST['upid'])){ $doid=mysqli_real_escape_string($con,$_REQUEST['upid']); $do="EditInformation"; $Row=mysqli_fetch_array(mysqli_query($con,"select * from information where id=$doid")); }else{ $doid=""; $do="Information"; } ?> <style> #loader{ display:none; position:fixed; z-index:1000; top:0; left:0; width:100%; height:100%; background-image:url(images/uploads/loader.gif); background-position:50% 50%; background-color:rgba(255,255,255,0.6); background-repeat:no-repeat; } body.loading{ overflow:hidden; } body.loading #loader{ display:block; } </style> <div id="loader"></div> <link rel="stylesheet" href="bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css"> <div class="content-wrapper"> <section class="content-header"> <h1> Information <small>Add Information</small> </h1> <ol class="breadcrumb"> <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li> <li class="active">Information</li> </ol> </section> <!-- Main content --> <section class="content container-fluid"> <?php if(!empty($_SESSION['msg'])){ ?> <div class="alert alert-success alert-dismissible"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <h4><i class="icon fa fa-circle"></i> Message:</h4> <?=$_SESSION['msg'];?> </div> <?php $_SESSION['msg']=""; } ?> <div class="row"> <div class="col-md-12"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Information</h3> </div> <div class="box-body"> <form role="form" action="action.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="do" value="<?=$do;?>" /> <input type="hidden" name="doid" value="<?=$doid;?>" /> <div class="box-body"> <div class="row"> <div class="form-group col-md-3"> <label>Facebook Link</label> <input name="facebook" type="url" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['facebook']."";}?>" class="form-control" placeholder="Enter Url" /> </div> <div class="form-group col-md-3"> <label>Twitter Link</label> <input name="twitter" type="url" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['twitter']."";}?>" class="form-control" placeholder="Enter Url" /> </div> <div class="form-group col-md-3"> <label>Instagram Link</label> <input name="instagram" type="url" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['instagram']."";}?>" class="form-control" placeholder="Enter Url" /> </div> <div class="form-group col-md-3"> <label>Pinterest Link</label> <input name="pinterest" type="url" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['pinterest']."";}?>" class="form-control" placeholder="Enter Url" /> </div> <div class="form-group col-md-3"> <label>Youtube Link</label> <input name="youtube" type="url" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['youtube']."";}?>" class="form-control" placeholder="Enter Url" /> </div> <div class="form-group col-md-3"> <label>Website Name</label> <input name="name" type="text" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['name']."";}?>" class="form-control" placeholder="Website Name" /> </div> <div class="form-group col-md-3"> <label>Header Logo <small>560 x 100</small></label> <input name="header_logo" type="file" class="form-control" /> </div> <div class="form-group col-md-3"> <label>Footer Logo <small>260 x 150</small></label> <input name="footer_logo" type="file" class="form-control" /> </div> <div class="form-group col-md-3"> <label>Header Mobile Logo <small>190 x 30</small></label> <input name="mobile_logo" type="file" class="form-control" /> </div> <div class="form-group col-md-3"> <label>Footer Mobile Logo <small>260 x 150</small></label> <input name="footer_mobile_logo" type="file" class="form-control" /> </div> <div class="form-group col-md-3"> <label>Favicon</label> <input name="favicon" type="file" class="form-control" /> </div> <div class="form-group col-md-3"> <label>Footer Lines [150 max characters]</label> <input name="footer_lines" type="text" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['footer_lines']."";}?>" class="form-control" placeholder="Footer Lines" /> </div> <div class="form-group col-md-3"> <label>Address Line 1</label> <input name="address_line_1" type="text" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['address_line_1']."";}?>" class="form-control" placeholder="Address Line 1" /> </div> <div class="form-group col-md-3"> <label>Address Line 2</label> <input name="address_line_2" type="text" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['address_line_2']."";}?>" class="form-control" placeholder="Address Line 2" /> </div> <div class="form-group col-md-3"> <label>Mobile</label> <input name="mobile" type="text" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['mobile']."";}?>" class="form-control" placeholder="Enter Mobile Number" /> </div> <div class="form-group col-md-3"> <label>Email ID</label> <input name="email" type="email" value="<?php if(!empty($_REQUEST['upid'])){ echo "".$Row['email']."";}?>" class="form-control" placeholder="Enter Email ID" /> </div> <div class="form-group col-md-3"> <label>Google Map IFrame width:100% height: 160</label> <textarea name="map" class="form-control"><?php if(!empty($_REQUEST['upid'])){ echo "".$Row['map']."";}?></textarea> </div> <div class="form-group col-md-3"> <label>Home Background Image </label> <input name="bg" type="file" class="form-control" /> </div> </div> </div> <div class="box-footer"> <button type="submit" class="btn btn-primary">Submit</button> </div> </form> </div> </div> </div> </div> <div class="row"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">Information Data</h3> </div> <!-- /.box-header --> <div class="box-body table-responsive"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Action</th> <th>#ID</th> <th>Facebook Link</th> <th>Twitter Link</th> <th>Instagram Link</th> <th>Youtube Link</th> <th>Pinterest Link</th> <th>Website Name</th> <th>Header Logo</th> <th>Footer Logo</th> <th>Header Mobile Logo</th> <th>Footer Mobile Logo</th> <th>Favicon</th> <th>Address Line 1</th> <th>Address Line 2</th> <th>Mobile</th> <th>Email</th> <th>Google Map</th> <th>Home page Background</th> </tr> </thead> <tbody> <?php $q=mysqli_query($con,"select * from information order by id desc"); $i=0; while($r=mysqli_fetch_array($q)){$i++; ?> <tr> <td> <a href="?upid=<?=$r['id'];?>"><i class="fa fa-pencil"></i></a> <a href="?did=<?=$r['id']?>" onclick="return confirm_click();"><i class="fa fa-close"></i></a> </td> <td><?=$i;?></td> <td><?=$r['facebook'];?></td> <td><?=$r['twitter'];?></td> <td><?=$r['instagram'];?></td> <td><?=$r['pinterest'];?></td> <td><?=$r['youtube'];?></td> <td><?=$r['name'];?></td> <td><img src="images/<?=$r['header_logo'];?>" width="50px" /></td> <td><img src="images/<?=$r['footer_logo'];?>" width="50px" /></td> <td><img src="images/<?=$r['mobile_logo'];?>" width="50px" /></td> <td><img src="images/<?=$r['footer_mobile_logo'];?>" width="50px" /></td> <td><img src="images/<?=$r['favicon'];?>" width="50px" /></td> <td><?=$r['address_line_1'];?></td> <td><?=$r['address_line_2'];?></td> <td><?=$r['mobile'];?></td> <td><?=$r['email'];?></td> <td><textarea disabled><?=$r['map'];?></textarea></td> <td><img src="images/<?=$r['bg'];?>" width="50px" /></td> </tr> <?php } ?> </tbody> </table> </div> <!-- /.box-body --> </div> </div> </section> </div> <?php include("include/footer.php"); ?> <!-- DataTables --> <script src="bower_components/datatables.net/js/jquery.dataTables.min.js"></script> <script src="bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script> <!-- page script --> <script> $(document).ready(function () { $('#example1').DataTable({ 'paging' : true, 'lengthChange': true, 'searching' : true, 'ordering' : true, 'info' : true, 'autoWidth' : true }); // $("input[name='sponsor_username']").keyup(function(){ // var sponsor_username=$(this).val(); // if(sponsor_username.length>5){ // $.ajax({ // type: "POST", // url: "json.php", // data: {'do':"username_check",'sponsor_username': sponsor_username}, // dataType: "json", // beforeSend: function(){ // $("body").addClass("loading"); // }, // success: function(response) { // if(response=="invalid"){ // $("form").data("sponsor","0"); // }else{ // $("input[name='sponsor_name']").val(response); // $("form").data("sponsor","1"); // } // }, // complete:function(data){ // $("body").removeClass("loading"); // if($("form").data("sponsor")==1&&$("form").data("username")==1){ // $("#submit-btn").prop("disabled",false); // }else{ // $("#submit-btn").prop("disabled",true); // } // } // }); // } // }); }); </script> </body> </html>