2006-10-11 17:50:24 +02:00
|
|
|
<?cs # $Id$ ?>
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
td.left_column {
|
|
|
|
text-align:right;
|
|
|
|
padding-left:30px;
|
|
|
|
padding-right:5px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<h1><?cs var:html_escape(Lang.Plugins.user_manager.Title.UserManager) ?></h1>
|
|
|
|
|
2006-11-02 15:01:09 +01:00
|
|
|
<?cs call:handle_messages() ?>
|
|
|
|
|
2006-10-11 17:50:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.AddUser) ?></h2>
|
|
|
|
<p>
|
2006-10-26 14:25:12 +02:00
|
|
|
<?cs call:print_form_header("add_user", "plugins/user_manager") ?>
|
2006-10-11 17:50:24 +02:00
|
|
|
<table>
|
|
|
|
<tr><td class="left_column">
|
|
|
|
<label for="new_user"><?cs var:html_escape(Lang.Plugins.user_manager.Text.NewUser) ?>:</label></td>
|
|
|
|
<td><input id="new_user" type="text" name="user" size="12" /></td>
|
|
|
|
<td></td></tr>
|
|
|
|
<tr><td class="left_column">
|
|
|
|
<label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>:</label></td>
|
|
|
|
<td><input id="new_pw" type="password" name="new_pw" size="12" /></td>
|
|
|
|
<td></td></tr>
|
|
|
|
<tr><td class="left_column">
|
|
|
|
<label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>:</label></td>
|
|
|
|
<td><input id="new_pw2" type="password" name="new_pw2" size="12" /></td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="store" value="add_user" />
|
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.user_manager.Button.AddUser) ?></button></td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.ChangePassword) ?></h2>
|
|
|
|
<p>
|
2006-10-26 14:25:12 +02:00
|
|
|
<?cs call:print_form_header("change_password", "plugins/user_manager") ?>
|
2006-10-11 17:50:24 +02:00
|
|
|
<table>
|
|
|
|
<tr><td class="left_column">
|
|
|
|
<label for="chpw_user"><?cs var:html_escape(Lang.Plugins.user_manager.Text.ChangePasswordUser) ?>:</label></td>
|
|
|
|
<td style="text-align:left"><select id="user" name="user" size="0">
|
|
|
|
<?cs each:x=Data.Plugins.user_manager.Users ?>
|
|
|
|
<option><?cs var:html_escape(x) ?></option>
|
|
|
|
<?cs /each ?></select></td>
|
|
|
|
<td></td></tr>
|
|
|
|
<tr><td class="left_column">
|
|
|
|
<label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>:</label></td>
|
|
|
|
<td><input id="new_pw" type="password" name="new_pw" size="12" /></td>
|
|
|
|
<td></td></tr>
|
|
|
|
<tr><td class="left_column">
|
|
|
|
<label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>:</label></td>
|
|
|
|
<td><input id="new_pw2" type="password" name="new_pw2" size="12" /></td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="store" value="change_password" />
|
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.user_manager.Button.ChangePassword) ?></button></td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<?cs if:subcount(Data.Plugins.user_manager.Users) > 1 ?>
|
|
|
|
<h2><?cs var:html_escape(Lang.Plugins.user_manager.Title.DelUser) ?></h2>
|
|
|
|
<p>
|
|
|
|
<table><tr><td class="left_column">
|
2006-10-26 14:25:12 +02:00
|
|
|
<?cs call:print_form_header("del_user", "plugins/user_manager") ?>
|
2006-10-11 17:50:24 +02:00
|
|
|
<label for="user"><?cs var:html_escape(Lang.Plugins.user_manager.Text.DelUser) ?>: </label><select id="user" name="user" size="0">
|
|
|
|
<?cs each:x=Data.Plugins.user_manager.Users ?><?cs if:x != "admin" ?>
|
|
|
|
<option><?cs var:html_escape(x) ?></option>
|
|
|
|
<?cs /if ?><?cs /each ?>
|
|
|
|
</select>
|
|
|
|
<input type="hidden" name="store" value="del_user" />
|
|
|
|
<button type="submit"><?cs var:html_escape(Lang.Plugins.user_manager.Button.DelUser) ?></button>
|
|
|
|
</form></td></tr></table>
|
|
|
|
</p>
|
|
|
|
<?cs /if ?>
|
|
|
|
|