ok

Mini Shell

Direktori : /home2/selectio/www/subamangala/admin/
Upload File :
Current File : /home2/selectio/www/subamangala/admin/profiles-search.php

<?php  include "header.php";?>
<style>
    table.dataTable th:nth-child(23),
table.dataTable th:nth-child(25) {
  width: 70px;
  max-width: 70px;
 
}

table.dataTable td:nth-child(23),
table.dataTable td:nth-child(25){
  width: 70px;
  max-width: 70px;
  word-break: break-all;
  white-space: pre-line;
}
input[type=checkbox], input[type=radio] {
    box-sizing: border-box;
    padding: 0;
    width: 18px;
    height: 20px;
}
</style>
<div class="content-wrapper" style="background:#ecf0f5;">
        <div class="col-lg-12 alerts">
            <div id="custom-alerts" style="display:none;">
                <div class="alert alert-dismissable">
                    <div class="custom-msg"></div>
                </div>
            </div>
            <?php if ($error)  { ?>
            <div class="alert alert-danger alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-ban"></i> Error</h4>
                <?= $error; ?>
            </div>
            <?php } if ($warning) { ?>
            <div class="alert alert-warning alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-warning"></i> Warning</h4>
                <?= $warning; ?>
            </div>
            <?php } if ($message) { ?>
            <div class="alert alert-success alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4>    <i class="icon fa fa-check"></i> Success</h4>
                <?= $site_name; ?>
            </div>
            <?php } ?>
        </div>
        <div class="clearfix"></div>
<?php 

$data =" var search_table =$('#search_table').val();
          var regtype =$('#regtype').val();
          var regnop =$('#regnop').val();
          var gender =$('#gender').val();
          var brokername =$('#brokername').val();
          var bname =$('#bname').val();
          var dname =$('#dname').val();
          var father_name =$('#father_name').val();
          var father_dname =$('#father_dname').val();
          var native_place =$('#native_place').val();
          var rasi =$('#rasi').val();
          var natchatram =$('#natchatram').val();
          var caste =$('#caste').val();
          var subcaste =$('#subcaste').val();
          var cellno =$('#cellno').val();
          var family_idty =$('#family_idty').val();
          var dob =$('#dob').val();
          var marriage =$('#marriage').val();
          var rname =$('#rname').val();

            var table = $('#StData').DataTable({

                    'ajax' : { 
                        url: 'data-tables/profiles-search-datatable.php', 
                        data:{search:search_table,table:table,regtype:regtype,regnop:regnop,gender:gender,brokername:brokername,bname:bname,dname:dname,father_name:father_name,father_dname:father_dname,native_place:native_place,rasi:rasi,natchatram:natchatram,caste:caste,subcaste:subcaste,cellno:cellno}, 
                        type: 'POST'},
                        bFilter: true,
                        bDestroy: true,
                        searching: true,pageLength: 10,
                    'buttons': [
                    { extend: 'copyHtml5', 'footer': false, exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10,11, 12, 13, 14, 15, 16, 17] } },
                    { extend: 'excelHtml5', 'footer': false, exportOptions: { columns: [0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10,11, 12, 13, 14, 15, 16, 17] } },
                    { extend: 'csvHtml5', 'footer': false, exportOptions: { columns: [0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10,11, 12, 13, 14, 15, 16, 17] } },
                    { extend: 'pdfHtml5', orientation: 'landscape', pageSize: 'A4', 'footer': false,
                    exportOptions: { columns: [ 0, 1, 2, 3, 4, 5 ,6, 7, 8, 9, 10,11, 12, 13, 14, 15, 16, 17] } },
                    { extend: 'colvis', text: 'Columns'},
                    ]

                });
                
                table.column(18).visible(false);
                ";
?>
<script type="text/javascript">
    $(document).ready(function() {        
        emp_data();
        function emp_data(){
               <?=$data?>
        }
       
        $('#filter').click(function() {
            emp_data();
        });
        
        $('#search_table').keyup(function() {  
           
            <?=$data?>
            document.getElementById("search_table").focus();
            //table.search(this.value).draw();       
        });

    });
    function delete_employee(id){
            var result = confirm("Confirm want to delete this Holiday?");
            if (result) {
                    $.ajax({
                    type: 'POST',
                    url: 'api/delete.php',
                    data: {type:'employee_delete',delete_id:id,table_name:'tbl_user'},                  
                    success: function(response) {
                        //console.log(response); 
                        emp_datas();
                    }
                });
            }
         }
         function emp_datas(){
             <?=$data?>
        }
</script>


<section class="content">
    
    <!-- Header Section Starts Here -->
    <div class="row">
        <div class="col-md-12">
            <br>
             <center style="font-weight: bolder;font-size: 25px;color: brown;">தேடல்</center>
        </div>
    </div>
    
    <div class="row">
        <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">ப.மு. </label>                                   
                    <select name="regtype[]" class="form-control select2" id="regtype" required="required" multiple style="color:black;">
                        
                        <option value="D">D</option>
                        <option value="L">L</option>
                        <option value="I">I</option>
                        <option value="B">B</option>
                        <option value="M">M</option>
                        <option value="W">W</option>
                        <option value="DI">DI</option>
                    </select>
                </div> 
         </div>
        <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">பதிவு எண் </label>                                   
                    <select name="regnop[]" class="form-control tamil select2" charset="utf-8" id="regnop" required="required" multiple style="color:black;" onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement = $pdo->prepare("select distinct regnop from profiles");
                        $statement->execute();
                        $location_result = $statement->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result as $result) { ?>
                           <option value="<?=$result['regnop']?>"><?=$result['regnop']?></option>
                      <?php  } ?>
                    </select>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">Gender</label>                                   
                    <select name="gender[]" class="form-control select2 tamil" charset="utf-8" id="gender" required="required" multiple style="color:black;" onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                       
                        <option value="ஆண் ">ஆண் </option>
                        <option value="பெண்">பெண் </option>
                    </select>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">புரோக்கர் பெயர்</ </label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)"><select name="brokername[]"  class="form-control tamil select2" charset="utf-8"  id="brokername" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                       
                        <?php $statement1 = $pdo->prepare("SELECT * FROM brokers GROUP BY brokername");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['id']?>"><?=$result1['brokername']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">பெயர் </label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="bname[]"  class="form-control tamil select2" charset="utf-8"  id="bname" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                       
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY bname");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['bname']?>"><?=$result1['bname']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">தம்மி பெயர் </label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="dname[]"  class="form-control tamil select2" charset="utf-8"  id="dname" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY dname");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['dname']?>"><?=$result1['dname']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">அப்பா பெயர்</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="father_name[]"  class="form-control tamil select2" charset="utf-8"  id="father_name" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                       
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY father_name");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['father_name']?>"><?=$result1['father_name']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">அப்பா தம்மி பெயர்</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="father_dname[]"  class="form-control tamil select2" charset="utf-8"  id="father_dname" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY father_dname");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['father_dname']?>"><?=$result1['father_dname']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">இருப்பிடம்</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="native_place[]"  class="form-control tamil select2" charset="utf-8"  id="native_place" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                       
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY native_place");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['native_place']?>"><?=$result1['native_place']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">ராசி</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="rasi[]"  class="form-control tamil select2" charset="utf-8"  id="rasi" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                       
                         <option value="1">மேஷம்</option>
                        <option value="2">ரிஷபம்</option>
                        <option value="3">மிதுனம்</option>
                        <option value="4">கடகம்</option>
                        <option value="5">சிம்மம்</option>
                        <option value="6">கன்னி</option>
                        <option value="7">துலாம்</option>
                        <option value="8">விருச்சிகம்</option>
                        <option value="9">தனுசு</option>
                        <option value="10">மகரம்</option>
                        <option value="11">கும்பம்</option>
                        <option value="12">மீனம்</option>

                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">நட்சத்திரம் </label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                     <select name="natchatram[]"  class="form-control tamil select2" charset="utf-8"  id="natchatram" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <option value="1">அஸ்வினி</option>
                        <option value="2">பரணி</option>
                        <option value="3">கார்த்திகை</option>
                        <option value="4">ரோகிணி</option>
                        <option value="5">மிருகசீரிடம்</option>
                        <option value="6">திருவாதிரை</option>
                        <option value="7">புனர்பூசம்</option>
                        <option value="8">பூசம்</option>
                        <option value="9">ஆயில்யம்</option>
                        <option value="10">மகம்</option>
                        <option value="11">பூரம்</option>
                        <option value="12">உத்தரம்</option>
                        <option value="13">அஸ்தம்</option>
                        <option value="14">சித்திரை</option>
                        <option value="15">சுவாதி</option>
                        <option value="16">விசாகம்</option>
                        <option value="17">அனுஷம்</option>
                        <option value="18">கேட்டை</option>
                        <option value="19">மூலம்</option>
                        <option value="20">பூராடம்</option>
                        <option value="21">உத்திராடம்</option>
                        <option value="22">திருவோணம்</option>
                        <option value="23">அவிட்டம்</option>
                        <option value="24">சதயம்</option>
                        <option value="25">பூரட்டாதி</option>
                        <option value="26">உத்திரட்டாதி</option>
                        <option value="27">ரேவதி</option>

                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">ஜாதி </label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="caste[]"  class="form-control tamil select2" charset="utf-8"  id="caste" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement1 = $pdo->prepare("select * from caste GROUP BY name");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['id']?>"><?=$result1['name']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">உட் பிரிவு </label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="subcaste[]"  class="form-control tamil select2" charset="utf-8"  id="subcaste" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement1 = $pdo->prepare("select * from subcaste GROUP BY name");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['id']?>"><?=$result1['name']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">Mobile No </label>
                    <select name="cellno[]"  class="form-control tamil select2" charset="utf-8"  id="cellno" required="required" multiple>
                        
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY cellno");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['cellno']?>"><?=$result1['cellno']?></option>
                      <?php  } ?>
                    </select>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">குடும்ப அடையாளம்</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="family_idty[]"  class="form-control tamil select2" charset="utf-8"  id="family_idty" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY family_idty");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['family_idty']?>"><?=$result1['family_idty']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">பிறந்த தேதி </label>
                    <select name="dob[]"  class="form-control tamil select2" charset="utf-8"  id="dob" required="required" multiple>
                        
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY dob");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['dob']?>"><?=$result1['dob']?></option>
                      <?php  } ?>
                    </select>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">மணமானவரா?</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="marriage[]"  class="form-control tamil select2" charset="utf-8"  id="marriage" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <option value='non-first'>ஆம்</option>
                    <option value='first'>இல்லை</option>
                                                         
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
             <div class="form-group">
                    <label class="" for="role">பதிவிட்டவர் பெயர்</label>                                   
                    <span onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                    <select name="rname[]"  class="form-control tamil select2" charset="utf-8"  id="rname" required="required" multiple onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
                        
                        <?php $statement1 = $pdo->prepare("SELECT * FROM profiles GROUP BY registeredby");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['registeredby']?>"><?=$result1['registeredby']?></option>
                      <?php  } ?>
                    </select></span>
                </div> 
         </div>
         <div class="col-md-4">
         <center>
           <span class="btn btn-success btn-sm" id="filter"><i class="fa fa-filter"></i> Filter</span>
         </center>
         </div>
        
        
    </div>
        
            <div style="padding-top: 10px;" id="filter_search">
                <input type="text" name="search_table" id="search_table"  placeholder="Search Here" class="form-control tamil" style="background: darkturquoise; width: 100%; padding: 0px 10px 0px 10px; font-size: 16px; height: 30px; font-weight: 700; color: white; -webkit-text-fill-color: white;">
            </div>
        
    <!-- Header Section Endsss Here -->
    
    
    
    
    <!-- Data Tables Starts Here -->
    <div class="row" style="padding-top: 15px;">
        
        <div class="col-xs-12">
            <div class="box box-warning">
                <div class="box-body" style="box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;">
                    
                    <div class="clearfix"></div>
                    
                    <div class="table-responsive">
                        <table id="StData" class="table table-striped table-bordered table-condensed table-hover" style="width:100%; margin-bottom:5px;font-size: larger;font-weight:bold">
                             <thead>
                                <tr class="active">
                                    <th style="text-align:center;padding: 0px 40px 0px 40px;"><strong>Action     </strong></th>
                                   
                                    <th style="text-align:center;"><strong>ப.மு.</strong></th>
                                    <th style="text-align:center;"><strong>பதிவு&nbspஎண்</strong></th>
                                    <th style="text-align:left;"><strong>பெயர்</strong></th>
                                    <th style="text-align:left;"><strong>தம்மி&nbspபெயர் </strong></th>
                                    <th style="text-align:left;"><strong>செல்போன்&nbspஎண்</strong></th>
                                   
                                    <th style="text-align:left;"><strong>பிறந்த&nbspதேதி</strong></th>
                                    <th style="text-align:left;"><strong>பாலினம்</strong></th>
                                    <th style="text-align:left;"><strong>ஜாதி</strong></th>
                                    <th style="text-align:left;"><strong>உட்&nbspபிரிவு</strong></th>
                                    
                                    <th style="text-align:left;"><strong>ராசி</strong></th>
                                    <th style="text-align:left;"><strong>நட்சத்திரம்</strong></th>
                                    <th style="text-align:left;"><strong>படிப்பு</strong></th>
                                    <th style="text-align:left;"><strong>அப்பா&nbspபெயர்</strong></th>
                                     <th style="text-align:left;"><strong>அப்பா&nbspதம்மி&nbspபெயர்</strong></th>
                                    
                                    <th style="text-align:left;"><strong>இருப்பிடம்</strong></th>
                                   <th style="text-align:left;"><strong>குடும்ப&nbspஅடையாளம்</strong></th>
                                   
                                    <th style="text-align:left;"><strong>பதிவு&nbspதேதி</strong></th>
                                    <th style="text-align:left;"><strong>புரோக்கர்&nbspபெயர்</strong></th>
                                    <th style="text-align:left;"><strong>பதிவிட்டவர்&nbspபெயர்</strong></th>
                                    <th style="text-align:left;"><strong>Login&nbspStatus</strong></th>
                				   <th style="text-align:left;"><strong>Total&nbspMatches</strong></th>
                				   <th style="text-align:left;"><strong>Limit&nbspCount</strong></th>
                				   <th style="text-align:left;"><strong>Days Limit</strong></th>
                				   <th style="text-align:left;"><strong>மனமானவரா</strong></th>
                                   
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="10" class="dataTables_empty"><center> Loading Pls Wait Data</center></td>
                                </tr>
                            </tbody>
                            
                        </table>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <!-- Data Tables Endsss Here -->
</section>


<?php include "footer.php";?>

 

<script>
    $(document).ready(function(){
        $('#filter_section').hide();
        $('#show_filter').click(function(){
            $("#filter_section").slideToggle();
            return false;
        });
        $('#filter_search').show();
        $('#show_search').click(function(){
            $("#filter_search").slideToggle();
            return false;
        });
        
        
        
        
        
    });
</script>
 
 <!--tamil typing --editor>-->
    <SCRIPT language=JavaScript src="tamil/utf.js"></SCRIPT>
	<SCRIPT language=JavaScript src="tamil/tamil.js"></SCRIPT>
		
		<script>
			$(document).ready(function(){
				$('input,textarea,.select2-input').on('keydown',function(event){
					if(event.which==121){
						$(this).toggleClass('tamil');
						return false;
					}
					if($(this).hasClass('tamil')){
						toggleKBMode(event);
					}else{
						return true;
					}
				});
				$('input,textarea,.select2-input').on('keypress',function(event){
					if($(this).hasClass('tamil')){
						convertThis(event);
					}
				});
			});
		</script>

Zerion Mini Shell 1.0