- Timestamp:
- 07/13/08 15:01:20 (15 years ago)
- Location:
- trunk/web2/addons/job_monarch
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/js/jobgrid.js
r546 r547 8 8 9 9 var filterfields = [ "jid", "queue", "name", "owner" ]; 10 11 function ClusterImageSelectHost( somehost ) 12 { 13 // reload clusterimage with somehost as arg 14 } 10 15 11 16 function isset( somevar ) … … 276 281 loadMask: true, 277 282 selModel: new Ext.grid.RowSelectionModel({singleSelect:false}), 283 stripeRows: true, 278 284 bbar: new Ext.PagingToolbar({ 279 285 pageSize: 30, … … 291 297 }); 292 298 299 ClusterImageWindow = new Ext.Window({ 300 id: 'ClusterImageWindow', 301 title: 'Cluster Nodes Overview', 302 closable:true, 303 collapsible: true, 304 animCollapse: true, 305 width:100, 306 height:100, 307 y: 50, 308 plain:true, 309 shadow: true, 310 resizable: false, 311 shadowOffset: 10, 312 layout: 'fit' 313 }); 314 293 315 JobListingWindow = new Ext.Window({ 294 316 id: 'JobListingWindow', … … 298 320 animCollapse: true, 299 321 maximizable: true, 322 y: 400, 300 323 width:900, 301 324 height:500, -
trunk/web2/addons/job_monarch/libtoga.php
r534 r547 1146 1146 1147 1147 $area_tooltip = $this->hostname; 1148 $area_onclick = "return ClusterImageSelectHost( \"" . $this->hostname . "\" )"; 1148 1149 1149 1150 if( $this->down) … … 1158 1159 $area_tooltip = $area_tooltip . ": " . implode( " ", $this->jobs ); 1159 1160 1161 $tag_onclick = "ONCLICK=\"" . $area_onclick . "\""; 1160 1162 $tag_href = "HREF=\"" . $area_href . "\""; 1161 1163 $tag_coords = "COORDS=\"" . $area_coords . "\""; … … 1163 1165 $tag_tooltip2 = "TITLE=\"" . $area_tooltip . "\""; 1164 1166 1165 return ("<AREA SHAPE=\"RECT\" " . $tag_coords . " " . $tag_ href . " " . $tag_tooltip1 . " " . $tag_tooltip2 . ">");1167 return ("<AREA SHAPE=\"RECT\" " . $tag_coords . " " . $tag_onclick . " " . $tag_href . " " . $tag_tooltip1 . " " . $tag_tooltip2 . ">"); 1166 1168 } 1167 1169 -
trunk/web2/addons/job_monarch/overview.php
r534 r547 78 78 $tpl->assign( "clusterimage", "./image.php?". session_name() . "=" . session_id() ."&c=".rawurlencode($clustername)."&view=big-clusterimage".$filter_image_url ); 79 79 80 //$tpl->assign( "clusterimage_width", $ic->getWidth() );81 //$tpl->assign( "clusterimage_height", $ic->getHeight() );80 $tpl->assign( "clusterimage_width", $ic->getWidth() ); 81 $tpl->assign( "clusterimage_height", $ic->getHeight() ); 82 82 83 83 $tpl->newBlock( "node_clustermap" ); -
trunk/web2/addons/job_monarch/templates/header.tpl
r546 r547 23 23 params = newparams; 24 24 }); 25 ClusterImageWindow.html = '<IMG SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">'; 26 ClusterImageWindow.height = '{clusterimage_height}'; 27 ClusterImageWindow.width = '{clusterimage_width}'; 28 ClusterImageWindow.show(); 25 29 JobsDataStore.load( {params: {start: 0, limit: 30}} ); 26 30 JobListingWindow.setTitle( "{cluster} Jobs Overview" ); … … 32 36 <BODY BGCOLOR="#FFFFFF"> 33 37 38 <MAP NAME="MONARCH_CLUSTER_BIG"> 39 <!-- START BLOCK : node_clustermap --> 40 {node_area_map} 41 <!-- END BLOCK : node_clustermap --> 42 </MAP> 43 34 44 <A HREF="https://subtrac.sara.nl/oss/jobmonarch/"> 35 45 <IMG SRC="./jobmonarch.gif" ALT="Job Monarch" BORDER="0"></IMG> -
trunk/web2/addons/job_monarch/templates/overview.tpl
r532 r547 131 131 132 132 <TD ALIGN="CENTER"><CENTER> 133 <!-- INCLUDESCRIPT BLOCK : ci_script -->134 <IMG SRC="{clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">135 <MAP NAME="MONARCH_CLUSTER_BIG">136 <!-- START BLOCK : node_clustermap -->137 {node_area_map}138 <!-- END BLOCK : node_clustermap -->139 </MAP>140 133 <BR> 141 134 <FONT class="footer">Last updated: {report_time}</FONT></CENTER>
Note: See TracChangeset
for help on using the changeset viewer.