2007-07-19 12:40:05 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function buttonClick(el) {
|
|
|
|
<% if Modal %>
|
|
|
|
window.returnValue = el.name;
|
|
|
|
window.close();
|
|
|
|
<% else %>
|
|
|
|
if(window.linkedObject) {
|
|
|
|
if(el.name) {
|
|
|
|
window.linkedObject.result = el.name;
|
|
|
|
|
|
|
|
} else {
|
2008-01-10 04:28:13 +01:00
|
|
|
throw("<% _t('BUTTONNOTFOUND', 'Couldn\'t find the button name') %>");
|
2007-07-19 12:40:05 +02:00
|
|
|
}
|
|
|
|
} else {
|
2008-01-10 04:28:13 +01:00
|
|
|
throw("<% _t('NOLINKED', 'Can\'t find window.linkedObject to send the button click back to the main window') %>");
|
2007-07-19 12:40:05 +02:00
|
|
|
}
|
|
|
|
window.close();
|
|
|
|
<% end_if %>
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<p>$Message</p>
|
|
|
|
|
|
|
|
<p style="align: center">
|
|
|
|
<% control Buttons %>
|
|
|
|
<input type="button" value="$Title" name="$Name" onclick="buttonClick(this);" />
|
|
|
|
<% end_control %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|