Ignore:
Timestamp:
Nov 19, 2010 2:12:24 PM (3 years ago)
Author:
thomasb
Message:

Improve vcard saving; use callback functions to render certain contact fields; add button to delete a contact field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-addressbook/program/include/main.inc

    r4227 r4239  
    825825  $attrib['class'] = trim($attrib['class'] . ' ff_' . $col); 
    826826   
    827   if ($type=='checkbox') { 
     827  if ($type == 'checkbox') { 
    828828    $attrib['value'] = '1'; 
    829829    $input = new html_checkbox($attrib); 
    830830  } 
    831   else if ($type=='textarea') { 
     831  else if ($type == 'textarea') { 
    832832    $attrib['cols'] = $attrib['size']; 
    833833    $input = new html_textarea($attrib); 
    834834  } 
    835   else 
     835  else { 
     836    if ($attrib['type'] != 'text' && $attrib['type'] != 'hidden') 
     837        $attrib['type'] = 'text'; 
    836838    $input = new html_inputfield($attrib); 
     839  } 
    837840 
    838841  // use value from post 
Note: See TracChangeset for help on using the changeset viewer.