

  <link href="<?php echo base_url(); ?>assets/select/chosen.min.css" rel="stylesheet" media="screen">
	
		     
	
			  <script src="<?php echo base_url(); ?>assets/select/jquery-1.7.2.min.js"></script>

		  <script src="<?php echo base_url(); ?>assets/select/chosen.jquery.min.js"></script>

	
	<script type="text/javascript" src="/js/count-chars.js"></script>
        <script>
        $(function() {
<!--             $(".datepicker").datepicker(); -->
<!--             $(".uniform_on").uniform() -->;
            $(".chzn-select").chosen();
   <!--          $('.textarea').wysihtml5(); -->

        });
		
		
		$(function () {
        $("#smscategory").change(function () {
			 if ($(this).val() == "group") {
                $("#groupname").show();
            } 
            else if ($(this).val() == "all") {
                $("#groupname").hide();
            } 
			
            else {
                $("#groupname").hide();
            }
        });
    });
	
		
		
		
		
		         $(function () {
        $("#mysmstype").change(function () {
			 if ($(this).val() == "onePersonalized") {
                $("#greetings").show();
            } 
            else if ($(this).val() == "manyPersonalized") {
                $("#greetings").show();
            } 
			
            else {
                $("#greetings").hide();
            }
        });
    });
	
	function countChars(textbox, counter, max) {
  var count = max + document.getElementById(textbox).value.length;
  if (count < 0) { document.getElementById(counter).innerHTML = "<span style=\"color: red;\">" + count + "</span>"; }
  else { document.getElementById(counter).innerHTML = count; }
}
 
     	function countChars(textbox1, counter1, max1) {
  var count1 = max1 + document.getElementById(textbox1).value.length;
  if (count1 < 0) { document.getElementById(counter1).innerHTML = "<span style=\"color: red;\">" + count1 + "</span>"; }
  else { document.getElementById(counter1).innerHTML = count1; }
}
 
  	
 
        </script>
 
 
 <div class="row">
  
   	

   	<div class="col-md-12">
	
  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
						 <span class="pull-right">Balance: <span class="btn btn-warning"> <?php echo $total_amount;?></span> </span>					                     
						 <a data-toggle='modal' data-target='#addModal' class="btn btn-primary">Add General Sms </a>

										 <a data-toggle='modal' data-target='#addcustomizedModal' class="btn btn-primary">Add Customized Sms </a>
										 <a data-toggle='modal' data-target='#addgroupModal' class="btn btn-primary">Add Group Sms </a>
										  <a href="<?php echo base_url();?>downloads/contacts.csv" class="btn btn-success"> bulk sms template </a>	
										  <a href="<?php echo base_url();?>user/downloadsms" class="btn btn-success"> Download sent sms </a>	 
			 <a data-toggle='modal' data-target='#uploadModal' class="btn btn-primary">Upload Bulk SMS  </a>
			 				     <a data-toggle='modal' data-target='#viewsms' class="btn btn-primary">SMS Report </a>

										  <a href="<?php echo base_url();?>user/price" class="btn btn-info"> Sms Recharge/ Pricing </a>	 


		  

            	</div>
            </div>
			<div class="panel-body">

				<div class="widget-content nopadding table_holder table-responsive" >				
	<?PHP

	$session_data = $this->session->userdata('logged_in');
 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	

$data['surname'] = $session_data['surname'];
$data['id'] = $session_data['id'];
 $data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
$surname=$data['surname'];
   $userid=$data['id'];
$users = $this->usermodel->populateallarray('people','id',$userid);
	
$smstype=$users[0]['smstype'];
   
   
				echo $this->session->flashdata('msg'); 
								?>	
										
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
	
										<div class="col-md-12">
        <?php 
		
        $attr = array("class" => "form-horizontal", "role" => "form", "id" => "search", "name" => "search");
        echo form_open("user/searchallsms", $attr);?>
            <div class="form-group">
			
                <div class="col-md-9">
                    <input class="form-control" id="searchterm" name="searchterm" placeholder="Search for Sent SMS  By SMS Text,Phone Number, Date sent.." type="text" value="<?php echo set_value('searchterm'); ?>" />
                </div>
                <div class="col-md-3">
                    <input id="btn_search" name="btn_search" type="submit" class="btn btn-success" value="Search" />
                    <a href="<?php echo base_url(). "user/viewsms"; ?>" class="btn btn-primary">Refresh</a>
                </div>
				 
            </div>
        <?php echo form_close(); ?>

        </div>
									
				<table class="tablesorter table table-bordered  table-hover" id="sortable_table">			

             <thead>
			 <tr>
    
     <th colspan="7"><CENTER>TOTAL SMSES SENT BY NOW 		:			   		<span style="color:red; font-size:20px"><?php  echo $total_rows. "   SMS. " ;?>    </span>
</CENTER></th>
	
	

                 </tr>
         <tr>
    
     <th>Contact</th>
	      <th>Name</th>
	  <th>Date</th>
	     <th>Message</th>
		 <th>Sent By?</th>
	 
		<td> more</td>	
	

                 </tr>
             </thead>
<?php
 
 if(!is_array($viewsms)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='6'>";
    
       echo '<div class="alert alert-warning text-center">There no records found..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($viewsms as $c): 

		 

             ?>



             <tr>
                
            <?php 
			$id=$c->id;


?>

              

    <td><?php echo htmlspecialchars($c->contact) ; ?></td>
  
    <td><?php ; 
   $contact=$c->contact;
   if($contact!=""){
	  
      $myname = $this->usermodel->getepeople($contact);
  
     $fname=$myname[0]['firstname']; 
echo $names= htmlspecialchars($fname); 
	
   }else{
	 
   }
  
  
  ?></td>
  
  
  
  
  
  
  <td><?php echo $c->postedtime ; ?></td>
     <td><?php echo htmlspecialchars($c->message); ?></td>
   <td><?php ; 
   $userid=$c->userid;
   if($userid!=""){
	  
      $myname = $this->usermodel->geteuser($userid);
  
     $fname=$myname[0]['firstname']; 
echo $names= $fname; 
	
   }else{
	    echo "No Sender";  
   }
  
  
  ?></td>
 

			 	 <td> 

 
 
					<div class="btn-group">
                                    <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
									<?php
										if($usertype=="admin"){
											
											?>
                                    <ul class="dropdown-menu dropdown-primary pull-right" role="menu">
                                        
                                        <!-- teacher EDITING LINK -->
                                      
										
											  <li> 
										 <a class="btn btn-danger managebtn" id="managebtndelete"		 data-id='<?php echo  $c->id;?>'    data-toggle='modal' data-target='#deleteModal<?php  $c->id; ?>'>	 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Delete
                                                </a>
                                                        </li>
									
									
                                        <li class="divider"></li>
                                        
                                        <!-- teacher DELETION LINK -->
                                        
                                    </ul>
											<?php
										}
										?>
                                </div>
</td> 
             </tr>

	<?php endforeach;} ?>

           
	
        </table>
 <div class="row">
        <div class="col-md-12 text-center">   <?php echo $links; ?>
					   		<span style="color:red; font-size:20px"><?php  echo $total_rows. "   SMS. " ;?>    </span>

         
        </div>
    </div>
									
									
									
					</div>	

					
					

<div id="viewsms" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">SMS Report</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

 $finalendate=date("Y-m-d H:59:59");
  $finalstartdate=date("Y-m-d 00:00:00");
  
  
  


		
                 echo form_open('user/searchsms' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>

		


  
  
  
  
  

  <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">From Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="fromdate" value="<?php echo set_value('fromdate',$finalstartdate); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
		
		</span>
	</div>
  </div>
  
  	<div class="form-group">
    <label for="inputtodate" class="col-sm-2 control-label">	To Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="todate" value="<?php echo set_value('todate',$finalendate); ?>" class="form-control" required placeholder="Enter End date">
		 
				
		<span class="text-danger"> <?php echo form_error('todate'); ?>
		
		</span>
	</div>
  </div>
  

  
    

   
  
  <div class="form-group">
    <label for="inputdownload" class="col-sm-2 control-label">Download messagees </label>
    <div class="col-sm-10">
	<select class="form-control" name="download"   required>
	<option value="no" selected="selected"   >No(Just Viewing)</option>
	<option value="yes"  >	Yes(Download Now) </option>

	

</select>
		

		
	</div>
  </div>
  
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="event" name="btn_attendance" class="btn btn-primary"> View SMS  </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>	

					
					
					
					
					
					
					
					
					
					
						<div id="addModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add new Sms</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addsmsafricaistalking' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
				  		
	<div class="form-group">
    <label for="inputcontact" class="col-sm-2 control-label">	Contact </label>
    <div class="col-sm-10">

	
	<textarea name="contact" value="<?php echo set_value('contact'); ?>"  class="form-control"  placeholder="Enter phone e.g  254712345678,254712345678"></textarea>

		
				
		<span class="text-danger"> <?php echo form_error('contact'); ?>
		
		</span>
	</div>
  </div>
  
  

	

	<div class="form-group">
    <label for="inputmessage" class="col-sm-2 control-label">	Message</label>
    <div class="col-sm-10">
			<?php 
		
		if($smstype=="1"){
			?>

<textarea  maxlength="160"  required name="message" id="textbox" class="form-control" rows="3" cols="60" onFocus="countChars('textbox','char_count',0)" onKeyDown="countChars('textbox','char_count',0)" onKeyUp="countChars('textbox','char_count',0)"></textarea><br />Characters: <span id="char_count"></span><br />

            		<?php 
		
		}else{
			?>

<textarea   maxlength="800" required name="message" id="textbox" class="form-control" rows="3" cols="60" onFocus="countChars('textbox','char_count',0)" onKeyDown="countChars('textbox','char_count',0)" onKeyUp="countChars('textbox','char_count',0)"></textarea> <br />Characters:<span id="char_count"></span>

			
			<?php 
		}
		?>
			
		<span class="char_count"> <?php echo form_error("message"); ?>
		
		</span>
	</div>
  </div>
		

	
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="sms" name="btn_addsmsmain" class="btn btn-primary"> Send SMS   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>



<div id="addcustomizedModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add new Sms</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

	
if($usertype=="admin"){
				$data['receiver'] = $this->usermodel->populateall('people', 'companyid',$companyid);
				$data['mycategory'] = $this->usermodel->populateall('category', 'companyid',$companyid);


				}else{
				$data['receiver'] = $this->usermodel->populateall('people', 'companyid',$companyid);
				$data['mycategory'] = $this->usermodel->populateall('category', 'companyid',$companyid);

				}

				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addsmsafricaistalking' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
				  		

  
  
     <div class="form-group">
    <label for="inputcontact" class="col-sm-2 control-label">Receiver?</label>
    <div class="col-sm-10">
	<select class="form-control" name="contact" style ="width: 100%"  required>
	
	<option value=""  >---Select Receiver/Contact---</option>

	
	<?php 
					 


if(is_array($receiver)) {

   foreach($receiver as $receiverrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $receiverrow->phone;   ?>"><?=  $receiverrow->phone ."(". $receiverrow->firstname ." ".$receiverrow->lastname.") ".$receiverrow->idno; ?></option>



	<?php

}} else {
    echo 'No supplier available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('contact'); ?>

	</div>
  </div>
  

<div class="form-group">
    <label for="inputmessage" class="col-sm-2 control-label">	Message</label>
    <div class="col-sm-10">
			<?php 
		
		if($smstype=="1"){
			?>

<textarea  maxlength="160"  required name="message" id="textbox1" class="form-control" rows="3" cols="60" onFocus="countChars('textbox1','char_count1',0)" onKeyDown="countChars('textbox1','char_count1',0)" onKeyUp="countChars('textbox1','char_count1',0)"></textarea><br />Characters: <span id="char_count"></span><br />

            		<?php 
		
		}else{
			?>

<textarea   maxlength="800" required name="message" id="textbox1" class="form-control" rows="3" cols="60" onFocus="countChars('textbox1','char_count1',0)" onKeyDown="countChars('textbox1','char_count1',0)" onKeyUp="countChars('textbox1','char_count1',0)"></textarea> <br />Characters:<span id="char_count"></span>

			
			<?php 
		}
		?>
			
		<span class="char_count"> <?php echo form_error("message"); ?>
		
		</span>
	</div>
  </div>
		

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="sms" name="btn_addsmsmain" class="btn btn-primary"> Send SMS   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>	
	<div id="uploadModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Upload Correct contacts (CSV)</h4>
		
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/uploadbulksmsafricaistalking' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>

  	<div class="form-group">
    <label for="inputsmstype" class="col-sm-2 control-label">SMS type	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="smstype" id="mysmstype" required >
	
	<option value=""  >---Select SMS type---</option>
	<option value="one" >Same SMS to different people</option>
		<option value="many" >Different SMS to different people</option>
		<option value="onePersonalized" >Same SMS to different people(Personalized)</option>
		<option value="manyPersonalized"  >Different SMS to different people (Personalized)</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('smstype'); ?>
		
		</span>
	</div>
  </div>

 <div class="form-group" id="greetings" style="display: none">
    <label for="greetings" class="col-sm-2 control-label">	Greetings </label>
    <div class="col-sm-10">

	<input type="text" name="greetings" value="Dear" id="place" class="form-control"  placeholder="Enter greetings eg.Dear, Hi,Hello">
			<span class="text-danger"> <?php echo form_error('greetings'); ?>
		
		</span>
	</div>
  </div>








	<div class="form-group">
    <label for="inputsurname" class="col-sm-2 control-label">	CSV LIST</label>
    <div class="col-sm-10">
		
			<input type="file" name="file" width="400"  value="<?php echo set_value('file') ;?>" placeholder="Select EXCELL" class="form-control" required   >

		  		
				
		<span class="text-danger"> Upload correct format of CSV File   with two columns (Contact,Message)<?php echo form_error('file'); ?>
		
		</span>
	</div>
  </div>	
  
  
  
<div class="form-group">
    <label for="inputmessage" class="col-sm-2 control-label">	Message</label>
    <div class="col-sm-10">
			<?php 
		
		if($smstype=="1"){
			?>

<textarea  maxlength="160"  required name="message" id="textbox2" class="form-control" rows="3" cols="60" onFocus="countChars('textbox','char_count',0)" onKeyDown="countChars('textbox','char_count',0)" onKeyUp="countChars('textbox','char_count',0)"></textarea><br />Characters: <span id="char_count"></span><br />

            		<?php 
		
		}else{
			?>

<textarea   maxlength="800" required name="message" id="textbox2" class="form-control" rows="3" cols="60" onFocus="countChars('textbox','char_count',0)" onKeyDown="countChars('textbox','char_count',0)" onKeyUp="countChars('textbox','char_count',0)"></textarea> <br />Characters:<span id="char_count"></span>

			
			<?php 
		}
		?>
			
		<span class="char_count"> <?php echo form_error("message"); ?>
		
		</span>
	</div>
  </div>
		

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="sms" name="btn_advanceuploadsms" class="btn btn-primary">Send SMS  </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>	
<div id="addgroupModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add Group Sms</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addgroupsmsafricaistalking' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
				  		

					<div class="form-group">
    <label for="inputsmscategory" class="col-sm-2 control-label">SMS type	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="smscategory" id="smscategory" required >
	
	<option value=""  >---Select SMS type---</option>
	<option value="group" >Send sms to my selected group members </option>
		<option value="all" >Send sms to all my MPESA/AIRTEL Users </option>
	
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('smscategory'); ?>
		
		</span>
	</div>
  </div>

						
						
						
						
						
						
						
						
						
						
  
 <div class="form-group" id="groupname" style="display: none">		
    <label for="inputcategoryid" class="col-sm-2 control-label">Group Name?</label>
    <div class="col-sm-10">
	<select class="form-control" name="categoryid" >
	
	<option value=""  >---Select Category---</option>

	
	<?php 
					 
			
	


if(is_array($mycategory)) {

   foreach($mycategory as $mycategoryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $mycategoryrow->id;   ?>"><?=  $mycategoryrow->name; ?></option>



	<?php

}} else {
    echo 'No category/ group available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('categoryid'); ?>

	</div>
  </div>
     
<div class="form-group">
    <label for="inputmessage" class="col-sm-2 control-label">	Message</label>
    <div class="col-sm-10">
			<?php 
		
		if($smstype=="1"){
			?>

<textarea  maxlength="160"  required name="message" id="textbox3" class="form-control" rows="3" cols="60" onFocus="countChars('textbox','char_count',0)" onKeyDown="countChars('textbox','char_count',0)" onKeyUp="countChars('textbox','char_count',0)"></textarea><br />Characters: <span id="char_count"></span><br />

            		<?php 
		
		}else{
			?>

<textarea   maxlength="800" required name="message" id="textbox3" class="form-control" rows="3" cols="60" onFocus="countChars('textbox','char_count',0)" onKeyDown="countChars('textbox','char_count',0)" onKeyUp="countChars('textbox','char_count',0)"></textarea> <br />Characters:<span id="char_count"></span>

			
			<?php 
		}
		?>
			
		<span class="char_count"> <?php echo form_error("message"); ?>
		
		</span>
	</div>
  </div>
		
  

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="oursms" name="btn_groupaddsmsmain" class="btn btn-primary"> Send SMS   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>



	<div id="deleteModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Delete</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to delete this item? </h3>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('user/deletebyid' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
 <input type="hidden" id="table"name="table" class="table" placeholder="view" value="sms">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="user/viewsms">
 <input type="hidden" id="itemid1"name="itemid" class="itemid" placeholder="itemid" value=""><br>
 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="btn_delete" value="deletebyid" class="btn btn-danger"> Delete  </button>

	<?php echo form_close();?>
      </div>
    </div>

  </div>

  </div>

					
									
									
							</div>		
									
							</div>
						</div>
				

			
			</div>
		</div>
  
  </div>
			
			
			
		
		
  

 
</div>


















