Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.20 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
  2.  
  3. <?php echo text_output($header, 'h1', 'page-head');?>
  4.  
  5. <div id="loader" class="loader">
  6. <?php echo img($loader);?>
  7. <?php echo text_output($label['loading'], 'h3', 'gray');?>
  8. </div>
  9.  
  10. <div id="manifest" class="hidden">
  11. <?php if (isset($manifests)): ?>
  12. <div class="fontSmall line_height_18">
  13. <strong><?php echo $label['manifests'];?> &mdash;</strong>
  14. <?php $i = 1;?>
  15. <?php foreach ($manifests as $m): ?>
  16. <?php echo anchor('personnel/index/'.$m['id'], $m['name'], array('rel' => 'tooltip', 'title' => $m['desc']));?>
  17. <?php if ($i < count($manifests)): ?>
  18. &middot;
  19. <?php endif;?>
  20. <?php ++$i;?>
  21. <?php endforeach;?>
  22. </div>
  23. <hr />
  24. <?php endif;?>
  25.  
  26. <?php echo text_output($manifest_header);?>
  27.  
  28. <!-- manifest navigation table -->
  29. <div class="fontSmall line_height_18">
  30. <strong><?php echo $label['show'];?></strong> &mdash;
  31. <?php echo anchor('#', $label['all_chars'], array('id' => 'all'));?> &middot;
  32. <?php echo anchor('#', $label['playing_chars'], array('id' => 'active'));?> &middot;
  33. <?php echo anchor('#', $label['npcs'], array('id' => 'npc'));?> &middot;
  34. <?php echo anchor('#', $label['open'], array('id' => 'open'));?> &middot;
  35. <?php echo anchor('#', $label['inactive_chars'], array('id' => 'inactive'));?>
  36.  
  37. <br /><strong><?php echo $label['toggle'];?></strong> &mdash;
  38. <?php if($display == 'open'): ?>
  39. <?php else: ?>
  40. <?php echo anchor('#', $label['open'], array('id' => 'toggle_open'));?> &middot;
  41. <?php endif; ?>
  42. <?php echo anchor('#', $label['npcs'], array('id' => 'toggle_npc'));?>
  43. </div>
  44.  
  45. <?php if (isset($top)): ?>
  46. <div id="top-open" class="hidden">
  47. <br />
  48. <h2 class="page-subhead"><?php echo $label['top_positions'];?></h2>
  49.  
  50. <table class="table100" cellpadding="3" border="0">
  51. <tbody>
  52. <?php foreach ($top as $t): ?>
  53. <tr class="fontSmall">
  54. <td class="col_15"></td>
  55. <td class="col_150"><?php echo img($t['blank_img']);?></td>
  56. <td>
  57. <strong class="fontMedium"><?php echo $t['name'];?></strong><br />
  58. <?php echo anchor('main/join/'. $t['id'], $label['apply']);?>
  59. </td>
  60. <td></td>
  61. <td class="col_75"></td>
  62. </tr>
  63. <?php endforeach;?>
  64. </tbody>
  65. </table>
  66. </div>
  67. <?php endif;?>
  68.  
  69. <?php if (isset($depts)): ?>
  70. <br /><table class="" cellpadding="3" border="0">
  71.  
  72. <?php foreach ($depts as $dept): ?>
  73. <tr>
  74. <td colspan="5"><h3><?php echo $dept['name'];?></h3></td>
  75. </tr>
  76.  
  77. <?php if (isset($dept['pos'])): ?>
  78. <?php foreach ($dept['pos'] as $pos): ?>
  79.  
  80. <?php if (isset($pos['chars'])): ?>
  81. <?php foreach ($pos['chars'] as $char): ?>
  82. <?php if ($char['crew_type'] == 'inactive'): ?>
  83. <?php $display = ' hidden'; ?>
  84. <?php else: ?>
  85. <?php $display = ''; ?>
  86. <?php endif; ?>
  87.  
  88. <tr class="fontSmall hidden <?php echo $char['crew_type'] . $display;?>">
  89. <td class="col_15"></td>
  90. <td class="col_150"><div class="char_img_placer"></div></td>
  91. <td class="col_150"><?php echo img($char['rank_img']);?></td>
  92. <td>
  93. <strong class="fontMedium"><?php echo $char['name'];?></strong>
  94. <?php if ($char['crew_type'] == 'npc'): ?>
  95. <?php if ($char['user_id'] > 0): ?>
  96. <?php echo ' <span class="gray">['; ?>
  97. <?php $mainchar = $this->user->get_main_character($char['user_id']);?>
  98. <?php $mainchar = $this->char->get_character_name($mainchar,false,false,false,false);?>
  99. <?php $mainchar = explode(' ', $mainchar); //Comment this out if you want the whole name printed ?>
  100. <?php $mainchar = array_pop($mainchar); //Comment this out if you want the whole name printed ?>
  101. <?php echo $mainchar;?>
  102. <?php echo ']</span>';?>
  103. <?php endif; ?>
  104. <?php endif; ?><br />
  105.  
  106. <?php echo $pos['name'];?>
  107.  
  108. <?php if ( ! empty($char['metadata'])): ?>
  109. <span class="gray"><?php echo $char['metadata'];?></span><br />
  110. <?php endif;?>
  111.  
  112. <?php if ($char['crew_type'] == 'npc'): ?>
  113. <br /><?php echo text_output($label['npc'], 'span', 'gray');?>
  114. <?php elseif ($char['crew_type'] == 'inactive'): ?>
  115. <br /><?php echo text_output($label['inactive'], 'span', 'gray');?>
  116. <?php endif; ?>
  117. </td>
  118. <td></td>
  119. <td class="col_75 align_right">
  120. <?php echo anchor('personnel/character/'. $char['char_id'], img($char['combadge']), array('class' => 'bold image'));?>
  121. </td>
  122. </tr>
  123. <?php endforeach; ?>
  124. <?php endif; ?>
  125.  
  126. <?php if ($pos['open'] > 0 && $dept['type'] == 'playing'): ?>
  127. <tr class="open fontSmall hidden">
  128. <td class="col_15"></td>
  129. <td class="col_150"><?php echo img($pos['blank_img']);?></td>
  130. <td>
  131. <strong class="fontMedium"><?php echo $pos['name'];?></strong><br />
  132. <?php echo anchor('main/join/'. $pos['pos_id'], $label['apply']);?>
  133. </td>
  134. <td></td>
  135. <td class="col_75"></td>
  136. </tr>
  137. <?php endif; ?>
  138.  
  139. <?php endforeach; ?>
  140. <?php endif; ?>
  141.  
  142. <?php if (isset($dept['sub'])): ?>
  143. <?php foreach ($dept['sub'] as $sub): ?>
  144. <tr>
  145. <td class="col_15"></td>
  146. <td colspan="4"><h4><?php echo $sub['name'];?></h4></td>
  147. </tr>
  148.  
  149. <?php if (isset($sub['pos'])): ?>
  150. <?php foreach ($sub['pos'] as $spos): ?>
  151.  
  152. <?php if (isset($spos['chars'])): ?>
  153. <?php foreach ($spos['chars'] as $char): ?>
  154. <?php if ($char['crew_type'] == 'inactive'): ?>
  155. <?php $display = ' hidden'; ?>
  156. <?php else: ?>
  157. <?php $display = ''; ?>
  158. <?php endif; ?>
  159.  
  160. <tr class="fontSmall hidden <?php echo $char['crew_type'] . $display;?>">
  161. <td class="col_15"></td>
  162. <td class="col_150"><div class="char_img_placer"></div></td>
  163. <td class="col_150"><?php echo img($char['rank_img']);?></td>
  164. <td>
  165. <strong class="fontMedium"><?php echo $char['name'];?></strong>
  166. <?php if ($char['crew_type'] == 'npc'): ?>
  167. <?php if ($char['user_id'] > 0): ?>
  168. <?php echo ' <span class="gray">['; ?>
  169. <?php $mainchar = $this->user->get_main_character($char['user_id']);?>
  170. <?php $mainchar = $this->char->get_character_name($mainchar,false,false,false,false);?>
  171. <?php $mainchar = explode(' ', $mainchar); //Comment this out if you want the whole name printed ?>
  172. <?php $mainchar = array_pop($mainchar); //Comment this out if you want the whole name printed ?>
  173. <?php echo $mainchar;?>
  174. <?php echo ']</span>';?>
  175. <?php endif; ?>
  176. <?php endif; ?><br />
  177.  
  178. <?php echo $spos['name'];?>
  179.  
  180. <?php if ( ! empty($char['metadata'])): ?>
  181. <span class="gray"><?php echo $char['metadata'];?></span><br />
  182. <?php endif;?>
  183.  
  184. <?php if ($char['crew_type'] == 'npc'): ?>
  185. <br /><?php echo text_output($label['npc'], 'span', 'gray');?>
  186. <?php elseif ($char['crew_type'] == 'inactive'): ?>
  187. <br /><?php echo text_output($label['inactive'], 'span', 'gray');?>
  188. <?php endif; ?>
  189. </td>
  190. <td></td>
  191. <td class="col_75 align_right">
  192. <?php echo anchor('personnel/character/'. $char['char_id'], img($char['combadge']), array('class' => 'bold image'));?>
  193. </td>
  194. </tr>
  195. <?php endforeach; ?>
  196. <?php endif; ?>
  197.  
  198. <?php if ($spos['open'] > 0 && $sub['type'] == 'playing'): ?>
  199. <tr class="open fontSmall hidden">
  200. <td class="col_15"></td>
  201. <td class="col_150"><?php echo img($spos['blank_img']);?></td>
  202. <td>
  203. <strong class="fontMedium"><?php echo $spos['name'];?></strong><br />
  204. <?php echo anchor('main/join/'. $spos['pos_id'], $label['apply']);?>
  205. </td>
  206. <td></td>
  207. <td class="col_75"></td>
  208. </tr>
  209. <?php endif; ?>
  210.  
  211. <?php endforeach; ?>
  212. <?php endif; ?>
  213.  
  214. <?php endforeach; ?>
  215. <?php endif; ?>
  216.  
  217. <?php endforeach; ?>
  218.  
  219. </table>
  220. <?php endif; ?>
  221. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement