Hi,
I am using the CC to display the table. I like to filter my table on the change of Dropdown Value.
Steps I have done is.
In "header" section I have pasted this coding.
In "Body" section I have this coding.
I get the Table Data's with the Dropdown.
I need to Filter my table will the Dropdown Value on change event.
I don't Know what is the code to Filter the table on change.
My "Where" Section is Empty now.
Kindly help me on this.
Regards,
Shoaib.
I am using the CC to display the table. I like to filter my table on the change of Dropdown Value.
Steps I have done is.
{new_record}<br />
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr>
<select name="pyear" id="pyear">
<option value="0" default>Select</option>
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
</select>
</tr>
<tr>
<td style="font-weight: bold; width: 5%;">ID</td>
<td style="font-weight: bold; width: 5%;">Project Year</td>
<td style="font-weight: bold; width: 30%;">Project Name</td>
<td style="font-weight: bold; width: 10%;">Activity Name</td>
<td style="font-weight: bold; width: 15%;">
Project_Initiator</td>
<td style="font-weight: bold; width: 15%;">School Name Code</td>
<td style="font-weight: bold; width: 10%;">Village</td>
<td style="font-weight: bold; width: 15%;">Estimated Cost Rs</td>
</tr>
</tbody>
</table>
<div class="clr" style="border-bottom: 3px solid #222; padding: 3px; margin-bottom: 10px;"></div>
In "header" section I have pasted this coding.
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
<tbody>
<tr<?php if ($i % 2) echo ' style="background-color: #EBEBEB;"';?>>
<td style="width: 5%;">{edit_record} {fabrik_internal_id}</td>
<td style="width: 5%;">{Project_Year}</td>
<td style="width: 30%;">{Project_Name}</td>
<td style="width: 10%;">{Activity_Name}</td>
<td style="width: 15%;">{Project_Initiator}</td>
<td style="width: 15%;">{School_Name_Code}</td>
<td style="width: 10%;">{Village}</td>
<td style="width: 15%;">{Estimated_Cost_Rs}</td>
</tr>
</tbody>
</table>
<?php $i++ ?>
In "Body" section I have this coding.
I get the Table Data's with the Dropdown.
I need to Filter my table will the Dropdown Value on change event.
I don't Know what is the code to Filter the table on change.
My "Where" Section is Empty now.
Kindly help me on this.
Regards,
Shoaib.