public void contactGet() { moyu.User.School myUser = new User.School(); System.Collections.Hashtable[] contacts; contacts = myUser.contacGet(Convert.ToInt32(Session["id"])); foreach (System.Collections.Hashtable contact in contacts) { Response.Write("<li class=\"ui-widget-content ui-selectee\" data-uid=\""+contact["id"]+"\">"+contact["realname"]+"</li>"); } }
public void studentGet() { if (classId == 0) { return; } moyu.User.School myUser = new User.School(); Hashtable[] students; students = myUser.studentGet(classId); foreach (Hashtable student in students) { Response.Write("<li class=\"student-List-student\" data-value=\""+student["id"]+"\" >"+student["realname"]+"</li>"); } }
public void contactGet() { moyu.User.School myUser = new User.School(); System.Collections.Hashtable[] contacts; contacts = myUser.contacGet(Convert.ToInt32(Session["id"])); foreach (System.Collections.Hashtable contact in contacts) { StringBuilder sb = new StringBuilder(); sb.Append("<li id=\"contact-" + contact["id"] + "\" class=\"ui-widget-content ui-selectee left schoolEcard-c-f-c-l-item\" data-uid=\"" + contact["id"] + "\">"); sb.Append("<div class=\"schoolEcard-c-f-c-u-name\">" + contact["realname"] +"("+ ( Convert .ToBoolean( contact ["sex"])?"男":"女")+ ")</div>"); sb.Append("<ul class=\"schoolEcard-c-f-c-u-other clearfix\"><li>" + contact["phone"] + "</li><li>" + contact["architecture"] + "</li></ul>"); sb.Append("<div class=\"schoolEcard-c-f-c-u-address\">" + contact["address"] + "</div>"); sb.Append("</li>"); Response.Write(sb); } }