updated cron list layout

This commit is contained in:
Serghey Rodin 2014-01-26 22:19:39 +02:00
commit d23b35c9d1
2 changed files with 41 additions and 72 deletions

View file

@ -118,7 +118,7 @@
<?php echo $data[$key]['MONTH'] ?> <?php echo $data[$key]['MONTH'] ?>
</div> </div>
</td> </td>
<td style="vertical-align:top; width:80px"> <td style="vertical-align:top; width:180px">
<div class="cron-counter-name"> <div class="cron-counter-name">
<?php print __('Day of week');?> <?php print __('Day of week');?>
</div> </div>

View file

@ -6,8 +6,8 @@
</div> </div>
<div class="submenu-search-block"> <div class="submenu-search-block">
<form action="/search/" method="get"> <form action="/search/" method="get">
<input type="text" name="q" class="submenu-search-field"> <input type="text" name="q" class="submenu-search-field">
<input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;"> <input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
</form> </form>
</div> </div>
<div class="submenu-select-block"> <div class="submenu-select-block">
@ -33,10 +33,8 @@
++$i; ++$i;
if ($data[$key]['SUSPENDED'] == 'yes') { if ($data[$key]['SUSPENDED'] == 'yes') {
$status = 'suspended'; $status = 'suspended';
$spnd_action = 'unsuspend' ;
} else { } else {
$status = 'active'; $status = 'active';
$spnd_action = 'suspend';
} }
?> ?>
@ -67,81 +65,52 @@
</a> </a>
<table class="data-col2" width="800px"> <table class="data-col2" width="800px">
<tr> <tr>
<td colspan=5 class="cron" style="padding: 0 0 0 4px;"> <td colspan=6 class="cron">
<b><?php echo htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES) ?></b> <b><?php echo htmlspecialchars($data[$key]['CMD'], ENT_NOQUOTES) ?></b>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="vertical-align:top;" width="80px"> <td style="vertical-align:top; width:80px">
<table> <div class="cron-counter-name">
<tr> <?php print __('Min');?>
<td class="cron-counter-name"> </div>
<?php print __('Min');?> <div class="cron-counter-value">
</td> <?php echo $data[$key]['MIN'] ?>
</tr> </div>
<tr>
<td class="cron-counter-value">
<?php echo $data[$key]['MIN'] ?>
</td>
</tr>
</table>
</td> </td>
<td style="vertical-align:top;" width="80px"> <td style="vertical-align:top; width:80px">
<table> <div class="cron-counter-name">
<tr> <?php print __('Hour');?>
<td class="cron-counter-name"> </div>
<?php print __('Hour');?> <div class="cron-counter-value">
</td> <?php echo $data[$key]['HOUR'] ?>
</tr> </div>
<tr>
<td class="cron-counter-value">
<?php echo $data[$key]['HOUR'] ?>
</td>
</tr>
</table>
</td> </td>
<td style="vertical-align:top;" width="80px"> <td style="vertical-align:top; width:80px">
<table> <div class="cron-counter-name">
<tr> <?php print __('Day');?>
<td class="cron-counter-name"> </div>
<?php print __('Day');?> <div class="cron-counter-value">
</td> <?php echo $data[$key]['DAY'] ?>
</tr> </div>
<tr>
<td class="cron-counter-value">
<?php echo $data[$key]['DAY'] ?>
</td>
</tr>
</table>
</td> </td>
<td style="vertical-align:top;" width="80px"> <td style="vertical-align:top; width:80px">
<table> <div class="cron-counter-name">
<tr> <?php print __('Month');?>
<td class="cron-counter-name"> </div>
<?php print __('Month');?> <div class="cron-counter-value">
</td> <?php echo $data[$key]['MONTH'] ?>
</tr> </div>
<tr>
<td class="cron-counter-value">
<?php echo $data[$key]['MONTH'] ?>
</td>
</tr>
</table>
</td> </td>
<td style="vertical-align:top;"> <td style="vertical-align:top; width:180px">
<table> <div class="cron-counter-name">
<tr> <?php print __('Day of week');?>
<td class="cron-counter-name"> </div>
<?php print __('Day of week');?> <div class="cron-counter-value">
</td> <?php echo $data[$key]['WDAY'] ?>
</tr> </div>
<tr>
<td class="cron-counter-value">
<?php echo $data[$key]['WDAY'] ?>
</td>
</tr>
</table>
</td> </td>
<td style="vertical-align:top;"></td>
</tr> </tr>
</table> </table>
</td> </td>
@ -155,7 +124,7 @@
<table class="data-count"> <table class="data-count">
<tr> <tr>
<td width="160px"></td> <td width="168px"></td>
<td> <td>
<?php <?php
if ( $i == 1) { if ( $i == 1) {