<?php if (!$model->isNewrecord && $model->rcon) { ?> <table class="table table-bordered"> <thead> <tr> <th> Отправить RCON команду на сервер </th> </tr> </thead> <tbody> <tr> <td> <?php echo CHtml::dropDownList('', '', Serverinfo::getCommands(), array('id' => 'commandlist', 'style' => 'margin-top: 10px')); ?> <?php echo CHtml::textField('', '', array('id' => 'command', 'style' => 'margin-top: 10px')); ?> <?php echo CHtml::button('Отправить', array('id' => 'sendcommand', 'class' => 'btn btn-info')); ?> </td> </tr> <tr> <td> <pre id="output" style="min-height: 400px; font-size: 12px"></pre> </td>
?> <table class="table table-bordered"> <thead> <tr> <th> Отправить RCON команду на сервер </th> </tr> </thead> <tbody> <tr> <td> <div class="input-group"> <span class="input-group-btn"> <?php echo CHtml::dropDownList('', '', Serverinfo::getCommands(), array('id' => 'commandlist', 'class' => 'form-control', 'style' => 'width: 150px')); ?> </span> <input type="text" class="form-control" id="command"> <span class="input-group-btn"> <button type="button" class="btn btn-info" id="sendcommand">Отправить</button> </span> </div> </td> </tr> <tr> <td> <pre id="output" style="min-height: 400px; font-size: 12px"></pre> </td> </tr> </tbody>