Blame Scripts/Php/Webenv/admin/includes/functions/html.php

878a2b
878a2b
/***
878a2b
 * Function collection for html admin needs
878a2b
 *
878a2b
 * ...
878a2b
 */
878a2b
878a2b
//-----------/* Show admonition
878a2b
             /* Description: Useful to show actions results */
878a2b
             /* $message : is an string with the message itself */
878a2b
             /* $severity : may be green, orange, red, violet or blue */
878a2b
878a2b
    function show_message( $message , $severity = 'blue' )
878a2b
    {
878a2b
   
878a2b
        $html = '
';
878a2b
        $html .= $message;
878a2b
        $html .= '';
878a2b
878a2b
        return $html;
878a2b
    }
878a2b
878a2b
//-------/* Show action selector form field
878a2b
878a2b
    function show_action_field( $action = 'default' )
878a2b
    {
878a2b
        $html = ucfirst(translate('action')) . ': <select name="action">';
878a2b
        switch ( $action )
878a2b
        {
878a2b
            case 'update':
878a2b
                $html .= '<option value="update">' . ucfirst(translate('update')) . '</option>';
878a2b
            break;
878a2b
878a2b
            case 'delete':
878a2b
                $html .= '<option value="delete">' . ucfirst(translate('delete')) . '</option>';
878a2b
            break;
878a2b
878a2b
            default:
878a2b
                $html .= '<option value="update">' . ucfirst(translate('update')) . '</option>';
878a2b
                $html .= '<option value="delete">' . ucfirst(translate('delete')) . '</option>';
878a2b
        }
878a2b
        $html .= '</select>';
878a2b
878a2b
        return $html;
878a2b
878a2b
    }
878a2b
?>