84 lines
4.6 KiB
HTML
Executable File
84 lines
4.6 KiB
HTML
Executable File
{include file=$header h1=$room[0].room_name title=$room[0].room_name}
|
||
<div class="row">
|
||
<div class="col-xs col-sm col-md col-lg">
|
||
<div id="dialog" style="border:1px solid lightgray; border:radius:10px;overflow-y:scroll;max-height: 500px;min-height:200px;"></div>
|
||
<form id="send_form" autocomplate="off" class="input-group">
|
||
<input type="text" id="input_msg" class="form-control" autocomplete="off" autofocus>
|
||
<span class="input-group-btn">
|
||
<button class="btn btn-default" type="button" id="button_send" title="Отправить"><span class="fa fa-paper-plane" aria-hidden="true"></span></button>
|
||
</span>
|
||
<input type="submit" style="display:none;">
|
||
</form>
|
||
</div>
|
||
<aside class="hidden-md-down col-xs col-sm col-md-3 col-lg-3">
|
||
Пользователи
|
||
<div id="user_list"></div>
|
||
</aside>
|
||
{*
|
||
<!--div class="col-xs col-sm col-md col-lg" id="div_dialog">
|
||
<div id="dialog_list" data-roomid="{$smarty.const.ID}"></div-->
|
||
<!--iframe id="iframe_dialog" src="/chat_dialog/{$smarty.const.ID}"></iframe-->
|
||
<form id="send_form" autocomplate="off">
|
||
<div class="input-group">
|
||
<input type="text" id="input_msg" class="form-control" autocomplete="off" autofocus>
|
||
<span class="input-group-btn">
|
||
<button class="btn btn-default" type="button" id="button_send" title="Отправить"><span class="fa fa-paper-plane" aria-hidden="true"></span></button>
|
||
</span>
|
||
<input type="submit" style="display:none;">
|
||
</div>
|
||
</form>
|
||
*}
|
||
</div>
|
||
{if $smarty.session.id==$room[0].sozdatel}<a href="/room_set/{$smarty.const.ID}">Настроить комнату</a>{/if}
|
||
{*else}
|
||
<form method="post" action="" class="container" style="width: 400px;">
|
||
<div class="alert alert-danger">
|
||
Приватная комната! Введите пароль, чтобы войти
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="pass">Пароль</label>
|
||
<input type="password" class="form-control" id="pass" placeholder="Пароль" name='pwd'>
|
||
</div>
|
||
<input type="submit" name="ok" value="Войти" class="btn btn-success">
|
||
</form>
|
||
{/if*}
|
||
{if ($room[0].sozdatel==$smarty.session.user_id)}
|
||
<!-- настройка комнаты -->
|
||
<div class="modal fade" id="roomset">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h3 class="modal-title">Настройка комнаты</h3>
|
||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<form id="upload-image" enctype="multipart/form-data">
|
||
<div class="form-group">
|
||
<input placeholder="Название комнаты" class="form-control" style="margin-top:5px;" title="Название комнаты" name="room_name" value="{$room[0].room_name}">
|
||
<textarea class="form-control" placeholder="Тематика" style="height: 150px;margin-top:5px;" name="tematika">{$room[0].tematika}</textarea>
|
||
<hr>
|
||
<input placeholder="Максимальное количество пользователей" class="form-control" style="margin-top:5px;" title="Максимальное количество пользователей" name="max_users" value="{$room[0].max_users}">
|
||
<textarea class="form-control" placeholder="CSS" style="height: 150px;margin-top:5px;" name="css">{$room[0].css}</textarea>
|
||
<input type="file" id="image" name="image" class="form-control" style="margin-top:5px;" title="Обложка">
|
||
<div class="image-preview">
|
||
<img id="preview" src="" alt="" style="width: 150px;">
|
||
</div>
|
||
{if $room[0].fon}
|
||
<img src="/img/fon/{$room[0].fon}" style="width: 150px;" id="minifon">
|
||
<a href="delfon" id="delfon">Удалить фон</a>
|
||
{/if}
|
||
<input placeholder="Пароль" class="form-control" style="margin-top:5px;" title="Пароль комнаты (смогут зайти только знающие)" name="pass" value="{$room[0].pass}">
|
||
<input type="hidden" name="act" value="saveset">
|
||
</div>
|
||
<input type="submit" name="ok" value="Сохранить" class="btn btn-success" />
|
||
<div id="result"></div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<!-- /.modal-content -->
|
||
</div>
|
||
<!-- /.modal-dialog -->
|
||
</div>
|
||
<!-- /.настройка комнаты -->
|
||
{/if}
|
||
{include file=$footer} |