$options = property_option($catid); $values = property_value($moduleid, $itemid); } $adddate = timetodate($addtime, 3); $editdate = timetodate($edittime, 3); $linkurl = $MOD['linkurl'] . $linkurl; $T = array(); $result = $db->query("SELECT itemid,thumb,introduce FROM {$table_item} WHERE item={$itemid} ORDER BY listorder ASC,itemid ASC"); while ($r = $db->fetch_array($result)) { $r['middle'] = str_replace('.thumb.', '.middle.', $r['thumb']); $r['big'] = str_replace('.thumb.' . file_ext($r['thumb']), '', $r['thumb']); $T[] = $r; } $demo_url = $MOD['linkurl'] . itemurl($item, '{destoon_page}'); $next_photo = $items > 1 ? next_photo($page, $items, $demo_url) : $linkurl; $prev_photo = $items > 1 ? prev_photo($page, $items, $demo_url) : $linkurl; if ($T) { $S = side_photo($T, $page, $demo_url); } else { $S = array(); $T[0]['thumb'] = DT_SKIN . 'image/spacer.gif'; $T[0]['introduce'] = $L['no_picture']; } $P = $T[$page - 1]; $P['src'] = str_replace('.thumb.' . file_ext($P['thumb']), '', $P['thumb']); $user_status = 3; $update = ''; $fee = get_fee($item['fee'], $MOD['fee_view']); if ($fee) { $user_status = 4; $destoon_task = "moduleid={$moduleid}&html=show&itemid={$itemid}&page={$page}";
function prev_photo_link($hash, $status = 1) { if ($photo = prev_photo($hash, $status)) { echo '<a id="prev-link" class="page prev" title="' . $photo['title'] . '" href="' . SITE_URL . 'photo.php?id=' . $photo['uid'] . '">PREV</a>'; } }