mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
- replaced checkboxes for isAdmin and isGuest by select menu für role
This commit is contained in:
parent
f23b030ef0
commit
86057c0f26
|
@ -101,9 +101,10 @@ UI::contentContainerStart();
|
||||||
$selected=0;
|
$selected=0;
|
||||||
$count=2;
|
$count=2;
|
||||||
foreach ($users as $currUser) {
|
foreach ($users as $currUser) {
|
||||||
|
/*
|
||||||
if (($currUser->getID() == $settings->_adminID) || $currUser->isGuest())
|
if (($currUser->getID() == $settings->_adminID) || $currUser->isGuest())
|
||||||
continue;
|
continue;
|
||||||
|
*/
|
||||||
if (isset($_GET["userid"]) && $currUser->getID()==$_GET["userid"]) $selected=$count;
|
if (isset($_GET["userid"]) && $currUser->getID()==$_GET["userid"]) $selected=$count;
|
||||||
print "<option value=\"".$currUser->getID()."\">" . $currUser->getLogin();
|
print "<option value=\"".$currUser->getID()."\">" . $currUser->getLogin();
|
||||||
$count++;
|
$count++;
|
||||||
|
@ -143,8 +144,8 @@ UI::contentContainerStart();
|
||||||
<td><textarea name="comment" rows="4" cols="50"></textarea></td>
|
<td><textarea name="comment" rows="4" cols="50"></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("is_admin");?>:</td>
|
<td><?php printMLText("role");?>:</td>
|
||||||
<td><input type="checkbox" name="isadmin" value="1"></td>
|
<td><select name="role"><option value="<?= LetoDMS_User::role_user ?>"></option><option value="<?= LetoDMS_User::role_admin ?>"><?php printMLText("role_admin"); ?></option><option value="<?= LetoDMS_User::role_guest ?>"><?php printMLText("role_guest"); ?></option></select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("is_hidden");?>:</td>
|
<td><?php printMLText("is_hidden");?>:</td>
|
||||||
|
@ -230,8 +231,10 @@ UI::contentContainerStart();
|
||||||
<?php
|
<?php
|
||||||
foreach ($users as $currUser) {
|
foreach ($users as $currUser) {
|
||||||
|
|
||||||
|
/*
|
||||||
if (($currUser->getID() == $settings->_adminID) || $currUser->isGuest())
|
if (($currUser->getID() == $settings->_adminID) || $currUser->isGuest())
|
||||||
continue;
|
continue;
|
||||||
|
*/
|
||||||
|
|
||||||
print "<td id=\"keywords".$currUser->getID()."\" style=\"display : none;\">";
|
print "<td id=\"keywords".$currUser->getID()."\" style=\"display : none;\">";
|
||||||
|
|
||||||
|
@ -271,12 +274,8 @@ UI::contentContainerStart();
|
||||||
<td><textarea name="comment" rows="4" cols="50"><?php print $currUser->getComment();?></textarea></td>
|
<td><textarea name="comment" rows="4" cols="50"><?php print $currUser->getComment();?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("is_admin");?>:</td>
|
<td><?php printMLText("role");?>:</td>
|
||||||
<td><input type="checkbox" name="isadmin" value="1"<?php print ($currUser->isAdmin() ? " checked='checked'" : "");?>></td>
|
<td><select name="role"><option value="<?= LetoDMS_User::role_user ?>"></option><option value="<?= LetoDMS_User::role_admin ?>" <?php if($currUser->getRole() == LetoDMS_User::role_admin) echo "selected"; ?>><?php printMLText("role_admin"); ?></option><option value="<?= LetoDMS_User::role_guest ?>" <?php if($currUser->getRole() == LetoDMS_User::role_guest) echo "selected"; ?>><?php printMLText("role_guest"); ?></option></select></td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php printMLText("is_guest");?>:</td>
|
|
||||||
<td><input type="checkbox" name="isguest" value="1"<?php print ($currUser->isGuest() ? " checked='checked'" : "");?>></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php printMLText("is_hidden");?>:</td>
|
<td><?php printMLText("is_hidden");?>:</td>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user