/// <summary> /// RSS사이트 정보 확인 /// </summary> private void setSiteInfo(string URL) { XmlNodeType element = XmlNodeType.Element; clsRSS objRSS = new clsRSS(); objRSS.Create_XML_Reader(URL); if (objRSS.MoveCursor(element, "channel")) { if (objRSS.MoveCursor(element, "title")) { siteTitle = objRSS.reader.ReadElementString(); siteURL = URL; } } }
//left // 읽지 않은 아이템 수 추가 by 이현석(2011-07-27) public string DS2Left(System.Data.DataSet DS, string user_id, clsFeed objFeed) { clsRSS objRSS = new clsRSS(); StringBuilder strBuilder = new StringBuilder(); string idx; int i; if (objCmnDB.validateDS(DS)) { //전체 항목 strBuilder.Append(" <ul>"); //전체 항목 인자값 넣어주기 strBuilder.Append(" <a href='javascript:go_AllList();' >"); strBuilder.Append(" <span id='AllList' name='AllList' class='MenuName'>"); strBuilder.Append("전체항목(" + objFeed.UnreadItems().Count + ")"); strBuilder.Append(" </span>"); strBuilder.Append(" </a>"); strBuilder.Append(" </ul>"); //관심항목 strBuilder.Append(" <ul>"); //관심항목 인자값 넣어주기 strBuilder.Append(" <a href='javascript:go_FavorPage();' >"); strBuilder.Append(" <span id='selectFavorItem' name='selectFavorItem' class='MenuName'>"); strBuilder.Append("관심항목(" + objFeed.FavorItems().UnreadItems().Count + ")"); strBuilder.Append(" </span>"); strBuilder.Append(" </a>"); strBuilder.Append(" </ul>"); //구독 LIST 출력 for (i = 0; i < DS.Tables[0].Rows.Count; i++) { strBuilder.Append(" <ul>"); strBuilder.Append(" <a href=\"javascript:go_ListPage('" + DS.Tables[0].Rows[i][1].ToString() + "', '" + DS.Tables[0].Rows[i][2].ToString() + "');\">"); strBuilder.Append(" <span id='List" + DS.Tables[0].Rows[i][2].ToString() + "' name='List" + DS.Tables[0].Rows[i][2].ToString() + "' class='MenuName'>"); idx = DS.Tables[0].Rows[i][2].ToString(); strBuilder.Append(" " + DS.Tables[0].Rows[i][0] + "(" + objFeed.extractItems(idx).UnreadItems().Count + ")"); strBuilder.Append(" </span>"); strBuilder.Append(" </a>"); strBuilder.Append(" </ul>"); } //구독관리(rss002.aspx) strBuilder.Append(" <ul>"); //관심항목 인자값 넣어주기 strBuilder.Append(" <a href='../RSS/RSS002.aspx' >"); strBuilder.Append(" <span id='manage' name='manage' class='MenuName'>"); strBuilder.Append("구독관리"); strBuilder.Append(" </span>"); strBuilder.Append(" </a>"); strBuilder.Append(" </ul>"); } return(strBuilder.ToString()); }