mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 20:43:26 +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:
@@ -1,9 +1,42 @@
|
||||
<style type="text/css">
|
||||
|
||||
.ts_Spells > input[type="radio"] {
|
||||
position: absolute;
|
||||
left: -200vw;
|
||||
}
|
||||
|
||||
.ts_Spells .tab-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ts_Spells > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
|
||||
.ts_Spells > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
|
||||
.ts_Spells > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
|
||||
.ts_Spells > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
|
||||
.ts_Spells > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
|
||||
.ts_Spells > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ts_Spells > label {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 10px 10px 10px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid transparent;
|
||||
border-bottom: 0;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
background-color: {{ config.vdarkborder }};
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% if canEdit %}
|
||||
<form method="post" action="{{ getLink('spells') }}">
|
||||
<input type="hidden" name="reload_spells" value="yes"/>
|
||||
<input type="submit" value="(admin) Reload spells"/>
|
||||
</form>
|
||||
<form method="post" action="{{ getLink('spells') }}">
|
||||
<input type="hidden" name="reload_spells" value="yes"/>
|
||||
<input type="submit" value="(admin) Reload spells"/>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
<form action="{{ getLink('spells') }}" method="post">
|
||||
@@ -18,7 +51,7 @@
|
||||
<td>Only for vocation: <select name="vocation_id">
|
||||
<option value="all" {% if post_vocation_id == 'all' %} selected{% endif %}>All</option>
|
||||
{% for id, vocation in config.vocations %}
|
||||
<option value="{{ id }}"{% if id == post_vocation_id and post_vocation_id != "all" and post_vocation_id != '' %} selected{% endif %}>{{ vocation }}</option>
|
||||
<option value="{{ id }}"{% if id == post_vocation_id and post_vocation_id != "all" and post_vocation_id != '' %} selected{% endif %}>{{ vocation }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
@@ -32,39 +65,137 @@
|
||||
</table>
|
||||
</form>
|
||||
<br/>
|
||||
<table id="spellstb" class=""><thead>
|
||||
<tr role="row"><th>Name</th><th>Words</th><th>Type<br/>(count)</th>
|
||||
<th>Mana</th><th>Level</th><th>Magic Level</th><th>Soul</th><th>Premium</th><th>Vocations</th></tr>
|
||||
</thead><tbody>
|
||||
{% set i = 0 %}
|
||||
{% for spell in spells %}
|
||||
{% set i = i + 1 %}
|
||||
<tr>
|
||||
<td>{{ spell.name }}</td>
|
||||
<td>{{ spell.words }}</td>
|
||||
<td>
|
||||
{% if spell.type == 1 %}
|
||||
Instant
|
||||
{% elseif spell.type == 2 %}
|
||||
Conjure ({{ spell.conjure_count }})
|
||||
{% else %}
|
||||
Rune
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ spell.mana }}</td>
|
||||
<td>{{ spell.level }}</td>
|
||||
<td>{{ spell.maglevel }}</td>
|
||||
<td>{{ spell.soul }}</td>
|
||||
<td>{% if spell.premium == 1 %}yes{% else %}no{% endif %}</td>
|
||||
<td>
|
||||
{% if spell.vocations|length > 0 %}
|
||||
<span style="font-size: 10px">
|
||||
{{ spell.vocations|raw }}
|
||||
</span>
|
||||
{% else %}
|
||||
{{ config.vocations[post_vocation_id] }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody></table>
|
||||
|
||||
<div class="ts_Spells">
|
||||
<input type="radio" name="ts_Spells" id="tab_instant" aria-controls="instant" checked>
|
||||
<label for="tab_instant">Instant</label>
|
||||
|
||||
<input type="radio" name="ts_Spells" id="tab_conjure" aria-controls="conjure">
|
||||
<label for="tab_conjure">Conjure</label>
|
||||
|
||||
<input type="radio" name="ts_Spells" id="tab_rune" aria-controls="rune">
|
||||
<label for="tab_rune">Rune</label>
|
||||
|
||||
<div class="tab-panels">
|
||||
<section id="instant" class="tab-panel">
|
||||
<table id="tb_instantSpells">
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Words</th>
|
||||
<th>Level</th>
|
||||
<th>Mana</th>
|
||||
<th>Vocations</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% set i = 0 %}
|
||||
{% set y = 0 %}
|
||||
{% for spell in spells %}
|
||||
{% set i = i + 1 %}
|
||||
{% if spell.type == 1 %}
|
||||
{% set y = y + 1 %}
|
||||
<tr>
|
||||
<td>{{ spell.name }}</td>
|
||||
<td>{{ spell.words }}</td>
|
||||
<td>{{ spell.level }}</td>
|
||||
<td>{{ spell.mana }}</td>
|
||||
<td>
|
||||
{% if spell.vocations|length > 0 %}
|
||||
<span style="font-size: 10px">{{ spell.vocations|raw }}</span>
|
||||
{% else %}
|
||||
{{ config.vocations[post_vocation_id] }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<section id="conjure" class="tab-panel">
|
||||
<table id="tb_conjureSpells">
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Words</th>
|
||||
<th>Level</th>
|
||||
<th>Mana</th>
|
||||
<th>Soul</th>
|
||||
<th>Item</th>
|
||||
<th>Reagent</th>
|
||||
<th>Vocations</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% set i = 0 %}
|
||||
{% set y = 0 %}
|
||||
{% for spell in spells %}
|
||||
{% set i = i + 1 %}
|
||||
{% if spell.type == 2 %}
|
||||
{% set y = y + 1 %}
|
||||
<tr>
|
||||
<td>{{ spell.name }}</td>
|
||||
<td>{{ spell.words }}</td>
|
||||
<td>{{ spell.level }}</td>
|
||||
<td>{{ spell.mana }}</td>
|
||||
<td>{{ spell.soul }}</td>
|
||||
<td>
|
||||
<small>
|
||||
{% if (spell.conjure_count < 150) and ( spell.conjure_count > 0) %} {{ spell.conjure_count }}x
|
||||
<br/>{% endif %}</small>
|
||||
<img src="{{ item_path }}/{{ spell.conjure_id }}.gif"
|
||||
width="32" height="32" border="0"
|
||||
alt="{{ spell.conjure_id }}"></td>
|
||||
<td>{% if (spell.reagent > 0) %}
|
||||
<img src="{{ item_path }}/{{ spell.reagent }}.gif"
|
||||
width="32" height="32" border="0"
|
||||
alt="{{ spell.reagent }}">{% else %}---{% endif %}</td>
|
||||
<td>
|
||||
{% if spell.vocations|length > 0 %}
|
||||
<span style="font-size: 10px">{{ spell.vocations|raw }}</span>
|
||||
{% else %}
|
||||
{{ config.vocations[post_vocation_id] }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section id="rune" class="tab-panel">
|
||||
<table id="tb_runeSpells">
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Level</th>
|
||||
<th>Magic Level</th>
|
||||
<th>Item</th>
|
||||
<th>Vocations</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% set i = 0 %}
|
||||
{% set y = 0 %}
|
||||
{% for spell in spells %}
|
||||
{% set i = i + 1 %}
|
||||
{% if spell.type == 3 %}
|
||||
{% set y = y + 1 %}
|
||||
<tr>
|
||||
<td>{{ spell.name }}</td>
|
||||
<td>{{ spell.level }}</td>
|
||||
<td>{{ spell.maglevel }}</td>
|
||||
<td><img src="{{ item_path }}/{{ spell.item_id }}.gif"
|
||||
width="32" height="32" border="0"
|
||||
alt="{{ spell.item_id }}"></td>
|
||||
<td>
|
||||
{% if spell.vocations|length > 0 %}
|
||||
<span style="font-size: 10px">{{ spell.vocations|raw }}</span>
|
||||
{% else %}
|
||||
{{ config.vocations[post_vocation_id] }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user