1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<?php if (!strstr($_SERVER['PHP_SELF'], 'javascript.php')): ?><script type="text/javascript">
<!--
<?php endif; ?>
function open_attendees_win(args)
{
var url = "<?php echo Horde::url($GLOBALS['registry']->applicationWebPath('%application%/attendees.php', 'kronolith')) ?>";
if (url.indexOf('?') == -1) {
var glue = '?';
} else {
var glue = '&';
}
var now = new Date();
var name = "attendees_window_" + now.getTime();
if (args != "") {
url = url + glue + args + "&uniq=" + now.getTime();
} else {
url = url + glue + "uniq=" + now.getTime();
}
var Width = screen.width;
if (Width > 775) {
Width = 700;
} else {
Width -= 75;
}
var Height = screen.height;
if (Height > 725) {
Height = 650;
} else {
Height -= 75;
}
param = "toolbar=no,location=no,status=yes,scrollbars=yes,resizable=yes,width=" + Width + ",height=" + Height + ",left=0,top=0";
name = window.open(url, name, param);
if (!eval("name.opener")) {
name.opener = self;
}
}
<?php if (!strstr($_SERVER['PHP_SELF'], 'javascript.php')): ?>// -->
</script>
<?php endif; ?>
|