Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+80 -85
View File
@@ -2,27 +2,18 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
+---------------------------------------------------------------------------
| > $Date: 2005-12-01 16:45:12 +0000 (Thu, 01 Dec 2005) $
| > $Revision: 88 $
| > $Author: bfarber $
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
| > $Revision: 567 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Custom profile field functions
@@ -36,7 +27,7 @@
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
exit();
}
@@ -62,16 +53,7 @@ class ad_profilefields {
function auto_run()
{
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Custom Profile Fields' );
//-----------------------------------------
// get class
@@ -156,12 +138,12 @@ class ad_profilefields {
{
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè ID äîïîëíèòåëüíîãî ïîëÿ");
$this->ipsclass->admin->error("Could not resolve the group ID, please try again");
}
$this->ipsclass->admin->page_title = "Óäàëåíèå äîïîëíèòåëüíîãî ïîëÿ";
$this->ipsclass->admin->page_title = "Deleting a Custom Profile Field";
$this->ipsclass->admin->page_detail = "Óáåäèòåñü, ÷òî âû äåéñòâèòåëüíî õîòèòå óäàëèòü èìåííî ýòî äîïîëíèòåëüíîå ïîëå ïðîôèëÿ, òàê êàê <b>âñÿ èíôîðìàöèÿ äîáàâëåííàÿ ïîëüçîâàòåëÿìè â ýòî ïîëå áóäåò óòåðÿíà</b>!";
$this->ipsclass->admin->page_detail = "Please check to ensure that you are attempting to remove the correct custom profile field as <b>all data will be lost!</b>.";
//-----------------------------------------
@@ -170,7 +152,7 @@ class ad_profilefields {
if ( ! $field = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè äîïîëíèòåëüíîå ïîëå ñ òàêèì ID");
$this->ipsclass->admin->error("Could not fetch the row from the database");
}
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'dodelete' ),
@@ -188,13 +170,13 @@ class ad_profilefields {
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïîäòâåðæäåíèå óäàëåíèÿ" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Removal Confirmation" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Óäàëÿåìîå äîïîëíèòåëüíîå ïîëå ïðîôèëÿ:</b>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Custom Profile field to remove</b>" ,
"<b>".$field['pf_title']."</b>",
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Óäàëèòü ýòî ïîëå");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Delete this custom field");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -207,7 +189,7 @@ class ad_profilefields {
{
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè ID äîïîëíèòåëüíîãî ïîëÿ");
$this->ipsclass->admin->error("Could not resolve the field ID, please try again");
}
//-----------------------------------------
@@ -219,7 +201,7 @@ class ad_profilefields {
if ( ! $row = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Íåâîçìîæíî íàéòè äîïîëíèòåëüíîå ïîëå ñ òàêèì ID");
$this->ipsclass->admin->error("Could not resolve the ID's passed to deletion");
}
$this->ipsclass->DB->sql_drop_field( 'pfields_content', "field_{$row['pf_id']}" );
@@ -228,7 +210,7 @@ class ad_profilefields {
$this->rebuild_cache();
$this->ipsclass->admin->done_screen("Óäàëåíî äîïîëíèòåëüíîå ïîëå ïðîôèëÿ", "Äîïîëíèòåëüíûå ïîëÿ ïðîôèëÿ", "{$this->ipsclass->form_code}", 'redirect' );
$this->ipsclass->admin->done_screen("Profile Field Removed", "Custom Profile Field Control", "{$this->ipsclass->form_code}", 'redirect' );
}
@@ -245,7 +227,7 @@ class ad_profilefields {
if ($this->ipsclass->input['pf_title'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè íàçâàíèå äîïîëíèòåëüíîãî ïîëÿ ïðîôèëÿ");
$this->ipsclass->admin->error("You must enter a field title.");
}
//-----------------------------------------
@@ -256,7 +238,7 @@ class ad_profilefields {
{
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè ID äîïîëíèòåëüíîãî ïîëÿ");
$this->ipsclass->admin->error("Could not resolve the field id");
}
}
@@ -290,7 +272,7 @@ class ad_profilefields {
$this->rebuild_cache();
$this->ipsclass->main_msg = "Èçìåíåíî äîïîëíèòåëüíîå ïîëå ïðîôèëÿ";
$this->ipsclass->main_msg = "Profile Field Edited";
$this->main_screen();
}
@@ -306,7 +288,7 @@ class ad_profilefields {
$this->rebuild_cache();
$this->ipsclass->main_msg = "Äîïîëíèòåëüíîå ïîëå ïðîôèëÿ èçìåíåíî";
$this->ipsclass->main_msg = "Profile Field Added";
$this->main_screen();
}
}
@@ -321,22 +303,23 @@ class ad_profilefields {
function main_form($type='edit')
{
$this->ipsclass->input['id'] = intval($this->ipsclass->input['id']);
$this->ipsclass->admin->nav[] = array( '', 'Add/Edit Custom Profile Field' );
if ($type == 'edit')
{
if ( ! $this->ipsclass->input['id'] )
{
$this->ipsclass->admin->error("Íè îäèí ID ãðóïïû íå âûáðàí, âåðíèòåñü è ïîïðîáóéòå ñíîâà.");
$this->ipsclass->admin->error("No group id to select from the database, please try again.");
}
$form_code = 'doedit';
$button = 'Èçìåíèòü ýòî äîïîëíèòåëüíîå ïîëå';
$button = 'Complete Edit';
}
else
{
$form_code = 'doadd';
$button = 'Äîáàâèòü ýòî äîïîëíèòåëüíîå ïîëå';
$button = 'Add Field';
}
//-----------------------------------------
@@ -361,19 +344,31 @@ class ad_profilefields {
if ($type == 'edit')
{
$this->ipsclass->admin->page_title = "Èçìåíåíèå äîïîëíèòåëüíîãî ïîëÿ ".$fields['pf_title'];
$this->ipsclass->admin->page_title = "Editing Profile Field ".$fields['pf_title'];
}
else
{
$this->ipsclass->admin->page_title = 'Äîáàâëåíèå äîïîëíèòåëüíîãî ïîëÿ';
$fields['pf_title'] = 'Íîâîå ïîëå';
$this->ipsclass->admin->page_title = 'Adding a new profile field';
$fields = array( 'pf_title' => '',
'pf_content' => '',
'pf_desc' => '',
'pf_type' => '',
'pf_max_input' => '',
'pf_position' => '',
'pf_input_format' => '',
'pf_topic_format' => '',
'pf_show_on_reg' => '',
'pf_not_null' => '',
'pf_member_edit' => '',
'pf_member_hide' => '',
'pf_admin_only' => '' );
}
//-----------------------------------------
// Wise words
//-----------------------------------------
$this->ipsclass->admin->page_detail = "Ïîæàëóéñòà, äâàæäû òùàòåëüíî ïðîâåðüòå âñþ èíôîðìàöèþ ïðåæäå, ÷åì ïîäòâåðäèòü ýòî äîïîëíèòåëüíîå ïîëå ïðîôèëÿ";
$this->ipsclass->admin->page_detail = "Please double check the information before submitting the form.";
//-----------------------------------------
// Start form
@@ -398,63 +393,63 @@ class ad_profilefields {
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "60%" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Íàñòðîéêà äîïîëíèòåëüíûõ ïîëåé ïðîôèëÿ" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Field Settings" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Íàçâàíèå:</b><div class='graytext'>Max characters: 200</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Field Title</b><div class='graytext'>Max characters: 200</div>" ,
$this->ipsclass->adskin->form_input("pf_title", $fields['pf_title'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Îïèñàíèå</b><div class='graytext'>Ìàêñèìàëüíîå êîëè÷åñòâî ñèìâîëîâ: 250<br />Ìîæåò áûòü èñïîëüçîâàíî äëÿ ïðèìå÷àíèé</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Description</b><div class='graytext'>Max Characters: 250<br />Can be used to note hidden/required status</div>" ,
$this->ipsclass->adskin->form_input("pf_desc", $fields['pf_desc'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Òèï ïîëÿ</b>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Field Type</b>" ,
$this->ipsclass->adskin->form_dropdown("pf_type",
array(
0 => array( 'text' , 'Îäíîñòðî÷íîå òåêñòîâîå (INPUT)' ),
1 => array( 'drop' , 'Íèñïàäàþùåå ìåíþ' ),
2 => array( 'area' , 'Ìíîãîñòðî÷íîå òåêñòîâîå (TEXTAREA)' ),
0 => array( 'text' , 'Text Input' ),
1 => array( 'drop' , 'Drop Down Box' ),
2 => array( 'area' , 'Text Area' ),
),
$fields['pf_type'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ìàêñèìàëüíàÿ äëèíà ïîëÿ</b><div class='graytext'>Äëÿ òåêñòîâûõ ïîëåé (òîëüêî öèôðû)</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Maximum Input</b><div class='graytext'>For text input and text areas (in characters)</div>" ,
$this->ipsclass->adskin->form_input("pf_max_input", $fields['pf_max_input'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ïîðÿäîê ñîðòèðîâêè</b><div class='graytext'>Ïðè ðåäàêòèðîâàíèè è îòîáðàæåíèè.<br />Öèôðà 1 - ñàìàÿ íèçêàÿ ïîçèöèÿ.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Display order</b><div class='graytext'>When editing and displaying (numeric 1 lowest)</div>" ,
$this->ipsclass->adskin->form_input("pf_position", $fields['pf_position'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ôîðìàò ïîëÿ</b><div class='graytext'>Èñïîëüçîâàíèå: <b>a</b> - ááóêâû<br /><b>n</b> - öèôðû<br />Íàïðèìåð, êðåäèòíàÿ êàðòà: nnnn-nnnn-nnnn-nnnn<br />Íàïðèìåð, äàòà ðîæäåíèÿ: nn-nn-nnnn<br />Îñòàâüòå ïîëå ïóñòûì äëÿ èñïîëüçîâàíèÿ ëþáûõ ñèìâîëîâ.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Expected Input Format</b><div class='graytext'>Use: <b>a</b> for alpha characters<br />Use: <b>n</b> for numerics.<br />Example, for credit card numbers: nnnn-nnnn-nnnn-nnnn<br />Example, Date of Birth: nn-nn-nnnn<br />Leave blank to accept any input</div>" ,
$this->ipsclass->adskin->form_input("pf_input_format", $fields['pf_input_format'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ñîäåðæèìîå îïöèé äëÿ íèñïàäàþùåãî ìåíþ</b><div class='graytext'>Èñïîëüçîâàíèå: <b>êëþ÷=çíà÷åíèå</b> (ïî îäíîìó çíà÷åíèþ íà ñòðîêó)<br />Ïðèìåð äëÿ ïîëÿ <b>Ïîë</b>:<br /><b>m=ìóæñêîé<br />f=æåíñêèé<br />u=íå ñêàæó</b><br>Ðåçóëüòàò: <select name='pants' class='dropdown'><option value='m'>ìóæñêîé</option><option value='f'>æåíñêèé</option><option value='u'>íå ñêàæó</option></select><br />Îäíî èç çíà÷åíèé: <b>m</b>, <b>f</b> èëè <b>u</b> áóäåò ñîõðàíåíî â áàçå äàííûõ.<br />Ïðè îòîáðàæåíèè â ïðîôèëå âûâîäèòñÿ <b>Ïîë: íå ñêàæó</b> (ïðè âûáîðå ïîëüçîâàòåëåì çíà÷åíèÿ <b>íå ñêàæó</b>)</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Option Content (for drop downs)</b><div class='graytext'>In sets, one set per line<br>Example for 'Gender' field:<br>m=Male<br>f=Female<br>u=Not Telling<br>Will produce:<br><select name='pants'><option value='m'>Male</option><option value='f'>Female</option><option value='u'>Not Telling</option></select><br>m,f or u stored in database. When showing field in profile, will use value from pair (f=Female, shows 'Female')</div>" ,
$this->ipsclass->adskin->form_textarea("pf_content", $fields['pf_content'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Äîáàâèòü íà ñòðàíèöó ðåãèñòðàöèè?</b><div class='graytext'>Ïðè âûáîðå 'Äà', ýòî äîïîëíèòåëüíîå ïîëå áóäåò ïðåäëîæåíî çàïîëíèòü ïðè ðåãèñòðàöèè.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Include on registration page?</b><div class='graytext'>If 'yes', the field will be shown upon registration.</div>" ,
$this->ipsclass->adskin->form_yes_no("pf_show_on_reg", $fields["pf_show_on_reg"] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ýòî ïîëå îáÿçàòåëüíî ê çàïîëíåíèþ?</b><div class='graytext'>Ïðè âûáîðå 'Äà', áóäåò âûâîäèòüñÿ ñîîáùåíèå îá îøèáêå äî òåõ ïîð, ïîêà ïîëüçîâàòåëü åãî íå çàïîëíèò.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Field MUST be completed and not left empty?</b><div class='graytext'>If 'yes', an error will be shown if this field is not completed.</div>" ,
$this->ipsclass->adskin->form_yes_no("pf_not_null", $fields['pf_not_null'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ïîëå ìîæåò áûòü èçìåíåíî ïîëüçîâàòåëåì?</b><div class='graytext'>Ïðè âûáîðå 'Íåò', ïîëüçîâàòåëü íå ñìîæåò ðåäàêòèðîâàòü ýòî ïîëå, íî ñìîãóò Ñóïåðìîäåðàòîðû è Àäìèíèñòðàòîðû.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Field can be edited by the member?</b><div class='graytext'>If 'no', the member cannot edit the field but Super Moderators and Admins will be able to.</div>" ,
$this->ipsclass->adskin->form_yes_no("pf_member_edit", $fields['pf_member_edit'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ñäåëàòü ýòî ïîëå ëè÷íûì?</b><div class='graytext'>Ïðè âûáîðå 'Äà', ïîëå áóäåò âèäèìûì òîëüêî äëÿ ñàìîãî ïîëüçîâàòåëÿ, Ñóïåðìîäåðàòîðîâ è Àäìèíèñòðàòîðîâ.<br />Ïðè âûáîðå 'Íåò', îñòàëüíûå ïîëüçîâàòåëè ñìîãóò èñêàòü ïî ýòîìó ïîëþ.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Make this a private profile field?</b><div class='graytext'>If yes, field only visible to profile owner, super moderators and admins. If 'no', members can search within this field.</div>" ,
$this->ipsclass->adskin->form_yes_no("pf_member_hide", $fields['pf_member_hide'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ñäåëàòü âèäèìûì è èçìåíÿåìûì òîëüêî Ñóïåðìîäåðàòîðàì è Àäìèíèñòðàòîðàì?</b><div class='graytext'>Ïðè âûáîðå 'Äà', ýòà îïöèÿ îòìåíèò ïðåäûäóùèå, òàê ÷òî òîëüêî Ñóïåðìîäåðàòîðû è Àäìèíèñòðàòîðû ñìîãóò âèäåòü è èçìåíÿòü ýòî ïîëå.</div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Make Admin and Super Moderator Editable/Viewable Only?</b><div class='graytext'>If yes, will override the above options so only admins and super moderators can see and edit this field.</div>" ,
$this->ipsclass->adskin->form_yes_no("pf_admin_only", $fields['pf_admin_only'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Îòîáðàæåíèå ïîëÿ â ñîîáùåíèè:</b><<div class='graytext'>Îñòàâüòå ïîëå ïóñòûì, åñëè âû íå õîòèòå, ÷òîáû ýòî äîïîëíèòåëüíîå ïîëå äîáàâëÿëîñü ïîñëå èíôîðìàöèè îá àâòîðå ïðè îòîáðàæåíèè ñîîáùåíèé.<br />Äîñòóïíûå òýãè:<br /><b>{title}</b> - íàçâàíèå äîïîëíèòåëüíîãî ïîëÿ<br /><b>{content}</b> - ñîäåðæèìîå äîïîëíèòåëüíîãî ïîëÿ<br /><b>{key}</b> - âûáîð ïîëüçîâàòåëÿ èç íèñïàäàþùåãî ìåíþ<br />Ïðèìåð: <b>{title}:{content}&lt;br /&gt;</b><br />Ïðèìåð: <b>{title}:&lt;img src='imgs/{key}.gif'&gt;</b></div>" ,
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Topic View Format?</b><div class='graytext'>Leave blank if you do not wish to add this field in the author details when viewing a topic.<br />{title} is the title of the custom field, {content} is the user added content. {key} is the form select value of the selected item in a dropdown box.<br />Example: {title}:{content}&lt;br /&gt;<br />Example: {title}:&lt;img src='imgs/{key}'&gt;</div>" ,
$this->ipsclass->adskin->form_textarea("pf_topic_format", $fields['pf_topic_format'] )
) );
@@ -475,26 +470,26 @@ class ad_profilefields {
function main_screen()
{
$this->ipsclass->admin->page_title = "Äîïîëíèòåëüíûå ïîëÿ ïðîôèëÿ";
$this->ipsclass->admin->page_title = "Custom Profile Fields";
$this->ipsclass->admin->page_detail = "Äîïîëíèòåëüíûå ïîëÿ ïðîôèëÿ ìîãóò èñïîëüçîâàòüñÿ äëÿ ïîëó÷åíèÿ äîïîëíèòåëüíîé èíôîðìàöèè î âàøèõ ïîëüçîâàòåëÿõ, îíè ìîãóò èçìåíÿòüñÿ ïðè ðåãèñòðàöèè èëè âî âðåìÿ ðåäàêòèðîâàíèÿ ïðîôèëÿ.<br />Ýòà îïöèÿ î÷åíü ïîëåçíà, åñëè âû õîòèòå ñîáðàòü òó èíôîðìàöèþ î ïîëüçîâàòåëÿõ, êîòîðàÿ âàì íåîáõîäèìà, íî ïðè ýòîì íå äîñòóïíà â áàçîâîé âåðñèè ôîðóìà.";
$this->ipsclass->admin->page_detail = "Custom Profile fields can be used to add optional or required fields to be completed when registering or editing a profile. This is useful if you wish to record data from your members that is not already present in the base board.";
$this->ipsclass->adskin->td_header[] = array( "Íàçâàíèå" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Òèï" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Îáÿçàòåëüíîå?" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Ëè÷íîå?" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Ïîêàçûâàòü ïðè ðåãèñòðàöèè?" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Òîëüêî àäìèí" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Èçìåíèòü" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Óäàëèòü" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Field Title" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Type" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "REQUIRED" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "NOT PUBLIC" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "SHOW REG" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "ADMIN ONLY" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Edit" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Delete" , "10%" );
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñïèñîê äîïîëíèòåëüíûõ ïîëåé ïðîôèëÿ" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Custom Profile Field Management" );
$real_types = array( 'drop' => 'âûïàäàþùåå ìåíþ',
'area' => 'òåêñòîâûé áëîê',
'text' => 'òåêñòîâîå ïîëå',
$real_types = array( 'drop' => 'Drop Down Box',
'area' => 'Text Area',
'text' => 'Text Input',
);
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'pfields_data', 'order' => 'pf_position' ) );
@@ -516,7 +511,7 @@ class ad_profilefields {
if ($r['pf_member_hide'] == 1)
{
$hide = '<center><span style="color:red">Äà</span></center>';
$hide = '<center><span style="color:red">Y</span></center>';
}
//-----------------------------------------
@@ -525,7 +520,7 @@ class ad_profilefields {
if ($r['pf_not_null'] == 1)
{
$req = '<center><span style="color:red">Äà</span></center>';
$req = '<center><span style="color:red">Y</span></center>';
}
//-----------------------------------------
@@ -534,7 +529,7 @@ class ad_profilefields {
if ($r['pf_show_on_reg'] == 1)
{
$regi = '<center><span style="color:red">Äà</span></center>';
$regi = '<center><span style="color:red">Y</span></center>';
}
//-----------------------------------------
@@ -543,7 +538,7 @@ class ad_profilefields {
if ($r['pf_admin_only'] == 1)
{
$admin = '<center><span style="color:red">Äà</span></center>';
$admin = '<center><span style="color:red">Y</span></center>';
}
@@ -553,18 +548,18 @@ class ad_profilefields {
$hide,
$regi,
$admin,
"<center><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id=".$r['pf_id']."'>Èçìåíèòü</a></center>",
"<center><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&id=".$r['pf_id']."'>Óäàëèòü</a></center>",
"<center><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=edit&id=".$r['pf_id']."'>Edit</a></center>",
"<center><a href='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=delete&id=".$r['pf_id']."'>Delete</a></center>",
) );
}
}
else
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Íå íàéäåíî", "center", "tdrow1");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("None found", "center", "tablerow1");
}
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( $this->ipsclass->adskin->js_make_button( 'Äîáàâèòü íîâîå äîïîëíèòåëüíîå ïîëå', "{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=add" ), "center", "pformstrip");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<div class='fauxbutton-wrapper'><span class='fauxbutton'><a href='{$this->ipsclass->base_url}&amp;{$this->ipsclass->form_code}&amp;code=add'>Add New Field</a></span></div>", 'center', 'tablefooter' );
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();