OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Build Year
gambotry (Visitor)
Posts: 0
graphgraph
User Offline
Build Year 9 Years, 4 Months ago
Karma: 0  
Hello guys,
Can anyone help me with the function for build year. I changed the number from 1900 to 2010 to see if will gave me more options, but it only list until 2013. How can I change to give me the option to show future years, something like from 2010 to 2020.


print_r("<option value=''>";
print_r(_REALESTATE_MANAGER_OPTION_SELECT);
print_r("</option>";
$num=2010;
for($i= 0;$num<=date('Y';$i++)
{
print_r("<option value="";
print_r($num);
print_r(""";
if($num == $row->year){
print(" selected= "true" ";
}
print_r(">";
print_r($num);
print_r("</option>";
$num++;
}


Thanks.
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 7802
graph
User Offline Click here to see the profile of this user
Re:Build Year 9 Years, 4 Months ago
Karma: 94  
Hello,

Original ours coide set as end year - current year, but
If you wish set start year as 1925 and end year as 2015
Your code may look next:

Code:

print_r("<option value=''>";
print_r(_REALESTATE_MANAGER_OPTION_SELECT);
print_r("</option>";
$num=1925;
for($num= 0;$num<=2015;$num++)
{
print_r("<option value="";
print_r($num);
print_r(""";
if($num == $row->year){
print(" selected= "true" ";
}
print_r(">";
print_r($num);
print_r("</option>";
$num++;
}



Please backup file what edit, first

Thanks,
OrdaSof team
Logged Logged
Last Edit: 2013/05/22 07:16 By admin.
The administrator has disabled public write access.
kozag (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:Build Year 9 Years, 1 Month ago
Karma: 0  
Hi,

Which file you need to edit to set this mentioned code? I need to change start build year to 1850.

Thanks!
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 7802
graph
User Offline Click here to see the profile of this user
Re:Build Year 9 Years, 1 Month ago
Karma: 94  
it located in admin part at file:
{yours site}/administrator/components/com_realestatemanager./admin.realestatemanager.html.php
Logged Logged
The administrator has disabled public write access.
Go to top