0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
pshoptuscamisetaspersonalizadas
/
cache
/
smarty
/
compile
/
c8
/
52
/
c2
/
[
Home
]
Name File: c852c2a0feb749747fa50563af71010becd2180f.file.form_submit_ajax.tpl.php
< back
<?php /* Smarty version Smarty-3.1.13, created on 2013-07-23 13:17:59 compiled from "/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/form_submit_ajax.tpl" */ ?> <?php /*%%SmartyHeaderCode:78139593551ee66678174e6-24549396%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( 'c852c2a0feb749747fa50563af71010becd2180f' => array ( 0 => '/home/s13cf5ef/public_html/pshoptuscamisetaspersonalizadas/admin/themes/default/template/form_submit_ajax.tpl', 1 => 1369704443, 2 => 'file', ), ), 'nocache_hash' => '78139593551ee66678174e6-24549396', 'function' => array ( ), 'variables' => array ( 'table' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.13', 'unifunc' => 'content_51ee666784cc88_34607182', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_51ee666784cc88_34607182')) {function content_51ee666784cc88_34607182($_smarty_tpl) {?> <script type="text/javascript"> $(document).ready(function() { $('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?> _form').submit(function(e) { e.preventDefault(); var form_datas = new Object; form_datas['liteDisplaying'] = 1; form_datas['submitFormAjax'] = 1; var form_inputs = $('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?> _form input, #<?php echo $_smarty_tpl->tpl_vars['table']->value;?> _form textarea, #<?php echo $_smarty_tpl->tpl_vars['table']->value;?> _form button'); var form_selects = $('#<?php echo $_smarty_tpl->tpl_vars['table']->value;?> _form select'); $.each(form_inputs, function() { if (this.type == 'radio' || this.type == 'checkbox') if (!this.checked) return true; form_datas[this.name] = this.value; }); $.each(form_selects, function() { if (this.options != undefined && this.options.selectedIndex != undefined && this[this.options.selectedIndex] != undefined) form_datas[this.name] = this[this.options.selectedIndex].value; }); $.ajax({ type: this.method, url : this.action, async: true, dataType: "html", data : form_datas, success : function(res) { // Replace de body by the new one $('body').html(res.replace(/^.*<body>/, '').replace(/<\/body>.*$/, '')); } }); }); }); </script> <?php }} ?>
©
2018. | Recode by D7net