Change <? to <?php and add some formatting
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<?php $nb = 0;
|
||||
$notes = simplexml_load_file('modules/notes/db/notes.xml');
|
||||
foreach($notes as $test){$nb++;}
|
||||
for($i=0; $i<$nb; $i++){?>
|
||||
<div class="note <?echo $notes->note[$i]->color;?>" style="position:absolute; left:<? echo $notes->note[$i]->left;?>; top:<? echo $notes->note[$i]->top;?>;z-index:<? echo $notes->note[$i]->zindex;?>;"><div class="delete" id="r-<?echo $notes->note[$i]['id'];?>"></div><? echo $notes->note[$i]->text;?><br/><span class="data"><?echo $notes->note[$i]['id'];?></span></div>
|
||||
<?}?>
|
||||
|
||||
|
||||
for($i=0; $i<$nb; $i++){ ?>
|
||||
<div class="note <?php echo $notes->note[$i]->color;?>" style="position:absolute; left:<?php echo $notes->note[$i]->left;?>; top:<?php echo $notes->note[$i]->top;?>;z-index:<?php echo $notes->note[$i]->zindex;?>;"><div class="delete" id="r-<?php echo $notes->note[$i]['id'];?>"></div><?php echo $notes->note[$i]->text;?><br/><span class="data"><?php echo $notes->note[$i]['id'];?></span></div>
|
||||
<?php }
|
Reference in New Issue
Block a user