Accueil/ajax/loadReserve.php

12 lines
434 B
PHP
Raw Normal View History

<?
include '../class/Links.php';
if($links_xml = simplexml_load_file('../'.links::LINKS_FILE)){
$links = $links_xml->reserve;
foreach($links as $label){
echo '<ul id="reserveiconlist">';
foreach($label->link as $link){
echo '<li class="item" id="'.$link->title.'"><a href="'.$link->url.'" class="'.$link->onclick.'"><img src="images/links/'.$link->img.'" /><br>'.$link->title.'</a></li>';
}
echo '</ul> ';
}
}