* Invision Power Services * IP.Board v3.3.4 * ACP profile fields skin file * Last Updated: $Date: 2012-06-29 09:20:50 -0400 (Fri, 29 Jun 2012) $ * * * @author $Author: ips_terabyte $ * @copyright (c) 2001 - 2009 Invision Power Services, Inc. * @license http://www.invisionpower.com/company/standards.php#license * @package IP.Board * @subpackage Members * @link http://www.invisionpower.com * @since 20th February 2002 * @version $Rev: 11004 $ * */ class cp_skin_profilefields { /** * Registry Object Shortcuts * * @var $registry * @var $DB * @var $settings * @var $request * @var $lang * @var $member * @var $memberData * @var $cache * @var $caches */ protected $registry; protected $DB; protected $settings; protected $request; protected $lang; protected $member; protected $memberData; protected $cache; protected $caches; /** * Constructor * * @param object $registry Registry object * @return @e void */ public function __construct( ipsRegistry $registry ) { $this->registry = $registry; $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); $this->lang = $this->registry->class_localization; } /** * Add/edit a group * * @param int ID * @param array Group data * @param string Page title * @param string Action * @return string HTML */ public function groupForm( $id, $data, $title, $do ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= <<

{$title}

form_code}' method='post'>

{$title}

{$this->lang->words['cf_g_name']}
{$this->lang->words['cf_g_key']}
{$this->lang->words['cf_g_key_desc']}
HTML; //--endhtml--// return $IPBHTML; } /** * List custom profile fields * * @param array Fields * @return string HTML */ public function customProfileFieldsList( $rows ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= <<

{$this->lang->words['cf_management']}

{$this->lang->words['cf_management']}

HTML; if( ! count( $rows ) ) { $IPBHTML .= << HTML; } else { $incrementer = 1; foreach( $rows as $group => $fields ) { if( is_array($fields) ) { $_groupData = array_rand($fields, 1); $_id = $fields[ $_groupData ]['pf_group_id']; } else { $_id = $fields; } $IPBHTML .= <<
  {$this->lang->words['cf_title']} {$this->lang->words['cf_type']} {$this->lang->words['cf_required']} {$this->lang->words['cf_notpublic']} {$this->lang->words['cf_showreg']} {$this->lang->words['cf_adminonly']}  
{$this->lang->words['cf_nonefound']}
HTML; if( is_array($fields) AND count($fields) ) { foreach( $fields as $r ) { $IPBHTML .= << HTML; } } $IPBHTML .= << HTML; $incrementer++; } } $IPBHTML .= << HTML; //--endhtml--// return $IPBHTML; } /** * Add/edit profile field form * * @param int ID * @param string Action * @param string Button text * @param array Field data * @param string Page title * @return string HTML */ public function customProfileFieldForm( $id, $do, $button, $data, $title ) { $IPBHTML = ""; $IPBHTML .= <<

{$title}

form_code}' method='post'>

{$this->lang->words['cf_settings']}

  {$group}
Drag
HTML; if( $r['pf_icon'] ) { $IPBHTML .= "Icon "; } $IPBHTML .= <<{$r['pf_title']} HTML; if( $r['pf_desc'] ) { $IPBHTML .= <<{$r['pf_desc']} HTML; } $IPBHTML .= << {$r['pf_type']} Icon Icon Icon Icon
{$this->lang->words['cf_f_title']}
{$this->lang->words['cf_f_title_info']}
{$this->lang->words['cf_f_desc']}
{$this->lang->words['cf_f_desc_info']}
{$this->lang->words['cf_f_type']} {$data['pf_type']}
{$this->lang->words['cf_f_group']} {$data['pf_group_id']}
{$this->lang->words['cf_f_icon']} {$data['pf_icon']}
{$this->lang->words['cf_f_key']} {$data['pf_key']}
{$this->lang->words['cf_f_key_info']}
{$this->lang->words['cf_f_max']}
{$this->lang->words['cf_f_max_info']}
{$this->lang->words['cf_f_order']}
{$this->lang->words['cf_f_order_info']}
{$this->lang->words['cf_f_form']}
{$this->lang->words['cf_f_form_info']}
{$this->lang->words['cf_f_option']}
{$this->lang->words['cf_f_option_info']}
{$this->lang->words['cf_srch_type']} {$data['pf_search_type']}
{$this->lang->words['cf_srch_type_info']}
{$this->lang->words['cf_filter_type']} {$data['pf_filtering']}
{$this->lang->words['cf_filter_type_info']}
{$this->lang->words['cf_f_reg']} {$data['pf_show_on_reg']}
{$this->lang->words['cf_f_reg_info']}
{$this->lang->words['cf_f_must']} {$data['pf_not_null']}
{$this->lang->words['cf_f_must_info']}
{$this->lang->words['cf_f_edit']} {$data['pf_member_edit']}
{$this->lang->words['cf_f_edit_info']}
{$this->lang->words['cf_f_priv']} {$data['pf_member_hide']}
{$this->lang->words['cf_f_priv_info']}
{$this->lang->words['cf_f_admin']} {$data['pf_admin_only']}
{$this->lang->words['cf_f_admin_info']}
{$this->lang->words['cf_f_view']}
{$this->lang->words['cf_f_view_info']}
HTML; return $IPBHTML; } /** * Delete field confirmation * * @param int ID * @param string Title * @return string HTML */ public function customProfileFieldDelete( $id, $title ) { $IPBHTML = ""; $IPBHTML .= <<form_code}' method='post'>

{$this->lang->words['cf_removeconf']}

{$this->lang->words['cf_removeto']} {$title}
HTML; return $IPBHTML; } }