1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
<?php
/* This file is part of Zoph.
*
* Zoph is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Zoph is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Zoph; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
?>
<!-- begin edit_user.inc !-->
<h1>
<span class="actionlink">
<a href="users.php"><?php echo translate("return") ?></a> |
<a href="user.php?_action=new"><?php echo translate("new") ?></a>
</span>
<?php echo translate("add/edit user") ?>
</h1>
<div class="main">
<form action="user.php" method="POST">
<input type="hidden" name="_action" value="<?php echo $action ?>">
<input type="hidden" name="user_id" value="<?php echo $this_user->get("user_id") ?>">
<?php
if ($action == "insert") {
?>
<input type="hidden" name="lastnotify" value="now()">
<?php
}
?>
<label for="username"><?php echo translate("user name") ?></label>
<?php echo create_text_input("user_name", $this_user->get("user_name"), 16, 16) ?>
<span class="inputhint"><?php echo sprintf(translate("%s chars max"), "16") ?></span>
<br>
<label for="personid"><?php echo translate("person") ?></label>
<?php echo create_smart_pulldown("person_id", $action == "insert" ? "1" : $this_user->get("person_id"), get_people_select_array()) ?><br>
<label for="password"><?php echo translate("password") ?></label>
<input type="password" name="password" id="password" value="" size="16" maxlength="32">
<span class="inputhint"><?php echo sprintf(translate("%s chars max"), "32") ?></span><br>
<label for="userclass"><?php echo translate("class") ?></label>
<?php echo create_pulldown("user_class", $this_user->get("user_class"), array("1" => translate("User",0), "0" => translate("Admin",0)) ) ?>
<br>
<label for="browsepeople"><?php echo translate("can browse people") ?></label>
<?php echo create_pulldown("browse_people", $this_user->get("browse_people"), array("0" => translate("No",0), "1" => translate("Yes",0)) ) ?>
<br>
<label for="browseplaces"><?php echo translate("can browse places") ?></label>
<?php echo create_pulldown("browse_places", $this_user->get("browse_places"), array("0" => translate("No",0), "1" => translate("Yes",0)) ) ?><br>
<label for="detailedpeople"><?php echo translate("can view details of people") ?></label>
<?php echo create_pulldown("detailed_people", $this_user->get("detailed_people"), array("0" => translate("No",0), "1" => translate("Yes",0)) ) ?>
<br>
<label for="detailedplaces"><?php echo translate("can view details of places") ?></label>
<?php echo create_pulldown("detailed_places", $this_user->get("detailed_places"), array("0" => translate("No",0), "1" => translate("Yes",0)) ) ?>
<br>
<label for="import"><?php echo translate("can import") ?></label>
<?php echo create_pulldown("import", $this_user->get("import"), array("0" => translate("No",0), "1" => translate("Yes",0)) ) ?>
<br>
<label for="leave_comments"><?php echo translate("can leave comments") ?></label>
<?php echo create_pulldown("leave_comments", $this_user->get("leave_comments"), array("0" => translate("No",0), "1" => translate("Yes",0)) ) ?>
<br>
<label for="lightboxid"><?php echo translate("lightbox album") ?></label>
<?php
$lightbox_array = get_albums_select_array();
$lightbox_array["null"] = "[none]";
?>
<?php echo create_smart_pulldown("lightbox_id", $this_user->get("lightbox_id"), $lightbox_array) ?>
<br>
<input type="submit" value="<?php echo translate($action, 0) ?>">
</form>
<!-- end edit_user.inc !-->
|