<?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;
}