public function show() { $building = $this->bo->read_single(phpgw::get_var('id', 'GET')); $building['buildings_link'] = self::link(array('menuaction' => 'booking.uibuilding.index')); $building['edit_link'] = self::link(array('menuaction' => 'booking.uibuilding.edit', 'id' => $building['id'])); $building['schedule_link'] = self::link(array('menuaction' => 'booking.uibuilding.schedule', 'id' => $building['id'])); $building['message_link'] = self::link(array('menuaction' => 'booking.uisystem_message.edit', 'building_id' => $building['id'])); $building['add_document_link'] = booking_uidocument::generate_inline_link('building', $building['id'], 'add'); $building['add_permission_link'] = booking_uipermission::generate_inline_link('building', $building['id'], 'add'); $building['location_link'] = self::link(array('menuaction' => 'property.uilocation.view', 'location_code' => $building['location_code'])); if (trim($building['homepage']) != '' && !preg_match("/^http|https:\\/\\//", trim($building['homepage']))) { $building['homepage'] = 'http://' . $building['homepage']; } self::render_template('building', array('building' => $building)); }
public function show() { $resource = $this->bo->read_single(phpgw::get_var('id', 'GET')); $resource['edit_link'] = self::link(array('menuaction' => 'booking.uiresource.edit', 'id' => $resource['id'])); $resource['building_link'] = self::link(array('menuaction' => 'booking.uibuilding.show', 'id' => $resource['building_id'])); $resource['buildings_link'] = self::link(array('menuaction' => 'booking.uibuilding.index')); $resource['schedule_link'] = self::link(array('menuaction' => 'booking.uiresource.schedule', 'id' => $resource['id'])); $resource['add_document_link'] = booking_uidocument::generate_inline_link('resource', $resource['id'], 'add'); $resource['add_permission_link'] = booking_uipermission::generate_inline_link('resource', $resource['id'], 'add'); $data = array('resource' => $resource); self::render_template('resource', $data); }
public function __construct() { parent::__construct(); self::set_active_menu('booking::buildings::documents'); }