Файл: modules/foto/inc/checkeraksMultiSelectFdh.php
Строк: 20
<?php
/* DCMS S (Special)
* Версия файла 0.0.1
* Дата последнего редактирования 27.10.2015
* Модифицировал densnet
*/
if (isset($_SESSION['mod_rf'])) {
echo "<br/><input type='submit' value='Выбрать' name='ok'></form>";
echo "<div class = 'comm'>";
if ($count_rf >= 5)
unset($cn);
if ($count_rf != 0) {
echo "Выбрано фотки: ";
$array = explode(";", $_SESSION['mod_rf']);
$count = 0;
foreach ($array as $key => $value) {
if (!isset($stop) && $value != NULL) {
$foto = mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `id` = '$value' AND `id_user` = '$user[id]' AND `sk` = '0'"));
$gallery2 = mysql_fetch_array(mysql_query("SELECT * FROM `gallery` WHERE `id` = '$foto[id_gallery]'"));
echo ($count > 0 ? ", " : NULL) . "<a href='/modules/foto/$ank[id]/$gallery2[id]/$foto[id]/'>" . htmlspecialchars($foto['name']) . "." . htmlspecialchars($foto['ras']) . "</a>";
$count++;
if ($count == 5) {
$stop = 1;
}
}
}
if (isset($stop) && $count_rf > 5) {
echo " и ещё " . ($count_rf - 5) . "";
}
} else {
echo "Нет выбраных фоток";
}
echo "<br/><a href='?mod_rf_cancel&page=$page'>[отмена]</a>" . ($count_rf > 0 ? " <a href='?mod_rf_drop&page=$page'>[очистить]</a>" : null) . "";
echo "</div>";
}