{$title}

form_code}' method='post' name='theAdminForm' id='theAdminForm'>

{$title}

HTML; //--endhtml--// return $IPBHTML; } /** * List all the gropus * * @access public * @param array Groups * @return string HTML */ public function groupList( $rows ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= <<

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

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

HTML; if( ! count( $rows ) ) { $IPBHTML .= << HTML; } else { foreach( $rows as $r ) { $IPBHTML .= << HTML; } } $IPBHTML .= << HTML; //--endhtml--// return $IPBHTML; } /** * List custom profile fields * * @access public * @param array Fields * @return string HTML */ public function customProfileFieldsList( $rows ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= <<

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

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

{$this->lang->words['cf_nonefound']}
{$r['pf_group_name']}
({$r['pf_group_key']})
{$this->lang->words[
  {$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']}  
HTML; if( ! count( $rows ) ) { $IPBHTML .= <<
{$this->lang->words['cf_nonefound']}
HTML; } else { $IPBHTML .= << HTML; $incrementer = 1; foreach( $rows as $group => $fields ) { $IPBHTML .= <<
  • {$group}
  • HTML; foreach( $fields as $r ) { $IPBHTML .= <<
    drag
    HTML; if( $r['pf_icon'] ) { $IPBHTML .= "Иконка "; } $IPBHTML .= <<{$r['pf_title']} HTML; if( $r['pf_desc'] ) { $IPBHTML .= <<{$r['pf_desc']} HTML; } $IPBHTML .= << {$r['pf_type']} Иконка Иконка Иконка Иконка {$this->lang->words[
    HTML; } $IPBHTML .= << HTML; $incrementer++; } } $IPBHTML .= << HTML; //--endhtml--// return $IPBHTML; } /** * Add/edit profile field form * * @access public * @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' name='theAdminForm' id='theAdminForm'>

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


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

    {$this->lang->words['cf_f_desc_info']}
    {$data['pf_type']}
    {$data['pf_group_id']}
    {$data['pf_icon']}

    {$this->lang->words['cf_f_key_info']}
    {$data['pf_key']}

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

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

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

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

    {$this->lang->words['cf_f_reg_info']}
    {$data['pf_show_on_reg']}

    {$this->lang->words['cf_f_must_info']}
    {$data['pf_not_null']}

    {$this->lang->words['cf_f_edit_info']}
    {$data['pf_member_edit']}

    {$this->lang->words['cf_f_priv_info']}
    {$data['pf_member_hide']}

    {$this->lang->words['cf_f_admin_info']}
    {$data['pf_admin_only']}

    {$this->lang->words['cf_f_view_info']}
    HTML; return $IPBHTML; } /** * Delete field confirmation * * @access public * @param int ID * @param string Title * @return string HTML */ public function customProfileFieldDelete( $id, $title ) { $IPBHTML = ""; $IPBHTML .= <<form_code}' method='post' name='theAdminForm' id='theAdminForm'>
    {$this->lang->words['cf_removeconf']}
    {$this->lang->words['cf_removeto']} {$title}
    HTML; return $IPBHTML; } }