You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
4.1 KiB
117 lines
4.1 KiB
<?php /* Smarty version Smarty-3.1.12, created on 2021-01-28 16:30:15
|
|
compiled from "./templates/shoplist.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:20773400316012e697ba6320-05417097%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'3f4ed85cfc704f67b639a65af47026a323860e9d' =>
|
|
array (
|
|
0 => './templates/shoplist.tpl',
|
|
1 => 1611808634,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '20773400316012e697ba6320-05417097',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'isadmin' => 0,
|
|
'opt' => 0,
|
|
'shoplist' => 0,
|
|
'row' => 0,
|
|
'itemcount' => 0,
|
|
'totalprice' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.12',
|
|
'unifunc' => 'content_6012e697bba3a3_58013722',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_6012e697bba3a3_58013722')) {function content_6012e697bba3a3_58013722($_smarty_tpl) {?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Gift Registry - My Shopping List</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
|
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
function printPage() {
|
|
window.print();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<?php echo $_smarty_tpl->getSubTemplate ('navbar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('isadmin'=>$_smarty_tpl->tpl_vars['isadmin']->value), 0);?>
|
|
|
|
|
|
<div class="container" style="padding-top: 60px;">
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['show_helptext']){?>
|
|
<div class="row">
|
|
<div class="span12">
|
|
<div class="alert alert-info">
|
|
This is a list of all items you have <strong>reserved</strong>. Once you've bought or decided not to buy an item, remember to return to the recipient's gift lists and mark it accordingly.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
|
|
<div class="row">
|
|
<div class="span12">
|
|
<div class="well">
|
|
<h1>My Shopping List</h1>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><a href="shoplist.php?sort=recipient">Recipient</a></th>
|
|
<th><a href="shoplist.php?sort=description">Description</a></th>
|
|
<th><a href="shoplist.php?sort=ranking">Ranking</a></th>
|
|
<th><a href="shoplist.php?sort=source">Source</a></th>
|
|
<th><a href="shoplist.php?sort=price">Price</a></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
|
|
$_from = $_smarty_tpl->tpl_vars['shoplist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
|
|
$_smarty_tpl->tpl_vars['row']->_loop = true;
|
|
?>
|
|
<tr>
|
|
<td><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</td>
|
|
<td><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['row']->value['rendered'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['row']->value['source'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['row']->value['price'];?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
<h5><?php echo $_smarty_tpl->tpl_vars['itemcount']->value;?>
|
|
item(s), <?php echo $_smarty_tpl->tpl_vars['totalprice']->value;?>
|
|
total.</h5>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="span6">
|
|
<div class="well">
|
|
<a onClick="printPage()" href="#">Send to printer</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
|
<script src="bootstrap/js/bootstrap.min.js"></script>
|
|
</body>
|
|
</html>
|
|
<?php }} ?>
|