[Fusionforge-commits] r12421 - trunk/src/plugins/mantisbt/view

Franck VILLAUME nerville at fusionforge.org
Mon Feb 28 14:44:00 CET 2011


Author: nerville
Date: 2011-02-28 14:43:59 +0100 (Mon, 28 Feb 2011)
New Revision: 12421

Modified:
   trunk/src/plugins/mantisbt/view/viewIssue.php
Log:
fix display ticket informations

Modified: trunk/src/plugins/mantisbt/view/viewIssue.php
===================================================================
--- trunk/src/plugins/mantisbt/view/viewIssue.php	2011-02-28 13:20:45 UTC (rev 12420)
+++ trunk/src/plugins/mantisbt/view/viewIssue.php	2011-02-28 13:43:59 UTC (rev 12421)
@@ -45,42 +45,54 @@
 if (!isset($errorPage)){
     include('jumpToIssue.php');
     echo "<h2 style='border-bottom: 1px solid black'>Détail du ticket #$idBug</h2>";
-	echo	'<table class="innertabs">';
-	echo		'<tr>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Category').'</td>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Severity').'</td>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Reproducibility').'</td>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Submit Date').'</td>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Update Date').'</td>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Found in').'</td>';
-	echo 			'<td width="14%" class="FullBoxTitle">'._('Target').'</td>';
+	echo	'<table>';
+	echo		'<tr style="background-color: gray;">';
+	echo 			'<td width="14%" >'._('Category').'</td>';
+	echo 			'<td width="14%" >'._('Severity').'</td>';
+	echo 			'<td width="14%" >'._('Reproducibility').'</td>';
+	echo 			'<td width="14%" >'._('Submit Date').'</td>';
+	echo 			'<td width="14%" >'._('Update Date').'</td>';
+	echo 			'<td width="14%" >'._('Found in').'</td>';
+	echo 			'<td width="14%" >'._('Target').'</td>';
 	echo		'</tr>';
 	echo		'<tr>';
-	echo 			'<td class="FullBox">'. (isset($defect->category)) ? '' : $defect->category .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->severity->name)) ? '' : $defect->severity->name .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->reproducibility->name)) ? '' : $defect->reproducibility->name .'</td>';
+
+	(isset($defect->category)) ? $category_value = $defect->category : $category_value = '';
+	echo 			'<td>'. $category_value.'</td>';
+	(isset($defect->severity->name)) ? $severity_value = $defect->severity->name : $severity_value = '';
+	echo 			'<td>'. $severity_value .'</td>';
+	(isset($defect->reproducibility->name)) ? $reproducibility_value = $defect->reproducibility->name : $reproducibility_value = '';
+	echo 			'<td>'. $reproducibility_value .'</td>';
 	// TODO a revoir le problème des dates
 	date_default_timezone_set("UTC");
-	echo 			'<td class="FullBox">'.date("Y-m-d G:i",strtotime($defect->date_submitted)).'</td>';
-	echo 			'<td class="FullBox">'.date("Y-m-d G:i",strtotime($defect->last_updated)).'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->version)) ? '' : $defect->version .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->target_version)) ? '' : $defect->target_version .'</td>';
+	echo 			'<td>'.date("Y-m-d G:i",strtotime($defect->date_submitted)).'</td>';
+	echo 			'<td>'.date("Y-m-d G:i",strtotime($defect->last_updated)).'</td>';
+	(isset($defect->version)) ? $version_value = $defect->version : $version_value = '';
+	echo 			'<td>'. $version_value .'</td>';
+	(isset($defect->target_version)) ? $target_value = $defect->target_version : $target_value = '';
+	echo 			'<td>'. $target_value .'</td>';
 	echo		'</tr>';
-	echo		'<tr>';
-	echo 			'<td class="FullBoxTitle">'._('Reporter').'</td>';
-	echo 			'<td class="FullBoxTitle">'._('Assigned to').'</td>';
-	echo 			'<td class="FullBoxTitle">'._('Priority').'</td>';
-	echo 			'<td class="FullBoxTitle">'._('Resolution').'</td>';
-	echo 			'<td class="FullBoxTitle">'._('Status').'</td>';
-	echo 			'<td class="FullBoxTitle">'._('Fixed in').'</td>';
+	echo		'<tr style="background-color: gray;">';
+	echo 			'<td>'._('Reporter').'</td>';
+	echo 			'<td>'._('Assigned to').'</td>';
+	echo 			'<td>'._('Priority').'</td>';
+	echo 			'<td>'._('Resolution').'</td>';
+	echo 			'<td>'._('Status').'</td>';
+	echo 			'<td>'._('Fixed in').'</td>';
 	echo		'</tr>';
 	echo		'<tr>';
-	echo 			'<td class="FullBox">'. (isset($defect->reporter->name)) ? '' : $defect->reporter->name .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->handler->name)) ? '' : $defect->handler->name .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->priority->name)) ? '' : $defect->priority->name .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->resolution->name)) ? '' : $defect->resolution->name .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->status->name)) ? '' : $defect->status->name .'</td>';
-	echo 			'<td class="FullBox">'. (isset($defect->fixed_in_version)) ? '' : $defect->fixed_in_version .'</td>';
+	(isset($defect->reporter->name)) ? $reporter_value = $defect->reporter->name : $reporter_value = '';
+	echo 			'<td>'. $reporter_value .'</td>';
+	(isset($defect->handler->name)) ? $handler_value = $defect->handler->name : $handler_value = '';
+	echo 			'<td>'. $handler_value .'</td>';
+	(isset($defect->priority->name)) ? $priority_value = $defect->priority->name : $priority_value = '';
+	echo 			'<td>'. $priority_value .'</td>';
+	(isset($defect->resolution->name)) ? $resolution_value = $defect->resolution->name : $resolution_value = '';
+	echo 			'<td>'. $resolution_value .'</td>';
+	(isset($defect->status->name)) ? $status_value = $defect->status->name : $status_value = '';
+	echo 			'<td>'. $status_value .'</td>';
+	(isset($defect->fixed_in_version)) ? $fixed_value = $defect->fixed_in_version : $fixed_value = '';
+	echo 			'<td>'. $fixed_value .'</td>';
 	echo		'</tr>';
 	echo	'</table>';
 	echo	'<br />';




More information about the Fusionforge-commits mailing list