Exemplo n.º 1
0
        /// <summary>
        /// 显示帖子子楼用户名
        /// </summary>
        /// <param name="mainID"></param>
        /// <param name="deID"></param>
        /// <param name="userID"></param>
        /// <param name="username"></param>
        /// <param name="sex"></param>
        /// <param name="isNiming"></param>
        /// <returns></returns>
        public static string GetBBSDeUserNameHtml(BBSDERelationQuery item, byte isTianshen)
        {
            string className = "";

            if (item.IsNiming == 1 && isTianshen == 1)  //匿名用户且帖子使用了天神之眼
            {
                return "<a href='#' onclick='ShowUserOption(" + item.UserID + ")'  class='OfNiming' ><font color=" + item.UserColor + " title='该用户被人使用强化显形卡打回原形了'>" + item.UserName + "</font></a>";
            }
            else if (item.IsNiming == 1) //匿名用户
            {
                return "<a href='#' onclick=\"ShowNiming(" + item.BBSMainID + "," + item.BBSDeID + ");return false;\" class='Niming' title='点击查看该用户ID'>匿名人士</a>";
            }
            else if (item.IsNiming == 2)//超级匿名用户
            {
                return "<a href='#' onclick=\"ShowNiming(" + item.BBSMainID + "," + item.BBSDeID + ");return false;\" class='Niming'  title='点击查看该用户ID'>超级匿名人士</a>";
            }
            else if (item.IsNiming == 3) //被打回原形用户
            {
                return "<a href='#' onclick='ShowUserOption(" + item.UserID + ")'  class='OfNiming' ><font color=" + item.UserColor + " title='该用户被人使用强化显形卡打回原形了'>" + item.UserName + "</font></a>";
            }

            string headImage = UserCommon.GetUserHeadImage(item.HeadImages, 80);
            string qidHeadImage = UserCommon.GetUserHeadImage(item.Users_1_HeadImages, 80);

            string str = "<a href='#' onclick='return ShowUserOption(" + item.UserID + ")' onmouseover=\"showPopupMenu1(this, popMenuUser, '" + item.UserID + "','" + item.UserName + "','" + headImage + "', '" + item.Users_1_UserID + "','" + item.Users_1_UserName + "','" + qidHeadImage + "')\" onmouseout=\"hidePopup(this, popMenuUser, event)\"  " + className + "><font color=" + item.UserColor + ">" + item.UserName + "</font></a>";

            return str;
        }
Exemplo n.º 2
0
        public static string GetBBSDeDeleteHtml(BBSDERelationQuery item,int adminType)
        {
            string content = "";
            if (UserCommon.CheckBBSAdminRight(adminType))
            {
                if (item.IsDelete == 2)
                    content += " <a href='#' class='bbslinktext' onclick='return DeleteDe(" + item.BBSMainID + "," + item.BBSDeID + ",0)'>取消删除</a>";
                else
                    content += " <a href='#' class='bbslinktext' onclick='return DeleteDe(" + item.BBSMainID + "," + item.BBSDeID + ",2)'>删除</a>";
            }

            return content;
        }
Exemplo n.º 3
0
        public static string GetBBSDeHtml(BBSDERelationQuery item,int userID,bool showAllQM,int adminType)
        {
            string content = "";
            if (userID == 0 && item.IsDelete == 1) //游客
            {
                content += "<font color='#BEBEBE'>该回复已自杀</font><br />";
                return content;
            }
            if (userID == 0 && item.IsDelete == 2) //游客
            {
                content += "<font color='#BEBEBE'>该回复已被管理员删除</font><br />";
                return content;
            }
            //普通用户
            if (UserCommon.CheckBBSAdminRight(adminType) == false && userID != item.AddUser && item.IsDelete == 1)
            {
                content += "<font color='#BEBEBE'>该回复已自杀</font><br />";
                return content;
            }
            if (UserCommon.CheckBBSAdminRight(adminType) == false && item.IsDelete == 2)
            {
                content += "<font color='#BEBEBE'>该回复已被管理员删除</font><br />";
                return content;
            }
            if(item.ContentType==1)
                content += MyText.UbbCode(item.Content) + "<br />";
            else
                content += item.Content + "<br />";

            content += bbs.GetUpImagesHtml(item.UpImages);
            if (item.Images != "")
                content += "<img src='"+ item.Images +"'><br />";
            content += bbs.GetFaceHtml(item.Face);
            content += bbs.GetUserTagHtml(item.IsShowTag, item.Users_Images, item.Remark, showAllQM);
            if (UserCommon.CheckBBSAdminRight(adminType) == true && item.OptionLog != null && item.OptionLog != "")
                content += "<font color='#BEBEBE'>" + item.OptionLog + "</font><br />";
            content += bbs.GetModTimeHtml(item.ModTime);
            content += "<font color='#BEBEBE'>" + item.AddTime + "</font>&nbsp;&nbsp;";
            if (UserCommon.CheckBBSHighAdminRight(adminType))
                content += "<font color='#BEBEBE'>IP:" + item.AddIP+"</font>";
            if (item.IsDelete == 1)
                content += "<br /><font color='#BEBEBE'>该回复已自杀</font>";
            if (item.IsDelete == 2)
                content += "<br /><font color='#BEBEBE'>该回复已被管理员删除</font>";
            return content;
        }