I have this code:

$output  = $smarty->fetch('index.template.php');
                $viewHotel      = $smarty->fetch('view.hotel.template.php');
                
                $output  = str_replace("<VIEW_HOTEL/>",$viewHotel, $output);
        }
        
        function oCheckAvailability() {
                global $output;
                global $smarty;
                
                $f      = $_POST;
                
                $arrival_date           = date("Y-m-d",
strtotime($f['ArrivalDate']));
                $departure_date         = date("Y-m-d",
strtotime($f['DepartureDate']));
                
                _module('arrival_date', $arrival_date);
                _module('departure_date', $departure_date);
                
                GetBlockAvailability();
                
                $res    = $smarty->fetch('view.block.template.php');
                $output = str_replace('<VIEW_BLOCK_AVAILABILITY/>', $res,
$output);
        }
        
        
        function GetCreditCardTypes() {
                $hotel_id       = _module('hotel_id');
                
                $methodName = "bookings.getCreditcardTypes";
                
                $struct = new xmlrpcval();
                $f=new xmlrpcmsg($methodName, $struct);



VIEW_HOTEL/ comes out as red. then all then lines 
become red except where the word function contains.

-- 
<http://forum.pspad.com/read.php?2,47201,47201>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem