示例#1
0
 function alert($msg)
 {
     parent::init();
     $this->view->jQuery()->onLoadCaptureStart();
     echo "jAlert('{$this->translat($msg)}', 'Alert Dialog');";
     $this->view->jQuery()->onLoadCaptureEnd();
 }
示例#2
0
 function render()
 {
     parent::init();
     $this->view->jQuery()->onLoadCaptureStart();
     echo "\tjConfirm ('{$this->_message}', '{$this->_title}', {$this->_callback}); ";
     $this->view->jQuery()->onLoadCaptureEnd();
 }
示例#3
0
    function render()
    {
        parent::init();
        $output = <<<dialog
        <script type="text/livescript">
        \$(document).ready(function() {
        \t\t\tjConfirm ('{$this->_message}', '{$this->_title}', {$this->_callback});
\t\t });
\t\t</script>
dialog;
        echo $output;
    }
示例#4
0
    function alert($msg)
    {
        parent::init();
        $output = <<<dialog
        <script type="text/livescript">
        \$(document).ready(function() {
\t\t \t\t\tjAlert('{$this->translat($msg)}', 'Alert Dialog');
\t\t });
\t\t</script>
dialog;
        return $output;
    }
示例#5
0
    function sqlAlert($msg)
    {
        parent::init();
        $msg = str_replace('[', ':', $msg);
        $msg = str_replace(']', ':', $msg);
        $msg = str_replace("'", '', $msg);
        $msg = str_replace('"', '', $msg);
        // $msg = str_replace(' ','_',$msg);
        $strEx = explode(' ', $msg);
        $key = $msg;
        //$key = $strEx[0].$strEx[count($strEx)-1];
        // $key = str_replace('::',':',$key);
        $output = <<<dialog
        <script type="text/javascript">
        \$(document).ready(function() {
\t\t \t\t\tjAlert('{$this->translat($key)}', 'Alert Dialog');
\t\t });
\t\t</script>
dialog;
        return $output;
    }