<?php echo $header; ?>

<div id="content">

  <br>

  <div class="box">

    <div class="heading">
      <h1><i class="icon-rss"></i> <?php echo $heading_title; ?></h1>
			<?php if ($success) { ?>
				<?php echo p3html::tb_alert('success', $success, true, 'success'); ?>
			<?php } ?>
			<?php if ($error) { ?>
				<?php echo p3html::tb_alert('error', $error, true, 'warning'); ?>
			<?php } ?>
    </div>

    <div class="content">

			<?php if ($extensions) { ?>
      <table class="list table table-striped table-hover">
        <thead>
          <tr>
            <th class="column-name"><?php echo $column_name; ?></th>
            <th class="column-status"><?php echo $column_status; ?></th>
            <th class="column-action"><?php echo $column_action; ?></th>
          </tr>
        </thead>
        <tbody>
          <?php foreach ($extensions as $extension) { ?>
          <tr>
            <td class="column-name"><?php echo $extension['name']; ?></td>
            <td class="column-status">
							<?php //echo $extension['status'] ?>
							<?php $status = $this->language->get('text_enabled')==$extension['status'] ?>
							<?php echo p3html::tb_status_label($status, $extension['status']); ?>
						</td>
            <td class="column-action">
							<?php echo p3html::tb_action_buttons($extension); ?>
						</td>
          </tr>
          <?php } ?>
        </tbody>
      </table>
			<?php } else { ?>
			<?php echo p3html::tb_alert('warning', $text_no_results, false, 'no-results'); ?>
			<?php } ?>

    </div>

  </div>
</div>

<?php echo $footer; ?>