<?php /* Smarty version 2.6.28, created on 2014-05-23 01:16:31
         compiled from /home/vinhostm/public_html/order/templates/orderforms/ajaxcart/products.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'orderforms/ajaxcart/ajaxcartheader.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if ($this->_tpl_vars['pid']): ?><script type="text/javascript">
selectproduct('<?php echo $this->_tpl_vars['pid']; ?>
');
$(document).ready(function(){
    jQuery("#pid<?php echo $this->_tpl_vars['pid']; ?>
").attr("checked","checked");
});
</script><?php endif; ?>

<div id="prodcontainer"<?php if ($_GET['skip'] && $this->_tpl_vars['pid']): ?> style="display:none;"<?php endif; ?>>

<h2><?php echo $this->_tpl_vars['LANG']['cartchooseproduct']; ?>
</h2>

<table width="100%" cellspacing="0" cellpadding="0">
<tr class="rowcolor1"><td>
<?php $_from = $this->_tpl_vars['productgroups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['group']):
?><label><input type="radio" name="gid" value="<?php echo $this->_tpl_vars['group']['gid']; ?>
" onclick="window.location='cart.php?gid=<?php echo $this->_tpl_vars['group']['gid']; ?>
'"<?php if ($this->_tpl_vars['group']['gid'] == $this->_tpl_vars['gid']): ?> checked<?php endif; ?> /> <?php echo $this->_tpl_vars['group']['name']; ?>
</label> <?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['loggedin']): ?><label><input type="radio" name="gid" onclick="window.location='cart.php?gid=addons'" /> <?php echo $this->_tpl_vars['LANG']['cartproductaddons']; ?>
</label>
<label><input type="radio" name="gid" onclick="window.location='cart.php?gid=renewals'" /> <?php echo $this->_tpl_vars['LANG']['domainrenewals']; ?>
</label> <?php endif; ?>
<?php if ($this->_tpl_vars['registerdomainenabled']): ?><label><input type="radio" name="gid" onclick="window.location='cart.php?a=add&domain=register'" /> <?php echo $this->_tpl_vars['LANG']['registerdomain']; ?>
</label> <?php endif; ?>
<?php if ($this->_tpl_vars['transferdomainenabled']): ?><label><input type="radio" name="gid" onclick="window.location='cart.php?a=add&domain=transfer'" /> <?php echo $this->_tpl_vars['LANG']['transferdomain']; ?>
</label><?php endif; ?>
</td></tr>
</table>

<br />

<table width="90%" cellspacing="0" cellpadding="0" align="center">
<?php $_from = $this->_tpl_vars['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['product']):
?>
<?php if ($this->_tpl_vars['product']['pid']): ?>
    <tr><td width="25"><input type="radio" name="pid" value="<?php echo $this->_tpl_vars['product']['pid']; ?>
" id="pid<?php echo $this->_tpl_vars['product']['pid']; ?>
" <?php if ($this->_tpl_vars['product']['qty'] != "" && $this->_tpl_vars['product']['qty'] <= 0): ?>disabled<?php endif; ?> onclick="selectproduct('<?php echo $this->_tpl_vars['product']['pid']; ?>
')"></td><td><label for="pid<?php echo $this->_tpl_vars['product']['pid']; ?>
"><strong><?php echo $this->_tpl_vars['product']['name']; ?>
</strong><?php if ($this->_tpl_vars['product']['qty'] != "" && $this->_tpl_vars['product']['qty'] <= 0): ?> (<?php echo $this->_tpl_vars['LANG']['outofstock']; ?>
)<?php endif; ?></label><?php if ($this->_tpl_vars['product']['description']): ?> - <?php echo $this->_tpl_vars['product']['description']; ?>
<?php endif; ?></td></tr>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</table>

</div>

<?php if ($this->_tpl_vars['numitemsincart']): ?><div id="checkoutbtn"><input type="button" value="<?php echo $this->_tpl_vars['LANG']['ajaxcartcheckout']; ?>
" onclick="checkout()" /></div><?php endif; ?>

<?php if ($this->_tpl_vars['hiddenproduct']): ?><input type="hidden" name="pid" value="<?php echo $this->_tpl_vars['pid']; ?>
" /><?php endif; ?>

<div id="loading1" class="loading"><img src="images/loading.gif" border="0" alt="<?php echo $this->_tpl_vars['LANG']['loading']; ?>
" /></div>

<div id="configcontainer1"></div>

<div id="configcontainer2"></div>

<div id="configcontainer3"></div>

<div id="signupcontainer"></div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'orderforms/ajaxcart/ajaxcartfooter.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>