Files
CIEF Dev Team 4716562987 Initial commit
2018-03-06 13:21:45 +00:00

13 lines
442 B
PHP
Executable File

<?php
function getHelpList($room_id = null){
global $db;
$roomLists = $db->query("SELECT * FROM notice_rooms WHERE chat_name = 'Help' and owner_id <> 1");
$html="";
foreach($roomLists as $key => $value){
$html .= "<li " . ($room_id == $value['room_id'] ? "data-jstree='".'{ "selected" : true }'."'" : ">" )
."<a href='/help/".$value['room_id']."'>".get_data($value['owner_id'], "username")."</a>"
."</li>";
}
return $html;
}