@@ 294-308 (lines=15) @@ | ||
291 | ?> |
|
292 | <div class="tab-pane fade in active well" id="civ_lic"> |
|
293 | <?php |
|
294 | if ($player->civ_licenses !== '"[]"' && $player->civ_licenses !== '') { |
|
295 | echo '<h4 style="centred">'.$lang['civil'].' '.$lang['licenses'].'</h4>'; |
|
296 | $return = stripArray($player->civ_licenses, 0); |
|
297 | foreach ($return as $value) { |
|
298 | if (strpos($value, '1') == true) { |
|
299 | $name = before(',', $value); |
|
300 | echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
301 | } else { |
|
302 | $name = before(',', $value); |
|
303 | echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
304 | } |
|
305 | } |
|
306 | } else { |
|
307 | echo '<h4>'.errorMessage(371, $lang).'</h4>'; |
|
308 | } ?> |
|
309 | </div> |
|
310 | <div class="tab-pane well fade" id="medic_lic"> |
|
311 | <?php |
|
@@ 312-326 (lines=15) @@ | ||
309 | </div> |
|
310 | <div class="tab-pane well fade" id="medic_lic"> |
|
311 | <?php |
|
312 | if ($player->med_licenses !== '"[]"' && $player->med_licenses !== '') { |
|
313 | echo '<h4 style="centred">'.$lang['medic'].' '.$lang['licenses'].'</h4>'; |
|
314 | $return = stripArray($player->med_licenses, 0); |
|
315 | foreach ($return as $value) { |
|
316 | if (strpos($value, '1') == true) { |
|
317 | $name = before(',', $value); |
|
318 | echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
319 | } else { |
|
320 | $name = before(',', $value); |
|
321 | echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
322 | } |
|
323 | } |
|
324 | } else { |
|
325 | echo '<h4>'.errorMessage(372, $lang).'</h4>'; |
|
326 | } ?> |
|
327 | </div> |
|
328 | <div class="tab-pane well fade" id="police_lic"> |
|
329 | <?php |
|
@@ 330-344 (lines=15) @@ | ||
327 | </div> |
|
328 | <div class="tab-pane well fade" id="police_lic"> |
|
329 | <?php |
|
330 | if ($player->cop_licenses !== '"[]"' && $player->cop_licenses !== '') { |
|
331 | $return = stripArray($player->cop_licenses, 0); |
|
332 | echo '<h4 style="centred">'.$lang['cop'].' '.$lang['licenses'].'</h4>'; |
|
333 | foreach ($return as $value) { |
|
334 | if (strpos($value, '1') == true) { |
|
335 | $name = before(',', $value); |
|
336 | echo "<button type='button' id=".$name." class='license btn btn-xs btn-success' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
337 | } else { |
|
338 | $name = before(',', $value); |
|
339 | echo "<button type='button' id=".$name." class='license btn btn-xs btn-theme01' style='margin-bottom: 3px;'>".licName($name, $license).'</button> '; |
|
340 | } |
|
341 | } |
|
342 | } else { |
|
343 | echo '<h4>'.errorMessage(373, $lang).'</h4>'; |
|
344 | } ?> |
|
345 | </div> |
|
346 | <?php |
|
347 | } |