ACC SHELL

Path : /srv/www/vhosts/tsisystem/app/views/customers/
File Upload :
Current File : //srv/www/vhosts/tsisystem/app/views/customers/admin_index.thtml

<?php 
   $pagination->setPaging($paging);

   global $DOMAINS;
   $domains = $DOMAINS;

   $domains = array_keys($domains); $domains[0] = '';
?>
<div id="main">
  <div style="padding: 1em">

	<h1>Zákazníci</h1>

<?php   echo ($filter->setFiltering($filters)); ?>

<table class="list">
<tr>
	<th><?php echo $pagination->sortLink('id', '#', 1); ?></th>
	<th>Firma/Jméno/Funkce</th>
	<th>Email</th>
	<th>Adresa</th>
	<th>Telefon/Fax</th>
	<th>Nobinky?/Zájem</th>
	<th>Stav</th>
	<th><?php echo $pagination->sortLink('created_d', 'Registrace'); ?></th>
	<th>Akce</th>
</tr>
<?php foreach ($customers as $customer): ?>
<tr>
	<td><?php echo $customer['Customer']['id'] ?></td>
	<td>
	  <?php
		 if ($customer['Customer']['firm']) :
		    echo '<b>' . preg_replace('/\s+/', ' ', $customer['Customer']['firm']) . '</b>,<br />';
		 endif;
	  ?>
  	  <?php echo $customer['Customer']['real_name'] ?><br />
	  <?php echo $customer['Customer']['role'] ?>
	</td>
	<td><?php echo $customer['Customer']['email'] ?></td>
	<td><?php
		   echo html_address($customer['Customer']['address']);
	?></td>
	<td>
	  <?php echo $customer['Customer']['phone'] ? $customer['Customer']['phone'] : '-'; ?><br />
	  <?php echo $customer['Customer']['fax'] ? $customer['Customer']['fax'] : '-' ?>
	</td>
	<td>
	  <b><?php echo $customer['Customer']['send_news'] ? 'Ano' : 'Ne'; ?></b><br />
	  <?php echo @$domains[$customer['Customer']['interest']] ? $domains[$customer['Customer']['interest']]  : '-'?>
	</td>
	<td>
	  <?php if ($customer['Customer']['pass'][0] == '!') : ?>
	  Zakázán (<?php echo $html->link('povolit', '/admin/customers/enable/?id='
	  . $customer['Customer']['id']); ?>)
	  <?php else: ?>
	  Povolen (<?php echo $html->link('zakázat', '/admin/customers/disable/?id='
	  . $customer['Customer']['id']); ?>)
	  <?php endif; ?>
	</td>
	<td><?php echo toDateTime($customer['Customer']['created_d']); ?></td>
<td><?php echo $html->link('Smaž','/admin/customers/delete/' . $customer['Customer']['id'], array('onclick' => 'return confirm(\'Opravdu smazat?\')'))?>
</td>
</tr>
<?php endforeach; ?>
</table>

    <div class="pagination">
      <?php
 if($paging):
     echo $pagination->pageNumbers(NULL, NULL, '&nbsp;');
  endif;
         ; ?>
    </div>

  </div>
</div>

ACC SHELL 2018