diff --git a/addLink.php b/addLink.php
new file mode 100644
index 0000000..8ef4699
--- /dev/null
+++ b/addLink.php
@@ -0,0 +1,58 @@
+load('db/links.xml');
+
+$xpath = new DOMXpath($doc);
+
+// Creating new node
+$newNode = $doc->createElement('link');
+$newURL = $doc->createElement('url', $url);
+if($popup == '1')
+$newClick = $doc->createElement('onclick', 'popup');
+else
+$newClick = $doc->createElement('onclick', '');
+$newImg = $doc->createElement('img', $name_file);
+$newTitle = $doc->createElement('title', $title);
+$newNode->appendChild($newURL);
+$newNode->appendChild($newClick);
+$newNode->appendChild($newImg);
+$newNode->appendChild($newTitle);
+
+
+$searchLabel = $xpath->query('reserve');
+
+$searchLabel->item(0)->appendChild($newNode);
+$doc->save('db/links.xml');
\ No newline at end of file
diff --git a/class/Links.php b/class/Links.php
index 292ed94..b57e95c 100644
--- a/class/Links.php
+++ b/class/Links.php
@@ -13,6 +13,7 @@ class links {
$this->setParams($params);
echo '
+
';
if($links_xml = simplexml_load_file(self::LINKS_FILE)){
$links = $links_xml->label;
diff --git a/css/main.css b/css/main.css
index 2015292..31bf1db 100644
--- a/css/main.css
+++ b/css/main.css
@@ -76,7 +76,7 @@
#recherche{margin-top:70px;}
#config {width:300px;}
- #config-menu, #blog-links-manager, #city-menu , #jclockAdvanced-menu, #links-menu, #ouifm-menu{float:right; margin:12px 10px 0 0;}
+ #config-menu, #blog-links-manager, #city-menu , #jclockAdvanced-menu, #links-menu, #links-add-menu,#ouifm-menu{float:right; margin:12px 10px 0 0;}
#ouifm{position:absolute;width:144px;height:28px;}
/* Green button class: */
diff --git a/images/interface/link_add.png b/images/interface/link_add.png
new file mode 100644
index 0000000..00be352
Binary files /dev/null and b/images/interface/link_add.png differ
diff --git a/js/jquery.links.js b/js/jquery.links.js
index 851b208..e2e6dbb 100644
--- a/js/jquery.links.js
+++ b/js/jquery.links.js
@@ -1,8 +1,18 @@
$(document).ready(function(){
// Réglage des options
$('body').append('');
+ $('body').append('');
$('#menu-bar').prepend($('#links-menu'));
+ $('#menu-bar').prepend($('#links-add-menu'));
+ $('#links-add-fancy').append('');
+ // Apparition du menu d'ajout de lien
+ $('#links-add-menu').live('click', function(){
+ $.fancybox(
+ $('#links-add-fancy').html()
+ );
+ });
+
// Apparition de la reserve de liens
$('#links-menu').live('click', function(){
$.get('ajax/loadReserve.php', function(html){