Version avec modules séparés !

This commit is contained in:
Chouchen
2010-09-27 10:48:53 +00:00
parent 2861556131
commit 734e6f4829
81 changed files with 324 additions and 264 deletions

View File

@@ -0,0 +1,26 @@
<h3 class="popupTitle">Add a new note</h3>
<!-- The preview: -->
<div id="previewNote" class="note yellow" style="left:0;top:65px;z-index:1">
<div class="delete"></div>
<div class="body"></div>
<div class="author"></div>
<span class="data"></span>
</div>
<div id="noteData"> <!-- Holds the form -->
<form action="" method="post" class="note-form">
<label for="note-body">Texte de la note</label>
<textarea name="note-body" id="note-body" class="pr-body" cols="30" rows="6"></textarea>
<label>Couleur</label> <!-- Clicking one of the divs changes the color of the preview -->
<div class="color yellow"></div>
<div class="color blue"></div>
<div class="color green"></div>
<!-- The green submit button: -->
<a id="note-submit" href="" class="green-button">Enregistrer</a>
</form>
</div>

View File

@@ -0,0 +1,8 @@
<?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>
<?}?>