<?php /* Smarty version Smarty-3.0.8, created on 2013-10-27 23:01:51
         compiled from "/home/paypax/public_html/sharj/templates/templates/index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1096233327526d5c1797a1f0-07654214%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ae0f0dd077e117fe184ab977d406eda15d26189f' => 
    array (
      0 => '/home/paypax/public_html/sharj/templates/templates/index.tpl',
      1 => 1382897705,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1096233327526d5c1797a1f0-07654214',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<?php $_template = new Smarty_Internal_Template('header.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->assign('title',$_smarty_tpl->getVariable('config')->value['config_site_title']);$_template->assign('description',$_smarty_tpl->getVariable('config')->value['config_site_description']);$_template->assign('index',1); echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
<form method="post" id="meu_formulario">
<div class="right-div">
<div><select name="category" id="category" style="width:344px;">
  <option value="0">انتخاب کنید</option>
<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
?>
	<option value="<?php echo $_smarty_tpl->tpl_vars['category']->value['category_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['category']->value['category_image']){?>title="<?php echo $_smarty_tpl->tpl_vars['category']->value['category_image'];?>
?w=30&h=30"<?php }?>><?php echo $_smarty_tpl->tpl_vars['category']->value['category_title'];?>
</option>
<?php }} ?>
</select><div class="cleaner"></div></div>
<div id="waiting" class="box"><?php echo htmlspecialchars_decode($_smarty_tpl->getVariable('config')->value['config_operator_description']);?>
</div>
<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('categories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
?>
	<div id="product_<?php echo $_smarty_tpl->tpl_vars['category']->value['category_id'];?>
" class="box"><ul><?php if ($_smarty_tpl->tpl_vars['category']->value['category_image']){?><img src="<?php echo $_smarty_tpl->tpl_vars['category']->value['category_image'];?>
?w=100&h=100" align="left"><?php }?>
	<?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['category']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
?>
		<li><input type="radio" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
" name="card" id="card_<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['product']->value['counter']==0){?>disabled<?php }?>> <label for="card_<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['product']->value['product_title'];?>
</label><span id="price_<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
" style="display: none;"><?php echo $_smarty_tpl->tpl_vars['product']->value['product_price'];?>
</span></li>
	<?php }} ?>
	</ul><div class="cleaner"></div></div>
<?php }} ?>
<div class="box marg">تعداد: <select name="qty" size="1" class="form" id="qty" style="width:50px"><option value="1">۱</option><option value="2">۲</option><option value="3">۳</option><option value="4">۴</option><option value="5">۵</option></select> عدد</div>
<div class="box marg">
	<div class="bill">
	<table width="100%">
		<tr>
			<td width="35%">نوع کارت</td>
			<td><div id="billType">-</div></td>
		</tr>
		<tr>
			<td>قیمت واحد</td>
			<td><div id="billPrice">-</div></td>
		</tr>
		<tr>
			<td>تعداد</td>
			<td><div id="billQty">-</div></td>
		</tr>
		<tr>
			<td>جمع کل</td>
			<td><div id="billTotal">-</div></td>
		</tr>
	</table>
	</div>
</div>
</div>
<div class="left-div">
	<div class="info">
		<h2>اطلاعات تماس</h2>
		<p>ایمیل و شماره تلفن همراه خود را وارد کنید:</p>
		<label for="email" class="left">ایمیل:</label> <input type="text" name="email" id="email" class="form" dir="ltr" style="width: 265px;"><div class="cleaner"></div>
		<label for="mobile" class="left">شماره همراه:</label> <input type="text" name="mobile" id="mobile" class="form" dir="ltr" style="width: 265px;"><div class="cleaner"></div>
		<div class="cleaner"></div>
	</div>
	
	<div class="info">
	<h2>اطلاعات پرداخت <span id="loader"></span></h2>
	<label for="gateway" class="left">درگاه پرداخت:</label>
	<select name="gateway" id="gateway" class="form" style="width:150px;">
	<?php  $_smarty_tpl->tpl_vars['option'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('payment_methods')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['option']->key => $_smarty_tpl->tpl_vars['option']->value){
?>
		<option value="<?php echo $_smarty_tpl->tpl_vars['option']->value['plugin_uniq'];?>
"><?php echo $_smarty_tpl->tpl_vars['option']->value['plugin_name'];?>
</option>
	<?php }} ?>
	</select> <a onclick="return false;" href="" class="button" id="submit">پرداخت</a><div class="cleaner"></div>
	قابل پرداخت با کارت بانک‌های:‌
	<ul class="banks">
	<?php echo $_smarty_tpl->getVariable('banks_logo')->value;?>

	</ul>
	</div>
</div>
</form>
<div class="cleaner"></div>
<?php if ($_smarty_tpl->getVariable('config')->value['config_admin_yahoo_id']){?>
<a href="ymsgr:sendIM?<?php echo $_smarty_tpl->getVariable('config')->value['config_admin_yahoo_id'];?>
"><img src="http://opi.yahoo.com/online?u=<?php echo $_smarty_tpl->getVariable('config')->value['config_admin_yahoo_id'];?>
&amp;m=g&amp;t=14&amp;l=us" align="left"/></a>
<?php }?>
<?php echo htmlspecialchars_decode($_smarty_tpl->getVariable('config')->value['config_description']);?>

<div class="cleaner"></div>
<?php $_template = new Smarty_Internal_Template('footer.tpl', $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
