Commit c40dce49 authored by Markus Bergt's avatar Markus Bergt

fixed dropup #4

parent 57df4508
...@@ -98,33 +98,31 @@ else{ ...@@ -98,33 +98,31 @@ else{
<div class="input-group"> <div class="input-group">
<span class="input-group-addon hidden-xs"><?php echo $users['name']; ?>:</span> <span class="input-group-addon hidden-xs"><?php echo $users['name']; ?>:</span>
<input type="text" class="form-control" placeholder="Deine Nachricht..." autofocus> <input type="text" class="form-control" placeholder="Deine Nachricht..." autofocus>
<span class="input-group-btn"> <span class="input-group-btn dropup">
<div class="btn-group dropup"> <button class="btn btn-default" id="sendMessage" name="chatok" type="submit"><span class="glyphicon glyphicon-send" /> <span class="hidden-xs">Senden</span></button>
<button class="btn btn-default" id="sendMessage" name="chatok" type="submit"><span class="glyphicon glyphicon-send" /> <span class="hidden-xs">Senden</span></button> <?php
if($users['admin'] >= 1)
{
?>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret" />
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#" id="changeToNormal">Normal</a></li>
<li><a href="#" id="changeToMod">Mod</a></li>
<?php <?php
if($users['admin'] >= 1) if($users['admin'] >=2)
{ {
?>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret" />
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="#" id="changeToNormal">Normal</a></li>
<li><a href="#" id="changeToMod">Mod</a></li>
<?php
if($users['admin'] >=2)
{
?>
<li><a href="#" id="changeToAdmin">Admin</a></li>
<?php
}
?>
</ul>
<?php
}
?> ?>
</div> <li><a href="#" id="changeToAdmin">Admin</a></li>
<?php
}
?>
</ul>
<?php
}
?>
</span> </span>
</div> </div>
</form> </form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment