-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax_loadShow__.php
153 lines (133 loc) · 3.59 KB
/
ajax_loadShow__.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
143
144
145
146
147
148
149
150
151
152
153
<?php
include('includes/includes.php');
$showID = $_GET['show'];
$season = $_GET['season'];
$query = "select subID,title from files where is_episode=1 and showID=$showID and season=$season order by season_number";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result))
{
$epID = $row['subID'];
$title = stripslashes($row['title']);
?>
<h1>いただけるなら、</h1>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="17%"> </td>
<td width="1%" class="NewsTitle"> </td>
<td colspan="5" class="NewsTitle"><img src="/images/package.png" />
<?php
$url = '/'.bd_getUrl($epID);
echo "<a href='$url'>$title</a>";
?>
</td>
</tr>
<?php
$vquery = "select distinct(fversion),versionDesc from fversions where subID=$epID order by fversion";
$vresult = mysql_query($vquery);
while ($vrow = mysql_fetch_assoc($vresult))
{
$cfversion = $vrow['fversion'];
$versionDesc = $vrow['versionDesc'];
?>
<tr>
<td> </td>
<td> </td>
<td width="1%" class="newsClaro"> </td>
<td colspan="3" class="newsClaro"><img src="/images/folder_page.png" width="16" height="16" />
<?php echo "$wikilang_version $versionDesc, ".bd_getFVersionSize($epID, $cfversion)." Mbs"; ?>
</td>
<td width="19%"> </td>
</tr>
<?php
$lquery = "select distinct(lang_id) from flangs where subID=$epID and fversion=$cfversion order by original DESC";
$lresult = mysql_query($lquery);
while ($lrow=mysql_fetch_assoc($lresult))
{
$lang = $lrow['lang_id'];
$langName = bd_getLangName($lang);
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td width="4%"><img src="/images/invisible.gif" width="18" height="11" /></td>
<td width="41%" class="language">
<?php echo $langName; ?>
</td>
<td width="17%">
<?php echo bd_getLangState($epID, $lang, $cfversion); ?>
</td>
<td><img src="/images/download.png" width=16" height="16" />
<?php echo '<a href="/updated/'.$lang.'/'.$epID.'/'.$cfversion.'">'.$wikilang_download; ?></a>
</td>
</tr>
<?php
}
$query = "select linkID,versionDesc,versionSize from links where subID=$epID and fversion=$cfversion";
$mresult = mysql_query($query);
$lnum = mysql_affected_rows();
if ($lnum>0)
{
?>
<tr>
<td> </td>
<td > </td>
<td> </td>
<td> </td>
<td colspan="3" class="SectionTitle"><img src="/images/link.png" width="16" height="16" />
<?php echo $wikilang_linked_versions; ?>
</td>
</tr>
<?php
while ($mrow = mysql_fetch_assoc($mresult))
{
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td class="newsClaro"><img src="/images/folder_page.png" width="16" height="16" />
<?php
echo $mrow['versionDesc'].', ';
echo $mrow['versionSize'].' MBs';
?>
</td>
<td colspan="2"> </td>
</tr>
<?php
$lquery = "select distinct(lang_id) from flangs where subID=$epID and fversion=$cfversion order by original DESC";
$llresult = mysql_query($lquery);
while ($llrow = mysql_fetch_assoc($llresult))
{
?>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td class="language">
<?php
echo bd_getLangName($llrow['lang_id']);
?>
</td>
<td><img src="/images/download.png" width="16"" height="16" />
<?php echo '<a href="/downloadlink.php?linkID='.$lrow['linkID'].'&lang='.$llrow['lang_id'].'">'; ?>
Download</a>
</td>
</tr>
<?
}
}
}
}
?>
<tr>
<td colspan="7"> </td>
</tr>
</table>
<?php
}
bbdd_close();
?>