Skip to content
Snippets Groups Projects
Select Git revision
  • 9d0c5afbcf972db28d5482511cc29d73f3c69a23
  • master default protected
  • Legacy_Php7
3 results

project.class.php

Blame
  • projectlist.class.php 25.40 KiB
    <?php
    
    /* ######################################################################
    
      IML DEPLOYMENT
    
      class projectlist to render overview page
    
      ---------------------------------------------------------------------
      2013-11-08  Axel <axel.hahn@iml.unibe.ch>
      ###################################################################### */
    
    require_once 'base.class.php';
    require_once 'project.class.php';
    
    /**
     * class for project overview
     */
    class projectlist extends base{
        // ----------------------------------------------------------------------
        // CONFIG
        // ----------------------------------------------------------------------    
        // ----------------------------------------------------------------------
        // constructor
        // ----------------------------------------------------------------------
    
        /**
         * constructor2 called from constructor of base class
         */
        public function __construct() {
            $this->oUser=new user();
        }
    
        // ----------------------------------------------------------------------
        // private functions
        // ----------------------------------------------------------------------
        // ----------------------------------------------------------------------
        // GETTER
        // ----------------------------------------------------------------------
        // ----------------------------------------------------------------------
        // SETTER
        // ----------------------------------------------------------------------
        // ----------------------------------------------------------------------
        // ACTIONS
        // ----------------------------------------------------------------------
    
        /**
         * render html for overview table
         * @return string
         */
        public function renderOverview() {
            
            $sOut = '';  // table
            $sOut2 = ''; // tiles
            $oPrj = false;
            $sTrClass = "trproject";
            $sColClass = "tdphase";
    
            $oPrj1 = new project();
            $oHtml=new htmlguielements();
    
            $sPrjFilter = '';
            $sPrjGroupFilter = '';
            $sPhaseFilter = '';
            $sPrjFilter.='<option value="">' . t("all") . '</option>';
            $sPrjGroupFilter.='<option value="">' . t("all") . '</option>';
    
            $sPhaseFilter.='<option value="' . $sColClass . '">' . t("all") . '</option>';
            
            $iInprogress=0;