-
Notifications
You must be signed in to change notification settings - Fork 11
/
publisherPlatform.php
executable file
·142 lines (117 loc) · 3.88 KB
/
publisherPlatform.php
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
<?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>
<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:900px;'>
<div style='float:left; width:597px;vertical-align:top;margin:0; padding:0;'>
<div style="width: 797px;" id ='div_imports' class="usage_tab_content">
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<?php echo usage_sidemenu('imports'); ?>
</td>
<td class='mainContent'>
<div class='div_mainContent'>
</div>
</td>
</tr>
</table>
</div>
<div style="display:none;width: 797px;" id ='div_titles' class="usage_tab_content">
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<?php echo usage_sidemenu('titles'); ?>
</td>
<td class='mainContent'>
<div class='div_mainContent'>
</div>
</td>
</tr>
</table>
</div>
<div style="display:none;width: 597px;" id ='div_statistics' class="usage_tab_content">
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<?php echo usage_sidemenu('statistics'); ?>
</td>
<td class='mainContent'>
<div class='div_mainContent'>
</div>
</td>
</tr>
</table>
</div>
<div style="display:none;width: 797px;" id ='div_logins' class="usage_tab_content">
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<?php echo usage_sidemenu('logins'); ?>
</td>
<td class='mainContent'>
<div class='div_mainContent'>
</div>
</td>
</tr>
</table>
</div>
<div style="display:none;width: 797px;" id ='div_sushi' class="usage_tab_content">
<table cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
<tr>
<td class="sidemenu">
<?php echo usage_sidemenu('sushi'); ?>
</td>
<td class='mainContent'>
<div class='div_mainContent'>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</td></tr>
</table>
<script type="text/javascript" src="js/publisherPlatform.js"></script>
<script>
$(document).ready(function() {
<?php if ((isset($_GET['showTab'])) && ($_GET['showTab'] == 'sushi')){ ?>
$('a.showSushi').click();
<?php }else{ ?>
$('a.showImports').click().css("font-weight", "bold");
<?php } ?>
});
</script>
<?php
include 'templates/footer.php';
?>