<?php 
/**
 * Screen settings\index
 * @version 1.0.1
 * @package Backend\Languages
 * 
*/

?>
<div class="row" >
<form id="form1" class="form-horizontal" action="<?= __SITEBASE ?>/settings/save"  method="post">
<div class="col-lg-12" >
            <h3><?=R('page_settings_title') ?></h3>
	        <div class="panel panel-default">
	       
	        <div class="panel-body">
	        <div class="col-sm-12">
	      
            <div class="table-responsive" >
	              <table class="table table-hover table-striped tablesorter">
	                <thead>
	                  <tr>
	                    <th class="header"><?= R("label_description")?> <i class="fa fa-sort"></i></th>
	                    <th class="header"><?= R("label_lang_code")?> <i class="fa fa-sort"></i></th>
	                    <th class="header"><?= R("label_active")?> <i class="fa fa-sort"></i></th>
	                  
	                  </tr>
	                </thead>
	                <tbody>
	                <?php foreach($this->data['list'] as $obj)  {?>
	                  <tr>
	                    <td><?= D($obj->descriptioncode) ?></td>
	                    <td><?= $obj->code ?></td>
	                    <td><input type="checkbox" name="active_<?= $obj->id ?>" <?= $obj->active ? 'checked':'' ?>></td>
	                  </tr>
	                <?php }?>
	                </tbody>
	              </table>
              </div>
  	          </div>
            </div>
       	</div>
       </div>
        <div class="col-sm-12">
			    <div class="pull-left">
			      <button type="submit" class="btn btn-default" name="btnsubmit"><?= R('btn_save') ?></button>
			      <a href="<?= __SITEBASE ?>/settings" class="btn btn-default" role="button"><?= R('btn_cancel') ?></a>
			    </div>
    	</div>
    	</form>
</div> 
          