Here is the picture of the template that I have set (I haven't finished setting up the header, but should provide enough information to understand where I'm at): http://chattypics.com/files/CaptureJPG_qzfx9il5p9.jpg
Here is the associated html code pulled from the source of the page (only copy and pasted the first and second result):[pre]
<td class="td_input_form" nowrap>order_year<br/><input type="hidden" name="order_year__select_type" value="is_equal"> <input type="text" name="order_year" size="4" value="" maxlength="4"></td><td> </td><td class="td_input_form" nowrap>order_month<br/><input type="hidden" name="order_month__select_type" value="is_equal"> <input type="text" name="order_month" size="2" value="7" maxlength="2"></td><td> </td><td class="td_input_form" nowrap>style_num<br/><input type="hidden" name="style_num__select_type" value="is_equal"> <input type="text" name="style_num" value="" maxlength="100"></td><td> </td><td class="td_input_form" nowrap>po_num<br/><input type="hidden" name="po_num__select_type" value="contains"> <input type="text" name="po_num" value="" maxlength="100"></td><td> </td><td valign="bottom"><input class="button_form button_form_quick_search" type="submit" value="Quick search >>"></td></tr></table></form><table class="results" cellpadding="5" cellspacing="0">
<tr class="tr_results_header">
<th class="results"></th>
<th class="results"><a class="order_link">Order Month</a></th>
<th class="results"><a class="order_link">Order Year</a></th>
<th class="results"><a class="order_link">Status</a></th>
<th class="results"><a class="order_link">Client</a></th>
<th class="results"><a class="order_link">Factory</a></th>
<th class="results"><a class="order_link">Department</a></th>
<th class="results"><a class="order_link">Style #</a></th>
</tr>
<tr id="639" class="tr_results_2" onmouseover="if (this.className!='tr_highlighted_onclick'){this.className='tr_highlighted_onmouseover'}" onmouseout="if (this.className!='tr_highlighted_onclick'){this.className='tr_results_2'}" onclick="if (this.className == 'tr_highlighted_onclick'){ this.className='tr_results_2';}else{ this.className='tr_highlighted_onclick';}">
<td class="controls_2">
<img border="0" src="images/edit.png" alt="Edit" title="Edit"></td>
<td>2016</td>
<td>7</td>
<td>Current</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>17</td>
<td>3</td>
<td>15196320</td>
<td>00102147</td>
<td>WEB</td>
<td>BLACK</td>
<td> </td>
<td>900</td>
<td>2016-07-06</td>
<td>2016-06-29</td>
<td>jmartinez</td>
<td>2015-11-27</td>
</tr>
<script type="text/javascript">
var row = document.getElementById('639');
var fieldname = "Current";
if (fieldname.localeCompare("Cancelled / Void") == 0){
row.style='color:red;font-weight:bold';
}
</script></table>
[/pre]
And finally, what I've inserted into the template box for results:
[pre]
<table class="results" cellpadding="5" cellspacing="0">
<tr class="tr_results_header">
<th class="results"></th>
<th class="results"><a class="order_link">Order Month</a></th>
<th class="results"><a class="order_link">Order Year</a></th>
<th class="results"><a class="order_link">Status</a></th>
<th class="results"><a class="order_link">Client</a></th>
<th class="results"><a class="order_link">Factory</a></th>
<th class="results"><a class="order_link">Department</a></th>
<th class="results"><a class="order_link">Style #</a></th>
</tr>
<tr id="dadabik_field id dadabik_field" class="tr_results_2" onmouseover="if (this.className!='tr_highlighted_onclick'){this.className='tr_highlighted_onmouseover'}" onmouseout="if (this.className!='tr_highlighted_onclick'){this.className='tr_results_2'}" onclick="if (this.className == 'tr_highlighted_onclick'){ this.className='tr_results_2';}else{ this.className='tr_highlighted_onclick';}">
<td class="controls_2">
<img border="0" src="images/edit.png" alt="Edit" title="Edit"></td>
<td>dadabik_field order_year dadabik_field</td>
<td>dadabik_field order_month dadabik_field</td>
<td>dadabik_field Status dadabik_field</td>
<td>dadabik_field client dadabik_field</td>
<td>dadabik_field factory_name dadabik_field</td>
<td>dadabik_field program dadabik_field</td>
<td>dadabik_field style_num dadabik_field</td>
<td>dadabik_field buyer dadabik_field</td>
<td>dadabik_field po_num dadabik_field</td>
<td>dadabik_field item_code dadabik_field</td>
<td>dadabik_field po_destination dadabik_field</td>
<td>dadabik_field country_color dadabik_field</td>
<td>dadabik_field cost dadabik_field</td>
<td>dadabik_field qty dadabik_field</td>
<td>dadabik_field client_IHD dadabik_field</td>
<td>dadabik_field china_IHD dadabik_field</td>
<td>dadabik_field last_modified_by dadabik_field</td>
<td>dadabik_field last_modified dadabik_field</td>
</tr>
<script type="text/javascript">
var row = document.getElementById('dadabik_field id dadabik_field');
var fieldname = "dadabik_field Status dadabik_field";
if (fieldname.localeCompare("Cancelled / Void") == 0){
row.style='color:red;font-weight:bold';
}
</script></table>
[/pre]
Is there a way for me to tell the template to not repeat the tr_results_header class or something?