CC-84: Smart Playlists

-0-indexed form elements
This commit is contained in:
denise 2012-07-11 16:15:44 -04:00
parent 4842f1a5a1
commit c27b886817
3 changed files with 15 additions and 15 deletions

View file

@ -17,15 +17,15 @@
</dd>
<dd id='sp_criteria-element'>
<?php for ($i = 1; $i <= $this->criteriasLength; $i++) {?>
<div <?php if (($i > 1) && ($this->element->getElement('sp_criteria_'.$i)->getAttrib('disabled') == 'disabled')) {
<?php for ($i = 0; $i < $this->criteriasLength; $i++) {?>
<div <?php if (($i > 0) && ($this->element->getElement('sp_criteria_'.$i)->getAttrib('disabled') == 'disabled')) {
echo 'style=display:none';
} ?>>
<?php echo $this->element->getElement('sp_criteria_'.$i) ?>
<?php echo $this->element->getElement('sp_criteria_modifier_'.$i) ?>
<?php echo $this->element->getElement('sp_criteria_value_'.$i) ?>
<?php if ($i != 1) { ?>
<?php if ($i != 0) { ?>
<a href='#' id='criteria_remove_<?php echo $i ?>'>Remove</a>
<?php } ?>
</div>