<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?> 
  <?php if (empty($vqmod_available)) { ?>
  <div class="warning"><?php echo $error_vqmod; ?></div>
  <?php } ?>    
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/module.png" alt="" /> <?php echo $heading_title; ?></h1>
      <?php if (!empty($vqmod_available)) { ?>
      <div class="buttons"><a onclick="location = '<?php echo $cancel; ?>';" class="button"><span><?php echo $button_cancel; ?></span></a></div>
      <?php } ?>
    </div>
    <div class="content">
    <?php if (!empty($vqmod_available)) { ?>
    <div id="tabs" class="htabs"><a id="about" href="#tab-about"><?php echo $tab_about; ?></a></div> 
      	        
     <div id="tab-about">
     <div id="adv_sale_order"></div>
     
	<div style="border: 1px solid #ff9f00; margin-bottom:10px;">
      <table class="form">
       <tr>
        <td style="min-width:200px;"><?php echo $adv_pp_text_ext_name; ?></td>
        <td style="min-width:400px;"><b><?php echo $adv_pp_ext_name; ?></b></td>
       </tr>
       <tr>
        <td><?php echo $adv_pp_text_ext_version; ?></td>
        <td><b><?php echo $adv_pp_ext_version; ?></b> [ <?php echo $adv_pp_ext_type; ?> ] <div id="adv_pp_newversion"></div> <div id="adv_pp_what_is_new"></div></td>
       </tr>
       <tr>
        <td><?php echo $adv_pp_text_ext_compatibility; ?></td>
        <td><?php echo $adv_pp_ext_compatibility; ?></td>
       </tr>
       <tr>
        <td><?php echo $adv_pp_text_ext_url; ?></td>
        <td><a href="<?php echo $adv_pp_ext_url; ?>" target="_blank"><?php echo $adv_pp_ext_url ?></a></td>
       </tr>
       <tr>
        <td><?php echo $adv_pp_text_ext_support; ?></td>
        <td>
          <a href="mailto:<?php echo $adv_pp_ext_support; ?>?subject=<?php echo $adv_pp_ext_subject; ?>" target="_blank"><?php echo $adv_pp_ext_support; ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;
          <span style="color:#F00;"><b>!!!</b></span> <a href="view/template/module/adv_reports/adv_extension_help.htm" id="adv_pp_help_notice"><?php echo $text_asking_help; ?></a> <span style="color:#F00;"><b>!!!</b></span>
        </td>
       </tr>
       <tr>
        <td><?php echo $adv_pp_text_ext_legal; ?></td>
        <td><?php echo $adv_pp_text_copyright; ?>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="view/template/module/adv_reports/adv_extension_terms.htm" id="adv_pp_legal_notice"><?php echo $text_terms; ?></a></td>
       </tr>
      </table>
	 </div>
            
     <div id="adv_customer_order"></div>
     <div align="center"><img src="view/image/adv_reports/adv_logo.jpg" /></div>
     </div>
     
     <?php } ?>
    </div>
  </div>
</div> 
<?php if ($adv_so_ext_version && $adv_so_version && $adv_so_version['version'] != $adv_so_current_version) { ?>  
<script type="text/javascript"><!--
$('#about').append('<img id=\"warning\" src=\"view/image/warning.png\" width=\"15\" height=\"15\" align=\"absmiddle\" hspace=\"5\" border=\"0\" />');  $('#about').css({'background-color': '#FFD1D1','border': '1px solid #F8ACAC','color': 'red','text-decoration': 'blink'});
//--></script> 
<?php } elseif ($adv_pp_ext_version && $adv_pp_version && $adv_pp_version['version'] != $adv_pp_current_version) { ?>  
<script type="text/javascript"><!--
$('#about').append('<img id=\"warning\" src=\"view/image/warning.png\" width=\"15\" height=\"15\" align=\"absmiddle\" hspace=\"5\" border=\"0\" />');  $('#about').css({'background-color': '#FFD1D1','border': '1px solid #F8ACAC','color': 'red','text-decoration': 'blink'});
//--></script> 
<?php } elseif ($adv_co_ext_version && $adv_co_version && $adv_co_version['version'] != $adv_co_current_version) { ?>  
<script type="text/javascript"><!--
$('#about').append('<img id=\"warning\" src=\"view/image/warning.png\" width=\"15\" height=\"15\" align=\"absmiddle\" hspace=\"5\" border=\"0\" />');  $('#about').css({'background-color': '#FFD1D1','border': '1px solid #F8ACAC','color': 'red','text-decoration': 'blink'});
//--></script> 
<?php } ?>
<script type="text/javascript"><!--
$('.htabs a').tabs();
//--></script> 

<div id="adv_pp_legal_text" style="display:none"></div>
<div id="adv_pp_help_text" style="display:none"></div>
<script type="text/javascript">
jQuery("#adv_pp_legal_notice").click(function(e) {
    e.preventDefault();
    jQuery("#adv_pp_legal_text").load(this.href, function() {
        jQuery(this).dialog({
            title: '<?php echo $text_terms; ?>',
            width:  800,
            height:  600,
            minWidth:  500,
            minHeight:  400,
            modal: true,
        });
    });
    return false;
});
jQuery("#adv_pp_help_notice").click(function(e) {
    e.preventDefault();
    jQuery("#adv_pp_help_text").load(this.href, function() {
        jQuery(this).dialog({
            title: '<?php echo $text_help_request; ?>',
            width:  800,
            height:  600,
            minWidth:  500,
            minHeight:  400,
            modal: true,
        });
    });
    return false;
});
</script> 			
<?php if ($adv_pp_version) { ?>
<?php if ($adv_pp_version['version'] != $adv_pp_current_version) { ?>  
<script type="text/javascript">
jQuery('#adv_pp_newversion').append ('<span style=\"color:red\"><strong>There is new version <?php echo $adv_pp_version['version']; ?> for this extesion available!</strong></span>');
jQuery('#adv_pp_what_is_new').append('<?php echo html_entity_decode(str_replace("@@@","<br>",$adv_pp_version['whats_new']), ENT_QUOTES, 'UTF-8'); ?> ');
</script>
<?php } ?>
<?php } ?>
            
<?php echo $footer; ?>