HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/kms.komma.pro/wwwroot/app/controllers/c_confirm.class.php
<?php
/**
 * Created by Komma.pro
 * User: mikevandersanden
 * Date: 8/2/14
 */

class Confirm extends Controller
{

    /*
     * Title
     */
    private $_title;

    /*
     * Message
     */
    private $_msg;


    public function __construct(){
        parent::__construct();
    }

    /*
     * Return message unsaved data
     */
    public function unsavedData()
    {
        // Set Message
        $this->_title = $this->lang['confirm_unsaved_data_title'];
        $this->_msg = $this->lang['confirm_unsaved_data'];

        // Output
        $this->output();
    }

    /*
     * Return message remove item
     */
    public function removeItem()
    {
        // Set Message
        $this->_title = $this->lang['confirm_remove_item_title'];
        $this->_msg = $this->lang['confirm_remove_item'];

        // Output
        $this->output();
    }

    /*
     * Echo the dialog
     */
    private function output()
    {
        $output = '<div class="bg"></div>';
        $output .= '<div class="dialog">';

        // Title
        $output .= '<span class="title">' . $this->_title . '</span>';

        // Msg
        $output .= '<span class="msg">' . $this->_msg . '</span>';

        // Buttons
        $output .= '<span id="confirm" class="btn">
                        <span class="text">' .  $this->lang['continue'] . '</span>
                        <span class="hover"></span>
                        <span class="up">
                            <span class="shadow"></span>
                        </span>
                    </span>';

        $output .= '<span id="abort" class="btn cancel">
                        <span class="text">' .  $this->lang['cancel'] . '</span>
                        <span class="hover"></span>
                        <span class="up">
                            <span class="shadow"></span>
                        </span>
                    </span>';
        $output .= '</div>';

        // echo the output
        echo $output;
    }
}