-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtab.php
More file actions
64 lines (53 loc) · 1.97 KB
/
tab.php
File metadata and controls
64 lines (53 loc) · 1.97 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
<?php
require_once "common/styles.inc";
require_once "common/js.inc";
?>
<fb:fbml>
<!-- BEGIN TAB DISPLAY -->
<div class="fb-tabs clearfix"><center>
<div class="left_tabs">
<ul class="fb-tabitems clearfix">
<?php
$currentPage = basename($_SERVER['PHP_SELF']);
$baseUrl = 'http://64.124.154.141/fanmap/';
$tabs=array("$baseUrl" . 'home.php' => 'Home',
"$baseUrl" . 'fanmap.php?fanmap_sig_page_id=' . $_POST["fb_sig_page_id"] => 'Fan Map'
);
$count = 1;
foreach($tabs as $key => $value) {
if($count == 1) {
$selected = 'class="selected"';
} else {
$selected = "";
}
$tabId = 'fanmap_tab_' . $count++;
echo "<li><a id=\"$tabId\" href='#' onclick=\"sub('$key', '$tabId'); return false\" $selected>$value</a></li>";
}
$tabId = 'fanmap_tab_' . $count++;
$addMeUrl = "http://apps.facebook.com/fanmapping/addfan.php?fanmap_sig_page_id=" . $_POST['fb_sig_page_id'];
echo "<li><a id=\"$tabId\" href=\"$addMeUrl\" >Add/Update Me</a></li>";
$tabId = 'fanmap_tab_' . $count++;
$addMeUrl = $baseUrl . "viewall.php?fanmap_sig_page_id=" . $_POST['fb_sig_page_id'];
echo "<li><a id=\"$tabId\" href='#' onclick=\"sub('$addMeUrl', '$tabId'); return false\" $selected>View Other Fan Maps</a></li>";
?>
</ul>
</div>
<div class="right_tabs">
<ul class="fb-tabitems clearfix">
<?php
$addMeUrl = $baseUrl . "invite.php?fanmap_sig_page_id=" . $_POST['fb_sig_page_id'];
echo "<li><a id=\"fanmap_tab_5\" href='#' onclick=\"sub('$addMeUrl', 'fanmap_tab_5'); return false\" $selected>Tell A Friend</a></li>";
?>
</ul>
</div>
</center></div>
<!-- END TAB DISPLAY -->
<h1>
<fb:name uid="<?php echo $_POST['fb_sig_page_id']; ?>" linked="false" /> Fan Map
</h1>
<div id="page_content">
<?php
require_once "home.php";
?>
</div>
</fb:fbml>