Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Следующий линк $nextlink; и следующий url $nexturl ### Предыдущий линк $prevlink; и предыдущий url $prevurl; $prevkey и $nextkey
- @$list = $db->query('SELECT id, key, ufu FROM pages WHERE id='.$page['id'].'+1 ORDER BY id LIMIT 1;');
- $nextlink="";$nexturl="";$prevlink="";$prevurl="";$nextkey="";$prevkey="";
- while ($echo = $list->fetchArray())
- {
- $bigkey = trim(mb_strtoupper(mb_substr($echo['key'], 0, 1, 'utf-8'), 'utf-8')).trim(mb_substr($echo['key'], 1, 100, 'utf-8'), 'utf-8');
- $nextkey= $bigkey;
- if ($ufurl == '1') {
- $nextlink= '<a class="nextlink" href="http://'.$host.'/'.$get_chpu.'/'.urlencode($echo['ufu']).'/" >'.$bigkey.'</a>';
- $nexturl= 'http://'.$host.'/'.$get_chpu.'/'.urlencode($echo['ufu']).'/';
- } else {
- $nextlink= '<a class="nextlink" href="http://'.$host.'/'.$script.'/'.$get_page.'='.$echo['id'].'" >'.$bigkey.'</a>';
- $nexturl= 'http://'.$host.'/'.$script.'/'.$get_page.'='.$echo['id'];
- }
- }
- @$list = $db->query('SELECT id, key, ufu FROM pages WHERE id='.$page['id'].'-1 ORDER BY id LIMIT 1;');
- while ($echo = $list->fetchArray())
- {
- $bigkey = trim(mb_strtoupper(mb_substr($echo['key'], 0, 1, 'utf-8'), 'utf-8')).trim(mb_substr($echo['key'], 1, 100, 'utf-8'), 'utf-8');
- $prevkey= $bigkey;
- if ($ufurl == '1') {
- $prevlink= '<a class="prevlink" href="http://'.$host.'/'.$get_chpu.'/'.urlencode($echo['ufu']).'/" >'.$bigkey.'</a>';
- $prevurl= 'http://'.$host.'/'.$get_chpu.'/'.urlencode($echo['ufu']).'/';
- } else {
- $prevlink= '<a class="prevlink" href="http://'.$host.'/'.$script.'/'.$get_page.'='.$echo['id'].'" >'.$bigkey.'</a>';
- $prevurl= 'http://'.$host.'/'.$script.'/'.$get_page.'='.$echo['id'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment