-
Notifications
You must be signed in to change notification settings - Fork 8
/
GalleryPage.aspx
89 lines (84 loc) · 3.92 KB
/
GalleryPage.aspx
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="GalleryPage.aspx.vb" Inherits="DotNetNuke.Modules.Gallery.GalleryPageBase" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head" runat="server">
<meta content="Microsoft Visual Studio.NET 8.0" name="GENERATOR" />
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE" />
<meta content="JavaScript" name="vs_defaultClientScript" />
<meta http-equiv="Content-Style-Type" content="text/css"/>
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" name="vs_targetSchema" />
<asp:placeholder id="CSS" runat="server" />
<asp:Placeholder id="SCRIPTS" runat="server" />
<script src="/Resources/Shared/Scripts/jquery/jquery.min.js?1.6.1" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src='<%=Page.ResolveUrl("DesktopModules/Gallery/Popup/gallerypopup.js")%>'></script>
<script type="text/javascript" language="javascript">
function closeWindow()
{
window.close();
}
function windowClosed(event)
{
// William Severance - added function to ensure that popUp is set to null
// regardless of whether window is closed by close button or X. Otherwise, the next time
// a pop up attempts to open, it will throw exception since popUp will still
// be defined but have no properties.
if (opener) opener.popUp=null;
}
function testOpener() {
//var baseurl = window.location.protocol + '//' + window.location.host + window.location.pathname.substr(0, window.location.pathname.indexOf("/", 1) + 1) + 'default.aspx';
if (opener) {
var rgxTabId = /tabid[\/=](\d+)/i
var openerTabId = rgxTabId.exec(opener.window.location.href);
var popupTabId = rgxTabId.exec(window.location.href);
var openertabid = '';
var popuptabid = '';
if (openerTabId != null && popupTabId != null) {
openertabid = openerTabId[1];
popuptabid = popupTabId[1];
if (openertabid != popuptabid) {
window.location.replace("about:blank"); //window.location.replace(baseurl);
}
}
}
else {
window.location.replace("about:blank"); //window.location.replace(baseurl);
}
}
</script>
</head>
<body onunload="javascript:windowClosed();">
<form id="Form1" method="post" runat="server">
<script type="text/javascript" language="javascript">
testOpener();
</script>
<table id="tblControl" class="Gallery_ViewControl">
<tr>
<td class="Gallery_HeaderCapLeft"></td>
<td class="Gallery_Header Centered">
<asp:label id="lblTitle" runat="server" cssclass="Gallery_HeaderText"></asp:label>
</td>
<td class="Gallery_HeaderCapRight"></td>
</tr>
<tr>
<td class="Gallery_RowCapLeft"></td>
<td id="cellControl" class="Gallery_Row Centered">
<asp:PlaceHolder ID="phControl" runat="server"></asp:PlaceHolder>
</td>
<td class="Gallery_RowCapRight"></td>
</tr>
<tr>
<td class="Gallery_FooterCapLeft"></td>
<td class="Gallery_Footer Centered">
<asp:Button ID="btnClose" runat="server" OnClientClick="javascript:closeWindow();return false;" CssClass="Button" Text="Close" />
</td>
<td class="Gallery_FooterCapRight"></td>
</tr>
<tr>
<td class="Gallery_BottomCapLeft"></td>
<td class="Gallery_Bottom"></td>
<td class="Gallery_BottomCapRight"></td>
</tr>
</table>
</form>
</body>
</html>