Html::displayTitle PHP Method

displayTitle() static public method

Common Title Function
static public displayTitle ( $ref_pic_link = "", $ref_pic_text = "", $ref_title = "", $ref_btts = "" ) : nothing
$ref_pic_link Path to the image to display (default '')
$ref_pic_text Alt text of the icon (default '')
$ref_title Title to display (default '')
$ref_btts Extra items to display array(link=>text...) (default '')
return nothing
    static function displayTitle($ref_pic_link = "", $ref_pic_text = "", $ref_title = "", $ref_btts = "")
    {
        $ref_pic_text = htmlentities($ref_pic_text, ENT_QUOTES, 'UTF-8');
        echo "<div class='center'><table class='tab_glpi'><tr>";
        if ($ref_pic_link != "") {
            $ref_pic_text = self::clean($ref_pic_text);
            echo "<td>" . Html::image($ref_pic_link, array('alt' => $ref_pic_text)) . "</td>";
        }
        if ($ref_title != "") {
            echo "<td><span class='vsubmit'>&nbsp;" . $ref_title . "&nbsp;</span></td>";
        }
        if (is_array($ref_btts) && count($ref_btts)) {
            foreach ($ref_btts as $key => $val) {
                echo "<td><a class='vsubmit' href='" . $key . "'>" . $val . "</a></td>";
            }
        }
        echo "</tr></table></div>";
    }

Usage Example

Example #1
0
 function title()
 {
     $buttons = array();
     $title = "";
     $buttons["thread.php"] = __('Back to processes list', 'ocsinventoryng');
     Html::displayTitle("", "", $title, $buttons);
     echo "<br>";
 }
All Usage Examples Of Html::displayTitle
Html