7 var roomsForFloors = new Array();
13 var RN_LIST_ORDER = 3;
14 var RN_ACCESS_CONTROL = 4;
17 var RN_LAST_CHANGE = 7;
20 var QR_MAILBOX = 16384;
23 var UA_GOTOALLOWED = 4;
24 var UA_HASNEWMSGS = 8;
29 var VIEW_ADDRESSBOOK = 2;
30 var VIEW_CALENDAR = 3;
34 var VIEW_CALBRIEF = 7;
37 function FillRooms(callback) {
38 var roomFlr = new Ajax.Request("/json_roomflr", {method: 'get', onSuccess: function(transport) { ProcessRoomFlr(transport); callback.call(); }});
40 function ProcessRoomFlr(transport) {
41 var data = eval('('+transport.responseText+')');
42 floors = data["floors"];
43 rooms = data["rooms"];
45 function GetRoomsByFloorNum(flnum) {
46 var roomsForFloor = new Array();
48 for(var i=0; i<rooms.length; i++) {
50 var floornum = room[RN_FLOOR_NUM];
51 var flag = room[RN_ROOM_FLAG];
52 if (flnum == floornum && ((flag & QR_MAILBOX) != QR_MAILBOX)) {
53 roomsForFloor[x] = room;
59 function GetMailboxRooms() {
60 var roomsForFloor = new Array();
62 for(var i=0; i<rooms.length; i++) {
64 var floornum = room[RN_FLOOR_NUM];
65 var flag = room[RN_ROOM_FLAG];
66 if ((flag & QR_MAILBOX) == QR_MAILBOX) {
67 roomsForFloor[x] = room;