Projet

Général

Profil

Révision b88da654 plugins/pdf/inc/plugin_pdf.functions.php

Voir les différences:

plugins/pdf/inc/plugin_pdf.functions.php
192 192
	
193 193
	$pdf->saveState();
194 194
	$pdf->setColor(0.8,0.8,0.8);
195

  
196
	//erics deux rectangles pour mettre l'entite et des choses que je vire
197
	/*
195 198
	$pdf->filledRectangle(25,$start_tab-5,$length_tab,15);
196 199
	$pdf->filledRectangle(25+$length_tab+5,$start_tab-5,$length_tab,15);
200
	*/
201
	//J'en met un seul pour "informations generales"
202
	$pdf->filledRectangle(25,$start_tab-5,$length_tab*2+5,15);
197 203
	
198 204
	for($i=0;$i<13;$i++)
199 205
	  {
......
216 222
		    {
217 223
		      $pdf->filledRectangle(25,($start_tab-20)-(15*$i),2*$length_tab+5,15);	
218 224
		    }
225
		/*
219 226
		  else
220 227
		    {
221 228
		      $i+=2;
222 229
		      $pdf->filledRectangle(25,($start_tab-20)-(15*$i),2*$length_tab+5,30);
223 230
		    }
231
		*/
224 232
		}
225 233
	$pdf->restoreState();
226 234
		
227 235
	//erics on simplifie pas besoin de ca
228 236
	//	$pdf->addText(100,$start_tab,9,utf8_decode('<b>'.$LANG["common"][2].' '.$computer->fields['ID'].' ('.plugin_pdf_getDropdownName('glpi_entities',$computer->fields['FK_entities']).')</b>'));
237
	$pdf->addText(275,$start_tab,9,utf8_decode('<b>Généralités</b>'));
238

  
229 239
	$pdf->addText(30,$start_tab-15,9,utf8_decode('<b><i>'.$LANG["common"][16].' :</i></b> '.$computer->fields['name']));
230 240
	$pdf->addText(30,$start_tab-30,9,utf8_decode('<b><i>'.$LANG["common"][17].' :</i></b> '.plugin_pdf_getDropdownName('glpi_type_computers',$computer->fields['type'])));
231 241
	$pdf->addText(30,$start_tab-45,9,utf8_decode('<b><i>'.$LANG["common"][22].' :</i></b> '.plugin_pdf_getDropdownName('glpi_dropdown_model',$computer->fields['model'])));
......
248 258
	while($temp = $pdf->addTextWrap(105,$y,2*$length_tab-80,9,$temp))
249 259
		$y-=9;
250 260
			
261
	//seconde colone			
251 262
	/*
252 263
	if(!empty($computer->fields['tplname']))
253 264
		$pdf->addText($length_tab+35,$start_tab,9,utf8_decode('<b>'.$LANG["common"][26].' : '.convDateTime($computer->fields["date_mod"]).' ('.$LANG["common"][13].' : '.$computer->fields['tplname'].')</b>'));
......
256 267
	else
257 268
		$pdf->addText($length_tab+80,$start_tab,9,utf8_decode('<b>'.$LANG["common"][26].' : '.convDateTime($computer->fields["date_mod"]).'</b>'));
258 269
	*/
259
			
270

  
260 271
	$pdf->addText($length_tab+35,$start_tab-15,9,utf8_decode('<b><i>'.$LANG["common"][18].' :</i></b> '.$computer->fields['contact']));
261 272
	$pdf->addText($length_tab+35,$start_tab-30,9,utf8_decode('<b><i>'.$LANG["common"][21].' :</i></b> '.$computer->fields['contact_num']));
262 273
	$pdf->addText($length_tab+35,$start_tab-45,9,utf8_decode('<b><i>'.$LANG["common"][34].' :</i></b> '.plugin_pdf_getDropdownName('glpi_users',$computer->fields['FK_users'])));

Formats disponibles : Unified diff

Redmine Appliance - Powered by TurnKey Linux