Projet

Général

Profil

Révision 0495c36a

Voir les différences:

plugins/manageentity/inc/plugin_manageentity.functions_display.php
149 149
	$viewusers=haveRight("user","r");
150 150
	if ($job->getfromDBwithData($ID,0))
151 151
	{
152
	  //print_r($job);
152 153
		$bgcolor=$CFG_GLPI["priority_".$job->fields["priority"]];
153 154
		
154 155
		echo "<tr class='tab_bg_2'>";
155 156
		echo "<td align='center' bgcolor='$bgcolor' >ID: ".$job->fields["ID"]."</td>";
156 157
		
157
		echo "<td ><a href=\"".$CFG_GLPI["root_doc"]."/front/tracking.form.php?ID=".$job->fields["ID"]."\">".$job->fields["date"] . ": " . $job->fields["name"]."</a></td>";
158
		echo "<td ><a href=\"".$CFG_GLPI["root_doc"]."/front/tracking.form.php?ID=".$job->fields["ID"]."\">".$job->fields["date"] . ": " . $job->fields["name"]."</a> <br /> Durée: " . getRealtime($job->fields["realtime"]) . "</td>";
158 159
		
159 160
		echo "<td align='center'>";
160 161
		if ($job->fields['assign']){
......
196 197
	if (!haveRight("show_all_ticket","1")&&!haveRight("show_assign_ticket","1")) return false;
197 198

  
198 199
	//ryxeo show all tickets
199
	$query = "SELECT ID FROM glpi_tracking WHERE glpi_tracking.FK_entities=".$instID." ORDER BY date DESC";
200

  
201
		$title=$LANG["central"][9];
200
	$query = "SELECT ID,realtime FROM glpi_tracking WHERE glpi_tracking.FK_entities=".$instID." ORDER BY date DESC";
201
	//print $query;
202
	$title=$LANG["central"][9];
202 203

  
203 204
	$result = $DB->query($query);
204 205
	$i = 0;
205 206
	$number = $DB->numrows($result);
206 207

  
207 208
	if ($number > 0) {
208
		echo "<br><div align='center'><table class='tab_cadre' align='center' width='95%'>";
209

  
210
		echo "<tr><th colspan='6'>".$LANGMANAGEENTITY["manageentity"][5]." -- <a href=\"../../front/helpdesk.php\">[ouvrir un nouveau ticket]</a></th></tr>";
211
		echo "<tr><th></th>";
212
		echo "<th>".$LANG["common"][57]."</th>";
213
		echo "<th width='75px'>".$LANG["job"][5]."</th>";
214
		echo "<th>".$LANG["joblist"][0]."</th>";
215
		echo "<th colspan='2'>".$LANG["joblist"][6]."</th></tr>";
209
		echo "<br><div align='center'><table class='tab_cadre' align='center' width='95%'>\n";
210

  
211
		echo "<tr><th colspan='6'>".$LANGMANAGEENTITY["manageentity"][5]." -- <a href=\"../../front/helpdesk.php\">[ouvrir un nouveau ticket]</a></th></tr>\n";
212
		echo "<tr><th></th>\n";
213
		echo "<th>".$LANG["common"][57]."</th>\n";
214
		echo "<th width='75px'>".$LANG["job"][5]."</th>\n";
215
		echo "<th>".$LANG["joblist"][0]."</th>\n";
216
		echo "<th colspan='2'>".$LANG["joblist"][6]."</th></tr>\n";
216 217
		while ($i < $number) {
217 218
			$ID = $DB->result($result, $i, "ID");
218 219
			plugin_manageentity_showJobVeryShort($ID);
219 220
			$i++;
220 221
		}
221
		echo "</table></div>";
222
		echo "</table></div>\n";
222 223
	}
223 224
	else
224 225
	{
225
		echo "<br><div align='center'><table class='tab_cadre' align='center' width='95%'>";
226
		echo "<tr><th>".$LANGMANAGEENTITY["manageentity"][5]." -- <a href=\"../../front/helpdesk.php\">[ouvrir un nouveau ticket]</a></th></tr>";
227
		echo "</table></div>";
226
		echo "<br><div align='center'><table class='tab_cadre' align='center' width='95%'>\n";
227
		echo "<tr><th>".$LANGMANAGEENTITY["manageentity"][5]." -- <a href=\"../../front/helpdesk.php\">[ouvrir un nouveau ticket]</a></th></tr>\n";
228
		echo "</table></div>\n";
228 229
	}
230

  
229 231
}
230 232

  
231 233
function plugin_manageentity_showdocuments($instID) {

Formats disponibles : Unified diff

Redmine Appliance - Powered by TurnKey Linux