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 (0750) :  /home/celkcksm/websites/bengaledu.e-campus.co.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/websites/bengaledu.e-campus.co.in/sendsmsindividual.php
<?php 
include ("include/makeSession.php");
include("checksmsbalance.php");
$installment_id=mysqli_query($con,"select * from admin where id='".$_SESSION["ecomid"]."'");
	  $installment_id=mysqli_fetch_array($installment_id); 
$installment_id=$installment_id['menuper'];
	  $menuper=explode(',',$installment_id);
	   
	   if(in_array('Communication',$menuper)){
		  
	   }else{
		 
	header("location:index.php");
		   
		}
$_SESSION['page_name']="Communication";
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 studentenquiry where StudenEnquiryID='$doid'");
	echo '<META HTTP-EQUIV="Refresh" Content="0; URL=Communication.php">';
	exit;
}
if(isset($_REQUEST['upid']) && $_REQUEST['upid']!=''){
	  $dovalue="EditStudentEnquiryEntry";
	  $doid=$_REQUEST['upid'];
	  $upuserresult=mysqli_query($con,"select * from student_enqury_form where id='".$_REQUEST['upid']."'");
	  $upuserarr=mysqli_fetch_array($upuserresult);
}else{
 	  $dovalue="SendSMSAdd";
	  $doid='';
} 
?>
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <h1> Send SMS Individual <small></small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
      <li><a href="#">Send SMS Individual </a></li>
    </ol>
  </section>
  <!-- Main content -->
  <section class="content">
    <div class="row">
      <div class="col-md-12">
        <div class="box box-info">
          <div class="box-header">
            <h3 class="box-title"> Send SMS Individual <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" name="addcategory" id="addcategory" enctype="multipart/form-data"  role="form">
              <input type="hidden"  name="do" value="<?php echo $dovalue;?>" />
                <input type="hidden"  name="doid" value="<?php echo $doid;?>" />
				  <input type="hidden"  name="types" value="individual" />
				  <input type="hidden"  name="commen" value="individual" />
                <input type="hidden"  name="UserID" value="<?php echo $_SESSION["ecomid"];?>" />
              
               
             
             
                <div class="form-group">
                  <label>Contact  </label>
				  
                     <textarea name="contacts" id="contacts" class="form-control"></textarea>         
                </div>
                           <div class="form-group">
                  <label>Send SMS <span id="smscount"></span> </label>
				  
                     <textarea name="sms" id="smsbox" class="form-control"></textarea>         
                </div>                                                       
                <div class="box-footer">
                  <input type="submit" class="btn btn-primary" name="ctl00$ContentPlaceHolder1$btnsave" value="Send"/>        <input type="reset" name="ctl00$ContentPlaceHolder1$btn_reset" value="Reset" id="ContentPlaceHolder1_btn_reset" class="btn btn-primary">           
                </div>
              </form>
            </div>
          </div>
        </div><!-- /.box -->
      </div><!-- /.col-->
    </div><!-- ./row -->
  </section><!-- /.content -->
</div>
<?php include('include/footer.php');?>
<script>
$(document).ready(function(){
    $("#smsbox").keyup(function(){
        $('#smscount').html("");
        $('#smscount').append(""+Math.ceil(($('#smsbox').val()).length/140)+"");
    });
});
$('#coursealert').on('change',function(){  
  var vat=$('#coursealert :selected').val();	
 /* if(vat=='B.ED'){	

  }	
  if(vat=='D.El.Ed.'){		
	
  }  */
  
   $.ajax({
                type: "POST",
                url: 'postcourse.php',
				dataType: "json",
                data:{"data":vat,"type":"faculty"},
                success: function(obj){
                   console.log(obj);
				   var html='';
				   $.each( obj, function( key, value ) {
                     html+=value.mobileno+',';
                  });
				   var lastChar = html.slice(-1);
				  if (lastChar == ',') {
				  strVal = html.slice(0, -1);
				  }
				  $('#contacts').html(strVal);
                }
            });
  });	
  
</script>

MMCT - 2023