forked from bopoda/fl-ru-damp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtpl.msg_attach_box.php
26 lines (25 loc) · 1.21 KB
/
tpl.msg_attach_box.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
<div id="attach">
<div id="ad_button">
<div>
<div id="attaches" style="padding-bottom: 5px">
<input type="file" name="attach[]" class="input-file" size="50">
<span class="addButton" style="font-size: 16px;"> </span>
</div>
</div>
<? /*
<input type="hidden" name="MAX_FILE_SIZE" value="<?=commune::MSG_FILE_MAX_SIZE?>"/>
<input type="file" style="width:100%" name="file"/> */ ?>
Ñ ïîìîùüþ ýòîãî ïîëÿ âîçìîæíî çàãðóçèòü:
<ul>
<li>Êàðòèíêó: <?= commune::MSG_IMAGE_MAX_WIDTH ?>x<?= commune::MSG_IMAGE_MAX_HEIGHT ?> ïèêñåëåé. <?= (commune::MSG_IMAGE_MAX_SIZE / 1024) ?> Êá. </li>
<li>
Âû ìîæåòå ïðèêðåïèòü äî <?=commune::MAX_FILES ?> ôàéëîâ îáùèì îáúåìîì íå áîëåå <?=(commune::MAX_FILE_SIZE / (1024*1024))?> Ìá.<br/>
Ôàéëû ñëåäóþùèõ ôîðìàòîâ çàïðåùåíû ê çàãðóçêå: <?=implode(', ', $GLOBALS['disallowed_array'])?>
</li>
</ul>
</div>
<script type="text/javascript">
new mAttach(document.getElementById('attaches'), <?= (commune::MAX_FILES - $max) ?>);
</script>
<br/><?= ($error ? view_error($error) . '<br/>' : '') ?>
</div>