mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-12-25 21:41:13 -08:00
21f944c375
checkbox to an array allowing it to pass all three Vesta packages instead of just one.
142 lines
5.4 KiB
HTML
142 lines
5.4 KiB
HTML
<div class="l-center">
|
|
<div class="l-sort clearfix noselect">
|
|
<div class="l-sort-toolbar clearfix">
|
|
<table>
|
|
<tr>
|
|
<td class="step-right">
|
|
<? if($autoupdate == 'Enabled') {
|
|
echo '<a class="vst" href="/delete/cron/autoupdate/?token='.$_SESSION['token'].'">'.__('disable autoupdate').'</a>';
|
|
} else {
|
|
echo '<a class="vst" href="/add/cron/autoupdate/?token='.$_SESSION['token'].'">'.__('enable autoupdate').'</a>';
|
|
} ?>
|
|
</td>
|
|
<td class="l-sort-toolbar__search-box step-left">
|
|
<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>
|
|
<form action="/bulk/vesta/" method="post" id="objects">
|
|
<input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
|
|
<div class="l-select">
|
|
<select name="action" id="">
|
|
<option value=""><?=__('apply to selected')?></option>
|
|
<option value="update"><?php print __('update') ?></option>
|
|
</select>
|
|
</div>
|
|
<input type="submit" value="" class="l-sort-toolbar__filter-apply" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- /.l-sort -->
|
|
</div>
|
|
|
|
<div class="l-separator"></div>
|
|
<!-- /.l-separator -->
|
|
|
|
|
|
<div class="l-center units">
|
|
<?php
|
|
foreach ($data as $key => $value) {
|
|
++$i;
|
|
|
|
if ($data[$key]['UPDATED'] == 'yes') {
|
|
$status = 'active';
|
|
$upd_status = 'updated';
|
|
} else {
|
|
$status = 'suspended';
|
|
$upd_status = 'outdated';
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div class="l-unit<? if($status == 'suspended') echo ' l-unit--outdated';?>">
|
|
<div class="l-unit-toolbar clearfix">
|
|
<div class="l-unit-toolbar__col l-unit-toolbar__col--left">
|
|
<input id="check<?php echo $i ?>" class="ch-toggle" type="checkbox" name="pkg[]" value="<?php echo $key ?>">
|
|
<label for="check<?php echo $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">
|
|
<? if ($data[$key]['UPDATED'] == 'no') {
|
|
echo '<div class="actions-panel__col actions-panel__update shortcut-u" key-action="href"><a href="/update/vesta/?pkg='.$key.'&token='.$_SESSION['token'].'">'.__('update').'<i></i></a><span class="shortcut"> U</span></div>';
|
|
}
|
|
?>
|
|
</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">
|
|
<?=__($upd_status)?>
|
|
</div>
|
|
</div>
|
|
<!-- /.l-unit__col -->
|
|
<div class="l-unit__col l-unit__col--right">
|
|
<div class="l-unit__name separate">
|
|
<?=$key?>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="l-unit__stats">
|
|
<table>
|
|
|
|
<tr>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left"><b><?=__($data[$key]['DESCR'])?></b></div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--right">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('Version')?>:</div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--right">
|
|
<b><?=$data[$key]['VERSION'] ?></b> (<?=$data[$key]['ARCH']?>)
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="l-unit__stat-cols clearfix last">
|
|
<div class="l-unit__stat-col l-unit__stat-col--left compact"><?=__('Release')?>:</div>
|
|
<div class="l-unit__stat-col l-unit__stat-col--right">
|
|
<b><?=$data[$key]['RELEASE']?></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>
|