Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/enquiry-form.php

<?php
	require_once("../lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$f_name = "";
	$success_msg = 0;
	$image_error="";
	$department_error="";
	$succ_flag= 0 ;
	$contact = "";
	$u_email = "";
	$succ_flag = 0;
	$address = "";
	$subject = "";
	$message = "";
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:/admin/index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	if(isset($_POST['add_btn']))
	{	
		$f_name 	= $_POST['f_name'];
		$contact 	= $_POST['contact'];
	
		if($flag==0)
		{
			$db->add_enquiry_data($f_name,$contact);
			$succ_flag = 1 ;
			$f_name = "";	
			$contact = "";
		}
	}
	if(isset($_GET['delete_id']))
	{
		 $del_id	=	$_GET['delete_id'];
		 $db->delete_enquiry_images($del_id);
		 $success_msg	=	2;
	}
?>
<?php
	require_once('header.php');
?>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">  Emergency Contact </h1>
					<?php
					if($succ_flag == 1)
					{
					?>
						<div class="alert alert-success">

						Information Saved Successfully.
						</div>
					<?php
					}
					?>
					<?php
					if($success_msg == 2)
					{?>
					<div class="alert alert-danger">

					Information Deleted Successfully.
					</div>
					<?php
					}
					?>
					
                </div>
                
            </div>
            
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Emergency Contact
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <form role="form" method="post" enctype="multipart/form-data">
										
                                        <div class="form-group">
                                            <label> Name </label>
                                            <input class="form-control" placeholder="Enter Name" name="f_name" type="text" required value="<?php echo $f_name; ?>">
									   </div>
									   
										<div class="form-group">
                                            <label> Contact No </label>
                                            <input class="form-control" placeholder="Enter Contact No" name="contact" type="text" value="<?php echo $contact; ?>" required>
										</div>
										
                                        <button type="submit" class="btn btn-success" name="add_btn">Submit </button>	<br /><br />
                                    </form>
                                </div>
							
               <div class="row">
                 <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Report
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th width="70">Sr. No</th>
                                            <th>Title</th>
											
											<th width="150">Contact No</th> 
											 											
                                            <th width="50">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<?php
									
										$report_details = $db->get_all_enquiry_data();
										if(!empty($report_details))
										{
											$counter =0;
											foreach($report_details as $record)
											{
												$id				=	$report_details[$counter][0];
												$title			=	$report_details[$counter][1];
												$contact_no		=	$report_details[$counter][2];
												
									?>
                                        <tr>
                                            <td><?php echo $counter+1; ?></td>
											<td><?php echo $title; ?></td>
											<td><?php echo $contact_no; ?></td>
											
                                            <td><a href="enquiry-form.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure?');">Delete</a></td>
										</tr>
                                       <?php
										$counter ++;
											}
										}else
										{
										?>
										<td colspan="5">No Data Found...</td>
										<?php
										}
									   ?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
             
                <!-- /.col-lg-6 -->
            </div>
                                
                                   
                               
                                
                            </div>
                           
                        </div>
                        
                    </div>
                    
                </div>
              
            </div>
            
        </div>
       

    </div>
    

</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

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