<!-- Content Wrapper. Contains page content -->
<?php
$userRol = $_SESSION['USERS_DATA']['userType'];
$userId = $_SESSION['USERS_DATA']['userId'];

?>
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header mb_9">
              <h1>Click On The Title to Update Data</h1>
    </section>
     <!-- Main content -->
     <section class="content">
        <input type="hidden" class="btn btn-primary" data-toggle="modal" data-target="#AddWholesaler" id="ItemCreateItemBtn" data-backdrop="static" data-keyboard="false">
        <div class="modal fade" id="AddWholesaler">
             <div class="modal-dialog modal-lg">
                <div class="modal-content">
                   <div class="modal-header">
                      <button type="button" class="close mfwPopUpClose" data-dismiss="modal" aria-label="Close">
                      <i class="fa fa-remove" class="remover"></i></button>
                      <h4 class="modal-title">Update Message App</h4>
                   </div>
                   <div class="modal-body">
                         <form role="form" id="hdalangForm" data-target="admin/update_msg" runat="server" method="post">
                            <div class="box-body padder0">
                               <div class="section_wrap">
                                   <div class="row">
                                      <div class="col-lg-12 col-md-12 col-sm-12 cl-xs-12">
                                          <h4 class="sub_title"></h4>
                                      </div>
                                      <div class="col-lg-12 col-md-12 col-sm-12 cl-xs-12">
                                         <div class="form-group">
                                            <label for="msgName">Message</label>
                                            <input type ="hidden" id="farm_action" value="admin/update_msg">
                                            <input type ="hidden" id="langKey" name="langKey" value="">
                                            <input type="text" class="form-control" id="msgName" name="msgName" placeholder="Enter Message" required autocomplete="off">
                                         </div>
                                      </div>
                                   </div>
                                 </div>
                            </div>
                            <!-- /.box-body -->
                            <div class="box-footerr text-center">
                               <button type="submit" class="btn btn-primary" id="hdaLangMsg">Submit</button>
                            </div>
                         </form>
                   </div>
                </div>
                <!-- /.modal-content -->
             </div>
             <!-- /.modal-dialog -->
          </div>
          <!-- /.modal -->
        <!-- Main content -->
        <div class="accordion_container">
        <?php
    	$allSectionsArr = explode(',',$this->ts_functions->getsettings('languagesection','text'));
    	for($i=0;$i<count($allSectionsArr);$i++) {
    	    $colpsIn = ( $i == 0 ) ? 'in' : '' ;
    
    	    $closedSec = ( $i != 0 ) ? 'collapsed' : '' ;
    	?>
        	<div class="accordation_section">
                	<a class="accordation_title" href="javascript:void(0);">
                              <? echo $allSectionsArr[$i]; ?> 
                              <i class="fa fa-plus"></i>
                    </a>
                   <div class="acordation_content">
                   
                	<div class="row">
                    	<div class="col-lg-12">
                    		<div class="box wholeSaleWrapper">
                                <div class="box-body">
                        				<?php
                        				$languageOptionsArr = explode(',', $this->ts_functions->getsettings('languageoption','text'));
                        			
                        				?>
                        				<div class="table-responsive">
                                        <table class="table hda_langTable table-bordered table-striped">
                        					<thead>
                        						<tr>
                        							<th>#</th>
                        							<th>Title</th>
                        							<?php for($j=0;$j<count($languageOptionsArr);$j++) {
                        								echo '<th>'.ucwords($languageOptionsArr[$j]).'</th>';
                        							}?>
                        						</tr>
                        					<thead>
                        					<tfoot>
                        						<tr>
                        							<th>#</th>
                        							<th>Title</th>
                        							<?php for($j=0;$j<count($languageOptionsArr);$j++) {
                        								echo '<th>'.ucwords($languageOptionsArr[$j]).'</th>';
                        							}?>
                        						</tr>
                        					<tfoot>
                        			<?php $languageArr = $this->ts_functions->getlanguage('all',$allSectionsArr[$i],'all');
                        				$counter = 0;
                        
                        			?>
                        				<tbody>
                        				    
                        			<?php
                        			foreach($languageArr as $soloLang) {
                        				$counter++;
                        			?>
                        				<tr>
                        					<td><?php echo $counter; ?></td>
                        					<td><?php echo $soloLang['language_title']; ?></td>
                        
                        					<?php for($j=0;$j<count($languageOptionsArr);$j++) {
                        						$l = 'language_'.$languageOptionsArr[$j];
                        						echo '<td class="dblclicklang123" data-id="'.$soloLang['language_key'].'#'.$allSectionsArr[$i].'#'.$languageOptionsArr[$j].'"><p class="lang_desc">'.$soloLang[$l].'<button class="btn-primary icon_btn ml-2"><i class="fa fa-pencil-square-o"></i></button></p></td>';
                        					}?>
                        				</tr>
                        			<?php } ?>
                        				</tbody>
                        				</table>
                        
                                    </div>
                                </div>
                                <!-- /.box-body -->
                              </div>
                              <!-- /.box -->
                    		</div>
                		</div>
                	</div>
                </div>
           <? } ?>
           	</div>
        </section>
        <!-- /.content -->
      </div>
      <!-- /.content-wrapper -->
  