'."\n"; } function jsvar($n,$v) { return $n." = '".jsHelpers::escapeJS($v)."';\n"; } function common() { return jsHelpers::load('js/jquery/jquery.js'). jsHelpers::load('js/jquery/jquery.cookie.js'). jsHelpers::load('js/tools.js'). '\n"; } function confirmClose() { $args = func_get_args(); if (count($args) > 0) { foreach ($args as $k => $v) { $args[$k] = "'".jsHelpers::escapeJS($v)."'"; } $args = implode(',',$args); } else { $args = ''; } return jsHelpers::load('js/confirm-close.js'). '\n"; } function toolBar() { return ''. '"; } function dragSort() { return ''."\n". ''."\n"; } function escapeJS($str) { $str = htmlspecialchars($str,ENT_NOQUOTES,dc_encoding); $str = str_replace("'","\'",$str); $str = str_replace('"','\"',$str); return $str; } } ?>