function alert($msg) { parent::init(); $this->view->jQuery()->onLoadCaptureStart(); echo "jAlert('{$this->translat($msg)}', 'Alert Dialog');"; $this->view->jQuery()->onLoadCaptureEnd(); }
function render() { parent::init(); $this->view->jQuery()->onLoadCaptureStart(); echo "\tjConfirm ('{$this->_message}', '{$this->_title}', {$this->_callback}); "; $this->view->jQuery()->onLoadCaptureEnd(); }
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; }
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; }
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; }