-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from pentium10/master
enhanced memory/cpu usage
- Loading branch information
Showing
4 changed files
with
163 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div id="servers-add" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="servers-add-label" aria-hidden="true"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> | ||
<h4 class="modal-title" id="servers-add-labal">Add Server</h4> | ||
|
||
</div> | ||
<div class="modal-body"> | ||
<form class="form-horizontal"> | ||
<div class="form-group"> | ||
<label class="control-label col-sm-2" for="host">Host</label> | ||
|
||
<div class="col-sm-10"> | ||
<input type="text" id="host" value="localhost" class="form-control"> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label col-sm-2" for="port">Port</label> | ||
|
||
<div class="col-sm-10"> | ||
<input type="text" id="port" value="<?php echo Pheanstalk::DEFAULT_PORT ?>" class="form-control"> | ||
</div> | ||
</div> | ||
|
||
|
||
</form> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn btn-info">Add server</button> | ||
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<div id="filterServer" data-cookie="filter" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="servers-add-label" aria-hidden="true"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
<h3 id="filter-label" class="text-info">Filter columns</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<form class="form-group"> | ||
<div class="tabbable"> | ||
<ul class="nav nav-tabs"> | ||
<?php | ||
$i = 0; | ||
foreach ($console->getServerStatsGroups() as $groupName => $fields): $i++; | ||
?> | ||
<li <?php if ($i == 1) echo 'class="active"' ?>><a href="#<?php echo $groupName ?>" data-toggle="tab"><?php echo $groupName ?></a></li> | ||
<?php endforeach ?> | ||
</ul> | ||
<div class="tab-content"> | ||
<?php | ||
$i = 0; | ||
foreach ($console->getServerStatsGroups() as $groupName => $fields): $i++; | ||
?> | ||
<div class="tab-pane <?php if ($i == 1) echo 'active' ?>" id="<?php echo $groupName ?>"> | ||
<?php foreach ($fields as $key => $description): ?> | ||
<div class="control-group"> | ||
<div class="controls"> | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" name="<?php echo $key ?>" <?php if (in_array($key, $visible)) echo 'checked="checked"' ?>> | ||
<b><?php echo $key ?></b> | ||
<br/><?php echo $description ?> | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
<?php endforeach ?> | ||
</div> | ||
<?php endforeach ?> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters