<?php
require_once'f_simbol.php';
$prev=$conn->query('SELECT`id`,`citit`,`marcat`,`de`FROM`mesaje`WHERE`la`="'.$de.'"&&`citit`="0"'.($pid>0?'&&`id`<"'.$pid.'"':'').'ORDER BY`id`DESC LIMIT 1')->fetch_row();
$next=$conn->query('SELECT`id`,`citit`,`marcat`,`de`FROM`mesaje`WHERE`la`="'.$de.'"&&`citit`="0"'.($pid>0?'&&`id`>"'.$pid.'"':'').'ORDER BY`id`ASC LIMIT 1')->fetch_row();
if($prev[0]>0||$next[0]>0)
echo$div[1].($prev[0]>0?'<a accesskey="1" href="/mesaj/id/'.$prev[0].'">'.img('arrow_back.png',1).($prev[1]==0?'<img src="'.$domenii_statice[1].'npm.gif" alt="" />':($prev[2]==1?'<img src="'.$domenii_statice[2].'spm.gif" alt="" width="16" height="16" />':'<img src="'.$domenii_statice[1].'opm.gif" alt="" />')).simbol($prev[3]).nume($prev[3]).'</a>':'').($prev[0]>0&&$next[0]>0?'<strong> - </strong>':'').($next[0]>0?'<a accesskey="2" href="/mesaj/id/'.$next[0].'">'.($next[1]==0?'<img src="'.$domenii_statice[1].'npm.gif" alt="" />':($next[2]==1?'<img src="'.$domenii_statice[2].'spm.gif" alt="" width="16" height="16" />':'<img src="'.$domenii_statice[1].'opm.gif" alt="" />')).simbol($next[3]).nume($next[3]).img('arrow_next.png',2).'</a>':'').$div[0];
unset($prev,$next);