Example #1
0
 /**
  * Looks up a salesproject to display.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param Array $args The argument list.
  * @param Array &$data The local request data.
  */
 public function _handler_view($handler_id, array $args, array &$data)
 {
     $this->_salesproject = new org_openpsa_sales_salesproject_dba($args[0]);
     $this->_load_controller();
     $this->_list_deliverables();
     $this->_prepare_request_data();
     $this->_populate_toolbar();
     $customer = $this->_salesproject->get_customer();
     if ($customer) {
         $this->add_breadcrumb("list/customer/{$customer->guid}/", $customer->get_label());
     }
     $this->add_breadcrumb("salesproject/{$this->_salesproject->guid}/", $this->_salesproject->title);
     midcom::get('metadata')->set_request_metadata($this->_salesproject->metadata->revised, $this->_salesproject->guid);
     midcom::get('head')->set_pagetitle($this->_salesproject->title);
     $this->add_stylesheet(MIDCOM_STATIC_URL . "/org.openpsa.core/list.css");
     org_openpsa_invoices_viewer::add_head_elements_for_invoice_grid();
 }