|
@@ 711-716 (lines=6) @@
|
| 708 |
|
<option value="" disabled>---------------</option> |
| 709 |
|
<option value="" disabled>', $txt['pm_msg_label_apply'], ':</option>'; |
| 710 |
|
|
| 711 |
|
foreach ($context['labels'] as $label) |
| 712 |
|
{ |
| 713 |
|
if ($label['id'] != $context['current_label_id']) |
| 714 |
|
echo ' |
| 715 |
|
<option value="add_', $label['id'], '"> ', $label['name'], '</option>'; |
| 716 |
|
} |
| 717 |
|
|
| 718 |
|
echo ' |
| 719 |
|
<option value="" disabled>', $txt['pm_msg_label_remove'], ':</option>'; |
|
@@ 1457-1469 (lines=13) @@
|
| 1454 |
|
</tr>'; |
| 1455 |
|
else |
| 1456 |
|
{ |
| 1457 |
|
foreach ($context['labels'] as $label) |
| 1458 |
|
{ |
| 1459 |
|
if ($label['id'] == -1) |
| 1460 |
|
continue; |
| 1461 |
|
|
| 1462 |
|
echo ' |
| 1463 |
|
<tr class="windowbg"> |
| 1464 |
|
<td> |
| 1465 |
|
<input type="text" name="label_name[', $label['id'], ']" value="', $label['name'], '" size="30" maxlength="30"> |
| 1466 |
|
</td> |
| 1467 |
|
<td class="table_icon"><input type="checkbox" name="delete_label[', $label['id'], ']"></td> |
| 1468 |
|
</tr>'; |
| 1469 |
|
} |
| 1470 |
|
} |
| 1471 |
|
echo ' |
| 1472 |
|
</tbody> |
|
@@ 1670-1673 (lines=4) @@
|
| 1667 |
|
echo ' |
| 1668 |
|
groups[', $id, '] = "', addslashes($title), '";'; |
| 1669 |
|
|
| 1670 |
|
foreach ($context['labels'] as $label) |
| 1671 |
|
if ($label['id'] != -1) |
| 1672 |
|
echo ' |
| 1673 |
|
labels[', ($label['id']), '] = "', addslashes($label['name']), '";'; |
| 1674 |
|
|
| 1675 |
|
echo ' |
| 1676 |
|
function addCriteriaOption() |
|
@@ 1706-1708 (lines=3) @@
|
| 1703 |
|
|
| 1704 |
|
setOuterHTML(document.getElementById("actionAddHere"), \'<br><select name="acttype[\' + actionNum + \']" id="acttype\' + actionNum + \'" onchange="updateActionDef(\' + actionNum + \'); rebuildRuleDesc();"><option value="">', addslashes($txt['pm_rule_sel_action']), ':<\' + \'/option><option value="lab">', addslashes($txt['pm_rule_label']), '<\' + \'/option><option value="del">', addslashes($txt['pm_rule_delete']), '<\' + \'/option><\' + \'/select> <span id="labdiv\' + actionNum + \'" style="display: none;"><select name="labdef[\' + actionNum + \']" id="labdef\' + actionNum + \'" onchange="rebuildRuleDesc();"><option value="">', addslashes($txt['pm_rule_sel_label']), '<\' + \'/option>'; |
| 1705 |
|
|
| 1706 |
|
foreach ($context['labels'] as $label) |
| 1707 |
|
if ($label['id'] != -1) |
| 1708 |
|
echo '<option value="', ($label['id']), '">', addslashes($label['name']), '<\' + \'/option>'; |
| 1709 |
|
|
| 1710 |
|
echo '<\' + \'/select><\' + \'/span><span id="actionAddHere"><\' + \'/span>\'); |
| 1711 |
|
} |