OS Property support center
Change Room Value
- mazen
-
Topic Author
- Offline
- Junior Member
-
Less
More
10 years 6 months ago #52180
by mazen
Change Room Value was created by mazen
Hello
I changed the Room value in the back end , and front end but the search doesn't work with the changes..
Please advise :
Before:
//number room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
After :
//number room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
$roomArr[] = 'Studio 1+1';
$roomArr[] = '2+1';
$roomArr[] = '3+1';
$roomArr[] = '3+2';
$roomArr[] = '4+1';
$roomArr[] = '4+2';
$roomArr[] = '5+1';
// for($i=1;$i<=5;$i++){
// $roomArr[] = JHTML::_('select.option',$i,$i.'+');
// }
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
Thank you
I changed the Room value in the back end , and front end but the search doesn't work with the changes..
Please advise :
Before:
//number room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
After :
//number room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
$roomArr[] = 'Studio 1+1';
$roomArr[] = '2+1';
$roomArr[] = '3+1';
$roomArr[] = '3+2';
$roomArr[] = '4+1';
$roomArr[] = '4+2';
$roomArr[] = '5+1';
// for($i=1;$i<=5;$i++){
// $roomArr[] = JHTML::_('select.option',$i,$i.'+');
// }
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
Thank you
Please Log in or Create an account to join the conversation.
- mazen
-
Topic Author
- Offline
- Junior Member
-
10 years 6 months ago #52219
by mazen
Replied by mazen on topic Change Room Value
Hello
Any update ??
Thank you
Any update ??
Thank you
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13057
- Thank you received: 1696
10 years 6 months ago #52235
by Mr. Dam
Replied by Mr. Dam on topic Change Room Value
Hi Mazen,
That code do nothing, it's total wrong. I don't know what is your purpose when you add that code???
Dam
That code do nothing, it's total wrong. I don't know what is your purpose when you add that code???
Dam
Please Log in or Create an account to join the conversation.
- mazen
-
Topic Author
- Offline
- Junior Member
-
10 years 6 months ago #52285
by mazen
Replied by mazen on topic Change Room Value
Thank you ,
its done...
Regards
its done...
Regards
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.