<?php 
require('../config_session.php');
if(!isset($_POST['target'])){
	die();
}
$target = escape($_POST['target'], true);
$user = userDetails($target);

if(!canModifyMood($user)){
	die();
}
?>
<div class="modal_content">
	<p class="label"><?php echo $lang['mood']; ?></p>
	<input type="text" id="new_user_mood" maxlength="40" value="<?php echo $user['user_mood']; ?>" class="full_input"/>
</div>
<div class="modal_control">
	<button onclick="adminSaveMood(<?php echo $user['user_id']; ?>);" class="reg_button theme_btn"><i class="fa fa-save"></i> <?php echo $lang['save']; ?></button>
</div>