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

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

            for (int i = 0; i < confs.Count; i++)
            {
                html += "<tr><td>" + confs[i] + "</td>"
                        + "<td onclick =\"rezerveConference('" + username + "','" + confs[i] + "')\">Register</td></tr>";
            }
            return(html);
        }