www
/
wwwroot
/
magazinmiorita.be
/
admin
/
templates_c
➕ New
📤 Upload
✎ Editing:
992fa6f9b9a04b974d7497b98c53f693d4e9373b_0.file.orders.tpl.php
← Back
<?php /* Smarty version 4.3.2, created on 2025-09-19 04:51:14 from '/www/wwwroot/magazinmiorita.be/admin/templates/default/orders.tpl' */ /* @var Smarty_Internal_Template $_smarty_tpl */ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( 'version' => '4.3.2', 'unifunc' => 'content_68cc70c2aa6da0_31234000', 'has_nocache_code' => false, 'file_dependency' => array ( '992fa6f9b9a04b974d7497b98c53f693d4e9373b' => array ( 0 => '/www/wwwroot/magazinmiorita.be/admin/templates/default/orders.tpl', 1 => 1509319146, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_68cc70c2aa6da0_31234000 (Smarty_Internal_Template $_smarty_tpl) { $_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.alert.php','function'=>'smarty_modifier_alert',),1=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.data.php','function'=>'smarty_modifier_data',),2=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.price_format.php','function'=>'smarty_modifier_price_format',),3=>array('file'=>'/www/wwwroot/magazinmiorita.be/lib/smarty/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),)); $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['admintpl']->value)."header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true); $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['admintpl']->value)."sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true); ?> <!-- Right side column. Contains the navbar and content of the page --> <aside class="right-side"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Lista <small>Comenzi</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Start</a></li> <li class="active">Comenzi</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <?php echo smarty_modifier_alert($_SESSION['message'],$_SESSION['mtype']);?> <div class="box"> <div class="col-xs-8 box-header"> <h3 class="box-title">Orders</h3> </div><!-- /.box-header --> <div class="col-xs-4"> <form style="float:right" action="orders.php<?php if ($_GET['page']) {?>?page=<?php echo $_GET['page']; }?>" method="get"> <input name="search" style="float:left" type="text"> <input style="float:left" type="submit" value="Search"/> </form> </div> <div class="box-body table-responsive"> <table id="example2" class="table table-bordered table-striped"> <thead> <tr> <th width="80">Id</th> <th>Client</th> <th>Suma</th> <th>Taxa Livrare</th> <th>Data</th> <th>Metoda de plata</th> <th width="80">Status</th> <th width="120">Login as client</th> <th width="50">Action</th> </tr> </thead> <tbody> <?php $_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['orders']->value, 'ord'); $_smarty_tpl->tpl_vars['ord']->do_else = true; if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['ord']->value) { $_smarty_tpl->tpl_vars['ord']->do_else = false; ?> <tr> <td>#<?php echo $_smarty_tpl->tpl_vars['ord']->value['id'];?> </td> <td><?php echo smarty_modifier_data('customers','id',$_smarty_tpl->tpl_vars['ord']->value['user_id'],'fname');?> <?php echo smarty_modifier_data('customers','id',$_smarty_tpl->tpl_vars['ord']->value['user_id'],'lname');?> </td> <td><?php echo $_smarty_tpl->tpl_vars['ord']->value['chtotal'];?> </td> <td><?php echo smarty_modifier_price_format($_smarty_tpl->tpl_vars['ord']->value['shipp_amount']);?> </td> <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ord']->value['indate']);?> </td> <td><?php echo $_smarty_tpl->tpl_vars['ord']->value['gateway'];?> </td> <td><?php if ($_smarty_tpl->tpl_vars['ord']->value['status'] == '1') {?><span class="external-event bg-green ui-draggable">Paid</span><?php } else { ?><span class="external-event bg-red ui-draggable">Unpaid</span><?php }?></td> <td><a href="<?php echo $_smarty_tpl->tpl_vars['virtualurl']->value;?> /clientarea/dashboard.php?action=login&uid=<?php echo $_smarty_tpl->tpl_vars['ord']->value['user_id'];?> "><span class="external-event bg-red ui-draggable">Login as client</span></a></td> <td><a href="order_details.php?id=<?php echo $_smarty_tpl->tpl_vars['ord']->value['id'];?> "><i class="fa fa-fw fa-pencil"></i></a> <a href="orders.php?action=delete&id=<?php echo $_smarty_tpl->tpl_vars['ord']->value['id'];?> " onclick="return confirm('Are you sure you want delete?')"><i class="fa fa-fw fa-trash"></i></a></td> </tr> <?php } $_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> </tbody> <tfoot> <tr> <th width="80">Id</th> <th>Client</th> <th>Suma</th> <th>Taxa Livrare</th> <th>Data</th> <th>Metoda de plata</th> <th width="80">Status</th> <th width="120">Login as client</th> <th width="50">Action</th> </tr> </tfoot> </table> </div><!-- /.box-body --> </div><!-- /.box --> <div class="paging_bootstrap pull-right"><?php echo $_smarty_tpl->tpl_vars['pagination']->value;?> </div> </div> </div> </section><!-- /.content --> </aside><!-- /.right-side --> <?php echo '<script'; ?> src="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/datatables/jquery.dataTables.js" type="text/javascript"><?php echo '</script'; ?> > <?php echo '<script'; ?> src="<?php echo $_smarty_tpl->tpl_vars['endurl']->value;?> js/plugins/datatables/dataTables.bootstrap.js" type="text/javascript"><?php echo '</script'; ?> > <?php echo '<script'; ?> type="text/javascript"> $(function() { $("#example1").dataTable(); $('#example2').dataTable({ "bPaginate": false, "bLengthChange": true, "bFilter": false, "bSort": true, "bInfo": true, "bAutoWidth": false }); }); <?php echo '</script'; ?> > <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['admintpl']->value)."footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, true); ?> <?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