<!-- client/all.phtml -->

<h1><?php echo $this->escape($this->title); ?></h1>

<?php if ($this->clients): ?>
<table id="box-table">
<thead>
<tr>
     <th scope="col"> <?php print $this->translate->_("Name"); ?> </th>
     <th scope="col"> <?php print $this->translate->_("Client Version"); ?> </th>
     <th scope="col"> <?php print $this->translate->_("Auto Prune"); ?> </th>
     <th scope="col"> <?php print $this->translate->_("Files Retention<br />days"); ?> </th>
     <th scope="col"> <?php print $this->translate->_("Jobs Retention<br />days"); ?> </th>
</tr>
</thead>
<tbody>
<?php foreach($this->clients as $client) : ?>
<tr>
     <td>
        <a href="<?php echo $this->baseUrl, "/client/status-client-id/id/", $this->escape($client['clientid']),
     	  "/name/", $this->escape($client['name']); ?>" title="<?php echo $this->translate->_("Client Detail");?>">
		  <?php echo $this->escape($client['name']);?>
		</a>
	</td>

     <td><?php echo $this->escape($client['uname']);?></td>
     <td align="center"><?php echo $this->int2Char($this->escape($client['autoprune']));?></td>
     <td align="center"><?php echo $this->convSecondsToDays($this->escape($client['fileretention']));?></td>
     <td align="center"><?php echo $this->convSecondsToDays($this->escape($client['jobretention']));?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>

<?php else: ?>
<div class="ui-widget" style="float: left;">
    <div class="ui-state-highlight ui-corner-all" style="padding: 0pt 0.7em; margin-top: 20px;">
        <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.3em;"></span>
        <strong><?php print $this->translate->_("No Clients found.");?></strong></p>
    </div>
</div>
<div style="clear: both;"><!--  --></div>
<?php endif; ?>