-
Notifications
You must be signed in to change notification settings - Fork 1
/
filelist.tpl
128 lines (127 loc) · 5.46 KB
/
filelist.tpl
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
<section class="content container-fluid">
<div class="col-xs-12 col-xs-offset-0 col-sm-10 col-sm-offset-1 col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1 no-padding">
{if !empty($error)}
<div class="alert alert-danger">{$error}</div>
{/if}
{if !empty($noerror)}
<div class="alert alert-info">{$noerror}</div>
{/if}
{if $newserverversion !== true AND !empty($serverinfo['virtualserver_version'])}
<div class="alert alert-warning">{$lang['serverupdateav']}{$newserverversion}</div>
{/if}
<div class="box box-info">
<div class="box-header">
<h3 class="box-title">{if !empty($smarty.get.cid)}{$lang['channel']} ({$smarty.get.cid} {$chaninfo['channel_name']}){else}{$lang['filelist']}{/if}</h3>
</div>
<div class="box-body">
<table class="table">
<tr>
<th style="width:25%">{$lang['name']}</th>
<th style="width:10%">{$lang['size']}</th>
<th style="width:25%">{$lang['date']}</th>
<th style="width:25%">{$lang['channel']}</th>
<th style="width:10%">{$lang['delete']}</th>
</tr>
{if $smarty.get.path != "/" AND !empty($smarty.get.path)}
<tr>
<td colspan="5"><a href="index.php?site=filelist&sid={$smarty.get.sid}&cid={$cid}&path={$newpath}">..</a></td>
</tr>
{/if}
{if !empty($getallfiles)}
{foreach key=key item=value from=$getallfiles}
{if $key !== 'totalsize'}
<tr>
<td>
{if $value['type'] == 0}
<img src='gfx/images/folder.png' alt="" /><a href="index.php?site=filelist&sid={$smarty.get.sid}&path={if $smarty.get.path != "/"}{$smarty.get.path}{/if}/{$value['name']}&cid={if isset($value['cid'])}{$value['cid']}{else}{$smarty.get.cid}{/if}">{$value['name']}</a>
{else}
<img src='gfx/images/file.png' alt="" /> <a href="site/filetransfer.php?sid={$smarty.get.sid}&cid={if isset($value['cid'])}{$value['cid']}{else}{$smarty.get.cid}{/if}&path={if $smarty.get.path != "/"}{$smarty.get.path}{/if}&name={$value['name']}&getfile=1" target="_blank">{$value['name']}</a>
{/if}
</td>
<td>{$value['size']} Mb</td>
<td>{$value['datetime']|date_format:"%d.%m.%Y - %H:%M:%S"}</td>
<td>{$value['cname']}</td>
<td><a href="index.php?site=filelist&sid={$sid}&cid={if isset($value['cid'])}{$value['cid']}{else}{$smarty.get.cid}{/if}&path={if empty($smarty.get.path)}/{else}{$smarty.get.path}{/if}&name={$value['name']}&deletefile=1">{$lang['delete']}</a></td>
</tr>
{elseif $key === 'totalsize'}
<tr>
<td>{$lang['totalsize']}</td>
<td colspan="4">{$value} Mb</td>
</tr>
{/if}
{/foreach}
{else}
<tr>
<td colspan="5">
Keine Dateien gefunden!
</td>
</tr>
{/if}
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10 col-sm-offset-1 col-md-5 col-md-offset-1 col-lg-5 col-lg-offset-1">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">{$lang['upload']}</h3>
</div>
<div class="box-body">
<form enctype="multipart/form-data" method="post" action="index.php?site=filelist&sid={$smarty.get.sid}&cid={$smarty.get.cid}&cpw={$smarty.get.cpw}&path={$smarty.get.path}">
<div class="form-group">
{if empty($smarty.get.cid)}
<label for="newfile_cid">{$lang['channel']}</label>
<select id="newfile_cid" class="form-control" name="cid">
{foreach key=key item=value from=$channellist}
<option value="{$value['cid']}">{$value['channel_name']}</option>
{/foreach}
</select>
</div>
{/if}
<div class="form-group fake-file">
<label for="newfile_file">{$lang['upload']}:</label>
<input type="hidden" name="max_file_size" value="8388603" />
<div class="input-group">
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-flat fake-file-button-browse">
<span class="mdi mdi-file mdi-lg"></span>
</button>
</span>
<input type="file" name="thefile" id="newfile_file" class="fake-file-input-upload" style="display:none">
<input type="text" class="fake-file-input-name form-control" readonly>
</div>
</div>
<input type="submit" class="btn btn-primary btn-flat btn-block" name="upload" value="{$lang['upload']}" />
</form>
</div>
</div>
</div>
<div class="col-sm-10 col-sm-offset-1 col-md-offset-0 col-md-5 col-lg-5">
<div class="box box-border-teal">
<div class="box-header">
<h3 class="box-title">{$lang['createfolder']}</h3>
</div>
<div class="box-body">
<form method="post" action="index.php?site=filelist&sid={$smarty.get.sid}&cid={$smarty.get.cid}&cpw={$smarty.get.cpw}&path={$smarty.get.path}">
{if empty($smarty.get.cid)}
<div class="form-group">
<label for="newfolder_cid">{$lang['channel']}</label>
<select id="newfolder_cid" class="form-control" name="cid">
{foreach key=key item=value from=$channellist}
<option value="{$value['cid']}">{$value['channel_name']}</option>
{/foreach}
</select>
</div>
{/if}
<div class="form-group">
<label for="newfolder_name">{$lang['name']}:</label>
<input id="newfolder_name" class="form-control" type="text" name="fname" />
</div>
<input type="submit" class="btn btn-flat btn-block bg-teal" name="createdir" value="{$lang['createfolder']}" />
</form>
</div>
</div>
</div>
</div>
</section>