]> code.citadel.org Git - citadel.git/blobdiff - webcit/addressbook_popup.c
Adressbook-popup: set link using the template.
[citadel.git] / webcit / addressbook_popup.c
index a9bf01a4b8b339afacae43487f95ff9a9702fd2c..72ab054d07a81a9749993a6b8e1f8e72e5899dd7 100644 (file)
@@ -1,26 +1,20 @@
 /*
- * $Id$
- *
  * AJAX-powered auto-completion
+ *
+ * Copyright (c) 1996-2012 by the citadel.org team
+ *
+ * This program is open source software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #include "webcit.h"
 
 
-/*
- * Call this right before wDumpContent() on any page which requires the address book popup
- */
-void address_book_popup(void) {
-       /* Open a new div, hidden initially, for address book popups. */
-       wc_printf("</div>\n");  /* End of 'content' div */
-       wc_printf("<div id=\"address_book_popup\" style=\"display:none;\">");
-       wc_printf("<div id=\"address_book_popup_container_div\">");
-       wc_printf("<div id=\"address_book_popup_middle_div\"></div>");
-       wc_printf("<div id=\"address_book_inner_div\"></div>");
-       wc_printf("</div>");
-       /* The 'address_book_popup' div will be closed by wDumpContent() */
-}
-
 /*
  * Address book popup window
  */
@@ -39,7 +33,7 @@ void display_address_book_middle_div(void) {
        DefAddrBook = get_room_pref("defaddrbook");
 
        wc_printf("<table border=0 width=100%%><tr valign=middle>");
-       wc_printf("<td align=left><img src=\"static/viewcontacts_32x.gif\"></td>");
+       wc_printf("<td align=left><img src=\"static/webcit_icons/essen/32x32/contact.png\"></td>");
        wc_printf("<td align=center>");
 
        wc_printf("<form>"
@@ -85,7 +79,7 @@ void display_address_book_middle_div(void) {
        wc_printf("</td>");
        wc_printf("<td align=right "
                "onclick=\"javascript:$('address_book_popup').style.display='none';\" "
-               "><img src=\"static/closewindow.gif\">");
+               "><img src=\"static/webcit_icons/closewindow.gif\">");
        wc_printf("</td></tr></table>");
 
        wc_printf("<script type=\"text/javascript\">PopulateAddressBookInnerDiv($('which_addr_book').value,'%s');</script>",