Changeset 711 for branches/0.4/web/addons/job_monarch/search.php
- Timestamp:
- 03/21/13 20:56:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/web/addons/job_monarch/search.php
r708 r711 26 26 27 27 function validateFormInput() { 28 global $clustername, $tpl, $id, $ user, $name, $start_from_time, $start_to_time, $queue;28 global $clustername, $tpl, $id, $owner, $name, $start_from_time, $start_to_time, $queue; 29 29 global $end_from_time, $end_to_time, $period_start, $period_stop; 30 30 … … 35 35 $none_set = 0; 36 36 37 if( $id == '' and $ user== '' and $name == '' and $start_from_time == '' and $start_to_time == '' and $queue == '' and $end_from_time == '' and $end_to_time == '') {37 if( $id == '' and $owner== '' and $name == '' and $start_from_time == '' and $start_to_time == '' and $queue == '' and $end_from_time == '' and $end_to_time == '') { 38 38 $error = 1; 39 39 $show_msg = 1; … … 168 168 169 169 $state = $jobattrs[status]; 170 $ user = $jobattrs[owner];170 $owner = $jobattrs[owner]; 171 171 $queue = $jobattrs[queue]; 172 172 $name = $jobattrs[name]; … … 194 194 break; 195 195 196 case " user":197 $sorted[$jobid] = $ user;196 case "owner": 197 $sorted[$jobid] = $owner; 198 198 break; 199 199 … … 252 252 253 253 function makeSearchPage() { 254 global $clustername, $tpl, $id, $ user, $name, $start_from_time, $start_to_time, $queue;254 global $clustername, $tpl, $id, $owner, $name, $start_from_time, $start_to_time, $queue; 255 255 global $end_from_time, $end_to_time, $filter, $default_showhosts, $m, $hosts_up, $hc; 256 256 global $period_start, $period_stop, $sortby, $sortorder, $COLUMN_REQUESTED_MEMORY; … … 269 269 $tpl->assign( "cluster", $clustername ); 270 270 $tpl->assign( "id_value", $id ); 271 $tpl->assign( " user_value", $user);271 $tpl->assign( "owner_value", $owner); 272 272 $tpl->assign( "queue_value", $queue ); 273 273 $tpl->assign( "name_value", $name ); … … 287 287 if( $end_from_time ) $end_from_time = datetimeToEpoch( $end_from_time ); 288 288 if( $end_to_time ) $end_to_time = datetimeToEpoch( $end_to_time ); 289 $search_ids = $tdb->searchDbase( $id, $queue, $ user, $name, $start_from_time, $start_to_time, $end_from_time, $end_to_time );289 $search_ids = $tdb->searchDbase( $id, $queue, $owner, $name, $start_from_time, $start_to_time, $end_from_time, $end_to_time ); 290 290 291 291 if( ($tdb->resultcount) > (int) $SEARCH_RESULT_LIMIT ) { … … 334 334 $tpl->assign( "id", $job[id] ); 335 335 $tpl->assign( "state", $job[status] ); 336 $tpl->assign( " user", $job[owner] );336 $tpl->assign( "owner", $job[owner] ); 337 337 $tpl->assign( "queue", $job[queue] ); 338 338 $tpl->assign( "name", $job[name] );
Note: See TracChangeset
for help on using the changeset viewer.