Файл: vsime.com/files_zone/inc/multi_select_foot.php
Строк: 47
<?
if (isset($_SESSION['files_zone_multi_select']) && isset($moderate_files)) {
echo "<div class='mod_grad'>n";
echo "<input type='hidden' name='mdp' value='$mdp'>n";
echo "<input type='submit' name='multi_select_submited' value='Выбрать' /> <a href='?dir=$dir[id]&files_zone_multi_select=cancel&page=$page&mdp=$mdp'>Отмена</a>n";
echo "</div>n";
echo "</form>n";
if ($count_files_zone_multi_select > 0) {
echo "<div class='list_dr'>";
echo "Выбрано ".sklon_text($count_files_zone_multi_select, array('файл', 'файла', 'файлов')).":<br />n";
$count = 0;
foreach ($_SESSION['files_zone_multi_select'] as $key => $value) {
$file = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `files_zone` WHERE (`type` = 'file' OR `type` = 'foto') AND `id` = '$value'"));
if ($file['type']=='file') {
$file_user = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `files` WHERE `id` = '$file[id_file]'"));
} elseif ($file['type']=='foto') {
$file_user = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `foto` WHERE `id` = '$file[id_file]'"));
}
echo "<a href='?file=$file[id]'".title_link('Открыть файл').">n";
if (is_file(H.'/i/file_type/'.$file_user['ras'].'.png'))echo "<img src='/i/file_type/$file_user[ras].png' alt='$file_user[ras]' /> n";
else echo "<img src='/i/file_type/file.png' alt='file' /> n";
echo hsc($file_user['name']).".".hsc($file_user['ras'])."</a> <a href='?dir=$dir[id]&files_zone_multi_select=full_list&page=$page&delete=$file[id]&mdp=$mdp'>$config[code_delete]</a><br />";
$count ++;
if($count >= 5)break;
}
if ($count_files_zone_multi_select > 5)echo "<a href='?dir=$dir[id]&files_zone_multi_select=full_list&page=$page'>Полный список »</a>n";
echo ($count_files_zone_multi_select > 0?"<span class='right'><a href='?dir=$dir[id]&files_zone_multi_select=delete&page=$page'>Удалить файлы</a> | <a href='?dir=$dir[id]&files_zone_multi_select=drop&page=$page&mdp=$mdp'>Очистить список</a></span>":null);
echo "<div class='clear'></div>n";
echo "</div>";
}
}
?>