mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
The New Desing
This commit is contained in:
parent
def9cc4ea6
commit
067a2c862a
305 changed files with 22231 additions and 7576 deletions
|
@ -1,34 +1,63 @@
|
|||
<table class="submenu">
|
||||
<tr>
|
||||
<td class="wrapper">
|
||||
<div class="submenu-button-block">
|
||||
<button class="submenu-button-main" onclick="location.href='/add/web/'"> <?php print __('Add Web Domain');?> </button>
|
||||
</div>
|
||||
<div class="submenu-search-block">
|
||||
<form action="/search/" method="get">
|
||||
<input type="text" name="q" class="submenu-search-field">
|
||||
<input type="submit" value="<?php print __('Search');?>" class="submenu-button-search">
|
||||
</form>
|
||||
</div>
|
||||
<div class="submenu-select-block">
|
||||
<form action="/bulk/web/" method="post" id="objects">
|
||||
<a class="submenu-select-link" href='javascript:checkedAll("objects");'> <?php print __('toggle all');?> </a>
|
||||
<select class="submenu-select-dropdown" name="action">
|
||||
<option value=""><?php print __('apply to selected');?></option>
|
||||
<option value="suspend"><?php print __('suspend');?></option>
|
||||
<option value="unsuspend"><?php print __('unsuspend');?></option>
|
||||
<option value="delete"><?php print __('delete');?></option>
|
||||
</select>
|
||||
<input type="submit" name="ok" value="›" class="submenu-button-select">
|
||||
</div>
|
||||
<?php display_error_block(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="l-center">
|
||||
<div class="l-sort clearfix noselect">
|
||||
<a href="/add/web/" class="l-sort__create-btn" title="<?=str_replace(' ', ' ', __('Add Web Domain'))?>"></a>
|
||||
<ul class="context-menu sort-order" style="display:none;">
|
||||
<li entity="date"><span class="name active">date</span><span class="up"> </span></li>
|
||||
<li entity="name"><span class="name">name</span><span class="up"> </span></li>
|
||||
<li entity="ip"><span class="name">ip</span><span class="up"> </span></li>
|
||||
</ul>
|
||||
<div class="l-sort-toolbar clearfix">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="l-sort-toolbar__search-box">
|
||||
<form action="/search/" method="get">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<input type="text" name="q" class="search-input" value="<? echo isset($_POST['q']) ? htmlspecialchars($_POST['q']) : '' ?>" />
|
||||
<input type="submit" value="" class="l-sort-toolbar__search" onClick="return doSearch('/search/')" />
|
||||
</form>
|
||||
</td>
|
||||
<td class="toggle-all">
|
||||
<input id="toggle-all" type="checkbox" name="toggle-all" value="toggle-all" onChange="checkedAll('objects');">
|
||||
<label for="toggle-all" class="check-label toggle-all"><?=__('toggle all')?></label>
|
||||
</td>
|
||||
<td class="sort-by">
|
||||
<?=__('sort by');?>: <span><b><?=__('DATE')?></b></span> <i class="l-icon-down-arrow media-top"></i>
|
||||
</td>
|
||||
<td>
|
||||
<form action="/bulk/web/" method="post" id="objects">
|
||||
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
||||
<div class="l-select">
|
||||
<select name="action">
|
||||
<option value=""><?=__('apply to selected')?></option>
|
||||
<option value="suspend"><?=__('suspend')?></option>
|
||||
<option value="unsuspend"><?=__('unsuspend')?></option>
|
||||
<option value="delete"><?=__('delete')?></option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="submit" class="l-sort-toolbar__filter-apply" value=""/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
|
||||
<div id="vstobjects">
|
||||
<table class='data'>
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="l-center units">
|
||||
<?php
|
||||
foreach ($data as $key => $value) {
|
||||
++$i;
|
||||
|
@ -83,156 +112,193 @@
|
|||
$proxy_ext_title = '';
|
||||
$proxy_ext = str_replace(',', ', ', $data[$key]['PROXY_EXT']);
|
||||
}
|
||||
?>
|
||||
<tr class="data-row <? if($status == 'suspended') echo 'suspended';?>">
|
||||
<td class="data-dotted">
|
||||
<table class="data-col1">
|
||||
<tr><td><input type="checkbox" class="ch-toggle" name="domain[]" value="<?php echo $key ?>" ></td></tr>
|
||||
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo strftime("%d %b %Y", strtotime($data[$key]['DATE'])) ?></a></td></tr>
|
||||
<tr><td class="data-<?php echo $status ?>"><b><?php echo __($status) ?></b></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="data-dotted">
|
||||
<a id="delete_link_<?php echo $i ?>" class="data-controls do_delete">
|
||||
<span class="do_delete">
|
||||
<img src="/images/delete.png" width="7px" height="7px">
|
||||
<?php print __('delete');?>
|
||||
<input type="hidden" name="delete_url" value="/delete/web/?domain=<?php echo $key ?>" />
|
||||
<div id="delete_dialog_<?php echo $i ?>" class="confirmation-text-delete hidden" title="<?php print __('Confirmation');?>">
|
||||
<p class="confirmation"><?php print __('DELETE_DOMAIN_CONFIRMATION',$key);?></p>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<a id="<?php echo $spnd_action ?>_link_<?php echo $i ?>" class="data-controls do_<?php echo $spnd_action ?>">
|
||||
<span class="do_<?php echo $spnd_action ?>">
|
||||
<img src="/images/suspend.png" width="7px" height="8px">
|
||||
<?php echo __($spnd_action); ?>
|
||||
<input type="hidden" name="<?php echo $spnd_action ?>_url" value="/<?php echo $spnd_action ?>/web/?domain=<?php echo $key ?>" />
|
||||
<div id="<?php echo $spnd_action ?>_dialog_<?php echo $i ?>" class="confirmation-text-suspention hidden" title="<?php print __('Confirmation');?>">
|
||||
<p class="confirmation"><?php print __($spnd_confirmation,$key);?></p>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/edit/web/?domain=<?php echo $key ?>" class="data-controls">
|
||||
<span>
|
||||
<img src="/images/edit.png" width="8px" height="8px">
|
||||
<?php print __('edit');?>
|
||||
</span>
|
||||
</a>
|
||||
<a href="/list/web-log/?domain=<?php echo $key ?>&type=access" target="_blank" class="data-controls">
|
||||
<span>
|
||||
<img src="/images/new_window.png" width="8px" height="8px">
|
||||
<?php print __('view logs');?>
|
||||
</span>
|
||||
</a>
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (!empty($data[$key]['STATS'])) {
|
||||
?>
|
||||
<a href="http://<?php echo $key ?>/vstats/" target="_blank" class="data-controls">
|
||||
<span>
|
||||
<img src="/images/stats.png" width="8px" height="8px">
|
||||
<?php print __('open webstats');?>
|
||||
</span>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<table class="data-col2">
|
||||
<tr>
|
||||
<td colspan=3 class="domain">
|
||||
<?php echo $key ?>
|
||||
<a class="aliases"><?php echo str_replace(',', ', ', $data[$key]['ALIAS']) ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="vertical-align:top;" width="239px">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="counter-name">
|
||||
<?php echo $data[$key]['IP'] ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2><div style="height:5px;"></div></td></tr>
|
||||
<tr>
|
||||
<td class="chart" style="padding: 4px 0 0 0;">
|
||||
<?php print __('Bandwidth');?>: <?php echo humanize_usage($data[$key]['U_BANDWIDTH']) ?>
|
||||
<div class="bar mini" title="<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%">
|
||||
<div class="fill mini" style="width:<?php echo get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH']) ?>%"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="chart">
|
||||
<?php print __('Disk');?>: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
|
||||
<div class="bar mini" title="<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%">
|
||||
<div class="fill mini" style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%"></div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="vertical-align:top;" width="238px">
|
||||
<table>
|
||||
<tr><td> </td><td></td></tr>
|
||||
<tr>
|
||||
<td class="counter-name"><?php print __('Web Template');?>:</td>
|
||||
<td class="counter-value"><?php print __($data[$key]['TPL']) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="counter-name"><?php print __('SSL Support');?>:</td>
|
||||
<td class="counter-value"><?php print __($data[$key]['SSL']) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="counter-name"><?php print __('Web Statistics');?>: </td>
|
||||
<td class="counter-value"> <?php print __($web_stats) ?></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
<td rowspan=4 style="vertical-align:top;">
|
||||
<table>
|
||||
<tr><td> </td><td></td></tr>
|
||||
<?php if (!empty($_SESSION['WEB_BACKEND'])) { echo ""; ?>
|
||||
<tr>
|
||||
<td class="counter-name"><?php print __('Backend Template');?>:</td>
|
||||
<td class="counter-value"><?php echo $data[$key]['BACKEND'];?></td>
|
||||
</tr>
|
||||
<?php echo ""; }?>
|
||||
<?php if (!empty($_SESSION['PROXY_SYSTEM'])) { echo ""; ?>
|
||||
<tr>
|
||||
<td class="counter-name"><?php print __('Proxy Support');?>:</td>
|
||||
<td class="counter-value"><?php print __($proxy_support);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="counter-name"><?php print __('Proxy Template');?>:</td>
|
||||
<td class="counter-value"><?php echo $data[$key]['PROXY'];?></td>
|
||||
</tr>
|
||||
<?php echo ""; }?>
|
||||
<tr>
|
||||
<td class="counter-name"> <?php print __('Additional FTP Account');?>:</td>
|
||||
<td class="counter-value"> <?php print __($ftp_user) ?></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</form>
|
||||
<div class="l-unit <? if($data[$key]['SUSPENDED'] == 'yes') echo 'l-unit--suspended';?>" id="web-unit-<?=$i?>">
|
||||
<div class="l-unit-toolbar clearfix">
|
||||
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
||||
<input id="check<?=$i?>" class="ch-toggle" type="checkbox" name="domain[]" value="<?=$key?>">
|
||||
<label for="check<?=$i?>" class="check-label"></label>
|
||||
</div>
|
||||
<!-- l-unit-toolbar__col -->
|
||||
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
||||
<div class="actions-panel clearfix">
|
||||
<div class="actions-panel__col actions-panel__edit"><a href="/edit/web/?domain=<?=$key?>"><?=__('edit')?> <i></i></a></div>
|
||||
<div class="actions-panel__col actions-panel__logs"><a href="/list/web-log/?domain=<?php echo $key ?>&type=access#" target="_blank"><?=__('view logs')?> <i></i></a></div>
|
||||
<? if (!empty($data[$key]['STATS'])) { ?>
|
||||
<div class="actions-panel__col actions-panel__logs"><a href="http://<?=$key?>/vstats/" target="_blank"><?=__('open webstats')?> <i></i></a></div>
|
||||
<? } ?>
|
||||
<div class="actions-panel__col actions-panel__suspend">
|
||||
<a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_<?=$spnd_action?>">
|
||||
<?=__($spnd_action)?> <i class="do_<?=$spnd_action?>"></i>
|
||||
<input type="hidden" name="<?=$spnd_action?>_url" value="/<?=$spnd_action?>/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" />
|
||||
<div id="<?=$spnd_action?>_dialog_<?=$i?>" class="confirmation-text-suspention hidden" title="<?=__('Confirmation')?>">
|
||||
<p class="confirmation"><?=__($spnd_confirmation,$key)?></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="actions-panel__col actions-panel__delete">
|
||||
<a id="delete_link_<?=$i?>" class="data-controls do_delete">
|
||||
<?=__('delete')?> <i class="do_delete"></i>
|
||||
<input type="hidden" name="delete_url" value="/delete/web/?domain=<?=$key?>&token=<?=$_SESSION['token']?>" />
|
||||
<div id="delete_dialog_<?=$i?>" class="confirmation-text-delete hidden" title="<?=__('Confirmation')?>">
|
||||
<p class="confirmation"><?=__('DELETE_DOMAIN_CONFIRMATION',$key)?></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="data-count">
|
||||
<?php
|
||||
if ( $i == 1) {
|
||||
echo __('1 domain');
|
||||
} else {
|
||||
echo __('%s domains',$i);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!-- /.actiona-panel -->
|
||||
</div>
|
||||
<!-- l-unit-toolbar__col -->
|
||||
</div>
|
||||
<!-- /.l-unit-toolbar -->
|
||||
|
||||
<div class="l-unit__col l-unit__col--left clearfix">
|
||||
<div class="l-unit__date" u_date="<?=strtotime('1/1/2011')?>">
|
||||
<?=strftime("%d %b %Y", strtotime($data[$key]['DATE']))?>
|
||||
</div>
|
||||
<div class="l-unit__suspended"">suspended</div>
|
||||
</div>
|
||||
<!-- /.l-unit__col -->
|
||||
<div class="l-unit__col l-unit__col--right">
|
||||
<div class="l-unit__name" u_name="<?=$key?>">
|
||||
<?=$key?> <span><?=str_replace(',', ', ', $data[$key]['ALIAS'])?></span>
|
||||
</div>
|
||||
<!-- /.l-unit__name -->
|
||||
<div class="l-unit__ip">
|
||||
<?=str_replace('.', ' . ', $data[$key]['IP'])?>
|
||||
</div>
|
||||
<!-- /.l-unit__ip -->
|
||||
<div class="l-unit__stats">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="l-unit__stat-cols clearfix graph">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left">
|
||||
<?=__('Bandwidth')?>
|
||||
</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right text-right volume">
|
||||
<b><?=humanize_usage($data[$key]['U_BANDWIDTH'])?></b> <?=humanize_usage($data[$key]['U_BANDWIDTH'])?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="l-percent">
|
||||
<div class="l-percent__fill" style="width: <?=get_percentage($data[$key]['U_BANDWIDTH'],$panel[$user]['BANDWIDTH'])?>%"></div>
|
||||
</div>
|
||||
<!-- /.percent -->
|
||||
</td>
|
||||
<td>
|
||||
<div class="l-unit__stat-cols clearfix">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Web Template')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=__($data[$key]['TPL'])?></b>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<? if($proxy_support == 'no'){ ?>
|
||||
<div class="l-unit__stat-cols clearfix disabled last"><?=__('Proxy Support')?></div>
|
||||
<? } else {?>
|
||||
<div class="l-unit__stat-cols clearfix last">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Proxy Support')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=__($proxy_support)?></b>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<? if($data[$key]['SSL'] == 'no'){ ?>
|
||||
<div class="l-unit__stat-cols clearfix disabled"><?=__('SSL Support')?></div>
|
||||
<? } else {?>
|
||||
<div class="l-unit__stat-cols clearfix">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('SSL Support')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=__($data[$key]['SSL'])?></b>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
</td>
|
||||
<td>
|
||||
<div class="l-unit__stat-cols clearfix last">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Proxy Template')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=$data[$key]['PROXY']?></b>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="l-unit__stat-cols clearfix graph">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Disk')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right text-right volume">
|
||||
<b><?=humanize_usage($data[$key]['U_DISK'])?></b> <?=humanize_usage($data[$key]['U_DISK'])?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="l-percent">
|
||||
<div class="l-percent__fill" style="width: <?=get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA'])?>%"></div>
|
||||
</div>
|
||||
<!-- /.percent -->
|
||||
</td>
|
||||
<td>
|
||||
<? if($web_stats == 'no'){ ?>
|
||||
<div class="l-unit__stat-cols clearfix disabled"><?=__('Web Statistics')?></div>
|
||||
<? } else {?>
|
||||
<div class="l-unit__stat-cols clearfix">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Web Statistics')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=__($web_stats)?></b>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
</td>
|
||||
<td>
|
||||
<? if($ftp_user == 'no'){ ?>
|
||||
<div class="l-unit__stat-cols clearfix last disabled"><?=__('Additional FTP Account')?></div>
|
||||
<? } else {?>
|
||||
<div class="l-unit__stat-cols clearfix last">
|
||||
<div class="l-unit__stat-col l-unit__stat-col--left"><?=__('Additional FTP Account')?>:</div>
|
||||
<div class="l-unit__stat-col l-unit__stat-col--right">
|
||||
<b><?=__($ftp_user)?></b>
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /.l-unit__stats -->
|
||||
</div>
|
||||
<!-- /.l-unit__col -->
|
||||
</div>
|
||||
<!-- /.l-unit -->
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
<?}?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="vstobjects">
|
||||
<div class="l-separator"></div>
|
||||
<div class="l-center">
|
||||
<div class="l-unit-ft">
|
||||
<div class="l-unit__col l-unit__col--left clearfix"></div>
|
||||
<div class="data-count l-unit__col l-unit__col--right clearfix">
|
||||
<?php
|
||||
if ( $i == 1) {
|
||||
echo __('1 domain');
|
||||
} else {
|
||||
echo __('%s domains',$i);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue