示例#1
0
        public static string showHotels(string username, string date, string city)
        {
            System.Diagnostics.Debug.Write(date);
            System.Diagnostics.Debug.Write(username);
            string html = "<tr><td>Flight Name</td><th></th></tr>";

            utils.DbUtils dbUtils = new utils.DbUtils();
            List <String> hotels  = dbUtils.selectHotels(date, city);

            for (int i = 0; i < hotels.Count; i++)
            {
                html += "<tr><td>" + hotels[i] + "</td>"
                        + "<td onclick =\"rezerveHotel('" + username + "','" + hotels[i] + "')\">Rezerve</td></tr>";
            }

            return(html);
        }