Emergency Services Dashboard dhtmlx.image_path='/codebase/imgs/'; var main_layout = new dhtmlXLayoutObject(document.body, '3T'); var calls = main_layout.cells('a'); calls.setText('Current Calls'); calls.fixSize(1,1); var People = main_layout.cells('b'); People .setText('People'); People .fixSize(1,1); var Facilities = main_layout.cells('c'); Facilities.setText('Facility Status'); Facilities.fixSize(1,1); var facstat = Facilities.attachGrid(); facstat.setIconsPath('/codebase/imgs/'); facstat.enableMultiline(true); facstat.setHeader(["Facility","Status"]); facstat.setColTypes("ro,ro"); facstat.setColVAlign('top,middle'); facstat.enableTooltips('false,false'); facstat.setColSorting('na,na'); facstat.enableValidation(true, true); facstat.setColValidators(','); facstat.enableCellIds(true); facstat.setColumnIds('faclist,facstat'); facstat.setInitWidths('*,*'); facstat.groupBy('1'); facstat.attachEvent('onEditCell', function(stage,rId,cInd,nValue,oValue) { if (cInd=='0' || cInd == '1') return false; else return true; }); facstat.enableColumnMove(true); facstat.attachEvent('onEditCell', function(stage,rId,cInd,nValue,oValue) {return false;}); facstat.enableKeyboardSupport(false); facstat.init(); facstat.load('addins/dhtmlx/data/grid.xml', 'xml'); var navribbon = main_layout.attachRibbon({ skin : "dhx_skyblue", icons_path : "codebase/imgs/", items : [ {id : "mainview", text : "Dashboard", text_pos : "top", type : "block", mode : "cols"}, {id : "incidentview", text : "View Incidents", text_pos : "top", type : "block", mode : "cols"}, {id : "clickcall", text : "Call Clicker", text_pos : "buttom", type : "block", mode : "cols", list : [ {id : "clkcallcnt", type : "input", value : "0"}, {id : "btnclickcall", text : "Count Call", isbig : true, type : "button"} ]} ] }); var c = document.getElementbyID('clkcallcnt').innerHTML var cc = document.getElementbyID('btnclickcall') cc.onclick = function(c ++ 1) return c.value = () dhxComponent.cells(People)attachDIVid(userstatus).innerHTML; dhxComponent.cells(calls).attachGrid(callgridbox); dhxComponent.cells(facilities).attachGrid(facstat)
Name Status