Artifact($ArtifactType,$artifact_id); } /** * show details preformatted (like followups) */ function showDetails($editable = false) { $result = $this->getDetails(); $result = util_gen_cross_ref($result, $this->ArtifactType->Group->getID()); //$result = util_line_wrap( $result, 120,"\n"); $result = nl2br($result); $title_arr = array(); if ($editable === true) { $title_arr[] = '
'._('No Followups Have Been Posted').'
'; } } function showHistory() { global $artifact_cat_arr,$artifact_grp_arr,$artifact_res_arr; $result=$this->getHistory(); $rows= db_numrows($result); if ($rows > 0) { $title_arr=array(); $title_arr[]=_('Field'); $title_arr[]=_('Old Value'); $title_arr[]=_('Date'); $title_arr[]=_('By'); echo $GLOBALS['HTML']->listTableTop ($title_arr); $artifactType =& $this->getArtifactType(); for ($i=0; $i < $rows; $i++) { $field=db_result($result, $i, 'field_name'); echo ''._('No Changes Have Been Made to This Item').'
'; } } function showRelations() { $aid = $this->getID(); // Search for all relations pointing to this record. $res = db_query_params ('SELECT * FROM artifact_extra_field_list, artifact_extra_field_data, artifact_group_list, artifact, groups WHERE field_type=9 AND artifact_extra_field_list.extra_field_id=artifact_extra_field_data.extra_field_id AND artifact_group_list.group_artifact_id = artifact_extra_field_list.group_artifact_id AND artifact.artifact_id = artifact_extra_field_data.artifact_id AND groups.group_id = artifact_group_list.group_id AND (field_data = $1 OR field_data LIKE $2 OR field_data LIKE $3 OR field_data LIKE $4) ORDER BY artifact_group_list.group_id ASC, name ASC, artifact.artifact_id ASC', array($aid, "$aid %", "% $aid %", "% $aid")); if (db_numrows($res)>0) { ?>
:'.$title.''; $current = $title; $end = ''; } $text = '[#'.$arr['artifact_id'].']'; $url = '/tracker/?func=detail&aid='.$arr['artifact_id'].'&group_id='.$arr['group_id'].'&atid='.$arr['group_artifact_id']; $arg = 'title="'.util_html_secure($arr['summary']).'"' ; if ($arr['status_id'] == 2) { $arg .= 'class="artifact_closed"'; } print ' '.$text.''.' '.$arr['summary'].' (Relation: '.$arr['field_name'].')'; } ?> |