<?php /* Smarty version 2.6.28, created on 2014-05-22 03:17:20
         compiled from /home/vinhostm/public_html/order/templates/orderforms/verticalsteps/configureproduct.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', '/home/vinhostm/public_html/order/templates/orderforms/verticalsteps/configureproduct.tpl', 16, false),)), $this); ?>
<link rel="stylesheet" type="text/css" href="templates/orderforms/<?php echo $this->_tpl_vars['carttpl']; ?>
/style.css" />

<div id="order-verticalsteps">

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "orderforms/verticalsteps/verticalsteps.tpl", 'smarty_include_vars' => array('step' => 3)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="maincontent">

<h1><?php echo $this->_tpl_vars['LANG']['cartproductconfig']; ?>
</h1>

<p><?php echo $this->_tpl_vars['LANG']['cartproductdesc']; ?>
</p>

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?a=confproduct&i=<?php echo $this->_tpl_vars['i']; ?>
">
<input type="hidden" name="configure" value="true">

<?php if ($this->_tpl_vars['errormessage']): ?><div class="errorbox"><?php echo ((is_array($_tmp=$this->_tpl_vars['errormessage'])) ? $this->_run_mod_handler('replace', true, $_tmp, '<li>', ' &nbsp;#&nbsp; ') : smarty_modifier_replace($_tmp, '<li>', ' &nbsp;#&nbsp; ')); ?>
 &nbsp;#&nbsp; </div><br /><?php endif; ?>

<?php if ($this->_tpl_vars['productinfo']): ?>

<div class="orderbox">
<b class="orderboxrtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div class="orderboxpadding">
<b><?php echo $this->_tpl_vars['productinfo']['groupname']; ?>
 - <?php echo $this->_tpl_vars['productinfo']['name']; ?>
</b><br /><?php echo $this->_tpl_vars['productinfo']['description']; ?>

</div>
<b class="orderboxrbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
</div>

<input type="hidden" name="previousbillingcycle" value="<?php echo $this->_tpl_vars['billingcycle']; ?>
" />
<p><?php echo $this->_tpl_vars['LANG']['orderbillingcycle']; ?>
: <?php if ($this->_tpl_vars['pricing']['type'] == 'free'): ?>
<input type="hidden" name="billingcycle" value="free" />
<?php echo $this->_tpl_vars['LANG']['orderfree']; ?>

<?php elseif ($this->_tpl_vars['pricing']['type'] == 'onetime'): ?>
<input type="hidden" name="billingcycle" value="onetime" />
<?php echo $this->_tpl_vars['pricing']['onetime']; ?>
 <?php echo $this->_tpl_vars['LANG']['orderpaymenttermonetime']; ?>

<?php else: ?>
<select name="billingcycle" onchange="submit()">
<?php if ($this->_tpl_vars['pricing']['monthly']): ?><option value="monthly"<?php if ($this->_tpl_vars['billingcycle'] == 'monthly'): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['pricing']['monthly']; ?>
</option><?php endif; ?>
<?php if ($this->_tpl_vars['pricing']['quarterly']): ?><option value="quarterly"<?php if ($this->_tpl_vars['billingcycle'] == 'quarterly'): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['pricing']['quarterly']; ?>
</option><?php endif; ?>
<?php if ($this->_tpl_vars['pricing']['semiannually']): ?><option value="semiannually"<?php if ($this->_tpl_vars['billingcycle'] == 'semiannually'): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['pricing']['semiannually']; ?>
</option><?php endif; ?>
<?php if ($this->_tpl_vars['pricing']['annually']): ?><option value="annually"<?php if ($this->_tpl_vars['billingcycle'] == 'annually'): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['pricing']['annually']; ?>
</option><?php endif; ?>
<?php if ($this->_tpl_vars['pricing']['biennially']): ?><option value="biennially"<?php if ($this->_tpl_vars['billingcycle'] == 'biennially'): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['pricing']['biennially']; ?>
</option><?php endif; ?>
<?php if ($this->_tpl_vars['pricing']['triennially']): ?><option value="triennially"<?php if ($this->_tpl_vars['billingcycle'] == 'triennially'): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['pricing']['triennially']; ?>
</option><?php endif; ?>
</select>
<?php endif; ?></p>

<?php endif; ?>

<?php if ($this->_tpl_vars['productinfo']['type'] == 'server'): ?>
<p><strong><?php echo $this->_tpl_vars['LANG']['cartconfigserver']; ?>
</strong></p>
<div class="orderbox">
<table>
<tr><td><?php echo $this->_tpl_vars['LANG']['serverhostname']; ?>
:</td><td><input type="text" name="hostname" size="15" value="<?php echo $this->_tpl_vars['server']['hostname']; ?>
" /> eg. server1(.yourdomain.com)</td></tr>
<tr><td><?php echo $this->_tpl_vars['LANG']['serverns1prefix']; ?>
:</td><td><input type="text" name="ns1prefix" size="10" value="<?php echo $this->_tpl_vars['server']['ns1prefix']; ?>
" /> eg. ns1(.yourdomain.com)</td></tr>
<tr><td><?php echo $this->_tpl_vars['LANG']['serverns2prefix']; ?>
:</td><td><input type="text" name="ns2prefix" size="10" value="<?php echo $this->_tpl_vars['server']['ns2prefix']; ?>
" /> eg. ns2(.yourdomain.com)</td></tr>
<tr><td><?php echo $this->_tpl_vars['LANG']['serverrootpw']; ?>
:</td><td><input type="password" name="rootpw" size="20" value="<?php echo $this->_tpl_vars['server']['rootpw']; ?>
" /></td></tr>
</table>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['configurableoptions']): ?>
<p><strong><?php echo $this->_tpl_vars['LANG']['orderconfigpackage']; ?>
</strong></p>
<p><?php echo $this->_tpl_vars['LANG']['cartconfigoptionsdesc']; ?>
</p>
<div class="orderbox">
<table>
<?php $_from = $this->_tpl_vars['configurableoptions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['configoption']):
?>
<tr><td><?php echo $this->_tpl_vars['configoption']['optionname']; ?>
:</td><td>
<?php if ($this->_tpl_vars['configoption']['optiontype'] == 1): ?>
<select name="configoption[<?php echo $this->_tpl_vars['configoption']['id']; ?>
]">
<?php $_from = $this->_tpl_vars['configoption']['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num2'] => $this->_tpl_vars['options']):
?>
<option value="<?php echo $this->_tpl_vars['options']['id']; ?>
"<?php if ($this->_tpl_vars['configoption']['selectedvalue'] == $this->_tpl_vars['options']['id']): ?> selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['options']['name']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<?php elseif ($this->_tpl_vars['configoption']['optiontype'] == 2): ?>
<?php $_from = $this->_tpl_vars['configoption']['options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num2'] => $this->_tpl_vars['options']):
?>
<label><input type="radio" name="configoption[<?php echo $this->_tpl_vars['configoption']['id']; ?>
]" value="<?php echo $this->_tpl_vars['options']['id']; ?>
"<?php if ($this->_tpl_vars['configoption']['selectedvalue'] == $this->_tpl_vars['options']['id']): ?> checked="checked"<?php endif; ?>> <?php echo $this->_tpl_vars['options']['name']; ?>
</label><br />
<?php endforeach; endif; unset($_from); ?>
<?php elseif ($this->_tpl_vars['configoption']['optiontype'] == 3): ?>
<label><input type="checkbox" name="configoption[<?php echo $this->_tpl_vars['configoption']['id']; ?>
]" value="1"<?php if ($this->_tpl_vars['configoption']['selectedqty']): ?> checked<?php endif; ?>> <?php echo $this->_tpl_vars['configoption']['options']['0']['name']; ?>
</label>
<?php elseif ($this->_tpl_vars['configoption']['optiontype'] == 4): ?>
<input type="text" name="configoption[<?php echo $this->_tpl_vars['configoption']['id']; ?>
]" value="<?php echo $this->_tpl_vars['configoption']['selectedqty']; ?>
" size="5"> x <?php echo $this->_tpl_vars['configoption']['options']['0']['name']; ?>

<?php endif; ?>
</td></tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['addons']): ?>
<p><strong><?php echo $this->_tpl_vars['LANG']['orderchooseaddons']; ?>
</strong></p>
<p><?php echo $this->_tpl_vars['LANG']['orderaddondescription']; ?>
</p>
<div class="orderbox">
<table>
<?php $_from = $this->_tpl_vars['addons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['addon']):
?>
<tr><td><?php echo $this->_tpl_vars['addon']['checkbox']; ?>
</td><td><label for="a<?php echo $this->_tpl_vars['addon']['id']; ?>
"><strong><?php echo $this->_tpl_vars['addon']['name']; ?>
</strong> - <?php echo $this->_tpl_vars['addon']['description']; ?>
 (<?php echo $this->_tpl_vars['addon']['pricing']; ?>
)</label></td></tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['customfields']): ?>
<p><strong><?php echo $this->_tpl_vars['LANG']['orderadditionalrequiredinfo']; ?>
</strong></p>
<p><?php echo $this->_tpl_vars['LANG']['cartcustomfieldsdesc']; ?>
</p>
<div class="orderbox">
<table>
<?php $_from = $this->_tpl_vars['customfields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['customfield']):
?>
<tr><td><?php echo $this->_tpl_vars['customfield']['name']; ?>
:</td><td><?php echo $this->_tpl_vars['customfield']['input']; ?>
 <?php echo $this->_tpl_vars['customfield']['description']; ?>
</td></tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['domainoption']): ?>
<p><strong><?php echo $this->_tpl_vars['LANG']['cartproductdomain']; ?>
</strong></p>

<?php if ($this->_tpl_vars['domains']): ?>
<input type="hidden" name="domainoption" value="<?php echo $this->_tpl_vars['domainoption']; ?>
" />
<p>
<?php $_from = $this->_tpl_vars['domains']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['domain']):
?>
<input type="hidden" name="domains[]" value="<?php echo $this->_tpl_vars['domain']['domain']; ?>
" />
<input type="hidden" name="domainsregperiod[<?php echo $this->_tpl_vars['domain']['domain']; ?>
]" value="<?php echo $this->_tpl_vars['domain']['regperiod']; ?>
" />
<?php echo $this->_tpl_vars['LANG']['orderdomain']; ?>
 <?php echo $this->_tpl_vars['num']+1; ?>
 - <?php echo $this->_tpl_vars['domain']['domain']; ?>
<?php if ($this->_tpl_vars['domain']['regperiod']): ?> (<?php echo $this->_tpl_vars['domain']['regperiod']; ?>
 <?php echo $this->_tpl_vars['LANG']['orderyears']; ?>
)<?php endif; ?><br />
<?php endforeach; endif; unset($_from); ?>
</p>
<?php endif; ?>

<?php if ($this->_tpl_vars['additionaldomainfields']): ?>
<table>
<?php $_from = $this->_tpl_vars['additionaldomainfields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['domainfieldname'] => $this->_tpl_vars['domainfield']):
?>
<tr><td nowrap><?php echo $this->_tpl_vars['domainfieldname']; ?>
</td><td><?php echo $this->_tpl_vars['domainfield']; ?>
</td></tr>
<?php endforeach; endif; unset($_from); ?>
</table>
<?php endif; ?>

<?php endif; ?>

<p align="center"><?php if ($this->_tpl_vars['firstconfig']): ?><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['addtocart']; ?>
" /><?php else: ?><input type="submit" value="<?php echo $this->_tpl_vars['LANG']['updatecart']; ?>
" /><?php endif; ?></p>

</form>

</div>

</div>