コード例 #1
0
ファイル: Alert.php プロジェクト: hugi2002/mylibrary
 function alert($msg)
 {
     parent::init();
     $this->view->jQuery()->onLoadCaptureStart();
     echo "jAlert('{$this->translat($msg)}', 'Alert Dialog');";
     $this->view->jQuery()->onLoadCaptureEnd();
 }
コード例 #2
0
ファイル: Confirm.php プロジェクト: hugi2002/mylibrary
 function render()
 {
     parent::init();
     $this->view->jQuery()->onLoadCaptureStart();
     echo "\tjConfirm ('{$this->_message}', '{$this->_title}', {$this->_callback}); ";
     $this->view->jQuery()->onLoadCaptureEnd();
 }
コード例 #3
0
ファイル: Confirm.php プロジェクト: hugi2002/mylibrary
    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
ファイル: Alert.php プロジェクト: hugi2002/mylibrary
    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
ファイル: SqlAlert.php プロジェクト: hugi2002/mylibrary
    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;
    }