
    <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            <?php echo $lang['TITLE_LIST_TPLMAIL']; ?>
            <small><?php echo $lang['LIST_TPLMAIL']; ?></small>
          </h1>
          
        </section>

       
       <section class="content">
          <div class="row">
            <div class="col-xs-12">
				
			
				<?php if($_GET['y'] == '2') { ?>
				<div class="callout callout-success">
                    <h4><?php echo $lang['ALERT_TPLMAIL_UPDATE']; ?></h4>
                    <p><?php echo $lang['ALERT_TPLMAIL_UPDATE_TXT']; ?></p>
                  </div>
				<?php } ?>
				
				
              <div class="box">
				  
                <div class="box-header">
                
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table id="tabela" class="table table-striped table-hover">
                    <thead>
                      <tr>
                        <th><?php echo $lang['MAIL_TPLNAME']; ?></th>
                        <th><?php echo $lang['MAIL_SUBJECT']; ?></th>
                        <th><?php echo $lang['MAIL_NAME']; ?></th>
                        <th><?php echo $lang['MAIL_EMAIL']; ?></th>
                        <th><?php echo $lang['ACTIONS']; ?></th>
                      </tr>
                    </thead>
                    <tbody>
					<?php
 		  			$query = mysql_query("SELECT * FROM email_template order by id ASC");
 		  			while($result = mysql_fetch_array($query)){ 
					?>
		            <tr>
					
		            <td><?php echo $result['name']; ?></td>
					<td><?php echo $result['subject']; ?></td>
					<td><?php echo $result['name_from']; ?></td>
					<td><?php echo $result['from_mail']; ?></td>
					
		            <td width="120">
					<div class="btn-group">
                      <button type="button" class="btn btn-info btn-sm"><?php echo $lang['ACTIONS']; ?></button>
                      <button type="button" class="btn btn-info btn-sm dropdown-toggle" data-toggle="dropdown">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                      </button>
                      <ul class="dropdown-menu" role="menu">
                        <li><a href="?mod=TPLNewEmail&id=<?php echo base64_encode($result['id']); ?>"><?php echo $lang['BTN_UPDATE']; ?></a></li>
                      </ul>
                    </div>
                    
                    </td>
                    
		            </tr>
					<?php } ?>
					
                    </tbody>
                    <tfoot>
                      <tr>
                        <th><?php echo $lang['MAIL_TPLNAME']; ?></th>
                        <th><?php echo $lang['MAIL_SUBJECT']; ?></th>
                        <th><?php echo $lang['MAIL_NAME']; ?></th>
                        <th><?php echo $lang['MAIL_EMAIL']; ?></th>
                        <th><?php echo $lang['ACTIONS']; ?></th>
                      </tr>
                    </tfoot>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
       
           </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content -->
       
       
        
        
      </div><!-- /.content-wrapper -->
   
   
   
   
