<?php 
session_start();
require('../db.php');
include('inc/access.php');


include('../inc/logo.php');							
?> 
				

<?php include('inc/header.php');?>
<body class="fixed-nav sticky-footer bg-dark" id="page-top">

  <!-- Navigation-->
 <?php include('inc/nav.php');?>
  <!-- Navigation Ends--> 
          </ul>
        </li>
      </ul>
      <ul class="navbar-nav sidenav-toggler">
        <li class="nav-item"> 
          <a class="nav-link text-center" id="sidenavToggler">
            <i class="fa fa-fw fa-angle-left"> </i>
          
           
          </a>
        </li>
      </ul>
      <ul class="navbar-nav ml-auto">
      <li>
        
        </li>
        <li class="nav-item">
          
        </li>
        <li class="nav-item">
        <a class="btn btn-secondary" href="../logout.php">Sign Out</a>
         
        </li>
      </ul>
    </div>
  </nav>
  <div class="content-wrapper">
  
    <div class="container-fluid">
      <!-- Breadcrumbs-->
     
      <div class="row">
        <div class="col-12">
          
     
     <h2 class="w3-xxxlarge w3-text-green" align="center"><b>SMS Broadcast</b></h2>
 
<?php include('inc/broadcast.php'); ?>
  <form action="" method="post" autocomplete = 'off'> 

	 <table class="table  margin-tp-10" id="transTable">
                     
                                                                        <tr>
        <td width="10%"><font color="#FF0000"><?php echo $no;?></font><strong>  Recipients:</strong></td>
		
		 <td><textarea id="recepient" name="sendto" style="display:block;" required class="form-control" ><?php echo $send; ?></textarea></td>
		
      </tr>

<tr>
<td width="10%"><strong>Sender ID:</strong></td>
		
		 <td><textarea id="from" name="from" placeholder="SMS Sender name" required class="form-control"></textarea></td>
		
      </tr>

	 <tr>  
        <td><strong>Message:</strong></td>
		<td> <textarea id="message" name="msg" rows="8" placeholder="Compose Message" required class="form-control"></textarea></td>
</tr>
		<tr>
                            <td colspan="2">
      <button type="submit" name="btn" class="btn btn-info">Send Broadcast</button>
     
                                                                                                                                                                                                                                
                                </div>
                              							               </td>
                        </tr>
                                    </table> 
  
  </form>
             
            
          <!-- Card Columns Example Social Feed-->    
         </p>
        </div>
      </div>
    </div>
    <!-- /.container-fluid-->
    <!-- /.content-wrapper-->
   <?php include('inc/footer.php');?>