<?php

class Message {

    public function error2 ($message){

        echo '<div class="approcket_message_danger">'. $message . '</div>';


    }

    
    public function ok2 ($message){

        echo '<div class="approcket_message_success">'. $message . '</div>';


    }

    public function error ($message){

        echo '<div class="alert alert-danger alert-dismissible saeed-alert">

        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>

        <h5 class="saeed-alert-header"><i style="margin-right: 1px;" class="icon fa fa-ban"></i> خطا در عملیات </h5><p class="saeed-alert-desc">'. $message . '</p></div>';


    }

    public function ok ($message){

        echo '<div class="alert alert-success alert-dismissible saeed-alert">

        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>

        <h5 class="saeed-alert-header"><i style="margin-right: 1px;" class="icon fa fa-check-circle"></i> عملیات موفق </h5><p class="saeed-alert-desc">'. $message . '</p></div>';

    }

    public function info ($message){

        echo '<div class="alert alert-info alert-dismissible saeed-alert">

        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>

        <h5 class="saeed-alert-header"><i style="margin-right: 1px;" class="icon fa fa-info"></i> پیام: </h5><p class="saeed-alert-desc">'. $message . '</p></div>';


    }

    public function warning ($message){

        echo '<div class="alert alert-warning alert-dismissible saeed-alert">

        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>

        <h5 class="saeed-alert-header"><i style="margin-right: 1px;" class="icon fa fa-warning"></i> هشدار: </h5><p class="saeed-alert-desc">'. $message . '</p></div>';

    }

}