This repository was archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd3_deckgarage.php
127 lines (127 loc) · 3.06 KB
/
d3_deckgarage.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
<?php
$loc = parse_url($_SERVER[REQUEST_URI]);
parse_str($loc['query']);
if(!isset($menu)) {$menu=1;}
?>
<HTML>
<HEAD>
<TITLE>jps4 beta : more than just pokémon : duel masters : tcg : deck garage</TITLE>
<LINK rel=stylesheet type=text/css href=site/style.css>
<?php include("site/meta.txt"); ?>
</HEAD>
<BODY>
<CENTER>
<TABLE width=750 border=0 cellpadding=0>
<TR>
<TD width=625 colspan=2 rowspan=2 class=light>
<?php include("site/head.txt"); ?>
</TD>
<TD width=125 align=center class=light>
Latest News
</TD>
</TR>
<TR>
<TD width=125>
<?php include("site/ticker.txt"); ?>
</TD>
</TR>
<TR>
<TD width=125 rowspan=2 class=light>
<?php include("site/left.txt"); ?>
</TD>
<TD width=500>
<DIV class=head>
Duel Masters Deck Garage
<?php
if(!isset($deck)) {echo " Archives";}
?>
</DIV>
<?php
if(isset($deck)) {
include("d3/deckg/$deck.txt");
echo "<DIV class=subhead>$deckgdate : $title</DIV>";
;}
?>
<BR>
<?php
if(isset($deck)) { ?>
<?php if(isset($listorig)) { ?>
<TABLE align=left width=125 border=1 cellpadding=0>
<TR><TD width=25><B>Qty.</B></TD><TD width=100><B>Name</B></TD></TR>
<?php foreach($listorig as $x=>$y) { ?>
<TR><TD colspan=2><B><?= $x; ?> : <?= count($y); ?> cards</B></TD></TR>
<?php
foreach($y as $z) {
include("d3/db/".$z['set']."/".$z['card'].".txt");
echo "<TR><TD>",$z['qty'],"</TD><TD><A href=\"d3_database.php?set=",$z['set'],"&card=",$z['card'],"\">$name</A></TD></TR>";
unset($z);
;}
;} ?>
</TABLE>
<?php ;} ?>
<?php if(isset($listrev)) { ?>
<TABLE align=right width=125 border=1 cellpadding=0>
<TR><TD width=25><B>Qty.</B></TD><TD width=100><B>Name</B></TD></TR>
<?php foreach($listrev as $a=>$b) { ?>
<TR><TD colspan=2><B><?= $a; ?> : <?= count($b); ?> cards</B></TD></TR>
<?php
foreach($b as $c) {
include("d3/db/".$c['set']."/".$c['card'].".txt");
echo "<TR><TD>",$c['qty'],"</TD><TD><A href=\"d3_database.php?set=",$c['set'],"&card=",$c['card'],"\">$name</A></TD></TR>";
unset($c);
;}
;} ?>
</TABLE>
<?php ;} ?>
<?= $review; ?>
<P>
<A href="d3_deckgarage.php">Deck Garage Archives</A>
<?php ;}
else {
if(!isset($page)) {$page=1;}
$x=1;
if(file_exists("d3/deckg/101.txt")) { ?>
<DIV align=right>Page <?php
while(file_exists("d3/deckg/".(($x*100)-99).".txt")) {
if($x!=$page) {echo "<A href=\"d3_deckgarage.php?page=$x\">$x</A>";}
else {echo $x;}
$x++;
if(file_exists("d3/deckg/".(($x*100)-99).".txt")) {echo " : ";}
;}
?>
</DIV>
<?php ;}
$i=($page*100)-99;
while(file_exists("d3/deckg/$i.txt") and $i<=(100*$page)) {
include("d3/deckg/$i.txt");
echo "<A href=\"d3_deckgarage.php?deck=$i\">Deck $i : $deckgdate : $title</A><BR>";
$i++;
;}
$x=1;
if(file_exists("d3/deckg/101.txt")) { ?>
<DIV align=right>Page <?php
while(file_exists("d3/deckg/".(($x*100)-99).".txt")) {
if($x!=$page) {echo "<A href=\"d3_deckgarage.php?page=$x\">$x</A>";}
else {echo $x;}
$x++;
if(file_exists("d3/deckg/".(($x*100)-99).".txt")) {echo " : ";}
;}
?>
</DIV>
<?php ;}
;}
?>
</TD>
<TD width=125 class=light>
<?php include("site/right.txt"); ?>
</TD>
</TR>
<TR>
<TD width=625 height=13 align=right colspan=2>
<?php include("site/footer.txt"); ?>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>