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.
468 lines
23 KiB
468 lines
23 KiB
<?php /* Smarty version Smarty-3.1.12, created on 2021-12-19 05:51:18
|
|
compiled from "./templates/home.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:779183525601242fb3c53c7-08054461%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'62ef71fa9bffee4b2e45ea97bf20c2caac4cf263' =>
|
|
array (
|
|
0 => './templates/home.tpl',
|
|
1 => 1611976167,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '779183525601242fb3c53c7-08054461',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'version' => 'Smarty-3.1.12',
|
|
'unifunc' => 'content_601242fb50e474_19938739',
|
|
'variables' =>
|
|
array (
|
|
'fullname' => 0,
|
|
'opt' => 0,
|
|
'message' => 0,
|
|
'myitems' => 0,
|
|
'row' => 0,
|
|
'myitems_count' => 0,
|
|
'offset' => 0,
|
|
'i' => 0,
|
|
'shoppees' => 0,
|
|
'prospects' => 0,
|
|
'messages' => 0,
|
|
'events' => 0,
|
|
'isadmin' => 0,
|
|
'pending' => 0,
|
|
'approval' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_601242fb50e474_19938739')) {function content_601242fb50e474_19938739($_smarty_tpl) {?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Gift Registry - Home Page for <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['fullname']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
|
<script src="bootstrap/js/bootstrap.min.js"></script>
|
|
<link href="lightbox/css/jquery.lightbox-0.5.css" rel="stylesheet">
|
|
<script src="lightbox/js/jquery.lightbox-0.5.min.js"></script>
|
|
|
|
<script language="JavaScript" type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('a[rel=lightbox]').lightBox({
|
|
imageLoading: 'lightbox/images/lightbox-ico-loading.gif',
|
|
imageBtnClose: 'lightbox/images/lightbox-btn-close.gif',
|
|
imageBtnPrev: 'lightbox/images/lightbox-btn-prev.gif',
|
|
imageBtnNext: 'lightbox/images/lightbox-btn-next.gif',
|
|
imageBlank: 'lightbox/images/lightbox-blank.gif'
|
|
});
|
|
$('a[rel=popover]').removeAttr('href').popover();
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['confirm_item_deletes']){?>
|
|
$('a[rel=confirmitemdelete]').click(function(event) {
|
|
var desc = $(this).attr('data-content');
|
|
if (!window.confirm('Are you sure you want to delete "' + desc + '"?')) {
|
|
event.preventDefault();
|
|
}
|
|
});
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['shop_requires_approval']){?>
|
|
$('a[rel=confirmunshop]').click(function(event) {
|
|
var fn = $(this).attr('data-content');
|
|
if (!window.confirm('Are you sure you no longer wish to shop for ' + fn + '?')) {
|
|
event.preventDefault();
|
|
}
|
|
});
|
|
<?php }?>
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<?php echo $_smarty_tpl->getSubTemplate ('navbar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
|
|
|
|
<div class="container" style="padding-top: 60px;">
|
|
<?php if (isset($_smarty_tpl->tpl_vars['message']->value)){?>
|
|
<div class="row">
|
|
<div class="span12">
|
|
<div class="alert alert-block"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['message']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['show_helptext']){?>
|
|
<section id="help">
|
|
<div class="row">
|
|
<div class="span12">
|
|
<div class="alert alert-info">
|
|
<ul>
|
|
<li>You can click the column headers to sort by that attribute.</li>
|
|
<li>List each item seperately on your list - do not combine items. (i.e. list each book of a 4-part series separately.)</li>
|
|
<li>Once you've bought or decided not to buy an item, remember to return to the recipient's gift lists and mark it accordingly.</li>
|
|
<li>If someone purchases an item on your list, click <img src="images/return.png" /> to mark it as received.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php }?>
|
|
<section id="myitems">
|
|
<div class="well">
|
|
<div class="page-header">
|
|
<h1>My Items</h1>
|
|
</div>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader"><a href="index.php?mysort=description">Description</a></th>
|
|
<th class="colheader"><a href="index.php?mysort=ranking">Ranking</a></th>
|
|
<th class="colheader"><a href="index.php?mysort=category">Category</a></th>
|
|
<th class="rcolheader"><a href="index.php?mysort=price">Price</a></th>
|
|
<th> </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['myitems']->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 valign="top">
|
|
<td>
|
|
<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['comment']!=''){?>
|
|
<a class="btn btn-small" rel="popover" href="#" data-placement="right" data-original-title="Comment" data-content="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['comment'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
">...</a>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['url']!=''){?>
|
|
<a href="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['url'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
" target="_blank"><img src="images/link.png" border="0" alt="URL" title="URL"></a>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['image_filename']!=''&&$_smarty_tpl->tpl_vars['opt']->value['allow_images']){?>
|
|
<a rel="lightbox" href="<?php echo $_smarty_tpl->tpl_vars['opt']->value['image_subdir'];?>
|
|
/<?php echo $_smarty_tpl->tpl_vars['row']->value['image_filename'];?>
|
|
" title="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
"><img src="images/image.png" border="0" alt="Image" /></a>
|
|
<?php }?>
|
|
</td>
|
|
<td nowrap><?php echo $_smarty_tpl->tpl_vars['row']->value['rendered'];?>
|
|
</td>
|
|
<td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['row']->value['category'])===null||$tmp==='' ? " " : $tmp);?>
|
|
</td>
|
|
<td align="right"><?php echo $_smarty_tpl->tpl_vars['row']->value['price'];?>
|
|
</td>
|
|
<td align="right" nowrap>
|
|
<a href="receive.php?itemid=<?php echo $_smarty_tpl->tpl_vars['row']->value['itemid'];?>
|
|
"><img alt="Mark Item Received" src="images/return.png" border="0" title="Mark Item Received" /></a>
|
|
<a href="item.php?action=edit&itemid=<?php echo $_smarty_tpl->tpl_vars['row']->value['itemid'];?>
|
|
"><img alt="Edit Item" src="images/pencil.png" border="0" title="Edit Item" /></a>
|
|
<a rel="confirmitemdelete" data-content="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
" href="item.php?action=delete&itemid=<?php echo $_smarty_tpl->tpl_vars['row']->value['itemid'];?>
|
|
"><img alt="Delete Item" src="images/bin.png" border="0" alt="Delete" title="Delete Item" /></a>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
<?php if ($_smarty_tpl->tpl_vars['myitems_count']->value>$_smarty_tpl->tpl_vars['opt']->value['items_per_page']){?>
|
|
<div class="pagination">
|
|
<ul>
|
|
<?php if ($_smarty_tpl->tpl_vars['offset']->value>=$_smarty_tpl->tpl_vars['opt']->value['items_per_page']){?>
|
|
<li><a href="index.php?offset=<?php echo $_smarty_tpl->tpl_vars['offset']->value-$_smarty_tpl->tpl_vars['opt']->value['items_per_page'];?>
|
|
"><</a></li>
|
|
<?php }?>
|
|
<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = $_smarty_tpl->tpl_vars['opt']->value['items_per_page'];$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? $_smarty_tpl->tpl_vars['myitems_count']->value+1 - (0) : 0-($_smarty_tpl->tpl_vars['myitems_count']->value)+1)/abs($_smarty_tpl->tpl_vars['i']->step));
|
|
if ($_smarty_tpl->tpl_vars['i']->total > 0){
|
|
for ($_smarty_tpl->tpl_vars['i']->value = 0, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
|
|
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
|
|
<li <?php if ($_smarty_tpl->tpl_vars['offset']->value>=$_smarty_tpl->tpl_vars['i']->value&&$_smarty_tpl->tpl_vars['offset']->value<$_smarty_tpl->tpl_vars['i']->value+$_smarty_tpl->tpl_vars['opt']->value['items_per_page']){?>class="active"<?php }?>><a href="index.php?offset=<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['i']->value+$_smarty_tpl->tpl_vars['opt']->value['items_per_page'];?>
|
|
</a></li>
|
|
<?php }} ?>
|
|
<?php if ($_smarty_tpl->tpl_vars['offset']->value+$_smarty_tpl->tpl_vars['opt']->value['items_per_page']<$_smarty_tpl->tpl_vars['myitems_count']->value){?>
|
|
<li><a href="index.php?offset=<?php echo $_smarty_tpl->tpl_vars['offset']->value+$_smarty_tpl->tpl_vars['opt']->value['items_per_page'];?>
|
|
">></a></li>
|
|
<?php }?>
|
|
</ul>
|
|
</div>
|
|
<?php }?>
|
|
<h5><a href="item.php?action=add">Add a new item</a></h5>
|
|
</div>
|
|
</section>
|
|
<section id="otherstuff">
|
|
<div class="row">
|
|
<div class="span6">
|
|
<div class="well">
|
|
<h3>People I'm shopping for</h3>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader">Name</th>
|
|
<th class="rcolheader">Last Updated</th>
|
|
<th class="rcolheader"># Items</th>
|
|
<th> </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['shoppees']->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>
|
|
<a href="shop.php?shopfor=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</a>
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['comment']!=''){?>
|
|
<a class="btn btn-small" rel="popover" href="#" data-placement="right" data-original-title="Comment" data-content="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['comment'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
">...</a>
|
|
<?php }?>
|
|
</td>
|
|
<td align="right"><?php echo $_smarty_tpl->tpl_vars['row']->value['list_stamp'];?>
|
|
</td>
|
|
<td align="right"><?php echo $_smarty_tpl->tpl_vars['row']->value['itemcount'];?>
|
|
</td>
|
|
<td align="right" nowrap>
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['itemcount']>0){?>
|
|
<a href="shop.php?shopfor=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
"><img alt="Shop for <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
" src="images/store.png" border="0" title="Shop for <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
"></a>
|
|
<?php }?>
|
|
<?php if (!$_smarty_tpl->tpl_vars['row']->value['is_unsubscribed']){?>
|
|
<a href="index.php?action=unsubscribe&shoppee=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
"><img alt="Unsubscribe from <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
's updates" src="images/delete.png" border="0" title="Unsubscribe from <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
's updates"></a>
|
|
<?php }else{ ?>
|
|
<a href="index.php?action=subscribe&shoppee=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
"><img alt="Subscribe to <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
's updates" src="images/podcast.png" border="0" title="Subscribe to <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
's updates"></a>
|
|
<?php }?>
|
|
<a rel="confirmunshop" data-content="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
" href="index.php?action=cancel&shopfor=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
"><img src="images/bin.png" border="0" alt="Don't shop for <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
anymore" title="Don't shop for <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
anymore" /></a>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="span6">
|
|
<div class="well">
|
|
<h3>People I'm not shopping for</h3>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader">Name</th>
|
|
<th> </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['prospects']->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 align="right" nowrap>
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['pending']){?>
|
|
<a href="index.php?action=cancel&shopfor=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
"><img src="images/delete.png" border="0" alt="Cancel" title="Cancel" /></a>
|
|
<?php }else{ ?>
|
|
<a href="index.php?action=request&shopfor=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
">
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['shop_requires_approval']){?>
|
|
<img src="images/cloud-add.png" border="0" alt="Request" title="Request" />
|
|
<?php }else{ ?>
|
|
<img src="images/cloud-add.png" border="0" alt="Add" title="Add" />
|
|
<?php }?>
|
|
</a>
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section id="morestuffstill">
|
|
<div class="row">
|
|
<div class="span6">
|
|
<div class="well">
|
|
<h3>Messages</h3>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader">Date</th>
|
|
<th class="colheader">Sender</th>
|
|
<th class="colheader">Message</th>
|
|
<th> </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['messages']->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 $_smarty_tpl->tpl_vars['row']->value['created'];?>
|
|
</td>
|
|
<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['message'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</td>
|
|
<td align="right">
|
|
<a href="index.php?action=ack&messageid=<?php echo $_smarty_tpl->tpl_vars['row']->value['messageid'];?>
|
|
"><img alt="Acknowledge" title="Acknowledge" src="images/delete.png" border="0"></a>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
<h5><a href="message.php">Send a message</a></h5>
|
|
</div>
|
|
</div>
|
|
<div class="span6">
|
|
<div class="well">
|
|
<h3>Upcoming events (within <?php echo $_smarty_tpl->tpl_vars['opt']->value['event_threshold'];?>
|
|
days)</h3>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader">Name</th>
|
|
<th class="colheader">Event</th>
|
|
<th class="colheader">Date</th>
|
|
<th class="colheader">Days left</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['events']->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 if ($_smarty_tpl->tpl_vars['row']->value['fullname']==''){?>
|
|
<i>System event</i>
|
|
<?php }else{ ?>
|
|
<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['fullname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
|
|
<?php }?>
|
|
</td>
|
|
<td><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['eventname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['row']->value['date'];?>
|
|
</td>
|
|
<td>
|
|
<?php if ($_smarty_tpl->tpl_vars['row']->value['daysleft']==0){?>
|
|
<b>Today</b>
|
|
<?php }else{ ?>
|
|
<?php echo $_smarty_tpl->tpl_vars['row']->value['daysleft'];?>
|
|
|
|
<?php }?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['shop_requires_approval']||($_smarty_tpl->tpl_vars['isadmin']->value&&$_smarty_tpl->tpl_vars['opt']->value['newuser_requires_approval'])){?>
|
|
<div class="row">
|
|
<?php if ($_smarty_tpl->tpl_vars['opt']->value['shop_requires_approval']){?>
|
|
<div class="span6">
|
|
<div class="well">
|
|
<h3>People who want to shop for me</h3>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader">Name</th>
|
|
<th> </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['pending']->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 align="right">
|
|
<a href="index.php?action=approve&shopper=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
">Approve</a> /
|
|
<a href="index.php?action=decline&shopper=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
">Decline</a>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['isadmin']->value&&$_smarty_tpl->tpl_vars['opt']->value['newuser_requires_approval']){?>
|
|
<div class="span6">
|
|
<div class="well">
|
|
<h3>People waiting for approval</h3>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th class="colheader">Name</th>
|
|
<th class="colheader">Family</th>
|
|
<th> </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['approval']->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');?>
|
|
<<a href="mailto:<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['email'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['email'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</a>></td>
|
|
<td><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['familyname'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
|
|
</td>
|
|
<td align="right">
|
|
<a href="admin.php?action=approve&userid=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
&familyid=<?php echo $_smarty_tpl->tpl_vars['row']->value['initialfamilyid'];?>
|
|
">Approve</a> /
|
|
<a href="admin.php?action=reject&userid=<?php echo $_smarty_tpl->tpl_vars['row']->value['userid'];?>
|
|
">Reject</a>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<?php }?>
|
|
</div>
|
|
<?php }?>
|
|
</section>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<?php }} ?>
|