public void DrawProfilesModule() { Utilities.DataIO dataIO = new Profiles.Profile.Utilities.DataIO(); StringBuilder html = new StringBuilder(); List<string> reader = dataIO.GetEagleI(base.RDFTriple.Subject); string eagleIEmail = ConfigurationManager.AppSettings["EAGLEI.EmailAddress"]; litHead.Text = "<table><tr><td><table style='width:480px;font-weight:bold;color:#888;padding:5px 0px;'>" + "<tr><td valign='top' xstyle='width:90%'>This researcher has shared information about their research resources <br/>in the eagle-i Network. To update or add resource records, contact <br/>" + "<a href='mailto:" + eagleIEmail + "'>" + eagleIEmail + "</a>.</td>" + "</tr></table></td><td align='center' valign='middle'><img src='" + Root.Domain + "/profile/modules/CustomViewEagleI/Images/logo.gif'/></td></tr></table>"; for (int i = 0; i < reader.Count; i++) { html.Append("<div class='mentor-completed'>"); html.Append(reader[i]); html.Append("</div>"); } litHtml.Text = html.ToString(); }
public void DrawProfilesModule() { Utilities.DataIO dataIO = new Profiles.Profile.Utilities.DataIO(); StringBuilder html = new StringBuilder(); List <string> reader = dataIO.GetEagleI(base.RDFTriple.Subject); string eagleIEmail = ConfigurationManager.AppSettings["EAGLEI.EmailAddress"]; litHead.Text = "<table><tr><td><table style='width:480px;font-weight:bold;color:#888;padding:5px 0px;'>" + "<tr><td valign='top' xstyle='width:90%'>This researcher has shared information about their research resources <br/>in the eagle-i Network. To update or add resource records, contact <br/>" + "<a href='mailto:" + eagleIEmail + "'>" + eagleIEmail + "</a>.</td>" + "</tr></table></td><td align='center' valign='middle'><img src='" + Root.Domain + "/profile/modules/CustomViewEagleI/Images/logo.gif'/></td></tr></table>"; for (int i = 0; i < reader.Count; i++) { html.Append("<div class='mentor-completed'>"); html.Append(reader[i]); html.Append("</div>"); } litHtml.Text = html.ToString(); }
private void DrawProfilesModule() { Profiles.Profile.Utilities.DataIO dataIO = new Profiles.Profile.Utilities.DataIO(); StringBuilder html = new StringBuilder(); List <string> reader = dataIO.GetEagleI(this.SubjectID); string eagleIEmail = ConfigurationManager.AppSettings["EAGLEI.EmailAddress"]; string eagleIInstitution = ConfigurationManager.AppSettings["EAGLEI.InstitutionName"]; html.Append("<div class='mentor-completed'>Information in the research resource module is provided automatically from the "); html.Append(eagleIInstitution); html.Append(" repository of the eagle-i Network. To update information or list your resources in eagle-i, please contact <a href='mailto:"); html.Append(eagleIEmail); html.Append("'>"); html.Append(eagleIEmail); html.Append("</a>. For more information about the eagle-i research resource network, visit <a href='http://www.eagle-i.net'>www.eagle-i.net</a>.</div><br>"); if (reader.Count == 0) { html .Append("<div class='mentor-current'>") .AppendFormat("<div><i>You have no current records in the eagle-i system.</i></div></div>"); } else { for (int loop = 0; loop < reader.Count; loop++) { html .Append("<div class='mentor-current'>") .Append(reader[loop]) .Append("</div>"); } } // Pass to control litEagleI.Text = html.ToString(); }
private void DrawProfilesModule() { Profiles.Profile.Utilities.DataIO dataIO = new Profiles.Profile.Utilities.DataIO(); StringBuilder html = new StringBuilder(); List<string> reader = dataIO.GetEagleI(this.SubjectID); string eagleIEmail = ConfigurationManager.AppSettings["EAGLEI.EmailAddress"]; string eagleIInstitution = ConfigurationManager.AppSettings["EAGLEI.InstitutionName"]; html.Append("<div class='mentor-completed'>Information in the research resource module is provided automatically from the "); html.Append(eagleIInstitution); html.Append(" repository of the eagle-i Network. To update information or list your resources in eagle-i, please contact <a href='mailto:"); html.Append(eagleIEmail); html.Append("'>"); html.Append(eagleIEmail); html.Append("</a>. For more information about the eagle-i research resource network, visit <a href='http://www.eagle-i.net'>www.eagle-i.net</a>.</div><br>"); if (reader.Count == 0) { html .Append("<div class='mentor-current'>") .AppendFormat("<div><i>You have no current records in the eagle-i system.</i></div></div>"); } else { for (int loop = 0; loop < reader.Count;loop++ ) { html .Append("<div class='mentor-current'>") .Append(reader[loop]) .Append("</div>"); } } // Pass to control litEagleI.Text = html.ToString(); }