Guest User

Untitled

a guest
Oct 19th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <?php
  2. $this->title = "Browse Person";
  3. $this->headTitle($this->title);
  4. ?>
  5. <p>
  6. <a href="<?php echo $this->url(array('controller' => 'people', 'action' => 'add'));?>">Add New Person</a>
  7. </p>
  8. <table>
  9. <tr>
  10. <th>
  11. First Name
  12. </th>
  13. <th>
  14. Last Name
  15. </th>
  16. <th>
  17. City
  18. </th>
  19. <th>
  20. State
  21. </th>
  22. <th>
  23. Country
  24. </th>
  25. <th>
  26. Date of Birth
  27. </th>
  28. <th>
  29. Zip Code
  30. </th>
  31. </tr>
  32. <?php foreach($this->people as $people) : ?>
  33. <tr>
  34. <td>
  35. <?php echo $this->escape($people->first_name);?>
  36. </td>
  37. <td>
  38. <?php echo $this->escape($people->last_name);?>
  39. </td>
  40. <td>
  41. <?php echo $this->escape($people->city_id);?>
  42. </td>
  43. <td>
  44. <?php echo $this->escape($people->state_id);?>
  45. </td>
  46. <td>
  47. <?php echo $this->escape($people->country_id);?>
  48. </td>
  49. <td>
  50. <?php echo $this->escape($people->dob);?>
  51. </td>
  52. <td>
  53. <?php echo $this->escape($people->zip_code);?>
  54. </td>
  55. <td>
  56. <a href="<?php echo $this->url(array('controller'=>'people', 'action'=>'edit', 'id'=>$person->person_id));?>">Edit</a>
  57. <a href="<?php echo $this->url(array('controller'=>'people', 'action'=>'delete', 'id'=>$album->person_id));?>">Delete</a>
  58. </td>
  59. </tr>
  60. <?php endforeach; ?>
  61. </table>
Add Comment
Please, Sign In to add comment