function dashboard() { print "<h2>VCL Dashboard</h2>\n"; if (checkUserHasPerm('View Dashboard (global)')) { print "View data for:"; $affils = getAffiliations(); $affils = array_reverse($affils, TRUE); $affils[0] = "All Affiliations"; $affils = array_reverse($affils, TRUE); printSelectInput('affilid', $affils, -1, 0, 0, 'affilid', 'onChange="updateDashboard();"'); } print "<table summary=\"\" id=dashboard>\n"; print "<tr>\n"; # -------- left column --------- print "<td valign=\"top\">\n"; print addWidget('status', 'Current Status'); print addWidget('topimages', 'Top 5 Images in Use', '(Reservations < 24 hours long)'); print addWidget('toplongimages', 'Top 5 Long Term Images in Use', '(Reservations > 24 hours long)'); print addWidget('toppastimages', 'Top 5 Images From Past Day', '(Reservations with a start<br>time within past 24 hours)'); print addWidget('topfailedcomputers', 'Top Recent Computer Failures', '(Failed in the last 5 days)'); print addWidget('blockallocation', 'Block Allocation Status'); print "</td>\n"; # -------- end left column --------- # ---------- right column --------- print "<td valign=\"top\">\n"; print addWidget('managementnodes', 'Management Nodes', '[ ] denotes node in maintenance state'); print addWidget('topfailed', 'Top Recent Image Failures', '(Failed in the last 5 days)'); print addLineChart('reschart', 'Past 12 Hours of Active Reservations'); print "</td>\n"; # -------- end right column -------- print "</tr>\n"; print "</table>\n"; print addWidget('newreservations', 'Notable Reservations', ''); if (checkUserHasPerm('View Dashboard (global)')) { print addWidget('failedimaging', 'Failed Imaging Reservations', '(Imaging Reservations in the maintenance state)'); } $cont = addContinuationsEntry('AJupdateDashboard', array('val' => 0), 90, 1, 0); print "<input type=\"hidden\" id=\"updatecont\" value=\"{$cont}\">\n"; }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.accordionMenu", "value" => "{ menu : [\n {label: 'Links',\n menu: [\n { label : 'Sun.com',\n href : 'http://www.sun.com'},\n { label : 'jMaki.com',\n href : 'http://www.jmaki.com'}\n ]\n },\n {label: 'Actions',\n menu: [\n { label : 'Select',\n action :{topic: '/foo/select',\n message: { targetId : 'bar'}}\n },\n { label :'Set Content',\n action :{topic: '/foo/setContent',\n message: { value : 'test.jsp'}}\n }\n ]}\n ]}"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.logger"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.tree", "value" => "{\n root : {\n label : 'Yahoo Tree Root Node',\n expanded : true,\n children : [\n { label : 'Node 1.1'},\n { label : 'Node 1.2',\n children : [\n { label : 'Node 3.1',\n action : { topic : '/foo/select', message : {targetId : 'bar'}}\n }\n ]\n }\n ]\n }}"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.map", "value" => "{centerLat:37.39316, centerLon:-121.947333700}"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.editor", "value" => "Edit me"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.tabMenu", "value" => "{menu : [\n {label: 'Link',\n href : 'http://www.jmaki.com'\n },\n {label: 'Action',\n action :{topic: '/foo/select',\n message: { targetId : 'bar'}}\n }\n ]\n }"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.breadCrumbs", "value" => "{menu : [\n {label: 'Home',\n href : 'http://www.jmaki.com'\n },\n {label: 'Samples',\n action :{topic: '/foo/select',\n message: { targetId : 'bar'}}\n },\n {label: 'Charting',\n action :{topic: '/foo/select',\n message: { targetId : 'bar'}}\n } \n ]\n "));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.rgbslider"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.carousel", "value" => "{ feed : 'https://api.feedburner.com/format/1.0/JSONP?uri=TheAquarium_en' }"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.search"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.simpledlg"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.colorpicker"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.geocoder"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.dataTable", "value" => "{columns : [\n { 'label' : 'Title', 'id' : 'title'},\n { 'label':'Author', 'id' : 'author'},\n { 'label': 'ISBN #', 'id' : 'isbn'},\n { 'label': 'Description', 'id' : 'description'}\n ],\n rows : [\n { 'title' : 'Book Title 1', 'author' : 'Author 1', 'isbn': '4412', 'description' : 'A Some long description'},\n { id : 'bar', 'title' : 'Book Title 2', 'author' : 'Author 2', 'isbn': '4412', 'description' : 'A Some long description'} ] }"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.weather"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.dcontainer"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.button", "value" => "{ label : 'click me ' }"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.tabbedview", "value" => "{items:[\n {label : 'My Tab', content : 'Some Content'},\n {id : 'bar', label : 'My Tab 2', include : 'test.jsp ', lazyLoad : true },\n {label : 'My Tab 3', content : 'More Content', selected : true} ] }"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.menu", "value" => "{menu: [ \n { label :'Action',\n action : { topic : '/foo', message : { value : 'test.jsp' } }\n },\n { label : 'Must Read',\n \n menu: [\n { label:'dev.java.net',\n menu: [ \n { label : 'jMaki',\n href :'http://ajax.dev.java.net'\n },\n { label : 'Glass',\n href : 'http://glassfish.dev.java.net' \n }\n ] \n }\n ] \n }, \n { label:'Click me for fun!',style:{strongemphasis:true} },\n { label:'Disabled!',style:{disabled:true} },\n { label:'Yahoo!', \n href :'http://www.yahoo.com' },\n { label:'Sun Microsystems',\n href: 'http://www.sun.com',style:{checked:true} },\n { label:'Oracle', \n href: 'http://www.oracle.com' }\n ]}"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.calendar"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "yahoo.autocomplete", "value" => "[\n {label : 'Alabama', value : 'AL'},\n {label : 'California', value : 'CA'},\n {label : 'New York', value : 'NY', selected : true},\n {label : 'Texas', value : 'TX'}\t \n ]"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.blockList", "value" => "[\n {title : 'jMaki Project Home', link : 'https://ajax.dev.java.net', description : 'Where to go for the latest jMaki.' },\n {title : 'jMaki Widgets Home', link : 'https://widgets.dev.java.net', description : 'The source for the latest jMaki widgets.' },\n {title : 'jMaki-Charting Home', link : 'https://jmaki-charting.dev.java.net', description : 'Enables complex charts rendered on the client in any modern browser.' }\n ]"));
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ <?php addWidget(array("name" => "jmaki.tagcloud", "value" => "{\n items : [\n { label : 'jMaki', weight : 70},\n { label : 'Web2.0', weight : 150},\n { label : 'JSON', weight : 80},\n { label : 'JavaScript', weight : 145},\n { label : 'Java', weight : 100},\n { label : 'RSS', weight : 85},\n { label : 'Autocomplete', weight : 75},\n { label : 'Sun', weight : 65, href : 'http://www.sun.com'},\n { label : 'jMaki', weight : 150},\n { label : 'Web3.0', weight : 70},\n { label : 'Phobos', weight : 105},\n { label : 'Glassfish', weight : 120},\n { label : 'RSS2.0', weight : 75},\n { label : 'Web1.0', weight : 50},\n { label : 'JavaEE', weight : 105},\n { label : 'Jersey', weight : 115},\n { label : 'Roller', weight : 150},\n { label : 'CSS', weight : 105},\n { label : 'DHTML', weight : 65},\n { label : 'Netbeans', weight : 115, href : 'http://www.netbeans.com'}\n ]\n}"));