<?php include("parent/callMe.php"); ?>
<?php  include("sessioncheck.php"); ?>
<?php

 
     ?>


<!DOCTYPE html>
<html lang="en">
  <head>
   
    <title>New Messages | EduPortal</title>
     <?php include('RootMe/css_links.php');?>
   

  </head>
  
<!-- load counter functions -->
<script type="text/javascript" src="js/counter_funcs.js"></script>
<!-- set the maximum character length value for the field -->
<script type="text/javascript">

  var MAX = 20;
  function check_char_length(elem_id, max_len)
  {
      if(check_content_length(elem_id, max_len)) {
    return true;
      } else {
    // too many chars
    alert("Maximum input length is " + max_len + " characters");
    return false;
      }
  }
    /*]]>*/
    </script>


  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <div class="col-md-3 left_col">
     
            <?php include('RootMe/sidebar.php');?>

              <?php include('RootMe/header.php');?>
     
        <!-- page content -->
          <div class="right_col" role="main">
          <div class="">
             
                <h3>Create Message Template</h3>
            
            <div class="clearfix"></div>


<div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                 
                  <div class="x_content">
      
      <form class="form-style-7" id="add_student" action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" onSubmit="return student_check();" enctype="multipart/form-data">


  <input type="hidden" name="action"  value="AddTemplate">
  

     <div class="col-md-2" > 

    

     </div>

     
       <div class="col-md-8"> 


          

        <div class="row">
                       
  
                      <div class="col-md-12" >



                          <div class="form-group" >
                              
                              <label>  Title : * </label>
                               
                                <input type="text" name="title" class="form-control" required />


                            </div>

                   </div>                    

                      <div class="col-md-12" >



                          <div class="form-group" >
                              
                              <label>  Template : * </label>
                               
                                <textarea maxlength="500" class="form-control message1 form-textarea" required="" maxlength="612" rows="7" id="text_fld" name="text_fld" onkeyup="update_counter('text_counter', 'text_fld', 160)" style="line-height: 1.5em; font-family: Arial, Helvetica, sans-serif; font-size: 14px;"></textarea>


                            </div>

                   </div>   




                      <div class="col-md-12" >



                          <div class="msg-count">

                            <div class="col-md-6 col-sm-6" >
                              <strong>Message Count :<span id="char">1</span></strong>
                            </div>
                            
                            <div class="col-md-6 col-sm-6" style="text-align:right;">
                              <strong class="text-right" > <span id="text_counter">160</span> Characters Left <br /></strong>
                            
                            </div>
                            
                            
                            
                          </div>



                   </div>   


  
                      <div class="col-md-12" >

                      <br> <br>



                        <input type="submit" value=" Save Record " class="pull-right btn btn-primary" >   



                   </div>                    


    
                   </div>  <!-- ending row-->


    </div>   <!--  ending 10 column-->



     <div class="col-md-2" > 

    

     </div>

    </form>



      <div class="clearfix"></div>


     </div>   <!--  main row -->

  </div>
  <div class="clearfix"></div>
          
          </div>
        </div>

            </div>
          </div>
        </div>
        <!-- /page content -->
  

 <?php include('RootMe/js_linksscript.php');?>
 
  </body>
</html>
