summaryrefslogtreecommitdiffstats
path: root/templates/show_dynamic.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_dynamic.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_dynamic.inc.php')
-rw-r--r--templates/show_dynamic.inc.php104
1 files changed, 52 insertions, 52 deletions
diff --git a/templates/show_dynamic.inc.php b/templates/show_dynamic.inc.php
index 67173b97..65e411e7 100644
--- a/templates/show_dynamic.inc.php
+++ b/templates/show_dynamic.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)
@@ -23,66 +23,66 @@
<?php UI::show_box_top(T_('Advanced Random Rules')); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<colgroup>
- <col id="col_field" />
- <col id="col_operator" />
- <col id="col_value" />
- <col id="col_method" />
+ <col id="col_field" />
+ <col id="col_operator" />
+ <col id="col_value" />
+ <col id="col_method" />
</colgroup>
<tr class="th-top">
- <th class="col_field"><?php echo T_('Field'); ?></th>
- <th class="col_operator"><?php echo T_('Operator'); ?></th>
- <th class="col_value"><?php echo T_('Value'); ?></th>
- <th class="col_method"><?php echo T_('Method'); ?></th>
+ <th class="col_field"><?php echo T_('Field'); ?></th>
+ <th class="col_operator"><?php echo T_('Operator'); ?></th>
+ <th class="col_value"><?php echo T_('Value'); ?></th>
+ <th class="col_method"><?php echo T_('Method'); ?></th>
</tr>
<tr>
- <td valign="top">
- <select name="field">
- <?php
- $fields = Song::get_fields();
- foreach ($fields as $key=>$value) {
- $name = ucfirst(str_replace('_',' ',$key));
- ?>
- <option value="<?php echo scrub_out($key); ?>"><?php echo scrub_out($name); ?></option>
- <?php } ?>
- </select>
- </td>
- <td>
- <select name="operator">
- <option value="eq">=</option>
- <option value="nq">!=</option>
- <option value="gt">&gt;</option>
- <option value="gte">&gt;=</option>
- <option value="lt">&lt;</option>
- <option value="lte">&lt;=</option>
- <option value="like"><?php echo T_('Like'); ?></option>
- </select>
- </td>
- <td valign="top">
- <input type="text" name="value" />
- </td>
- <td valign="top">
- <select name="method">
- <option value="OR"><?php echo T_('OR'); ?></option>
- <option value="AND"><?php echo T_('AND'); ?></option>
- </select>
- </td>
+ <td valign="top">
+ <select name="field">
+ <?php
+ $fields = Song::get_fields();
+ foreach ($fields as $key=>$value) {
+ $name = ucfirst(str_replace('_',' ',$key));
+ ?>
+ <option value="<?php echo scrub_out($key); ?>"><?php echo scrub_out($name); ?></option>
+ <?php } ?>
+ </select>
+ </td>
+ <td>
+ <select name="operator">
+ <option value="eq">=</option>
+ <option value="nq">!=</option>
+ <option value="gt">&gt;</option>
+ <option value="gte">&gt;=</option>
+ <option value="lt">&lt;</option>
+ <option value="lte">&lt;=</option>
+ <option value="like"><?php echo T_('Like'); ?></option>
+ </select>
+ </td>
+ <td valign="top">
+ <input type="text" name="value" />
+ </td>
+ <td valign="top">
+ <select name="method">
+ <option value="OR"><?php echo T_('OR'); ?></option>
+ <option value="AND"><?php echo T_('AND'); ?></option>
+ </select>
+ </td>
</tr>
<tr>
- <td>
- <?php echo Ajax::button('?page=random&action=add_rule','add', T_('Add Rule'),'add_random_rule'); ?><?php echo T_('Add Rule'); ?>
- </td>
- <td>
- <?php echo Ajax::button('?page=random&action=save_rules','download', T_('Save Rules As'),'save_random_rules'); ?><?php echo T_('Save Rules As'); ?>
- </td>
- <td colspan="2">
- <?php echo Ajax::button('?page=random&action=load_rules','cog', T_('Load Saved Rules'),'load_random_rules'); ?><?php echo T_('Load Saved Rules'); ?>
- </td>
+ <td>
+ <?php echo Ajax::button('?page=random&action=add_rule','add', T_('Add Rule'),'add_random_rule'); ?><?php echo T_('Add Rule'); ?>
+ </td>
+ <td>
+ <?php echo Ajax::button('?page=random&action=save_rules','download', T_('Save Rules As'),'save_random_rules'); ?><?php echo T_('Save Rules As'); ?>
+ </td>
+ <td colspan="2">
+ <?php echo Ajax::button('?page=random&action=load_rules','cog', T_('Load Saved Rules'),'load_random_rules'); ?><?php echo T_('Load Saved Rules'); ?>
+ </td>
</tr>
<tr>
- <td colspan="4">
- <div id="rule_status"></div>
- </td>
+ <td colspan="4">
+ <div id="rule_status"></div>
+ </td>
</tr>
</table>
<?php UI::show_box_bottom(); ?>