converted from the mysql_ API to the PDO library

This commit is contained in:
Ryan Walberg 2012-11-22 04:36:20 +00:00
parent 75aefbd9e3
commit 246232f0a3
31 changed files with 1460 additions and 1217 deletions

View file

@ -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>

View file

@ -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}

View file

@ -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>&nbsp;</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>&nbsp;/
<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>&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach from=$approval item=row}
<tr>
<td>{$row.fullname|escape:'htmlall'} &lt;<a href="mailto:{$row.email|escape:'htmlall'}">{$row.email|escape:'htmlall'}</a>&gt;</td>
<td>{$row.familyname|escape:'htmlall'}</td>
<td align="right">
<a href="admin.php?action=approve&userid={$row.userid}&familyid={$row.initialfamilyid}">Approve</a>&nbsp;/
<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>&nbsp;</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>&nbsp;/
<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>&nbsp;</th>
</tr>
</thead>
<tbody>
{foreach from=$approval item=row}
<tr>
<td>{$row.fullname|escape:'htmlall'} &lt;<a href="mailto:{$row.email|escape:'htmlall'}">{$row.email|escape:'htmlall'}</a>&gt;</td>
<td>{$row.familyname|escape:'htmlall'}</td>
<td align="right">
<a href="admin.php?action=approve&userid={$row.userid}&familyid={$row.initialfamilyid}">Approve</a>&nbsp;/
<a href="admin.php?action=reject&userid={$row.userid}">Reject</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
{/if}
</div>
{/if}
</section>

View file

@ -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}

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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">

View file

@ -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}