<?php /* Smarty version Smarty-3.0.8, created on 2024-05-20 00:29:38
         compiled from "/home/cp61014/public_html/charge/templates/templates/saman.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2142339504664a683ae33433-03068566%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd89cffdc863df465ebd77354ec7423e370ac511b' => 
    array (
      0 => '/home/cp61014/public_html/charge/templates/templates/saman.tpl',
      1 => 1443953974,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2142339504664a683ae33433-03068566',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>در حال اتصال ...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
	#main {
	    background-color: #F1F1F1;
	    border: 1px solid #CACACA;
	    height: 90px;
	    left: 50%;
	    margin-left: -265px;
	    position: absolute;
	    top: 200px;
	    width: 530px;
	}
	#main p {
	    color: #757575;
	    direction: rtl;
	    font-family: Arial;
	    font-size: 16px;
	    font-weight: bold;
	    line-height: 27px;
	    margin-top: 30px;
	    padding-right: 60px;
	    text-align: right;
	}
    </style>
    <script type="text/javascript">
        function doPostback() {
                var theForm = document.forms['form1'];
                if (!theForm)
                    theForm = document.form1;
                var GateChanged = document.getElementById("x_GateChanged").value;
                if (GateChanged == "1")
                    {
                        document.getElementById("Warning").style.visibility = "visible";
                        document.getElementById("Message").style.marginTop = "20px";
                        setTimeout(' var theForm = document.forms[\'form1\'];if (!theForm) theForm = document.form1;theForm.submit();', 4000);
                    }
                else
                    theForm.submit();
           } 
       
    </script>
</head>
<body onLoad="submit_form();">
<div id="main">
<p>در حال اتصال به بانک سامان</p></div>
	<form name="myform" action="https://sep.shaparak.ir/Payment.aspx" method="POST">
		<input type="hidden" id="Amount" name="Amount" value="<?php echo $_smarty_tpl->getVariable('data')->value['amount'];?>
">
		<input type="hidden" id="MID" name="MID" value="<?php echo $_smarty_tpl->getVariable('data')->value['merchant'];?>
">
		<input type="hidden" id="ResNum" name="ResNum" value="<?php echo $_smarty_tpl->getVariable('data')->value['invoice_id'];?>
">
		<input type="hidden" id="RedirectURL" name="RedirectURL" value="<?php echo $_smarty_tpl->getVariable('data')->value['callback'];?>
">
	</form>
<script language="javascript">function submit_form(){document.myform.submit()}</script>
</body>