1###############################################################################
2# default.Downloads.template                                                  #
3###############################################################################
4# YaBB: Yet another Bulletin Board                                            #
5# Open-Source Community Software for Webmasters                               #
6# Version:        YaBB 2.6.11                                                 #
7# Packaged:       December 2, 2014                                            #
8# Distributed by: http://www.yabbforum.com                                    #
9# =========================================================================== #
10# Copyright (c) 2000-2014 YaBB (www.yabbforum.com) - All Rights Reserved.     #
11# Software by:  The YaBB Development Team                                     #
12#               with assistance from the YaBB community.                      #
13###############################################################################
14$downloadstemver = 'YaBB 2.6.11 $Revision: 1611 $';
15
16
17$downloads_top = qq~<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$abbr_lang" lang="$abbr_lang">
19<head>
20<title>{yabb fatxt39}</title>
21<meta http-equiv="Content-Type" content="text/html; charset=$yymycharset" />
22<link rel="stylesheet" href="$yyhtml_root/Templates/Forum/$usestyle.css" type="text/css" />
23<script type="text/javascript">
24    function download_file(amfn) {
25        window.open('$scripturl?action=downloadfile;file=' + encodeURIComponent(amfn),'_blank');
26        self.setTimeout('location.reload()', 3000);
27    }
28    function load_thread(amthreadid,amreplies) {
29        try{
30            if (typeof(opener.document) == 'object') throw '1';
31            else throw '0';
32        } catch (e) {
33            if (amreplies > 0 || ~
34      . (
35        (
36            ( $ttsureverse && ${ $uid . $username }{'reversetopic'} )
37              || $ttsreverse
38        ) ? 1 : 0
39      )
40      . qq~ == 1) amreplies = '/' + amreplies + '#' + amreplies;
41            else amreplies = '';
42            if (e == 1) {
43                opener.location.href='$scripturl?num=' + amthreadid + amreplies;
44                self.close();
45            } else {
46                location.href='$scripturl?num=' + amthreadid + amreplies;
47            }
48        }
49    }
50</script>
51</head>
52<body class="littlebody" style="margin:0 auto">
53    <div id="container">
54    <br />~;
55
56$downloads_bottom = q~
57<br />
58</div>
59</body>
60</html>~;
61
62$downloads_att =
63qq~<tr>
64        <td class="windowbg2 center" colspan="{yabb colspan}"><b><i>{yabb fatxt48}</i></b></td>
65    </tr><tr>
66        <td class="catbg center" colspan="{yabb colspan}"><a href="javascript:try{if(typeof(opener.document)=='object'){throw '1';}else{throw '0';}}catch (e){if(e==1) {opener.location.href='$scripturl?num={yabb thread}';self.close();}else{location.href='$scripturl?num={yabb thread}';}}">{yabb fatxt70} "<i>{yabb threadname}</i>"</a> &nbsp; | &nbsp; <a href="javascript:window.close();">{yabb fatxt71}</a></td>
67    </tr>~;
68
69$my_att_admin = qq~
70        <td class="windowbg2 center"><input type="checkbox" name="del_{yabb thread}" value="{yabb amfn}" /></td>~;
71
72$my_att_admin_b = q~
73         <td class="catbg center">
74            <input type="checkbox" name="checkall" value="" onclick="if(this.checked){checkAll();}else{uncheckAll();}" />
75        </td>~;
76
77$my_att_admin_c =  qq~{yabb amv_txt38a} &nbsp; <input type="submit" value="{yabb admin_txt32}" class="button" />~;
78
79$my_out_att_admin_a = qq~
80        <td class="windowbg center"><b>{yabb fatxt45}</b></td>~;
81
82
83$downloads_att_b = qq~<tr>
84            {yabb att_admin}
85        <td class="windowbg2"><a href="javascript:void(download_file('{yabb amfn}'));"> {yabb amfn}</a></td>
86        <td class="windowbg2 center"><img src="{yabb attach_gif}" class="bottom" alt="" /></td>
87        <td class="windowbg2 right">{yabb amkb} KB</td>
88        <td class="windowbg2 center">{yabb amdate}</td>
89        <td class="windowbg2 right">{yabb amcount}</td>
90        <td class="windowbg2"><a href="javascript:load_thread('{yabb thread}','{yabb amreplies}');">{yabb amthreadsub}</a></td>
91        <td class="windowbg2 center">{yabb amposter}</td>
92        </tr>~;
93
94$downloads_att_c = qq~<tr>
95          {yabb att_admin_b}
96        <td class="catbg" colspan="7">
97            <table>
98				<colgroup>
99                    <col style="width:33%" />
100                    <col style="width:34%" />
101                    <col style="width:33%" />
102				</colgroup>
103                <tr>
104                    <td class="small">
105           {yabb att_admin_c}
106                    </td>
107                    <td class="center" style="white-space:nowrap"> &nbsp; <a href="javascript:load_thread('{yabb thread}',0);">{yabb fatxt70} "<i>{yabb threadname}</i>"</a> &nbsp; | &nbsp; <a href="javascript:window.close();">{yabb fatxt71}</a> &nbsp; </td>
108                    <td class="small right">{yabb pageindex}</td>
109                </tr>
110            </table>
111        </td>
112    </tr>~;
113
114$downloads_att_out_a = qq~
115<table class="tabtitle" style="width:98%">
116    <tr>
117        <td style="padding-left:1em">
118            <img src="$imagesdir/xx.gif" alt="" />&nbsp;<b>{yabb fatxt39}</b>
119        </td>
120    </tr>
121</table>
122<table class="pad_4px" style="width:98%">
123    <tr>
124        <td class="windowbg center" colspan="{yabb colspan}">
125            <br />
126            {yabb fatxt75}:<br />
127            "<i>{yabb threadname}</i>"<br />
128            <br />
129            <span class="small">{yabb fatxt76}</span>
130            <br />
131        </td>
132    </tr><tr>
133        <td class="titlebg" colspan="{yabb colspan}">
134            <div class="small" style="float: left; text-align: left;">{yabb fatxt28} {yabb max} {yabb numshow}
135            <br />{yabb pageindex}</div>
136        </td>
137    </tr><tr>~;
138
139$downloads_tbl_end = qq~</td>
140    </tr>
141    {yabb viewattachments}
142</table>~;
143
144$my_att_sort_a = qq~<td onclick="location.href='$scripturl?action=viewdownloads;thread={yabb thread};sort=~;
145$my_att_sort_b = qq~</td>
146        <td onclick="location.href='$scripturl?action=viewdownloads;thread={yabb thread};sort=~;
147$my_att_sort_c = qq~style="border: 0; border-style: outset; cursor: pointer; text-align:center"><a href="$scripturl?action=viewdownloads;thread={yabb thread};sort=~;
148
1491;
150