readme.md 747 Bytes
Newer Older
Arnaud ABELARD's avatar
Arnaud ABELARD committed
1
2
3
4
5
6
7
```php
<?

require("dellAsset.class.php");

$tag = $_GET['tag'];

Arnaud ABELARD's avatar
upadate    
Arnaud ABELARD committed
8
if(!$tag) $tag="XXXXXX";
Arnaud ABELARD's avatar
Arnaud ABELARD committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

$matos = new dellAsset(array("tag" => $tag));

if(!$matos->ServiceTag) die($matos->errormsg);

print "Service tag: ".$matos->ServiceTag."<br>";
print "Modele: ".$matos->SystemModel."<Br>";
print "Type: ".$matos->SystemType."<br>";
print "Date de livraison: ".$matos->SystemShipDate."<br><br>";
print "Garanties:<br>";
foreach($matos->Warranties as $warranty) {
  print "Nom: ".$warranty->ServiceLevelDescription."<br>";
  #print "<pre>".print_r($warranty,1)."</pre>";
  print "Date de debut: ".$warranty->StartDate."<br>";
  print "Date de fin: ".$warranty->EndDate."<br>";
  print "Status: ".$warranty->EntitlementType."<br>";
  print "<br>";
}

?>


```