<?php
/*
* ConPortal - Pomona College ITS scheduling appplication
* Copyright (C) 2005-2006 Pomona College
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once('standard.php');
xhtml_header_privileged('Adjust Checkout Items', 'manage_checkout');
$items = get_checkout_items();
?>
<div class="checkoutMain">
<h2>Items Available for Checkout</h2>
<?php
if (!$items) {
?>
<p class="warn">No items available for checkout.</p>
<?php
} else {
?>
<table class="checkoutItems">
<tr class="header"><td>Item Name</td><td>Number</td><td>Deactivate</td></tr>
<?php
foreach ($items as $item) {
?>
<tr><td><?= $item['name'] ?></td><td><?= $item['total'] ?></td></tr>
<?
}
?>
</table>
<?php
}
?>
<hr />
<h2>Add a New Item For Checkout</h2>
<form action="redirects/addcheckoutitem.php" method="post" id='addCheckout'>
<div>
<label for='name'>Name:</label> <input type='text' name='name' id='name' />
<br /><label for='number'>Number:</label>
<input type='text' name='number' id='number' />
<br /><input type="submit" value="Add Item" />
</div>
</form>
</div>
<?php
xhtml_footer();
?>