コード例 #1
0
    private void LoadData()
    {
        string html = "";

        OtherFunctions objFunc = new OtherFunctions();

        if (_isAgentCat)
        {
            _agentCatID = Globals.AgentCatID;
        }
        DataSet ds = objFunc.GetAllSupportOnline("SupportOnline", _agentCatID);

        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
        {
            html += "<a class=\"support\" href=\"ymsgr:SendIM?" + DataObject.GetString(ds, i, "NickNameYM") + "\">";
            html += "<span class=\"support-name\">" + DataObject.GetString(ds, i, "DisplayName") + "</span>";
            if (_isYourIcon == false)
            {
                html += "<img class=\"support-image\" alt=\"" + DataObject.GetString(ds, i, "DisplayName") + "\" src=\"http://opi.yahoo.com/online?m=g&t=" + _typeIcon + "&u=" + DataObject.GetString(ds, i, "NickNameYM") + "\" />";
            }
            html += "</a>";
        }
        //return ("<b>" + title + "</b><br /><script type=\"text/javascript\" src=\"http://download.skype.com/share/skypebuttons/js/skypeCheck.js\"></script><a href=\"skype:" + nick + "?chat\"><img src=\"http://mystatus.skype.com/smallclassic/" + nick + "\" border=\"0\" alt=\"" + title + "\" /></a>");
        divContent.InnerHtml = html;
    }
コード例 #2
0
 private void LoadSupportOnlineList()
 {
     //try
     {
         OtherFunctions obj      = new OtherFunctions();
         DataSet        ds       = obj.GetAllSupportOnline("SupportOnline", Globals.AgentCatID);
         GridViewHelper gvHelper = new GridViewHelper();
         gvHelper.FillData(gridViewSupportOnline, ds);
     }
     //catch { }
 }