Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

centersList.view.php 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php echo $this->partial('Layout/nav'); ?>
  2. <div class="container-fluid">
  3. <div class="container-page-wrapper shodowed bordered">
  4. <div class="container-page-container">
  5. <?php //debug($this->view->centers); ?>
  6. <div class="row">
  7. <div class="col-lg-8">
  8. <h1><?php echo $this->actionTitle; ?></h1>
  9. </div>
  10. <div class="col-lg-4 clearfix">
  11. <div class="float-right">
  12. <div class="float-left margin-right-20">
  13. <!-- Other buttons... -->
  14. </div>
  15. <div class="float-right">
  16. <!-- Other buttons... -->
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="table-overflow">
  22. <form id="table-search-users">
  23. <table class="table table-hover">
  24. <thead class="thead-light">
  25. <tr>
  26. <th nowrap><?php echo _('Name'); ?></th>
  27. <th nowrap><?php echo _('Continent'); ?></th>
  28. <th nowrap><?php echo _('Country'); ?></th>
  29. <th nowrap><?php echo _('Anonymize'); ?></th>
  30. <th nowrap><?php echo _('Notes'); ?></th>
  31. <th nowrap><?php echo _('Med. Spec.'); ?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php if (!empty($this->view->centers)): ?>
  36. <?php foreach($this->view->centers as $centers): ?>
  37. <tr>
  38. <td><?php echo $centers['description']; ?></td>
  39. <td><?php echo $centers['continent_name']; ?></td>
  40. <td><?php echo $centers['country_name']; ?></td>
  41. <td class="text-center"><?php echo (int)$centers['anonymize'] == 1 ? _('Yes') : _('No'); ?></td>
  42. <td><?php echo $centers['notes']; ?></td>
  43. <td>
  44. <?php foreach($centers['specialties'] as $specialties): ?>
  45. <?php $badgeClass = $specialties['active'] ? 'light' : 'danger' ?>
  46. <?php echo '<span class="badge badge-'.$badgeClass.'">', $specialties['description'], '</span>'; ?>
  47. <?php endforeach; ?>
  48. </td>
  49. </tr>
  50. <?php endforeach; ?>
  51. <?php endif; ?>
  52. </tbody>
  53. </table>
  54. <?php if (empty($this->view->centers)): ?>
  55. <div class="alert alert-warning" role="alert">
  56. <?php echo _('No data available in this list.'); ?>
  57. </div>
  58. <?php endif; ?>
  59. </form>
  60. </div>
  61. </div>
  62. </div>