mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Merge pull request #2260 from yesszus/patch-25
Issue #6 Update lan_form_handler.php
This commit is contained in:
commit
8d262cc51f
@ -507,7 +507,7 @@ class admin_start
|
||||
$frm = e107::getForm();
|
||||
|
||||
$text = $frm->open('deprecatedFiles', 'post');
|
||||
$text .= "The following old files can be safely deleted from your system: ";
|
||||
$text .= ADLAN_186;
|
||||
$text .= "<ul><li>".implode("</li><li>", $found)."</li></ul>";
|
||||
|
||||
$text .= $frm->button('delete-deprecated',LAN_DELETE,'delete');
|
||||
@ -759,4 +759,4 @@ function log_request()
|
||||
|
||||
require_once("footer.php");
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -46,7 +46,7 @@ class comments_admin extends e_admin_dispatcher
|
||||
'main/edit' => 'main/list'
|
||||
);
|
||||
|
||||
protected $menuTitle = 'Comments';
|
||||
protected $menuTitle = LAN_COMMENTMAN;
|
||||
}
|
||||
|
||||
class comments_admin_ui extends e_admin_ui
|
||||
@ -73,15 +73,15 @@ class comments_admin_ui extends e_admin_ui
|
||||
|
||||
'comment_type' => array('title'=> LAN_TYPE, 'type' => 'method', 'width' => '10%', 'filter'=>TRUE),
|
||||
|
||||
'comment_item_id' => array('title'=> "item id", 'type' => 'text', 'readonly'=>2, 'data'=>'int', 'width' => '5%'),
|
||||
'comment_subject' => array('title'=> "subject", 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first', 'writeParms'=>array('size'=>'xxlarge')), // Display name
|
||||
'comment_comment' => array('title'=> "comment", 'type' => 'textarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1', 'writeParms'=>'size=xxlarge'), // Display name
|
||||
'comment_item_id' => array('title'=> LAN_ITEM." ".LAN_ID, 'type' => 'text', 'readonly'=>2, 'data'=>'int', 'width' => '5%'),
|
||||
'comment_subject' => array('title'=> LAN_SUBJECT, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left first', 'writeParms'=>array('size'=>'xxlarge')), // Display name
|
||||
'comment_comment' => array('title'=> LAN_COMMENTS, 'type' => 'textarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1', 'writeParms'=>'size=xxlarge'), // Display name
|
||||
'comment_author_id' => array('title'=> LAN_AUTHOR, 'type' => 'user', 'data' => 'int', 'width' => 'auto', 'writeParms' => 'nameField=comment_author_name'), // User id
|
||||
'comment_author_name' => array('title'=> "authorName", 'type' => 'text', 'width' => 'auto', 'readParms'=>'idField=comment_author_id&link=1', 'noedit' => true, 'forceSave' => true), // User name
|
||||
'u.user_name' => array('title'=> "System user", 'type' => 'user', 'width' => 'auto', 'readParms'=>'idField=comment_author_id&link=1', 'noedit' => true), // User name
|
||||
'comment_author_name' => array('title'=> LAN_USER, 'type' => 'text', 'width' => 'auto', 'readParms'=>'idField=comment_author_id&link=1', 'noedit' => true, 'forceSave' => true), // User name
|
||||
'u.user_name' => array('title'=> LAN_SYSTEM_USER, 'type' => 'user', 'width' => 'auto', 'readParms'=>'idField=comment_author_id&link=1', 'noedit' => true), // User name
|
||||
'comment_datestamp' => array('title'=> LAN_DATESTAMP, 'type' => 'datestamp', 'width' => 'auto'), // User date
|
||||
'comment_ip' => array('title'=> LAN_IP, 'type' => 'ip', 'width' => '10%', 'thclass' => 'center' ), // Real name (no real vetting)
|
||||
'comment_lock' => array('title'=> "Lock", 'type' => 'boolean', 'data'=> 'int', 'thclass' => 'center', 'class'=>'center', 'filter' => true, 'batch' => true, 'width' => 'auto'),
|
||||
'comment_lock' => array('title'=> LAN_LOCK, 'type' => 'boolean', 'data'=> 'int', 'thclass' => 'center', 'class'=>'center', 'filter' => true, 'batch' => true, 'width' => 'auto'),
|
||||
'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center')
|
||||
);
|
||||
//required (but should be optional) - default column user prefs
|
||||
@ -91,7 +91,7 @@ class comments_admin_ui extends e_admin_ui
|
||||
// optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName);
|
||||
|
||||
protected $prefs = array(
|
||||
'comments_engine' => array('title'=>"Engine", 'type'=>'dropdown', 'writeParms'=>array()),
|
||||
'comments_engine' => array('title'=>LAN_ENGINE, 'type'=>'dropdown', 'writeParms'=>array()),
|
||||
'comments_disabled' => array('title'=>PRFLAN_161, 'type'=>'boolean', 'writeParms'=>'inverse=1'), // Same as 'writeParms'=>'reverse=1&enabled=LAN_DISABLED&disabled=LAN_ENABLED'
|
||||
'anon_post' => array('title'=>PRFLAN_32, 'type'=>'boolean'),
|
||||
'comments_icon' => array('title'=>PRFLAN_89, 'type'=>'boolean'),
|
||||
@ -108,7 +108,7 @@ class comments_admin_ui extends e_admin_ui
|
||||
if($engine != 'e107') // Hide all other prefs.
|
||||
{
|
||||
$this->prefs = array(
|
||||
'comments_engine' => array('title'=>"Engine", 'type'=>'dropdown', 'writeParms'=>array()),
|
||||
'comments_engine' => array('title'=>LAN_ENGINE, 'type'=>'dropdown', 'writeParms'=>array()),
|
||||
'comments_disabled' => array('title'=>PRFLAN_161, 'type'=>'boolean', 'writeParms'=>'inverse=1'),
|
||||
);
|
||||
|
||||
@ -312,4 +312,4 @@ else
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -134,7 +134,7 @@ class page_admin_form_ui extends e_admin_form_ui
|
||||
// BOOKS & CHAPTERS
|
||||
class page_chapters_ui extends e_admin_ui
|
||||
{
|
||||
protected $pluginTitle = 'Page';
|
||||
protected $pluginTitle = CUSLAN_59;
|
||||
protected $pluginName = 'core';
|
||||
protected $table = "page_chapters";
|
||||
protected $pid = "chapter_id";
|
||||
@ -808,4 +808,4 @@ require_once(e_ADMIN.'footer.php');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -915,7 +915,7 @@ class e_form
|
||||
}
|
||||
|
||||
// $ret = "<a title=\"{$title}\" rel='external' class='e-dialog' href='".$url."'>".$label."</a>"; // using colorXXXbox.
|
||||
$ret = "<a title=\"{$title}\" class='e-modal' data-modal-caption='Media Manager' data-cache='false' data-target='#uiModal' href='".$url."'>".$label."</a>"; // using bootstrap.
|
||||
$ret = "<a title=\"{$title}\" class='e-modal' data-modal-caption='".LAN_EFORM_007."' data-cache='false' data-target='#uiModal' href='".$url."'>".$label."</a>"; // using bootstrap.
|
||||
|
||||
|
||||
// $footer = "<div style=\'padding:5px;text-align:center\' <a href=\'#\' >Save</a></div>";
|
||||
@ -982,13 +982,13 @@ class e_form
|
||||
if($localonly == true)
|
||||
{
|
||||
$text = "<input class='tbox' style='width:80%' id='{$idinput}' type='hidden' name='image' value='{$curVal}' />";
|
||||
$text .= "<img src='".$img."' id='{$previnput}' class='img-rounded e-expandit e-tip avatar' style='cursor:pointer; width:".$pref['im_width']."px; height:".$pref['im_height']."px' title='Click on the avatar to change it' alt='Click on the avatar to change it' />"; // TODO LAN
|
||||
$text .= "<img src='".$img."' id='{$previnput}' class='img-rounded e-expandit e-tip avatar' style='cursor:pointer; width:".$pref['im_width']."px; height:".$pref['im_height']."px' title='".LAN_EFORM_001."' alt='Click on the avatar to change it' />";
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = "<input class='tbox' style='width:80%' id='{$idinput}' type='text' name='image' size='40' value='$curVal' maxlength='100' title=\"".LAN_SIGNUP_111."\" />";
|
||||
$text .= "<img src='".$img."' id='{$previnput}' style='display:none' />";
|
||||
$text .= "<input class='img-rounded btn btn-default button e-expandit' type ='button' style='cursor:pointer' size='30' value=\"Choose Avatar\" />"; //TODO Common LAN.
|
||||
$text .= "<input class='img-rounded btn btn-default button e-expandit' type ='button' style='cursor:pointer' size='30' value=\"".LAN_EFORM_002."\" />";
|
||||
}
|
||||
|
||||
$avFiles = e107::getFile()->get_files(e_AVATAR_DEFAULT,".jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG");
|
||||
@ -1005,7 +1005,7 @@ class e_form
|
||||
|
||||
if(count($avFiles) > 0)
|
||||
{
|
||||
$text .= "<div class='divider'><span>OR</span></div>";
|
||||
$text .= "<div class='divider'><span>".LAN_EFORM_003."</span></div>";
|
||||
$count = 1;
|
||||
}
|
||||
}
|
||||
@ -1014,7 +1014,7 @@ class e_form
|
||||
foreach($avFiles as $fi)
|
||||
{
|
||||
$img_path = $tp->thumbUrl(e_AVATAR_DEFAULT.$fi['fname']);
|
||||
$text .= "\n<a class='e-expandit' title='Choose this avatar' href='#{$optioni}'><img src='".$img_path."' alt='' onclick=\"insertext('".$fi['fname']."', '".$idinput."');document.getElementById('".$previnput."').src = this.src;return false\" /></a> ";
|
||||
$text .= "\n<a class='e-expandit' title='".LAN_EFORM_004."' href='#{$optioni}'><img src='".$img_path."' alt='' onclick=\"insertext('".$fi['fname']."', '".$idinput."');document.getElementById('".$previnput."').src = this.src;return false\" /></a> ";
|
||||
$count++;
|
||||
|
||||
|
||||
@ -1024,11 +1024,14 @@ class e_form
|
||||
if($count == 0)
|
||||
{
|
||||
$text .= "<div class='row'>";
|
||||
$text .= "<div class='alert alert-info'>No Avatars Available</div>"; //TODO LAN
|
||||
$text .= "<div class='alert alert-info'>".LAN_EFORM_005."</div>";
|
||||
|
||||
if(ADMIN)
|
||||
{
|
||||
$text .= "<div class='alert alert-danger'>Admin-Only Notice: The folder <b>".e_AVATAR_DEFAULT."</b> is empty. Upload some default avatars images to this folder for users to choose avatars from.</div>"; //TODO LAN
|
||||
$EAVATAR = "<b>".e_AVATAR_DEFAULT."</b>";
|
||||
$text .= "<div class='alert alert-danger'>";
|
||||
$text .= e107::getParser()->lanVars(LAN_EFORM_006, array('x'=>$EAVATAR));
|
||||
$text .= "</div>";
|
||||
}
|
||||
|
||||
$text .= "</div>";
|
||||
@ -1457,7 +1460,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
|
||||
if(empty($users))
|
||||
{
|
||||
return "Unavailable";
|
||||
return LAN_UNAVAILABLE;
|
||||
}
|
||||
|
||||
$opt = array();
|
||||
@ -1842,7 +1845,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
$text .= "</div>
|
||||
</div>";
|
||||
|
||||
$loading = vartrue($options['loading'],'Please wait...');
|
||||
$loading = vartrue($options['loading'],LAN_LOADING);
|
||||
|
||||
$buttonId = $target.'-start';
|
||||
|
||||
@ -2534,7 +2537,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
$tp = e107::getParser();
|
||||
|
||||
$text = '<span class="input-append input-group e-search">
|
||||
'.$this->text($name, $searchVal,20,'class=search-query&placeholder=Search…').'
|
||||
'.$this->text($name, $searchVal,20,'class=search-query&placeholder='.LAN_SEARCH.'…').'
|
||||
<span class="input-group-btn"><button class="btn btn-primary" name="'.$submitName.'" type="submit">'.$tp->toGlyph('fa-search',' ').'</button></span>
|
||||
</span>';
|
||||
|
||||
@ -2817,7 +2820,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
|
||||
$text = '<div class="btn-group pull-'.$align.'">
|
||||
<a class="btn dropdown-toggle '.$options['class'].'" data-toggle="dropdown" href="#">
|
||||
'.($label ? $label : 'No Label Provided').'
|
||||
'.($label ? $label : LAN_NO_LABEL_PROVIDED).'
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
@ -3372,10 +3375,10 @@ e107::getDebug()->log($sc_parameters);
|
||||
// navbar-header nav-header
|
||||
// navbar-header nav-header
|
||||
$text = '<div class="col-selection dropdown e-tip pull-right" data-placement="left">
|
||||
<a class="dropdown-toggle" title="Select columns to display" data-toggle="dropdown" href="#"><b class="caret"></b></a>
|
||||
<a class="dropdown-toggle" title="'.LAN_EFORM_008.'" data-toggle="dropdown" href="#"><b class="caret"></b></a>
|
||||
<ul class="list-group dropdown-menu col-selection e-noclick" role="menu" aria-labelledby="dLabel">
|
||||
|
||||
<li class="list-group-item "><h5 class="list-group-item-heading">Display Columns</h5></li>
|
||||
<li class="list-group-item "><h5 class="list-group-item-heading">'.LAN_EFORM_009.'</h5></li>
|
||||
<li class="list-group-item">
|
||||
<ul class="nav scroll-menu" >';
|
||||
|
||||
@ -4180,7 +4183,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
// in case something goes wrong...
|
||||
if($link)
|
||||
{
|
||||
$value = "<a class='e-tip{$dialog}' {$ext} href='" . $link . "' {$modal} title='Quick View' >" . $value . "</a>";
|
||||
$value = "<a class='e-tip{$dialog}' {$ext} href='" . $link . "' {$modal} title='".LAN_EFORM_010."' >" . $value . "</a>";
|
||||
}
|
||||
}
|
||||
|
||||
@ -4261,7 +4264,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
}
|
||||
|
||||
// in case something goes wrong...
|
||||
if($link) $value = "<a class='e-tip{$dialog}' {$ext} href='".$link."' {$modal} title='Quick View' >".$value."</a>";
|
||||
if($link) $value = "<a class='e-tip{$dialog}' {$ext} href='".$link."' {$modal} title='".LAN_EFORM_010."' >".$value."</a>";
|
||||
}
|
||||
|
||||
if(empty($value))
|
||||
@ -4593,7 +4596,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
// Stay in admin area.
|
||||
$link = e_ADMIN."users.php?mode=main&action=edit&id=".$id."&readonly=1&iframe=1"; // e107::getUrl()->create('user/profile/view', array('id' => $id, 'name' => $ttl))
|
||||
|
||||
$value = '<a class="e-modal" data-modal-caption="User #'.$id.' : '.$ttl.'" href="'.$link.'" title="Go to user profile">'.$ttl.'</a>';
|
||||
$value = '<a class="e-modal" data-modal-caption="User #'.$id.' : '.$ttl.'" href="'.$link.'" title="'.LAN_EFORM_011.'">'.$ttl.'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4852,7 +4855,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
if(!empty($attributes['multilan']))
|
||||
{
|
||||
$value = is_array($value) ? varset($value[e_LANGUAGE],'') : $value;
|
||||
$parms['post'] = "<small class='e-tip admin-multilanguage-field input-group-addon' style='cursor:help; padding-left:10px' title='Multi-language field (".e_LANGUAGE.")'>".$tp->toGlyph('fa-language')."</small>";
|
||||
$parms['post'] = "<small class='e-tip admin-multilanguage-field input-group-addon' style='cursor:help; padding-left:10px' title='".LAN_EFORM_012." (".e_LANGUAGE.")'>".$tp->toGlyph('fa-language')."</small>";
|
||||
}
|
||||
|
||||
if(empty($value) && !empty($parms['default'])) // Allow writeParms to set default value.
|
||||
@ -6032,7 +6035,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
<div class='buttons-bar center'>
|
||||
";
|
||||
// After submit options
|
||||
$defsubmitopt = array('list' => 'go to list', 'create' => 'create another', 'edit' => 'edit current');
|
||||
$defsubmitopt = array('list' => LAN_EFORM_013, 'create' => LAN_EFORM_014, 'edit' => LAN_EFORM_015);
|
||||
$submitopt = isset($fdata['after_submit_options']) ? $fdata['after_submit_options'] : true;
|
||||
if(true === $submitopt)
|
||||
{
|
||||
@ -6073,7 +6076,7 @@ e107::getDebug()->log($sc_parameters);
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu col-selection">
|
||||
<li class="dropdown-header nav-header">After submit:</li>
|
||||
<li class="dropdown-header nav-header">'.LAN_EFORM_016.'</li>
|
||||
';
|
||||
|
||||
foreach($submitopt as $k=>$v)
|
||||
|
@ -197,6 +197,7 @@ define("ADLAN_170", "These stats are for demonstration purposes only.");
|
||||
define("ADLAN_171", "Install Site Stats Plugin");
|
||||
|
||||
define("ADLAN_185", "Toggle Sidebar");
|
||||
define("ADLAN_186", "The following old files can be safely deleted from your system:");
|
||||
|
||||
// define("ADLAN_CL_1", "Settings");
|
||||
define("ADLAN_CL_2", "Users");
|
||||
@ -488,24 +489,29 @@ define("LAN_PERSONALIZE_MENUS", "Personalize Menus");
|
||||
define("LAN_LATEST_COMMENTS", "Latest Comments");
|
||||
define("LAN_COMMENTS_ALLOWED", "Comments Allowed");
|
||||
define("LAN_PERSONALIZE", "Personalize");
|
||||
define("LAN_SELECT_COLUMNS_TO_DISPLAY", "Select columns to display");
|
||||
define("LAN_DISPLAY_COLUMNS", "Display Columns");
|
||||
//define("LAN_SELECT_COLUMNS_TO_DISPLAY", "Select columns to display"); // Moved to lan_form_handler.php
|
||||
//define("LAN_DISPLAY_COLUMNS", "Display Columns"); // Moved to lan_form_handler.php
|
||||
define("LAN_SETTINGS_NOT_SAVED_NO_CHANGES_MADE", "Settings not saved as no changes were made.");
|
||||
define("LAN_DASHBOARD_LAYOUT", "Dashboard Layout");
|
||||
define("LAN_AFTER_SUBMIT", "After submit:");
|
||||
//define("LAN_AFTER_SUBMIT", "After submit:"); // Moved to lan_form_handler.php
|
||||
define("LAN_UNAVAILABLE", "Unavailable");
|
||||
define("LAN_READY_UP_FOLDER_FIELDS", "Ready to use upload form fields, optional - file list view");
|
||||
//define("LAN_READY_UP_FOLDER_FIELDS", "Ready to use upload form fields, optional - file list view"); // Not used only debug
|
||||
define("LAN_NO_LABEL_PROVIDED", "No Label Provided");
|
||||
define("LAN_NOT_FOUND", "Not Found!");
|
||||
define("LAN_QUICK_VIEW", "Quick View");
|
||||
define("LAN_GO_TO_USER_PROFILE", "Go to user profile");
|
||||
define("LAN_MULTI_LANGUAGE_FIELD", "Multi-language field");
|
||||
define("LAN_GO_TO_LIST", "go to list");
|
||||
define("LAN_CREATE_ANOTHER", "create another");
|
||||
define("LAN_EDIT_CURRENT", "edit current");
|
||||
//define("LAN_QUICK_VIEW", "Quick View"); // Moved to lan_form_handler.php
|
||||
//define("LAN_GO_TO_USER_PROFILE", "Go to user profile"); // Moved to lan_form_handler.php
|
||||
//define("LAN_MULTI_LANGUAGE_FIELD", "Multi-language field"); // Moved to lan_form_handler.php
|
||||
//define("LAN_GO_TO_LIST", "go to list"); // Moved to lan_form_handler.php
|
||||
//define("LAN_CREATE_ANOTHER", "create another"); // Moved to lan_form_handler.php
|
||||
//define("LAN_EDIT_CURRENT", "edit current"); // Moved to lan_form_handler.php
|
||||
define("LAN_MAINTENANCE", "Maintenance");
|
||||
define("LAN_RETURN_TO_FRONT_PANEL", "Return to Front Panel");
|
||||
define("LAN_CHANGE_LANGUAGE", "Change Language");
|
||||
|
||||
define("LAN_NEWER_VERSION_OF_X", "A newer version of the [x] [y] is available for download."); // x= Name y = Theme | Plugin
|
||||
|
||||
define("LAN_SUBJECT", "Subject");
|
||||
define("LAN_ITEM", "Item");
|
||||
define("LAN_LOCK", "Lock");
|
||||
define("LAN_SYSTEM_USER", "System user");
|
||||
define("LAN_ENGINE", "Engine");
|
||||
|
@ -9,4 +9,19 @@
|
||||
*/
|
||||
|
||||
|
||||
define("LAN_EFORM_001", "");
|
||||
define("LAN_EFORM_001", "Click on the avatar to change it");
|
||||
define("LAN_EFORM_002", "Choose Avatar");
|
||||
define("LAN_EFORM_003", "OR");
|
||||
define("LAN_EFORM_004", "Choose this avatar");
|
||||
define("LAN_EFORM_005", "No Avatars Available");
|
||||
define("LAN_EFORM_006", "Admin-Only Notice: The folder [x] is empty. Upload some default avatars images to this folder for users to choose avatars from.");
|
||||
define("LAN_EFORM_007", "Media Manager");
|
||||
define("LAN_EFORM_008", "Select columns to display");
|
||||
define("LAN_EFORM_009", "Display Columns");
|
||||
define("LAN_EFORM_010", "Quick View");
|
||||
define("LAN_EFORM_011", "Go to user profile");
|
||||
define("LAN_EFORM_012", "Multi-language field");
|
||||
define("LAN_EFORM_013", "go to list");
|
||||
define("LAN_EFORM_014", "create another");
|
||||
define("LAN_EFORM_015", "edit current");
|
||||
define("LAN_EFORM_016", "After submit:");
|
||||
|
Loading…
x
Reference in New Issue
Block a user