Beispiel #1
0
        public string BuildSanIndex2()
        {
            string s2 = "<h2  style='text-align:center;'>సంస్కృత ఛందస్సులు</h2>";

            s2 = s2 + "<h2 style='text-align:center;'>వృత్తములు</h2><ol>";
            for (int i = 1; i <= 27; i++)
            {
                string cName  = (i <= 26 ? Helper.ChandamName(i) + " (" + i + ")" : " ఇతర");
                Rule[] VRules = i <= 26 ? RuleHelper.GetSanRules2(i) : RuleHelper.GetSanRules3();

                s2 = s2 + "<h2 style='text-align:center;'>" + cName + "</h2>";
                s2 = s2 + "<ol>";
                foreach (Rule R in SortHelper.SortByName(VRules))
                {
                    s2 = s2 + "<li id='h_" + R.Identifier + "'><a class='identifier'  title='" + R.Name + "' href='?chandassu=" + R.Identifier + "'>" + R.Name + "</a></li>";
                }
                s2 = s2 + "</ol>";
            }
            s2 = s2 + "</ol>";
            s2 = "<ol>" + s2 + "</ol>";
            return(s2);
        }