User delete functionality

This commit is contained in:
dignajar 2015-07-22 23:16:42 -03:00
parent cb10fe5218
commit f075b16e86
2 changed files with 10 additions and 10 deletions

View File

@ -31,10 +31,8 @@
<input type="text" name="lastName" class="width-50" value="<?php echo $_user['lastName'] ?>"> <input type="text" name="lastName" class="width-50" value="<?php echo $_user['lastName'] ?>">
</label> </label>
<?php <?php if($Login->username()==='admin') { ?>
if($Login->username()==='admin')
{
?>
<label for="role"> <label for="role">
<?php $Language->p('Role') ?> <?php $Language->p('Role') ?>
<select name="role" class="width-50"> <select name="role" class="width-50">
@ -47,9 +45,9 @@
</select> </select>
<div class="forms-desc"><?php $Language->p('you-can-choose-the-users-privilege') ?></div> <div class="forms-desc"><?php $Language->p('you-can-choose-the-users-privilege') ?></div>
</label> </label>
<?php
} <?php } ?>
?>
<input type="submit" class="btn btn-blue" value="<?php $Language->p('Save') ?>" name="user-profile"> <input type="submit" class="btn btn-blue" value="<?php $Language->p('Save') ?>" name="user-profile">
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" class="btn"><?php $Language->p('Cancel') ?></a> <a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" class="btn"><?php $Language->p('Cancel') ?></a>
</form> </form>
@ -109,13 +107,13 @@
<form method="post" action="" class="forms"> <form method="post" action="" class="forms">
<input type="hidden" name="delete-user-all" value="true"> <input type="hidden" name="delete-user-all" value="true">
<input type="hidden" name="username" value="<?php echo $_user['username'] ?>"> <input type="hidden" name="username" value="<?php echo $_user['username'] ?>">
<p><input type="submit" class="btn btn-blue" value="Delete the user and all your content"></p> <p><input type="submit" class="btn btn-blue" value="<?php $Language->p('Delete the user and all its posts') ?>"></p>
</form> </form>
<form method="post" action="" class="forms"> <form method="post" action="" class="forms">
<input type="hidden" name="delete-user-associate" value="true"> <input type="hidden" name="delete-user-associate" value="true">
<input type="hidden" name="username" value="<?php echo $_user['username'] ?>"> <input type="hidden" name="username" value="<?php echo $_user['username'] ?>">
<p><input type="submit" class="btn btn-blue" value="Delete the user and the content associate to admin user"></p> <p><input type="submit" class="btn btn-blue" value="<?php $Language->p('Delete the user and associate its posts to admin user') ?>"></p>
</form> </form>
<a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" class="btn"><?php $Language->p('Cancel') ?></a> <a href="<?php echo HTML_PATH_ADMIN_ROOT.'users' ?>" class="btn"><?php $Language->p('Cancel') ?></a>

View File

@ -123,5 +123,7 @@
"you-can-modify-the-url-which-identifies":"You can modify the URL which identifies a page or post using human-readable keywords. No more than 150 characters.", "you-can-modify-the-url-which-identifies":"You can modify the URL which identifies a page or post using human-readable keywords. No more than 150 characters.",
"this-field-can-help-describe-the-content": "This field can help describe the content in a few words. No more than 150 characters.", "this-field-can-help-describe-the-content": "This field can help describe the content in a few words. No more than 150 characters.",
"write-the-tags-separeted-by-comma": "Write the tags separeted by comma. eg: tag1, tag2, tag3", "write-the-tags-separeted-by-comma": "Write the tags separeted by comma. eg: tag1, tag2, tag3",
"delete": "Delete" "delete": "Delete",
"delete-the-user-and-all-its-posts":"Delete the user and all its posts",
"delete-the-user-and-associate-its-posts-to-admin-user": "Delete the user and associate its posts to admin user"
} }