- Timestamp:
- 04/16/07 17:56:08 (16 years ago)
- Location:
- trunk/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/libtoga.php
r305 r306 1042 1042 } 1043 1043 1044 //printf( "imagecreate: %dx%d", ($nodes_per_row*$node_width), ($node_rows*$node_width) ); 1045 //$image = imageCreateTrueColor( ($nodes_per_row*$node_width)+1, ($node_rows*$node_width)+1 ); 1046 $image = imageCreateTrueColor( $max_width, ($node_rows*$node_width)+1 ); 1044 $y_offset = 0; 1045 $font = 2; 1046 $fontheight = ImageFontHeight( $font ); 1047 $fontspaceing = 2; 1048 $y_offset = $fontheight + (2 * $fontspaceing); 1049 1050 $image = imageCreateTrueColor( $max_width, ($y_offset + (($node_rows*$node_width)+1) ) ); 1047 1051 $colorwhite = imageColorAllocate( $image, 255, 255, 255 ); 1048 1052 imageFill( $image, 0, 0, $colorwhite ); 1053 1054 if( $this->isSmall() ) { 1055 1056 $colorblue = imageColorAllocate( $image, 0, 0, 255 ); 1057 1058 imageString( $image, $font, 2, 2, "Monarch Joblist - cluster: ".$this->clustername, $colorblue ); 1059 } 1049 1060 1050 1061 $jobs = $mydatag->getJobs(); … … 1059 1070 1060 1071 $x = ($m * $node_width); 1061 $y = ($n * $node_width);1072 $y = $y_offset + ($n * $node_width); 1062 1073 1063 1074 $cur_node = ($n * $nodes_per_row) + ($m); 1064 1075 $host = $nodes_hosts[$cur_node]; 1065 1066 1076 1067 1077 if( isset( $nodes[$host] ) ) { -
trunk/web/templates/job_monarch/cluster_extra.tpl
r213 r306 1 <hr> 2 <table> 3 <tr> 4 <td valign=center> 5 <a href="./addons/job_monarch/?c={cluster}"><b>Joblist</b></a> 6 </td> 7 </tr> 8 <tr> 9 <td> 10 <a href="./addons/job_monarch/?c={cluster}"> 11 <IMG SRC="./addons/job_monarch/image.php?c={cluster}&view=small-clusterimage" BORDER=0> 12 </a> 13 </td> 14 </tr> 15 </table> 1 <HR> 2 <A HREF="./addons/job_monarch/?c={cluster}"> 3 <IMG SRC="./addons/job_monarch/image.php?c={cluster}&view=small-clusterimage" BORDER=0> 4 </A>
Note: See TracChangeset
for help on using the changeset viewer.