Added “Server rules” showing
This commit is contained in:
parent
540b5ccce6
commit
9ae4e81f1c
1 changed files with 12 additions and 0 deletions
|
@ -574,6 +574,18 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
$out.='<div><div class="idlab">'._('Short description').'</div><div class="idesc">'.nully(strip(nl2br(trim(n2es($row['ShortDesc'])),false),$row['URI'])).'</div></div>'.N;
|
||||
$out.='<div><div class="idlab">'._('Long description').'</div><div class="idesc">'.nully(strip(trim(n2es($row['LongDesc'])),$row['URI'])).'</div></div>'.N;
|
||||
|
||||
$out.='<div><div class="idlab">'._('Server rules').'</div><div class="idesc">';
|
||||
$rres=tquery('SELECT Text FROM InstRules WHERE InstID='.$row['ID'],__LINE__);
|
||||
if (mysqli_num_rows($rres)>0) {
|
||||
$out.='<ol>'.N;
|
||||
while ($rrow=mysqli_fetch_assoc($rres))
|
||||
$out.='<li>'.hspech($rrow['Text']).'</li>'.N;
|
||||
$out.='</ol>';
|
||||
} else {
|
||||
$out.='<span class="null">'._('Not available{plural}').'</span>';
|
||||
}
|
||||
$out.='</div></div>'.N;
|
||||
|
||||
if (!is_null($row['AdmAccount']))
|
||||
$admacc='<a href="https://'.hspech($row['URI']).'/@'.hspech($row['AdmAccount']).'">'.hspech($row['AdmAccount']).'@'.hspech($row['URI']).'</a>';
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue