Exemplo n.º 1
0
 function __construct($id, $aBands, $title = '')
 {
     parent::__construct($id, $aBands, $title === '' ? 'Bands' : $title);
     $this->_tableHelper->tableId = $id . '-table';
     $this->_tableHelper->setData($aBands);
     $this->_tableHelper->setCustomFieldList(['name', 'action']);
     $this->_tableHelper->addKeyMapping('name', 'Name');
     $this->_tableHelper->addKeyMapping('action', 'Aktion');
     $this->_tableHelper->bindLink('action', base_url() . 'band/details/', 'id', '', 'btn btn-primary btn-xs', 'Details');
     $this->icon = 'fa-music';
 }
Exemplo n.º 2
0
 function __construct($id, $aGigs, $title = '')
 {
     parent::__construct($id, $aGigs, $title === '' ? 'Gigs' : $title);
     $this->_tableHelper->tableId = $id . '-table';
     $this->_tableHelper->setData($aGigs);
     $this->_tableHelper->setCustomFieldList(['date', 'name', 'title', 'action']);
     $this->_tableHelper->addKeyMapping('title', 'Name');
     $this->_tableHelper->addKeyMapping('date', 'Datum');
     $this->_tableHelper->addKeyMapping('name', 'Venue');
     $this->_tableHelper->addKeyMapping('action', 'Aktion');
     $this->_tableHelper->bindConversion('date', 'pretty-date');
     $this->_tableHelper->bindLink('action', base_url() . 'gig/details/', 'id', '', 'btn btn-primary btn-xs', 'Details');
     $this->icon = 'fa-bullhorn';
 }
Exemplo n.º 3
0
 function __construct($id, $aPersons, $title = '')
 {
     parent::__construct($id, $aPersons, $title === '' ? 'Kontakte' : $title);
     $this->_tableHelper->tableId = $id . '-table';
     $this->_tableHelper->setData($aPersons);
     $this->_tableHelper->setCustomFieldList(['firstname', 'lastname', 'phone', 'email', 'action']);
     $this->_tableHelper->addKeyMapping('firstname', 'Vorname');
     $this->_tableHelper->addKeyMapping('lastname', 'Nachname');
     $this->_tableHelper->addKeyMapping('phone', 'Nummer');
     $this->_tableHelper->addKeyMapping('email', 'E-Mail');
     $this->_tableHelper->addKeyMapping('action', 'Aktion');
     $this->_tableHelper->bindLink('action', base_url() . 'person/details/', 'id', '', 'btn btn-primary btn-xs', 'Details');
     $this->_tableHelper->bindLink('email', 'mailto:', 'email');
     $this->icon = 'fa-user';
 }
Exemplo n.º 4
0
 function __construct($id, $aVenues, $title = '')
 {
     parent::__construct($id, $aVenues, $title === '' ? 'Venues' : $title);
     $this->_tableHelper->tableId = $id . '-table';
     $this->_tableHelper->setData($aVenues);
     $this->_tableHelper->setCustomFieldList(['name', 'street', 'number', 'zip', 'city', 'action', 'action2']);
     $this->_tableHelper->addKeyMapping('name', 'Name');
     $this->_tableHelper->addKeyMapping('street', 'Straße');
     $this->_tableHelper->addKeyMapping('number', 'Hausnummer');
     $this->_tableHelper->addKeyMapping('zip', 'PLZ');
     $this->_tableHelper->addKeyMapping('city', 'Stadt');
     $this->_tableHelper->addKeyMapping('action', 'Aktion');
     $this->_tableHelper->addKeyMapping('action2', 'Aktion');
     $this->_tableHelper->bindLink('action', base_url() . 'venue/details/', 'id', '', 'btn btn-primary btn-xs', 'Details');
     $this->_tableHelper->bindLink('action2', base_url() . 'gig/create/', 'id', '', 'btn btn-success btn-xs', '<span class="fa fa-plus"></span> Gig');
     $this->icon = 'fa-globe';
 }