forked from ndlibersa/usage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublisherPlatform.php
More file actions
156 lines (117 loc) · 4.95 KB
/
publisherPlatform.php
File metadata and controls
156 lines (117 loc) · 4.95 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
if (isset($_GET['publisherPlatformID'])){
$publisherPlatformID = $_GET['publisherPlatformID'];
$platformID = '';
}
if (isset($_GET['platformID'])){
$platformID = $_GET['platformID'];
$publisherPlatformID = '';
}
if (($publisherPlatformID == '') && ($platformID == '')){
header( 'Location: publisherPlatformList.php?error=1' ) ;
}
$pageTitle = 'View or Edit Publisher / Platform';
include 'templates/header.php';
if ($publisherPlatformID) {
$obj = new PublisherPlatform(new NamedArguments(array('primaryKey' => $publisherPlatformID)));
$pub = new Publisher(new NamedArguments(array('primaryKey' => $obj->publisherID)));
$displayName = $pub->name;
}else if ($platformID){
$obj = new Platform(new NamedArguments(array('primaryKey' => $platformID)));
$displayName = $obj->name;
}
?>
<table class="headerTable" style="background-image:url('images/header.gif');background-repeat:no-repeat;">
<tr><td>
<table style='width:897px;'>
<tr style='vertical-align:top'>
<td><span class="headerText"><?php echo $displayName; ?></span><br /><br /></td>
<td style='text-align:right;'> </td>
</tr>
</table>
<?php
if (count($obj->getTitles()) == '0'){
if ($publisherPlatformID) {
echo "No titles found for this Publisher / Platform combination";
}else if ($platformID){
echo "No titles found for this Platform";
}
}else{
?>
<input type='hidden' name='platformID' id='platformID' value='<?php echo $platformID; ?>'>
<input type='hidden' name='publisherPlatformID' id='publisherPlatformID' value='<?php echo $publisherPlatformID; ?>'>
<div style="width: 781px;" id ='div_displayLogins'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuselected" style='position: relative; width: 91px'><a href='javascript:void(0)' class='showLogins'>Logins</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showNotes'>Notes</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showStats'>Statistics</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showTitles'>Titles</a></div>
</td>
<td class='mainContent'>
<div id='div_loginDetails'>
<img src = "images/circle.gif">Loading...
</div>
</td>
</tr>
</table>
</div>
<div style="display:none; width: 781px;" id ='div_displayNotes'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuunselected"><a href='javascript:void(0)' class='showLogins'>Logins</a></div>
<div class="sidemenuselected" style='position: relative; width: 91px'><a href='javascript:void(0)' class='showNotes'>Notes</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showStats'>Statistics</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showTitles'>Titles</a></div>
</td>
<td class='mainContent'>
<div id='div_noteTextDetails'>
<img src = "images/circle.gif">Loading...
</div>
</td>
</tr>
</table>
</div>
<div id ='div_displayStats' style='display:none;width:781px;'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuunselected"><a href='javascript:void(0)' class='showLogins'>Logins</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showNotes'>Notes</a></div>
<div class='sidemenuselected' style='position: relative; width: 91px'><a href='javascript:void(0)' class='showStats'>Statistics</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showTitles'>Titles</a></div>
</td>
<td class='mainContent'>
<div id='div_statsDetails'>
<img src = "images/circle.gif">Loading...
</div>
</td>
</tr>
</table>
</div>
<div id ='div_displayTitles' style='display:none;width:781px;'>
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<div class="sidemenuunselected"><a href='javascript:void(0)' class='showLogins'>Logins</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showNotes'>Notes</a></div>
<div class='sidemenuunselected'><a href='javascript:void(0)' class='showStats'>Statistics</a></div>
<div class='sidemenuselected' style='position: relative; width: 91px'><a href='javascript:void(0)' class='showTitles'>Titles</a></div>
</td>
<td class='mainContent'>
<div id='div_titleDetails'>
<img src = "images/circle.gif">Loading...
</div>
</td>
</tr>
</table>
</div>
</td></tr>
</table>
<script type="text/javascript" src="js/publisherPlatform.js"></script>
<?php
}
include 'templates/footer.php';
?>