<?php /* Smarty version Smarty-3.0.8, created on 2025-10-27 19:08:32
         compiled from "/home/cp61014/public_html/charge/templates/templates/index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:158502612568ff91f8ee20b6-68604126%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '11119eeca3c2c377c74fc86b0f7fb58b633c07c8' => 
    array (
      0 => '/home/cp61014/public_html/charge/templates/templates/index.tpl',
      1 => 1761579509,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '158502612568ff91f8ee20b6-68604126',
  '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);?>

<style>
    /* پس‌زمینه کل صفحه */
    body {
        font-family: Tahoma, sans-serif;
        background-color: #d0e7ff; /* آبی کم‌رنگ */
        margin: 0;
        padding: 0;
        color: #000; /* متن اصلی کل سایت */
    }

    /* کانتینر فرم */
    #form-container {
        background: linear-gradient(to bottom right, #0a78ff, #66c2ff);
        padding: 30px;
        border-radius: 20px;
        color: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        margin: 30px auto;
        max-width: 1200px;
        display: flex;
        justify-content: space-between;
    }

    #form-container h2 {
        color: #ffd700;
        text-shadow: 1px 1px 5px #000;
        margin-bottom: 15px;
    }

    #form-container p, 
    #form-container label, 
    #form-container .highlight {
        color: #ffffff;
        text-shadow: 1px 1px 4px #000;
    }

    #form-container .highlight {
        color: #ffea00;
        font-weight: bold;
    }

    #form-container select.form, 
    #form-container input.form {
        background-color: rgba(255,255,255,0.9);
        color: #000;
        border-radius: 8px;
        padding: 6px 10px;
        margin-bottom: 10px;
        border: none;
        font-size: 1em;
    }

    #form-container .box {
        background-color: rgba(255,255,255,0.1);
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    #form-container .box.marg {
        padding: 12px;
    }

    #form-container .bill table {
        width: 100%;
        color: #fff;
        border-collapse: collapse;
    }

    #form-container .bill td {
        padding: 6px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    #form-container .button {
        display: inline-block;
        background-color: #ff4444;
        color: #fff;
        padding: 6px 14px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        margin-left: 10px;
        cursor: pointer;
        transition: background 0.3s;
    }

    #form-container .button:hover {
        background-color: #ff6666;
    }

    #form-container .banks li {
        display: inline-block;
        margin-right: 10px;
    }

    .cleaner {
        clear: both;
    }
</style>

<div id="form-container">
<form method="post" id="meu_formulario">
    <div class="right-div">
        <div>
            <select name="category" id="category" style="width:100%;">
                <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" style="margin-right:10px;">
                    <?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>
                    <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">ایمیل:</label>
            <input type="text" name="email" id="email" class="form" dir="ltr" style="width:100%;">
            <label for="mobile">شماره همراه:</label>
            <input type="text" name="mobile" id="mobile" class="form" dir="ltr" style="width:100%;">
        </div>

        <div class="info">
            <h2>اطلاعات پرداخت <span id="loader"></span></h2>
            <label for="gateway">درگاه پرداخت:</label>
            <select name="gateway" id="gateway" class="form" style="width:100%;">
                <?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>

<div class="cleaner"></div>

<?php if ($_smarty_tpl->getVariable('config')->value['config_admin_yahoo_id']){?>
<a referrerpolicy="origin" target="_blank" href="https://trustseal.enamad.ir/?id=6140&amp;Code=VCw4PCBEpHASmz3mh3eM"><img referrerpolicy="origin" src="https://Trustseal.eNamad.ir/logo.aspx?id=6140&amp;Code=VCw4PCBEpHASmz3mh3eM" alt="" style="cursor:pointer" id="VCw4PCBEpHASmz3mh3eM"></a>

</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);?>
