src/UI/Output.php
function closeButton($text=false) {
        if ( $text === false ) $text = _m("Exit");
        $button = "btn-success";
        if ( $text == "Cancel" || $text == _m("Cancel") ) $button = "btn-warning";
        echo("<a href=\"#\" onclick=\"window_close();\" class=\"btn ".$button."\">".$text."</a>\n");
    }
function closeButton($text=false) {
        if ( $text === false ) $text = _m("Exit");
        $button = "btn-success";
        if ( $text == "Cancel" || $text == _m("Cancel") ) $button = "btn-warning";
        echo("<a href=\"#\" onclick=\"window_close();\" class=\"btn ".$button."\">".$text."</a>\n");
    }
function closeButton ( $ text = false ) { if ( $ text === false ) $ text = _m ( "Exit" ) ; $ button = "btn-success" ; if ( $ text == "Cancel" || $ text == _m ( "Cancel" ) ) $ button = "btn-warning" ; echo ( "<a href=\"#\" onclick=\"window_close();\" class=\"btn " . $ button . "\">" . $ text . "</a>\n" ) ; }
Emit a properly styled close button for use in own popup
Emit a properly styled close button for use in own popup