Profile::showFormLifeCycleHelpdesk PHP Method

showFormLifeCycleHelpdesk() public method

@since version 0.85
public showFormLifeCycleHelpdesk ( $openform = true, $closeform = true )
$openform boolean open the form (true by default)
$closeform boolean close the form (true by default)
    function showFormLifeCycleHelpdesk($openform = true, $closeform = true)
    {
        if (!self::canView()) {
            return false;
        }
        echo "<div class='spaced'>";
        if (($canedit = Session::haveRightsOr(self::$rightname, array(CREATE, UPDATE, PURGE))) && $openform) {
            echo "<form method='post' action='" . $this->getFormURL() . "'>";
        }
        $this->displayLifeCycleMatrixTicketHelpdesk(__('Life cycle of tickets'), '_cycle_ticket', 'ticket_status', $canedit);
        if ($canedit && $closeform) {
            echo "<div class='center'>";
            echo "<input type='hidden' name='id' value='" . $this->fields['id'] . "'>";
            echo "<input type='submit' name='update' value=\"" . _sx('button', 'Save') . "\" class='submit'>";
            echo "</div>\n";
            Html::closeForm();
        }
        echo "</div>";
    }