<?php $chat = Classloader('chat',true); $chatSe = $datenbank->get_row("SELECT chat_aktiv,hintergrundfarbe,textfarbe,profillink FROM ".PREFIX . CHATSE ."",true); ?> <div class="row"> <div class="col-6"> <div class="card"> <div class="card-header">Grundeinstellungen</div> <div class="card-body"> <form method="post" action=""> <table class="table"> <tr> <th>Chat Aktiv</th> <td> <select name="chat_aktiv" class="form-control"> <option value="1"<?php if($chatSe->chat_aktiv == 1) echo'selected="selected"';?>>deaktiviert</option> <option value="2"<?php if ($chatSe->chat_aktiv == 2) echo'selected="selected"';?>>aktiviert</option> </select> </td> </tr> <tr> <th>Hintergrundfarbe</th> <td><input class="form-control" type="color" name="hintergrundfarbe" value="<?php echo $chatSe->hintergrundfarbe;?>"></td> </tr> <tr> <th>Textfarbe</th> <td><input class="form-control" type="color" name="textfarbe" value="<?php echo $chatSe->textfarbe;?>"></td> </tr> <tr> <th>Profillinkfarbe</th> <td><input class="form-control" type="color" name="profillink" value="<?php echo $chatSe->profillink;?>"></td> </tr> <tr> <th></th> <td><input class="btn btn-default" type="submit" name="run[chat_save]" value="Chat Einstellungen Speichern"></td> </tr> </table> </form> </div> </div> </div> <div class="col-6"> <div class="card"> <div class="card-header">Smileyverwaltung</div> <div class="card-body"> <form method="post" action="" enctype="multipart/form-data"> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text" id="inputGroupFileAddon01">Upload</span> </div> <div class="custom-file"> <input name="datei" type="file" class="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01"> <label class="custom-file-label" for="inputGroupFile01">Choose file</label> </div> <input type="text" name="kurz" placeholder="Kurzzeichen" class="form-control" required> <div class="input-group-append"> <input type="submit" name="run[SmileyUpload]" value="Speichern" class="btn btn-success"> </div> </div> </form> <hr> <?php echo $chat->SmileyAnsicht();?> </div> </div> </div> </div> <?php head("Chatverlauf"); echo $chat->Verlauf(); foot(); ?>