www
/
wwwroot
/
magazinmiorita.be
/
admin
/
templates_c
➕ New
📤 Upload
✎ Editing:
132b6a851e7d85258ae38736946957de565530ce.file.discounts.tpl.php
← Back
<?php /* Smarty version Smarty-3.1.18, created on 2017-11-22 21:43:42 compiled from "/home/miorita/public_html/admin/templates/default/discounts.tpl" */ ?> <?php /*%%SmartyHeaderCode:177331879959f4e6d1c99fc7-05480918%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '132b6a851e7d85258ae38736946957de565530ce' => array ( 0 => '/home/miorita/public_html/admin/templates/default/discounts.tpl', 1 => 1511387017, 2 => 'file', ), ), 'nocache_hash' => '177331879959f4e6d1c99fc7-05480918', 'function' => array ( ), 'version' => 'Smarty-3.1.18', 'unifunc' => 'content_59f4e6d1d097b6_35026800', 'variables' => array ( 'admintpl' => 0, 'message' => 0, 'type' => 0, 'discounts' => 0, 'disc' => 0, 'endurl' => 0, ), 'has_nocache_code' => false, ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_59f4e6d1d097b6_35026800')) {function content_59f4e6d1d097b6_35026800($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_alert')) include '/home/miorita/public_html/lib/smarty/plugins/modifier.alert.php'; if (!is_callable('smarty_modifier_data')) include '/home/miorita/public_html/lib/smarty/plugins/modifier.data.php'; if (!is_callable('smarty_modifier_date_format')) include '/home/miorita/public_html/lib/smarty/plugins/modifier.date_format.php'; ?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['admintpl']->value)."header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['admintpl']->value)."sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <!-- Right side column. Contains the navbar and content of the page --> <aside class="right-side"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Produse La reducere <small>List</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Tablou de bord</a></li> <li class="active">Reduceri Pret</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <?php echo smarty_modifier_alert($_smarty_tpl->tpl_vars['message']->value,$_smarty_tpl->tpl_vars['type']->value);?> <div class="box"> <div class="box-header"> <h3 class="box-title">Lista Reduceri</h3> <a href="add_discount.php" class="btn btn-primary" style="float:right;margin:10px">Adauga Produs</a> </div><!-- /.box-header --> <div class="box-body table-responsive"> <table id="example2" class="table table-bordered table-striped"> <thead> <tr> <th width="50">Id</th> <th>Produs</th> <th>Pret Vechi</th> <th width="120">Discount</th> <th width="80">Pret Now</th> <th width="150">Data Expirarii</th> <th width="150">Data Adaugarii</th> <th width="50">Action</th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['disc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['disc']->_loop = false; $_from = $_smarty_tpl->tpl_vars['discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} foreach ($_from as $_smarty_tpl->tpl_vars['disc']->key => $_smarty_tpl->tpl_vars['disc']->value) { $_smarty_tpl->tpl_vars['disc']->_loop = true; ?> <tr> <td>#<?php echo $_smarty_tpl->tpl_vars['disc']->value['pid'];?> </td> <td>#<?php echo smarty_modifier_data('products','id',$_smarty_tpl->tpl_vars['disc']->value['pid'],'name');?> </td> <td><?php echo $_smarty_tpl->tpl_vars['disc']->value['price'];?> </td> <td><?php echo $_smarty_tpl->tpl_vars['disc']->value['discount'];?> </td> <td><?php echo $_smarty_tpl->tpl_vars['disc']->value['new_price'];?> </td> <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['disc']->value['expiry']);?> </td> <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['disc']->value['indate']);?> </td> <td> <a href="discounts.php?action=delete&id=<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?> " onclick="return confirm('Are you sure you want delete?')"><i class="fa fa-fw fa-trash"></i></a> <?php if ($_smarty_tpl->tpl_vars['disc']->value['week_promo']==1) {?> <i class="fa fa-fw fa-star"></i> <?php } else { ?> <a href="discounts.php?action=week&id=<?php echo $_smarty_tpl->tpl_vars['disc']->value['id'];?> " ><i class="fa fa-fw fa-star-empty"></i></a> <?php }?> </td> </tr> <?php } ?> </tbody> <tfoot> <tr> <th width="50">Id</th> <th>Produs</th> <th>Pret Vechi</th> <th width="120">Discount</th> <th width="80">Pret Now</th> <th width="150">Data Adaugarii</th> <th width="50">Action</th> </tr> </tfoot> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> </section><!-- /.content --> </aside><!-- /.right-side --> <script src="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/datatables/jquery.dataTables.js" type="text/javascript"></script> <script src="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $("#example1").dataTable(); $('#example2').dataTable({ "bPaginate": true, "bLengthChange": true, "bFilter": true, "bSort": true, "bInfo": true, "bAutoWidth": false }); }); </script> <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['admintpl']->value)."footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?> <?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