Esempio n. 1
0
?>
<div class="profile">
	<div class="row clearfix">
		<!-- <div class="col-md-12 column"> -->
            <div>
                <center>
                    <img src="userfiles/avatars/<?php 
echo $rws['user_avatar'];
?>
" class="img-responsive profile-avatar">
                </center>
                <h1 class="text-center profile-text profile-name"><?php 
echo $rws['user_username'];
?>
<br /><small><?php 
User_Title($rws['user_title']);
?>
</small></h1>
                <h3 class="text-center profile-text profile-profession">

<?php 
echo $rws['user_slogan'];
?>
</h2>
                <br>
                <div class="pull-right">
<?php 
$sql2 = "SELECT * FROM user WHERE user_username='******'";
$result2 = mysqli_query($database, $sql2);
while ($row = mysqli_fetch_array($result2, MYSQLI_BOTH)) {
    $title_user = $row['user_title'];
Esempio n. 2
0
            <div class="col-md-6">  
                <div class="panel panel-default">
                    <div class="panel-heading">
					<h4 class="user_title" style="font-size:18;">Title</h4>
                    </div>
                    <div class="panel-body">
             <input type="hidden" name="user_email" value="<?php 
echo $edit_user['user_email'];
?>
"/>                     
                        <select name="user_title" class="form-control">
                            <option value="<?php 
echo $edit_user['user_title'];
?>
"><?php 
User_Title($edit_user['user_title']);
?>
</option>
                        	<option value="0">Banned</option>
                            <option value="1">awaiting approval</option>
                            <option value="2">Member</option>
                            <option value="3">Elder</option>
                            <option value="4">Co-Leader</option>
                           <?php 
$current_user = $_SESSION['user_username'];
$sql = "SELECT * FROM user WHERE user_username='******'";
$result = mysqli_query($database, $sql);
while ($row = mysqli_fetch_array($result, MYSQLI_BOTH)) {
    $admin = $row['user_title'];
    if ($admin == 5 || $admin == 6) {
        echo '<option value="5">Leader</option>';