<?php /* Smarty version 2.6.2, created on 2010-02-10 15:48:38
         compiled from member.html */ ?>
<?php require_once(_SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'member.html', 49, false),array('function', 'html_options', 'member.html', 179, false),)), $this); ?>
<?php $this->assign('title', @constant('_TPL_MEMBER_TITLE')); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="content">		
        <div class="indent-main">
            <div class="container">
                <div class="col-1 maxheight">
                	<div class="box maxheight">
                        <div class="border-top maxheight">
                            <div class="border-bottom maxheight">
                                <div class="border-right maxheight">
                                    <div class="border-left maxheight">
                                        <div class="corner-top-right maxheight">
                                            <div class="corner-top-left maxheight">
                                                <div class="corner-bottom-left maxheight">
                                                    <div class="corner-bottom-right maxheight"> 
                                                        <div class="indent-box">
                                                            <img alt="" src="<?php echo $this->_tpl_vars['config']['root_surl']; ?>
/templates/images//1page_title1.gif" class="title" /><br />
                    <div class="container tail">
                                                            	
        
<table width="100%"><tr><td style="width: 50%; vertical-align: top;">
<div class="centered">
   <!-- display links to protected areas for customer -->
<?php if ($_SESSION['_amember_products']): ?>    <h3>#_TPL_MEMBER_SUBSCR#</h3>
    <table><tr><td><ul> <!-- table to align subscriptions -->
    <?php if (count($_from = (array)$this->_tpl_vars['member_products'])):
    foreach ($_from as $this->_tpl_vars['p']):
?>
    <li>
    <?php if ($this->_tpl_vars['p']['url'] > ""): ?>
        <a href="<?php echo $this->_tpl_vars['p']['url']; ?>
"><?php echo $this->_tpl_vars['p']['title']; ?>
</a>
    <?php else: ?>
        <b><?php echo $this->_tpl_vars['p']['title']; ?>
</b>
    <?php endif; ?>
    </li>
    <?php if (count($_from = (array)$this->_tpl_vars['p']['add_urls'])):
    foreach ($_from as $this->_tpl_vars['url'] => $this->_tpl_vars['t']):
?>  
        <li><a href="<?php echo $this->_tpl_vars['url']; ?>
"><?php echo $this->_tpl_vars['t']; ?>
</a></li>
    <?php endforeach; unset($_from); endif; ?>
    <?php endforeach; unset($_from); endif; ?>
    </ul></td></tr></table>
<?php else: ?>    <h3>#_TPL_MEMBER_NO_SUBSCR#</h3>    
    #_TPL_MEMBER_USE|<i>|</i>#<br /> 
    #_TPL_MEMBER_ORDER_SUBSCR#<br />
<?php endif; ?>
<br />
<table><tr><td>
<?php if (count($_from = (array)$this->_tpl_vars['left_member_links'])):
    foreach ($_from as $this->_tpl_vars['u'] => $this->_tpl_vars['t']):
?>
    <li> <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['u'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"><?php echo $this->_tpl_vars['t']; ?>
</a></li>
<?php endforeach; unset($_from); endif; ?>
</td></tr></table>
<!-- end of display links to protected areas for customer -->
</div>

<div class="centered">
<!-- -->
<!-- newsletters form -->

<!--<?php echo ' --><script language="JavaScript" type="text/javascript">
<!--
function checkboxes(num){
    if (num == 1){
        is_checked = document.subs.unsubscribe.checked;
        for (i = 0; i < document.subs.elements.length; i++){
            if (document.subs.elements[i].name == \'threads[]\' && document.subs.elements[i].checked){
                is_checked = false;
            }
        }
        document.subs.unsubscribe.checked = is_checked;
    }
    if (num == 2){
        for (i = 0; i < document.subs.elements.length; i++){
            if (document.subs.elements[i].name == \'threads[]\'){
                if (document.subs.unsubscribe.checked){
                    document.subs.elements[i].checked = false;
                }
                document.subs.elements[i].disabled = document.subs.unsubscribe.checked;
                
            }
        }
        if (document.subs.unsubscribe.checked){
            document.getElementById(\'newsletters_td\').className = \'disabled\';
        } else {
            document.getElementById(\'newsletters_td\').className = \'\';
        }
    }
}
-->
</script><!--{literal} '; ?>
-->

<form method="post" name="subs" action="<?php echo ((is_array($_tmp=$_SERVER['PHP_SELF'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">

<table class="newsletters">
<tr><td id="newsletters_td" <?php if ($this->_tpl_vars['unsubscribed']): ?>class="disabled"<?php else:  endif; ?>>
<?php if (count($_from = (array)$this->_tpl_vars['threads_list'])):
    foreach ($_from as $this->_tpl_vars['tr']):
?>
<?php if ($this->_tpl_vars['tr']['is_active']): ?>
<input type="checkbox" id="tr<?php echo $this->_tpl_vars['tr']['thread_id']; ?>
" name="threads[]" value="<?php echo $this->_tpl_vars['tr']['thread_id']; ?>
" 
    <?php if ($this->_tpl_vars['threads'][$this->_tpl_vars['tr']['thread_id']] == '1'): ?>checked="checked"<?php endif; ?> 
    onclick="checkboxes(1)" <?php if ($this->_tpl_vars['unsubscribed']): ?>disabled="disabled"<?php endif; ?> />
<label for="tr<?php echo $this->_tpl_vars['tr']['thread_id']; ?>
">
<strong><?php echo $this->_tpl_vars['tr']['title']; ?>
</strong><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="small"><?php echo $this->_tpl_vars['tr']['description']; ?>
</span>
</label>
<br />
<?php endif; ?>
<?php endforeach; unset($_from); endif; ?>
</td></tr>
</table>


</form>
<!-- end of newsletters form -->


<!-- end of newsletters archive -->

</div>

</td><td style="vertical-align: top;">
<div class="centered">

<!-- renew and payment history options -->
<h3>#_TPL_MEMBER_USEFUL_LINKS#</h3>
<table><tr><td><!-- right top links -->
<a href="<?php echo $this->_tpl_vars['config']['root_url']; ?>
/logout.php">#_TPL_MEMBER_LOGOUT#</a><br />
<a href="<?php echo $this->_tpl_vars['config']['root_url']; ?>
/profile.php">#_TPL_MEMBER_CH_PSWD#</a><br />
<a href="<?php echo $this->_tpl_vars['config']['root_url']; ?>
/checks.php?id=<?php echo $_SESSION['_amember_id']; ?>
">Checks</a><br />
<a href="<?php echo $this->_tpl_vars['config']['root_url']; ?>
/contacts.php?id=<?php echo $_SESSION['_amember_id']; ?>
">Contacts</a><br />
<a href="<?php echo $this->_tpl_vars['config']['root_url']; ?>
/report.php?id=<?php echo $_SESSION['_amember_id']; ?>
">Report</a><br />
<?php if (count($_from = (array)$this->_tpl_vars['member_links'])):
    foreach ($_from as $this->_tpl_vars['u'] => $this->_tpl_vars['t']):
?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['u'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"><?php echo $this->_tpl_vars['t']; ?>
</a><br />
<?php endforeach; unset($_from); endif; ?>
</td></tr></table>

<h3>#_TPL_MEMBER_ADD_RENEW#</h3>    
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "error.inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<form id="payment" name="payment" method="post" action="member.php#e">
<table class="vedit">

<!-- product selection code -->
<tr><th>#_TPL_SIGNUP_MEMB_TYPE# *</th><td>
<?php if ($this->_tpl_vars['config']['member_select_multiple_products']): ?>
    <?php if (count($_from = (array)$this->_tpl_vars['products_to_renew'])):
    foreach ($_from as $this->_tpl_vars['p']):
?> 
    <input type="checkbox" id="product<?php echo $this->_tpl_vars['p']['product_id']; ?>
" name="product_id[]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['p']['product_id'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"
        <?php if (in_array ( $this->_tpl_vars['p']['product_id'] , ( array ) $_REQUEST['product_id'] )): ?>checked="checked"<?php endif; ?>
        />
        <label for="product<?php echo $this->_tpl_vars['p']['product_id']; ?>
"><b><?php echo $this->_tpl_vars['p']['title']; ?>
 (<?php echo $this->_tpl_vars['p']['terms']; ?>
)</b><br />
        <span class="small"><?php echo $this->_tpl_vars['p']['description']; ?>
</span></label><br /><br />
    <?php if ($this->_tpl_vars['p']['price'] <= 0.0): ?>
    <?php $this->assign('paysys_id_not_required', '1'); ?>
    <?php endif; ?>        
    <?php endforeach; unset($_from); endif; ?>
<?php else: ?>
<select name="product_id" size="1">
    <option value="">#_TPL_MEMBER_SELECT#</option>
<?php if (count($_from = (array)$this->_tpl_vars['products_to_renew'])):
    foreach ($_from as $this->_tpl_vars['p']):
?>
    <option value="<?php echo $this->_tpl_vars['p']['product_id']; ?>
"
    <?php if ($this->_tpl_vars['p']['product_id'] == $_REQUEST['product_id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['p']['title']; ?>
 (<?php echo $this->_tpl_vars['p']['terms']; ?>
) 
    </option>
    <?php if ($this->_tpl_vars['p']['price'] <= 0.0): ?>
    <?php $this->assign('paysys_id_not_required', '1'); ?>
    <?php endif; ?>        
<?php endforeach; unset($_from); endif; ?>
</select>
<?php endif; ?>
<?php if ($this->_tpl_vars['paysys_id_not_required']): ?>
      <input type="hidden" name="paysys_id_not_required" value="for javascript" />
<?php endif; ?>
</td></tr>

<!-- paysystem selection code -->
<?php if ($this->_tpl_vars['config']['product_paysystem']):  else: ?>
<?php if (count ( $this->_tpl_vars['paysystems_select'] ) > 1): ?>
<tr>
    <th>#_TPL_SIGNUP_PAYSYS# *</th>
    <td><select name="paysys_id" size="1">
    <option value=''>#_TPL_MEMBER_SELECT2#</option>
    <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['paysystems_select'],'selected' => $_REQUEST['paysys_id']), $this);?>

</select></td></tr>
<?php else: ?>
<?php if (count($_from = (array)$this->_tpl_vars['paysystems_select'])):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['p']):
?>
    <input type="hidden" name="paysys_id" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['i'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
<?php endforeach; unset($_from); endif; ?>
<?php endif; ?>
<?php endif; ?>

<!-- coupon text box -->
<?php if ($this->_tpl_vars['config']['use_coupons']): ?>
<tr>
    <th><b>#_TPL_SIGNUP_COUPON_CODE#</b></th>
<td>
<input type="text" name="coupon" value="<?php echo ((is_array($_tmp=$_REQUEST['coupon'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" size="15" />
</td></tr>
<?php endif; ?>
</table><!-- end of add/renew subscription controls -->
<input type="hidden" name="action" value="renew" /> 
<br /><div style="text-align: center;"><input type="submit" value="&nbsp;&nbsp;&nbsp;#_TPL_MEMBER_ORDER_BUT#&nbsp;&nbsp;&nbsp;" /></div>
</form>



</div>
<!-- end of renew and payment history options -->
</td></tr></table>

<br /><br />

<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['root_surl']; ?>
/includes/jquery/jquery.js?smarty"></script><!--<?php echo ' '; ?>
-->
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['root_surl']; ?>
/includes/jquery/jquery.select.js?smarty"></script><!--<?php echo ' '; ?>
-->
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['root_surl']; ?>
/includes/jquery/jquery.metadata.min.js?smarty"></script><!--<?php echo ' '; ?>
-->
<script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['root_surl']; ?>
/includes/jquery/jquery.validate.pack.js?smarty"></script><!--<?php echo ' '; ?>
-->
<!--<?php echo ' --><script type="text/javascript">
$(document).ready(function(){
    $("form#payment").validate({
    rules: {
		';  if (! $this->_tpl_vars['config']['member_select_multiple_products']):  echo '
		product_id: "required", 
		';  else:  echo '
		"product_id[]": "required", 
		';  endif;  echo '
    	paysys_id: "required"
	},
  	errorPlacement: function(error, element) {
		error.appendTo( element.parent());
	}
    });
});
</script><!--{literal} '; ?>
-->

                                                                <br class="clear" />
                                                            </div>
                                                            
                                                           
                                                           <!-- -->
                                                        </div>                                     
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
              
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>