summaryrefslogtreecommitdiffstats
path: root/templates/show_rules.inc.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 03:00:32 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 03:38:46 -0500
commitef4d3660605efc7f1328d4533b0f4bfb6c1107e2 (patch)
treee4377fb129a899e65aaaf421f8c97098aecaedd5 /templates/show_rules.inc.php
parent8a750c3e875d590d351c3042570a134fcdf03e5d (diff)
downloadampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.gz
ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.tar.bz2
ampache-ef4d3660605efc7f1328d4533b0f4bfb6c1107e2.zip
Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference for spaces, and I feel inclined to impose my will on the tree.
Diffstat (limited to 'templates/show_rules.inc.php')
-rw-r--r--templates/show_rules.inc.php40
1 files changed, 20 insertions, 20 deletions
diff --git a/templates/show_rules.inc.php b/templates/show_rules.inc.php
index 93754da4..bca327d9 100644
--- a/templates/show_rules.inc.php
+++ b/templates/show_rules.inc.php
@@ -1,5 +1,5 @@
<?php
-/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
+/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
@@ -21,10 +21,10 @@
*/
if ($playlist) {
- $logic_operator = $playlist->logic_operator;
+ $logic_operator = $playlist->logic_operator;
}
else {
- $logic_operator = $_REQUEST['operator'];
+ $logic_operator = $_REQUEST['operator'];
}
$logic_operator = strtolower($logic_operator);
?>
@@ -34,8 +34,8 @@ $logic_operator = strtolower($logic_operator);
<?php UI::show_box_top(T_('Rules') . "...", 'box box_rules'); ?>
<table class="tabledata" cellpadding="3" cellspacing="0">
<tbody id="searchtable">
- <tr id="rules_operator">
- <td><?php echo T_('Match'); ?></td>
+ <tr id="rules_operator">
+ <td><?php echo T_('Match'); ?></td>
<td>
<select name="operator">
<option value="and" <?php if($logic_operator == 'and') echo 'selected="selected"'?>><?php echo T_('all rules'); ?></option>
@@ -43,32 +43,32 @@ $logic_operator = strtolower($logic_operator);
</select>
</td>
</tr>
- <tr id="rules_addrowbutton">
- <td>
- <a id="addrowbutton" href="javascript:void(0)">
- <?php echo UI::get_icon('add'); ?>
- <?php echo T_('Add Another Rule'); ?>
- </a>
- <script type="text/javascript">Event.observe('addrowbutton', 'click', SearchRow.add);</script>
- </td>
- </tr>
+ <tr id="rules_addrowbutton">
+ <td>
+ <a id="addrowbutton" href="javascript:void(0)">
+ <?php echo UI::get_icon('add'); ?>
+ <?php echo T_('Add Another Rule'); ?>
+ </a>
+ <script type="text/javascript">Event.observe('addrowbutton', 'click', SearchRow.add);</script>
+ </td>
+ </tr>
</tbody>
</table>
<?php UI::show_box_bottom(); ?>
<?php
if ($playlist) {
- $out = $playlist->to_js();
+ $out = $playlist->to_js();
}
else {
- $mysearch = new Search($_REQUEST['type']);
- $mysearch->parse_rules(Search::clean_request($_REQUEST));
- $out = $mysearch->to_js();
+ $mysearch = new Search($_REQUEST['type']);
+ $mysearch->parse_rules(Search::clean_request($_REQUEST));
+ $out = $mysearch->to_js();
}
if ($out) {
- echo $out;
+ echo $out;
}
else {
- echo '<script type="text/javascript">SearchRow.add();</script>';
+ echo '<script type="text/javascript">SearchRow.add();</script>';
}
?>