OS Property support center

Change Room Value

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
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

Please Log in or Create an account to join the conversation.

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #52219 by mazen
Replied by mazen on topic Change Room Value
Hello
Any update ??

Thank you

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #52285 by mazen
Replied by mazen on topic Change Room Value
Thank you ,
its done...
Regards

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan