Source for file bookinglist.php
Documentation is available at bookinglist.php
* View a list of bookings for a given user or instrument in tabular format
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: bookinglist.php,v 1.3 2006/12/12 23:30:42 themill Exp $
* path (bumblebee root)/inc/actions/bookinglist.php
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
/** list of choices object */
require_once 'inc/formslib/anchortablelist.php';
require_once 'inc/actions/viewbase.php';
* View a list of bookings for a given user or instrument in tabular format
//restrictions that might be placed on the listing
* @param BumblebeeAuth $auth Authorisation object
* @param array $pdata extra state data from the call path
$this->selectInstrument();
if (isset
($this->user) &&
! empty($this->user)) {
/* if (is_array($this->groups)) {
if (count($this->groups) > 0) {
$this->restrictions[] = 'groupid in ('.join(',', array_qw($this->groups)).')';
$this->restrictions[] = '0';
$blist->hrefbase =
makeURL('book', array('bookid'=>
'__id__'));
$blist->connectDB('bookings',
array('bookings.id', 'bookwhen', 'duration',
'instruments.name AS instrumentname', 'username', 'users.name'),
array('bookings.id', 'bookid'),
array('users' =>
'userid=users.id',
'instruments' =>
'instrument=instruments.id'));
$headings =
array(T_('Date & Time'),
'%s', array('instrumentname'),
'%s (%s)', array('name', 'username'));
$headings[] =
T_('User');
'%s', array('instrumentname')
$blist->setTableHeadings($headings);
if ($blist->list->length <=
0) {
Documentation generated on Tue, 06 Mar 2007 10:00:55 +0000 by phpDocumentor 1.3.0