Version avec modules séparés !
This commit is contained in:
26
modules/notes/includes/add_note.html
Normal file
26
modules/notes/includes/add_note.html
Normal 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>
|
8
modules/notes/includes/notes_extract.php
Normal file
8
modules/notes/includes/notes_extract.php
Normal 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>
|
||||
<?}?>
|
||||
|
||||
|
Reference in New Issue
Block a user