<?php echo $header; ?><?php echo $column_left; ?>
 <div id="content">
  <div class="page-header">
    <div class="container-fluid">
        <h1><?php echo $heading_title; ?></h1>
        <ul class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
        <?php } ?>
        </ul>
        <div class="pull-right">
            <button type="submit" form="form-filter" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary save-changes"><i class="fa fa-save"></i></button>
            <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a>
        </div>
    </div>
  </div>
  <div class="container-fluid">
    <?php echo $licensedData; ?>

    <?php if ($error_warning) { ?>
    <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    <?php } ?>

    <?php if ($success) { ?>
    <div class="alert alert-success autoSlideUp"><i class="fa fa-check-circle"></i> <?php echo $success; ?>
        <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    <script>$('.autoSlideUp').delay(3000).fadeOut(600, function(){ $(this).show().css({'visibility':'hidden'}); }).slideUp(600);</script>
    <?php } ?>

	<div class="row row-main">
        <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-filter" class="form-horizontal">
            <div class="panel panel-default">
                <div class="panel-body">
                   <ul class="nav nav-tabs mainMenuTabs" role="tablist">
                      <li class="active">
                          <a role="tab" data-toggle="tab" href="#home-tab"><?php echo $tab_dashboard; ?></a>
                      </li>
                      <li>
                          <a role="tab" data-toggle="tab" href="#isense-support"><?php echo $tab_support; ?></a>
                      </li>
                    </ul>
                    <div class="tab-content">
                        <div id="home-tab" role="tabpanel" class="tab-pane fade in active">
							<?php require_once (DIR_APPLICATION.'view/template/'.$modulePath.'/tab_dashboard.tpl'); ?>
                        </div>
                        <div id="isense-support" role="tabpanel" class="tab-pane fade">
                            <?php require_once (DIR_APPLICATION.'view/template/'.$modulePath.'/tab_support.tpl'); ?>
                        </div>
                    </div>

                </div>
            </div><!--.panel-->
        </form>

    </div>
  </div>
</div>
<script type="text/javascript">
var storeId                                 = '<?php echo $storeId; ?>';
var domain                                  = '<?php echo $domain; ?>';
var domainraw                               = '<?php echo $domainRaw; ?>';
var timenow                                 = '<?php echo $timeNow; ?>';
var MID                                     = '<?php echo $mid; ?>';
var token                                   = '<?php echo $token; ?>';
var token_string                            = '<?php echo $token_string; ?>';
var moduleName                              = '<?php echo $moduleName; ?>';
var modulePath                              = '<?php echo $modulePath; ?>';

function showHideStuff($typeSelector, $toggleArea, $selectStatus) {
  if ($typeSelector.val() === $selectStatus) {
    $toggleArea.show();
  } else {
    $toggleArea.hide();
  }
    $typeSelector.change(function(){
        if ($typeSelector.val() === $selectStatus) {
            $toggleArea.show(300);
        }
        else {
            $toggleArea.hide(300);
        }
    });
}

$(function() {
  showHideStuff($('#CaptchaChecker'), $('.captcha-info'), 'yes');
});
</script>
<?php echo $footer; ?>
