mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
Updates (#65)
* Updates +Added missing images +Added report viewer as requested by icekis -Code cleanup if strict db, need to set spell to null run ALTER TABLE `myaac_spells` CHANGE `spell` `spell` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL;
This commit is contained in:
@@ -41,8 +41,9 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
$order = 'name';
|
||||
$spells = array();
|
||||
$spells_db = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'spells` WHERE `hidden` != 1 AND `type` < 3 ORDER BY name, level');
|
||||
$spells_db = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'spells` WHERE `hidden` != 1 AND `type` < 4 AND `level` > 0 ORDER BY ' . $order . '');
|
||||
|
||||
if((string)$vocation_id != 'all') {
|
||||
foreach($spells_db->fetchAll() as $spell) {
|
||||
@@ -77,12 +78,16 @@ $twig->display('spells.html.twig', array(
|
||||
'post_vocation_id' => $vocation_id,
|
||||
'post_vocation' => $vocation,
|
||||
'spells' => $spells,
|
||||
'item_path' => $config['item_images_url'],
|
||||
));
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(document).ready( function () {
|
||||
$('#spellstb').DataTable();
|
||||
|
||||
$("#tb_instantSpells").DataTable();
|
||||
$("#tb_conjureSpells").DataTable();
|
||||
$("#tb_runeSpells").DataTable();
|
||||
} );
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user