Advertisement
Guest User

Untitled

a guest
Jul 8th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.51 KB | None | 0 0
  1. <div class="table-responsive">
  2.     <table class="table table-striped">
  3.         <thead>
  4.         <tr>
  5.             <th><?php echo lang('client_name'); ?></th>
  6.             <th><?php echo lang('email_address'); ?></th>
  7.             <th><?php echo lang('phone_number'); ?></th>
  8.             <th style="text-align: right;"><?php echo lang('balance'); ?></th>
  9.             <th><?php echo lang('active'); ?></th>
  10.            
  11.             <th>My custom field table header</th>
  12.  
  13.             <th><?php echo lang('options'); ?></th>
  14.  
  15.         </tr>
  16.         </thead>
  17.         <tbody>
  18.         <?php foreach ($records as $client) { ?>
  19.             <tr>
  20.                 <td><?php echo anchor('clients/view/' . $client->client_id, $client->client_name); ?></td>
  21.                 <td><?php echo $client->client_email; ?></td>
  22.                 <td><?php echo(($client->client_phone ? $client->client_phone : ($client->client_mobile ? $client->client_mobile : ''))); ?></td>
  23.                 <td style="text-align: right;"><?php echo format_currency($client->client_invoice_balance); ?></td>
  24.                 <td><?php echo ($client->client_active) ? lang('yes') : lang('no'); ?></td>
  25.  
  26.                 <td><?php echo $client->client_custom_test; ?></td>
  27.  
  28.                 <td>
  29.                     <div class="options btn-group">
  30.                         <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#">
  31.                             <i class="fa fa-cog"></i> <?php echo lang('options'); ?>
  32.                         </a>
  33.                         <ul class="dropdown-menu">
  34.                             <li>
  35.                                 <a href="<?php echo site_url('clients/view/' . $client->client_id); ?>">
  36.                                     <i class="fa fa-eye fa-margin"></i> <?php echo lang('view'); ?>
  37.                                 </a>
  38.                             </li>
  39.                             <li>
  40.                                 <a href="<?php echo site_url('clients/form/' . $client->client_id); ?>">
  41.                                     <i class="fa fa-edit fa-margin"></i> <?php echo lang('edit'); ?>
  42.                                 </a>
  43.                             </li>
  44.                             <li>
  45.                                 <a href="#" class="client-create-quote"
  46.                                   data-client-name="<?php echo $client->client_name; ?>">
  47.                                     <i class="fa fa-file fa-margin"></i> <?php echo lang('create_quote'); ?>
  48.                                 </a>
  49.                             </li>
  50.                             <li>
  51.                                 <a href="#" class="client-create-invoice"
  52.                                   data-client-name="<?php echo $client->client_name; ?>">
  53.                                     <i class="fa fa-file-text fa-margin"></i> <?php echo lang('create_invoice'); ?>
  54.                                 </a>
  55.                             </li>
  56.                             <li>
  57.                                 <a href="<?php echo site_url('clients/delete/' . $client->client_id); ?>"
  58.                                    onclick="return confirm('<?php echo lang('delete_client_warning'); ?>');">
  59.                                     <i class="fa fa-trash-o fa-margin"></i> <?php echo lang('delete'); ?>
  60.                                 </a>
  61.                             </li>
  62.                         </ul>
  63.                     </div>
  64.                 </td>
  65.             </tr>
  66.         <?php } ?>
  67.         </tbody>
  68.     </table>
  69. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement