converted from the mysql_ API to the PDO library
This commit is contained in:
parent
75aefbd9e3
commit
246232f0a3
31 changed files with 1460 additions and 1217 deletions
|
@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{if isset($message)}
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<div class="alert alert-info">
|
||||
<div class="alert alert-block">
|
||||
{$message|escape:'htmlall'}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{if isset($message)}
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<div class="alert alert-info">{$message|escape:'htmlall'}</div>
|
||||
<div class="alert alert-block">{$message|escape:'htmlall'}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
@ -151,7 +151,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
<td>
|
||||
<a href="shop.php?shopfor={$row.userid}">{$row.fullname|escape:'htmlall'}</a>
|
||||
{if $row.comment != ''}
|
||||
<img src="images/view.gif" alt="{$row.comment|escape:'htmlall'}" border="0">
|
||||
<a class="btn btn-small" rel="popover" href="#" data-placement="right" data-original-title="Comment" data-content="{$row.comment|escape:'htmlall'}">...</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td align="right">{$row.list_stamp}</td>
|
||||
|
@ -271,62 +271,62 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $opt.shop_requires_approval}
|
||||
{if $opt.shop_requires_approval || ($isadmin && $opt.newuser_requires_approval)}
|
||||
<div class="row">
|
||||
<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>
|
||||
{foreach from=$pending item=row}
|
||||
<tr>
|
||||
<td>{$row.fullname|escape:'htmlall'}</td>
|
||||
<td align="right">
|
||||
<a href="index.php?action=approve&shopper={$row.userid}">Approve</a> /
|
||||
<a href="index.php?action=decline&shopper={$row.userid}">Decline</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $isadmin && $opt.newuser_requires_approval}
|
||||
<div class="row">
|
||||
<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>
|
||||
{foreach from=$approval item=row}
|
||||
<tr>
|
||||
<td>{$row.fullname|escape:'htmlall'} <<a href="mailto:{$row.email|escape:'htmlall'}">{$row.email|escape:'htmlall'}</a>></td>
|
||||
<td>{$row.familyname|escape:'htmlall'}</td>
|
||||
<td align="right">
|
||||
<a href="admin.php?action=approve&userid={$row.userid}&familyid={$row.initialfamilyid}">Approve</a> /
|
||||
<a href="admin.php?action=reject&userid={$row.userid}">Reject</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{if $opt.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>
|
||||
{foreach from=$pending item=row}
|
||||
<tr>
|
||||
<td>{$row.fullname|escape:'htmlall'}</td>
|
||||
<td align="right">
|
||||
<a href="index.php?action=approve&shopper={$row.userid}">Approve</a> /
|
||||
<a href="index.php?action=decline&shopper={$row.userid}">Decline</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $isadmin && $opt.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>
|
||||
{foreach from=$approval item=row}
|
||||
<tr>
|
||||
<td>{$row.fullname|escape:'htmlall'} <<a href="mailto:{$row.email|escape:'htmlall'}">{$row.email|escape:'htmlall'}</a>></td>
|
||||
<td>{$row.familyname|escape:'htmlall'}</td>
|
||||
<td align="right">
|
||||
<a href="admin.php?action=approve&userid={$row.userid}&familyid={$row.initialfamilyid}">Approve</a> /
|
||||
<a href="admin.php?action=reject&userid={$row.userid}">Reject</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</section>
|
||||
|
|
|
@ -23,12 +23,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="container" style="padding-top: 30px;">
|
||||
<div class="row">
|
||||
<div class="span8 offset2">
|
||||
<h1>Gift Registry</h1>
|
||||
<form name="login" method="post" action="login.php" class="well form-horizontal">
|
||||
<fieldset>
|
||||
<legend>Gift Registry</legend>
|
||||
{if isset($username)}
|
||||
<div class="alert alert-error">Bad login.</div>
|
||||
{/if}
|
||||
|
|
|
@ -50,7 +50,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Send Message</button>
|
||||
<button type="button" onClick="document.location.href='index.php';">Cancel</button>
|
||||
<button type="button" class="btn" onClick="document.location.href='index.php';">Cancel</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
|
@ -76,14 +76,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
<h5>{$itemcount} item(s), {$totalprice} total.</h5>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="span6">
|
||||
<div class="well">
|
||||
<a onClick="printPage()" href="#">Send to printer</a>
|
||||
</div>
|
||||
</diiv>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{if isset($message)}
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<div class="alert alert-success">
|
||||
<div class="alert alert-block">
|
||||
{$message|escape:'htmlall'}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -49,7 +49,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="container" style="padding-top: 30px;">
|
||||
{if isset($error)}
|
||||
<div class="row">
|
||||
<div class="span8 offset2">
|
||||
|
|
|
@ -36,7 +36,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
{if isset($message)}
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<div class="alert alert-info">{$message|escape:'htmlall'}</div>
|
||||
<div class="alert alert-block">{$message|escape:'htmlall'}</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue