Код:<center><select onchange=\"window.open(this.value,'_top');\">
<option value=\"\">---Выбрать---</option>
".listQuery("select ForumName, ForumNameEng, User_ID from User where PermissionGroup_ID = '3' order by User_ID ASC", "<option value='?sort=voto_juriASC\$data[User_ID]'>".($DOMAIN_NAME == 'сайт.ru' ? "\$data[ForumName]" : "\$data[ForumNameEng]")." </option>")."
</select></center>
Код:$Us='?';
$category = $db->get_var("select Sub_Class_ID from Message175 where Subdivision_ID = ".$sub."");
$cont = $db->get_var("select count(Message) from Message176 where User_ID = $AUTH_USER_ID and Object_Sub_Class_ID = '".$category."'");
$participant = $db->get_var("select count(Message_ID) from Message175 where Subdivision_ID = ".$sub."");
$cont_com = $db->get_var("select count(komment) from Message176 where User_ID = $AUTH_USER_ID and Object_Sub_Class_ID = '".$category."'");
$cont_adm = $db->get_var("select count(Message) from Message176 where User_ID = $Us and Object_Sub_Class_ID = '".$category."'");
$cont_com_adm = $db->get_var("select count(komment) from Message176 where User_ID = $Us and Object_Sub_Class_ID = '".$category."'");
$admASC = $juriASC.$Us;
if($sort==$admASC) {
$ignore_all = TRUE;
$result_vars = '$User, $MessageID, $Mess, $Obj, $UserID, $Login, $Full, $Komment';
$query_select = 'a.User_ID as User, a.Message_ID as MessageID, b.Message as Mess, b.Object_ID as Obj, b.User_ID as UserID, c.Login as Login, d.EnglishName as Full, b.komment as Komment';
$query_from = "(`Message175` AS a, Message176 as b, User as c, Sub_Class as d )";
$query_where = "a.Message_ID = b.Object_ID and b.User_ID = $Us and a.User_ID = c.User_ID and d.Sub_Class_ID = a.Sub_Class_ID and a.Subdivision_ID = ".$sub." and a.Checked=1";
$query_limit="10000";
$query_order = 'Message ASC';
}