Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. Array
  2. (
  3. [Administrator] => Array
  4. (
  5. [0] => Array
  6. (
  7. [RoleName] => Administrator
  8. [PermissionName] => Catalog-View
  9. [PermissionId] => 1
  10. )
  11.  
  12. [1] => Array
  13. (
  14. [RoleName] => Administrator
  15. [PermissionName] => Catalog-Edit
  16. [PermissionId] => 2
  17. )
  18.  
  19. [2] => Array
  20. (
  21. [RoleName] => Administrator
  22. [PermissionName] => Catalog-Delete
  23. [PermissionId] => 3
  24. )
  25.  
  26. )
  27.  
  28. [Moderator] => Array
  29. (
  30. [0] => Array
  31. (
  32. [RoleName] => Moderator
  33. [PermissionName] => Catalog-View
  34. [PermissionId] => 1
  35. )
  36.  
  37. )
  38.  
  39. )
  40.  
  41. <table>
  42. <tr>
  43. <thead>
  44. <th>Controller - Action</th>
  45. {% for permission in permissions %}
  46. {% for item in permission %}
  47. <th>{{item.RoleName}}</th>
  48. {% endfor %}
  49. {% endfor %}
  50. </thead>
  51. </tr>
  52. {% for permission in permissions %}
  53. {% for item in permission %}
  54. <tr>
  55. <td>{{item.PermissionName}}</td>
  56. <td>{{item.PermissionId}}</td>
  57. </tr>
  58. {% endfor %}
  59. {% endfor %}
  60. </table>
  61.  
  62. <table>
  63. <tbody>
  64. <tr></tr>
  65. </tbody>
  66. <thead>
  67. <tr>
  68. <th>Controller - Action</th>
  69. <th>Administrator</th>
  70. <th>Administrator</th>
  71. <th>Administrator</th>
  72. <th>Moderator</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr>
  77. <td>Catalog-View</td>
  78. <td>1</td>
  79. </tr>
  80. <tr>
  81. <td>Catalog-Edit</td>
  82. <td>2</td>
  83. </tr>
  84. <tr>
  85. <td>Catalog-Delete</td>
  86. <td>3</td>
  87. </tr>
  88. <tr>
  89. <td>Catalog-View</td>
  90. <td>1</td>
  91. </tr>
  92. </tbody>
  93. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement