<!-- Author: quyennd Description: display weather --> <?php $_smarty_tpl->tpl_vars["request_uri"] = new Smarty_variable($_SERVER['REQUEST_URI'], null, null); if (strstr($_smarty_tpl->getVariable('request_uri')->value, "hoteldetail") || strstr($_smarty_tpl->getVariable('request_uri')->value, "hotelpage")) { ?> <?php $_smarty_tpl->tpl_vars["mid"] = new Smarty_variable($_GET['mid'], null, null); ?> <?php $_smarty_tpl->tpl_vars['hotel'] = new Smarty_variable(HotelDetail::getHotelDescription($_smarty_tpl->getVariable('mid')->value), null, null); ?> <?php $_smarty_tpl->tpl_vars['cityName'] = new Smarty_variable(HotelDetail::getCityName($_smarty_tpl->getVariable('hotel')->value['HotelCity']), null, null); } else { ?> <?php $_smarty_tpl->tpl_vars['cityName'] = new Smarty_variable('Tokyo', null, null); } ?> <!-- left navigation end --> <!-- include flatWeatherPlugin.js --> <script src="themes/default/js/jquery.flatWeatherPlugin.min.js"></script> <script type="text/javascript"> $(document).ready(function() { var example3 = $("#weather").flatWeatherPlugin({ location: " <?php echo $_smarty_tpl->getVariable('cityName')->value;