Filter/NPC
* fix react filter * remove excess colons
This commit is contained in:
parent
7cbe1f6007
commit
e8bc37f82f
5 changed files with 15 additions and 15 deletions
|
|
@ -376,11 +376,11 @@ class CreatureListFilter extends Filter
|
|||
$parts[] = ['rank', $_v['cl']];
|
||||
|
||||
// react Alliance [int]
|
||||
if ($_v['ra'])
|
||||
if (!is_null($_v['ra']))
|
||||
$parts[] = ['ft.A', $_v['ra']];
|
||||
|
||||
// react Horde [int]
|
||||
if ($_v['rh'])
|
||||
if (!is_null($_v['rh']))
|
||||
$parts[] = ['ft.H', $_v['rh']];
|
||||
|
||||
return $parts;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ $this->brick('redButtons');
|
|||
<h1><?=$this->h1; ?></h1>
|
||||
</div>
|
||||
<div class="rightpanel">
|
||||
<div style="float: left"><?=Lang::game('type').Lang::main('colon'); ?></div>
|
||||
<div style="float: left"><?=Lang::game('type'); ?></div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false"><?=Lang::main('clear'); ?></a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ty[]" size="6" multiple="multiple" class="rightselect">
|
||||
|
|
|
|||
|
|
@ -58,17 +58,17 @@ $this->brick('redButtons');
|
|||
<td class="padded" width="100%">
|
||||
<table><tr>
|
||||
<td> <?=Lang::npc('react', ['']); ?></td>
|
||||
<td> <select name="ra" onchange="fi_dropdownSync(this)" onkeyup="fi_dropdownSync(this)" style="background-color: #181818"<?=($f['ra'] ? ' class="q'.($f['ra'] == 1 ? '2' : ($f['ra'] == -1 ? '10' : '')).'"' : ''); ?>>
|
||||
<td> <select name="ra" onchange="fi_dropdownSync(this)" onkeyup="fi_dropdownSync(this)" style="background-color: #181818" <?=(!is_null($f['ra']) ? ' class="q'.($f['ra'] == 1 ? '2' : ($f['ra'] == -1 ? '10' : '')).'"' : ''); ?>>
|
||||
<option></option>
|
||||
<option value="1" class="q2"<?=( $f['ra'] == 1 ? ' selected' : ''); ?>>A</option>
|
||||
<option value="0" class="q"<?=( $f['ra'] == 0 ? ' selected' : ''); ?>>A</option>
|
||||
<option value="-1" class="q10"<?=($f['ra'] == -1 ? ' selected' : ''); ?>>A</option>
|
||||
<option value="1" class="q2"<?=( $f['ra'] === 1 ? ' selected' : ''); ?>>A</option>
|
||||
<option value="0" class="q"<?=( $f['ra'] === 0 ? ' selected' : ''); ?>>A</option>
|
||||
<option value="-1" class="q10"<?=($f['ra'] === -1 ? ' selected' : ''); ?>>A</option>
|
||||
</select>
|
||||
<select name="rh" onchange="fi_dropdownSync(this)" onkeyup="fi_dropdownSync(this)" style="background-color: #181818"<?=($f['rh'] ? ' class="q'.($f['rh'] == 1 ? '2' : ($f['rh'] == -1 ? '10' : '')).'"' : ''); ?>>
|
||||
<select name="rh" onchange="fi_dropdownSync(this)" onkeyup="fi_dropdownSync(this)" style="background-color: #181818"<?=(!is_null($f['rh']) ? ' class="q'.($f['rh'] == 1 ? '2' : ($f['rh'] == -1 ? '10' : '')).'"' : ''); ?>>
|
||||
<option></option>
|
||||
<option value="1" class="q2"<?=( $f['rh'] == 1 ? ' selected' : ''); ?>>H</option>
|
||||
<option value="0" class="q"<?=( $f['rh'] == 0 ? ' selected' : ''); ?>>H</option>
|
||||
<option value="-1" class="q10"<?=($f['rh'] == -1 ? ' selected' : ''); ?>>H</option>
|
||||
<option value="1" class="q2"<?=( $f['rh'] === 1 ? ' selected' : ''); ?>>H</option>
|
||||
<option value="0" class="q"<?=( $f['rh'] === 0 ? ' selected' : ''); ?>>H</option>
|
||||
<option value="-1" class="q10"<?=($f['rh'] === -1 ? ' selected' : ''); ?>>H</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr></table>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ $this->brick('redButtons');
|
|||
<h1><?=$this->h1; ?></h1>
|
||||
</div>
|
||||
<div class="rightpanel">
|
||||
<div style="float: left"><?=Lang::game('type').Lang::main('colon'); ?></div><small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false"><?=Lang::main('clear'); ?></a></small>
|
||||
<div style="float: left"><?=Lang::game('type'); ?></div><small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false"><?=Lang::main('clear'); ?></a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ty[]" size="6" multiple="multiple" class="rightselect">
|
||||
<?=$this->makeOptionsList(Lang::quest('questInfo'), $f['ty'], 28); ?>
|
||||
|
|
@ -49,13 +49,13 @@ $this->brick('redButtons');
|
|||
<td class="padded"> <input type="text" name="minle" maxlength="2" class="smalltextbox" <?=($f['minle'] ? 'value="'.$f['minle'].'" ' : ''); ?>/> - <input type="text" name="maxle" maxlength="2" class="smalltextbox" <?=($f['maxle'] ? 'value="'.$f['maxle'].'" ' : ''); ?>/></td>
|
||||
<td class="padded" width="100%">
|
||||
<table><tr>
|
||||
<td> <?=Lang::main('_reqLevel').Lang::main('colon'); ?></td>
|
||||
<td> <?=Lang::main('_reqLevel'); ?></td>
|
||||
<td> <input type="text" name="minrl" maxlength="2" class="smalltextbox" <?=($f['minrl'] ? 'value="'.$f['minrl'].'" ' : ''); ?>/> - <input type="text" name="maxrl" maxlength="2" class="smalltextbox" <?=($f['maxrl'] ? 'value="'.$f['maxrl'].'" ' : ''); ?>/></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="padded"><?=Lang::main('side').Lang::main('colon'); ?></td>
|
||||
<td class="padded"><?=Lang::main('side'); ?></td>
|
||||
<td class="padded" colspan="3"> <select name="si">
|
||||
<option></option>
|
||||
<?=$this->makeOptionsList(Lang::game('si'), $f['si'], 36); ?>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ $this->brick('redButtons');
|
|||
<h1><?=$this->h1; ?></h1>
|
||||
</div>
|
||||
<div class="rightpanel">
|
||||
<div style="float: left"><?=Lang::game('type').Lang::main('colon'); ?></div>
|
||||
<div style="float: left"><?=Lang::game('type'); ?></div>
|
||||
<small><a href="javascript:;" onclick="document.forms['fi'].elements['ty[]'].selectedIndex = -1; return false" onmousedown="return false"><?=Lang::main('clear'); ?></a></small>
|
||||
<div class="clear"></div>
|
||||
<select name="ty[]" size="6" multiple="multiple" class="rightselect">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue