Example #1
0
        public static string searchFiles(string keywords)
        {
            utils.DbUtils dbUtil = new utils.DbUtils();
            string        html   = "<tr><th>File</th><th></th></tr>";
            List <string> slist  = dbUtil.getFiles(keywords);

            for (int i = 0; i < slist.Count; i++)
            {
                html += "<tr><td>" + slist[i] + "</td>"
                        + "<td onclick =\"showChunks('" + dbUtil.getId(slist[i]) + "')\">Show</td>" +
                        "</tr>";
            }
            return(html);
        }