]> 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 ef660310bd70f5fc1e1bd526cf4ffc81a7022c3c..72ab054d07a81a9749993a6b8e1f8e72e5899dd7 100644 (file)
@@ -1,42 +1,20 @@
 /*
- * $Id$
- *
  * AJAX-powered auto-completion
  *
- * Copyright (c) 2005-2010 by the citadel.org team
+ * Copyright (c) 1996-2012 by the citadel.org team
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
+ * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #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
  */
@@ -55,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>"
@@ -101,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>",