From 34b0377def5a2f3789df20e63b32099baba7df66 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 25 Nov 2008 08:16:05 +0000 Subject: [PATCH] events page has new links to caller page --- planetlab/events/index.php | 4 ++-- planetlab/includes/plc_functions.php | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/planetlab/events/index.php b/planetlab/events/index.php index 3f5c779..398530f 100644 --- a/planetlab/events/index.php +++ b/planetlab/events/index.php @@ -263,8 +263,8 @@ function layout ($param){ // $param['oid']=$param['object_id'] ; unset($param['object_id']); $param['otys']=$param['object_types'] ; unset($param['object_types']); $param['oids']=$param['object_ids'] ; unset($param['object_ids']); - $param['nid']=$param['node_id'] ; unset($param['node_id']); - $param['pid']=$param['person_id'] ; unset($param['person_id']); + $param['nid']=plc_node_link($param['node_id']) ; unset($param['node_id']); + $param['pid']= plc_person_link($param['person_id']) ; unset($param['person_id']); if (array_key_exists('auth_type',$param)) { $param['at']=$param['auth_type'] ; unset($param['auth_type']); } diff --git a/planetlab/includes/plc_functions.php b/planetlab/includes/plc_functions.php index 91b2ef3..3809c76 100644 --- a/planetlab/includes/plc_functions.php +++ b/planetlab/includes/plc_functions.php @@ -1,5 +1,21 @@ ' . $person_id . ''; + } + } + +function plc_node_link ($node_id) { + if ( empty ($node_id)) { + return ""; + } else { + return '' . $node_id . ''; + } + } + // pagination function function paginate( $fn_array, $table_id, $caption, $limit, $main_field, $other_func= NULL, $fid= NULL ) { // get vars from call adjust them -- 2.43.0