www
/
wwwroot
/
magazinmiorita.be
/
templates_c
➕ New
📤 Upload
✎ Editing:
97ec7d35721bfb8a1217c824c09c722605e9e1e6_0.file.shipping_calculator.tpl.php
← Back
<?php /* Smarty version 4.3.2, created on 2025-09-19 04:54:25 from '/www/wwwroot/magazinmiorita.be/templates/default/shipping_calculator.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '4.3.2', 'unifunc' => 'content_68cc71816eef72_59414157', 'has_nocache_code' => false, 'file_dependency' => array ( '97ec7d35721bfb8a1217c824c09c722605e9e1e6' => array ( 0 => '/www/wwwroot/magazinmiorita.be/templates/default/shipping_calculator.tpl', 1 => 1506036890, 2 => 'file', ), ), 'includes' => array ( 'file:header.tpl' => 1, 'file:footer.tpl' => 1, ), ),false)) { function content_68cc71816eef72_59414157 (Smarty_Internal_Template $_smarty_tpl) { ?><link href="<?php echo $_smarty_tpl->tpl_vars['templateurl']->value;?> stylesheets/check_points.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/select2/css/select2.css"> <?php $_smarty_tpl->_subTemplateRender("file:header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); ?> <div class="breadcrumbs"> <div class="container"> <div class="row"> <div class="col-xs-12"> <nav> <ol class="breadcrumb"> <li><a href="index.php">Pagina de start</a></li> <li><a class="active">Calculator taxe de livrare</a></li> </ol> </nav> </div> </div> </div> </div> <div class="container push-down-30"> <h1 class="center"><span class="light">Calculeaza costul pentru -</span> livrare la domiciliu</h1> <hr class="divider"> <div class="text-shrink"> </div> <div class="form-all" style="width:700px;margin:0 auto;position:relative;left:0;right:0" id="calc_form"> <p class="text-highlight">Te rugam sa completezi formularul de mai jos</p> <fieldset> <!-- Form Name --> <legend></legend> <!-- Select Basic --> <div class="form-group"> <label class="col-md-3 control-label" for="">Oras</label> <div class="col-md-9"> <select style="border:1px solid #ccc" name="city" class="city form-control" id="city" required> <option value="">Selecteaza orasul</option> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['cities']->value, 'city'); $_smarty_tpl->tpl_vars['city']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['city']->value) { $_smarty_tpl->tpl_vars['city']->do_else = false; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['city']->value['id'];?> " <?php if ($_POST['city'] == $_smarty_tpl->tpl_vars['city']->value['id']) {?>selected<?php }?> ><?php echo html_entity_decode(mb_convert_encoding($_smarty_tpl->tpl_vars['city']->value['name'], 'UTF-8', 'UTF-8'), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8');?> </option> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </select> </div> </div> <br /><br /> <!-- Text input--> <div class="form-group"> <label class="col-md-3 control-label" for="textinput">Numele strazi si nr</label> <div class="col-md-9"> <input style="border:1px solid #ccc" id="address" name="address" type="text" placeholder="ex: Rue Albert 25" class="form-control input-md"> </div> </div> <br /><br /> <!-- Text input--> <div class="form-group"> <label class="col-md-3 control-label" for="textinput">Suma limita pa care doriti cheltuit</label> <div class="col-md-3"> <input style="border:1px solid #ccc" id="amount" name="amount" type="number" placeholder="ex: 50.00" class="form-control input-md"> </div> </div> <br /><br /> <!-- Button --> <div class="form-group"> <label class="col-md-3 control-label" for="singlebutton"></label> <div class="col-md-9"> <button id="calculate" class="btn btn-primary">Calculeaza</button> </div> </div> </fieldset> </div> <div class="form-all" style="width:700px;margin:0 auto;position:relative;left:0;right:0;display:none" id="calc_results"> <p class="text-highlight">Costul pentru livrarea la domiciliu dvs.</p> <fieldset> <!-- Form Name --> <legend></legend> <br /> <div class="form-group"> <label class="col-md-3 control-label" for="singlebutton">Distanta:</label> <div class="col-md-9" id="dist_rez"></div> </div> <br /> <div class="form-group"> <label class="col-md-3 control-label" for="singlebutton">Valoare Cumparaturi:</label> <div class="col-md-9" id="val_rez"></div> </div> <br /> <div class="form-group"> <label class="col-md-3 control-label" for="singlebutton">Costuri de livrare:</label> <div class="col-md-9" id="del_rez"></div> </div> <br /> <div id="text_rez" style="padding: 16px;border-top: 1px solid #e5e5e5;"></div> <div class="form-group"> <label class="col-md-3 control-label" for="singlebutton"></label> <div class="col-md-9"> <button id="calculate_again" class="btn btn-primary">Calculeaza din nou</button> </div> </div> </fieldset> </div> <div class="form-all" style="width:700px;margin:0 auto;position:relative;left:0;right:0;display:none" id="loading"> <div style="text-align:center"><img src="<?php echo $_smarty_tpl->tpl_vars['templateurl']->value;?> images/loading.gif" style="width:70px;margin:0 auto" /></div> </div> </div> <?php $_smarty_tpl->_subTemplateRender("file:footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); ?> <?php echo '<script'; ?> src="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/select2/js/select2.full.min.js" type="text/javascript"><?php echo '</script'; ?> > <?php echo '<script'; ?> > $(document).ready(function() { $("#city").select2(); }); $("#calculate").click(function(e){ if($("#city").val() == ''){ alert('Va rugam sa selectati orasul!'); }else if($("#amount").val() == '' || $("#amount").val() == 0){ alert('Va rugam sa intrduceti suma pe care doriti sa o cheltuiti!'); }else{ $("#loading").show(); $("#calc_form").hide(); e.preventDefault(); $.get("<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> includes/data/calc_dist.php?distance=true&city="+$("#city option:selected").text()+"&address="+$("#address").val()+"&zip="+$("#address").val()+"&amount="+$("#amount").val(), function(data){ var json = $.parseJSON(data); $("#loading").hide(); $("#calc_results").show(); $("#dist_rez").html(json.dist); $("#val_rez").html(json.amount); $("#del_rez").html(json.cost); $("#text_rez").html(json.text); }); } }); $("#calculate_again").click(function(e){ $("#calc_form").show(); $("#calc_results").hide(); }); <?php echo '</script'; ?> > <?php } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel