mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Minor LAN and GUI fixes to Admin > Users (mainly Ranks)
This commit is contained in:
parent
4fc76feb1a
commit
967903510d
@ -1397,10 +1397,11 @@ class users_admin_ui extends e_admin_ui
|
||||
$tmp['data']['gen_user_id'] = varset($_POST['new_calc_pfx'],0);
|
||||
$tmp['data']['gen_chardata'] = varset($_POST['new_calc_img']);
|
||||
$tmp['data']['gen_intdata'] = varset($_POST['new_calc_lower']);
|
||||
|
||||
e107::getMessage()->addSuccess(LAN_UPDATED);
|
||||
}
|
||||
|
||||
e107::getCache()->clear_sys('nomd5_user_ranks');
|
||||
e107::getMessage()->add(USRLAN_217,E_MESSAGE_SUCCESS);
|
||||
}
|
||||
|
||||
function RanksDeleteTrigger($posted)
|
||||
@ -1410,11 +1411,11 @@ class users_admin_ui extends e_admin_ui
|
||||
e107::getCache()->clear_sys('nomd5_user_ranks');
|
||||
if (e107::getDb()->delete('generic',"gen_id='{$rankId}'"))
|
||||
{
|
||||
e107::getMessage()->add(USRLAN_218,E_MESSAGE_SUCCESS);
|
||||
e107::getMessage()->addSucces(LAN_DELETED);
|
||||
}
|
||||
else
|
||||
{
|
||||
e107::getMessage()->add(USRLAN_218,E_MESSAGE_FAIL);
|
||||
e107::getMessage()->addError(LAN_DELETED_FAILED);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1519,7 +1520,7 @@ class users_admin_ui extends e_admin_ui
|
||||
|
||||
$text .= '</table>
|
||||
<div class="buttons-bar center">
|
||||
'.$frm->admin_trigger('update', 'no-value', 'update', USRLAN_215).'
|
||||
'.$frm->admin_trigger('update', 'no-value', 'update', LAN_UPDATE).'
|
||||
</div>
|
||||
</form>';
|
||||
|
||||
|
@ -220,10 +220,10 @@ define('USRLAN_211', 'Rank Image');
|
||||
define('USRLAN_212', 'User Rank');
|
||||
// define('USRLAN_213', 'Are you sure you want to delete this rank'); // use LAN_CONFIRMDEL
|
||||
define('USRLAN_214', 'Add New Rank');
|
||||
define('USRLAN_215', 'Update Ranks');
|
||||
//define('USRLAN_215', 'Update Ranks');
|
||||
define('USRLAN_216', '--select image--');
|
||||
define('USRLAN_217', 'User Ranks Updated');
|
||||
define('USRLAN_218', 'Deletion of User Rank');
|
||||
//define('USRLAN_217', 'User Ranks Updated');
|
||||
//define('USRLAN_218', 'Deletion of User Rank');
|
||||
|
||||
define('USRLAN_219', 'Older than 30 days');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user