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/sms-panel.php

<?php
	require_once("../lib/functions.php");
	$db = new login_function();
	$flag = 0;
	$contact_no_error="";
	$success_msg=0;
	$cust_name = "";
	$cust_id 	=	"";
	$cust_name="";
	$cust_id= "";
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:/index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	if(isset($_POST['send_btn']))
	{
		$c_id 		= $_POST['c_id'];
		$language 	= $_POST['language'];
		$message 	= $_POST['message'];
		foreach($c_id as $record)
		{
			if(isset($_POST['c_id']))
			{
				$db->add_data($record,$language,$message);
				$success_msg = 1;
			}
		}
	}
?>

<?php
	require_once('header.php');
?>
<style>
	.customer-data
	{
		height:33px;
		width:250px;
		padding:5px;
		border:0px solid;
	}
	.customer-data:hover
	{
		background-color:#cdcdcd;
	}
</style>
<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>
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">SMS Panel</h1>
					<?php
					if($success_msg == 1)
					{?>
					<div class="alert alert-success">

					Information Saved Successfully.
					</div>
					<?php
					}
					?>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          SMS Panel
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                           <?php
								if(isset($_POST['add_btn']))
								{
									$cust_name = $_POST['cust_name'];
									$cust_id = $_POST['cust_id'];
								}
								
								?>	
								
							<div class="form-group col-lg-12">
									
								<div class="form-group col-lg-5">
									<label>Search</label>								
									<form role="form" method="post">
                                       
                                         
                                         <div class="form-group col-lg-12">
                                         
                                            <input class="form-control" placeholder="Enter Customer Name" name="cust_name" value="<?php echo $cust_name; ?>">
										
										</div>
										
												<div class="form-group  col-lg-12">
                                           
                                            <input  class="form-control" placeholder="Enter Customer Id" name="cust_id" value="<?php echo $cust_id; ?>">
										</div>
										
										 <div class="form-group  col-lg-12">
                                  
                                        <button type="submit" class="btn btn-success" name="add_btn">Search </button>
                                     
									 </div><br />  <br /> </form>
									 </div>
							<form role="form" method="post">
							  
							   <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"  class="form-control"></textarea>

								</div>	
</div>								
							<div class="col-lg-12">
							  <div class="col-lg-6">
							  <div class="form-group">
                                            <label>Customer Name</label><br />
											<div style="width:350px;height:350px;overflow:scroll;">
											<div class="customer-data">
											<label><input type="checkbox" onClick="toggle(this)" /> Select All</label>
											</div>
                                    
									<?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="customer-data">
										<label><input type="checkbox" name="c_id[]" value="<?php echo $c_id; ?>"> <?php echo $name;?></label>
									</div>
								<?php	
									$counter++;
										}
									}
								?>
								</div>
                               </div>
							   </div>
							  
								
								<button type="submit" class="btn btn-success" name="send_btn">Send SMS </button>
 </div>
								</div>

								</div>
								
								
								
							
								</div>
							</form>
                           
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </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