Within the date prompt i need a way to display the years in descending order. Is this possible?
Cheers in advance
Ben
Cheers in advance
Ben
<Actinic:Variable Name="YearLayout"/>
<actinic:block php="true"> $startyear = 2007; $endyear = 2020; $optionyear = '<Actinic:Variable Name="YearLayout" encoding="perl" selectable="false" />'; $optionyear = $startyear + ($endyear - $optionyear); echo $optionyear; </actinic:block>
<Actinic:Variable Name="YearLayout"/>
<actinic:block php="true"> echo " "; $dates[] = '<Actinic:Variable Name="YearLayout" encoding="perl" selectable="false" />'; </actinic:block>
<actinic:block php="true">
$dates = array_reverse($dates);
foreach($dates as $thisdate)
{
echo "<option>$thisdate</option>";
}
$dates = array();
</actinic:block>
Comment