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

projectlist.class.php

Blame
  • projectlist.class.php 22.63 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
        // ----------------------------------------------------------------------    
        var $_sInprogress='';
        var $_sHasqueue='';
        // ----------------------------------------------------------------------
        // constructor
        // ----------------------------------------------------------------------
    
        /**
         * constructor2 called from constructor of base class
         */
        public function __construct() {
            $this->oUser=new user();
            
            $this->_sInprogress='<div class="progressinprogress"><i class="fa fa-refresh" title="'.t("progress-inprogress").'"></i> '.t("progress-inprogress").'</div>';
            $this->_sHasqueue='<div class="progresshasqueue"><i class="glyphicon glyphicon-time" title="'.t("progress-hasqueue").'"></i> '.t("progress-hasqueue").'</div>';
            // define 
        }
    
        // ----------------------------------------------------------------------
        // 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 = '';
            $sPhaseFilter = '';
            $sPrjFilter.='<option value="">' . t("all") . '</option>';