mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Multi-language table-notification in admin-ui. (help avoid default table overwrites)
This commit is contained in:
@@ -5329,7 +5329,8 @@ class e_admin_form_ui extends e_form
|
|||||||
<fieldset class='e-filter'>
|
<fieldset class='e-filter'>
|
||||||
<legend class='e-hideme'>".LAN_LABEL_LABEL_SELECTED."</legend>
|
<legend class='e-hideme'>".LAN_LABEL_LABEL_SELECTED."</legend>
|
||||||
".$filter_pre."
|
".$filter_pre."
|
||||||
<div class='left form-inline' style='margin-top:10px;margin-bottom:-10px'>
|
<div class='row-fluid'>
|
||||||
|
<div class='left form-inline span8' style='margin-top:10px;margin-bottom:-10px;'>
|
||||||
".$this->text('searchquery', $current_query[0], 50, $input_options)."<i class='icon-search searchquery'></i>
|
".$this->text('searchquery', $current_query[0], 50, $input_options)."<i class='icon-search searchquery'></i>
|
||||||
".$this->select_open('filter_options', array('class' => 'e-tip tbox select filter', 'id' => false, 'title'=>'Filter the results below'))."
|
".$this->select_open('filter_options', array('class' => 'e-tip tbox select filter', 'id' => false, 'title'=>'Filter the results below'))."
|
||||||
".$this->option(LAN_FILTER_LABEL_DISPLAYALL, '')."
|
".$this->option(LAN_FILTER_LABEL_DISPLAYALL, '')."
|
||||||
@@ -5343,6 +5344,34 @@ class e_admin_form_ui extends e_form
|
|||||||
<img src='".e_IMAGE_ABS."generic/loading_16.gif' class='icon action S16' alt='".LAN_LOADING."' />
|
<img src='".e_IMAGE_ABS."generic/loading_16.gif' class='icon action S16' alt='".LAN_LOADING."' />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class='span4 text-right' style='margin-top:10px;margin-bottom:-10px;padding-top:15px;padding-right:5px'>";
|
||||||
|
|
||||||
|
|
||||||
|
// Let Admin know which language table is being saved to. (avoid default table overwrites)
|
||||||
|
if(e107::getConfig()->get('multilanguage'))
|
||||||
|
{
|
||||||
|
$curTable = $controller->getTableName();
|
||||||
|
|
||||||
|
if($curTable != e107::getDb()->db_IsLang($curTable))
|
||||||
|
{
|
||||||
|
$lang = e107::getDb()->mySQLlanguage;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$lang = e107::getConfig()->get('sitelanguage');
|
||||||
|
}
|
||||||
|
|
||||||
|
$def = deftrue('LAN_UI_USING_DATABASE_TABLE','Using [x] database table');
|
||||||
|
$diz = e107::getParser()->lanVars($def, $lang); // "Using ".$lang." database table";
|
||||||
|
$text .= "<span class='e-tip' title=\"".$diz."\">";
|
||||||
|
$text .= '<i class="icon-hdd"></i> ';
|
||||||
|
$text .= e107::getLanguage()->toNative($lang)."</span>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$text .= "
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
".$filter_post."
|
".$filter_post."
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
@@ -383,6 +383,8 @@ define("LAN_UI_DELETE_LABEL", "Confirm Delete");
|
|||||||
define("LAN_UI_DELETE_WARNING", "You are about to delete [x] records. Please confirm to continue.");
|
define("LAN_UI_DELETE_WARNING", "You are about to delete [x] records. Please confirm to continue.");
|
||||||
define("LAN_UI_BATCH_CREATELINK", "Create Link");
|
define("LAN_UI_BATCH_CREATELINK", "Create Link");
|
||||||
|
|
||||||
|
define("LAN_UI_USING_DATABASE_TABLE", "Using [x] database table");
|
||||||
|
|
||||||
define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings");
|
define("LAN_USER_MANAGEALL", "Manage all User, Userclass and Extended User-Field settings");
|
||||||
define("LAN_USER_LIST", "User List");
|
define("LAN_USER_LIST", "User List");
|
||||||
define("LAN_USER_QUICKADD","Quick Add User");
|
define("LAN_USER_QUICKADD","Quick Add User");
|
||||||
|
Reference in New Issue
Block a user