<?
$file = OpenOnixFile("MyONIXFile.xml");
while( $p = next_product($file){
//your code here.
}
?>
<h2>Some Sample Data:</h2>
<table cellpadding=2 cellspacing=0>
<tr style="background:#000000;color:white">
<th>ISBN13/ProductID</th>
<th>Author</th>
<th>Title</th>
<th>Price</th>
</tr>
<?
$i=0;
while( $p = next_product($file){
$bg="#e7e7e7";
if($i%2==0){$bg="#c0c0c0";}
$i++;
if($i<11){
?>
<tr style="background:<?echo $bg?>">
<td><?
if($p["isbn13"]!=""){
echo $p["isbn13"];
} else {
echo $p["productid"];
}
?></td>
<td><?echo $p["author"]?></td>
<td><?echo $p["title"]?></td>
<td><?echo $p["currency"]?><?echo $p["price"]?></td>
</tr>
<?
}
}
?>
</table>
<?
}
?>
<? if(sizeof($p["contributors"])>0){ ?>
Name: <?echo $p["contributors"][0]["name"];?>
Role: <?echo $p["contributors"][0]["ContributorRole"];?>
<?}?>
|
?
|
Contact Us
We'd be glad to help you get your ONIX files converted.
|