} else { // 32400 = 9*60*60 (時差補正) $time2date = sprintf('floor((%s + 32400) / 86400)', $db->quoteIdentifier('time')); } $orderBy = sprintf('%s %s, %s ', $time2date, $sort, $db->quoteIdentifier('uri')); if ($order == 'date_uri') { $orderBy .= $sort; } else { $orderBy .= $sort == 'ASC' ? 'DESC' : 'ASC'; } } else { $orderBy = $db->quoteIdentifier($order) . ' ' . $sort; } $orderBy .= ' , id ' . $sort; $icdb->orderBy($orderBy); $icdb->limit($from, $ipp); $found = $icdb->find(); // テーブルのブロックに表示する値を取得&オブジェクトに代入 $flexy->setData('all', $all); $flexy->setData('cols', $cols); $flexy->setData('last', $last_page); $flexy->setData('from', $from + 1); $flexy->setData('to', $from + $found); $flexy->setData('submit', array()); $flexy->setData('reset', array()); if ($_conf['ktai']) { $show_exif = false; $popup = false; $r_type = $ini['General']['redirect'] == 1 ? 1 : 2; } else { switch ($mode) {