⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispaly.js

📁 J-Blog v1.0 系统配置: web.xml里默认配置为:resin 2.1.14 可根据您的具体服务器配置。 注意链接池就是了! 然后导入database/j-blog.sql 默
💻 JS
字号:
function J_Blog_Comm(){
    var J_Blog_ID;
    var J_Blog_BlogID;
    var J_Blog_CategoryID;
    var J_Blog_Author;
    var J_Blog_Date;
    var J_Blog_IP;
    //var J_Blog_Content;
    var J_Blog_IsView;
    var J_Blog_UBB;
    var J_Blog_Emot;
    var J_Blog_Property;
    var J_Blog_Title;
    var J_Blog_CategoryName;

    this.J_Blog_ID = J_Blog_ID;
    this.J_Blog_BlogID = J_Blog_BlogID;
    this.J_Blog_CategoryID = J_Blog_CategoryID;
    this.J_Blog_Author = J_Blog_Author;
    this.J_Blog_Date = J_Blog_Date;
    this.J_Blog_IP = J_Blog_IP;
    //this.J_Blog_Content = J_Blog_Content;
    this.J_Blog_IsView = J_Blog_IsView;
    this.J_Blog_UBB = J_Blog_UBB;
    this.J_Blog_Emot = J_Blog_Emot;
    this.J_Blog_Property = J_Blog_Property;
    this.J_Blog_Title = J_Blog_Title;
    this.J_Blog_CategoryName = J_Blog_CategoryName;
}
J_Blog_Comm.prototype.Show = function(){
    try{
		top.doSetProperty("title","评论属性管理");
		top.doSetProperty("description","查看和管理评论属性信息。");
	}catch(exception){
        ;
    }

    html = ('<form name="frmComm" action="/j_blog_post.jsp?action=comment" method="post" onsubmit="return submitStatus(this);">');
	html += ('<input type="hidden" name="J_Blog_ID" value="'+this.J_Blog_ID+'">');

    html += ('<table width="96%" border="0" cellspacing="1" cellpadding="3">');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td colspan="2" bgcolor="#FFFFCC">评论信息</td></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">评论人:</td><td>'+this.J_Blog_Author+' ['+this.J_Blog_IP+']</td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">评论时间:</td><td>'+this.J_Blog_Date+'</td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">所属日志:</td><td>'+this.J_Blog_Title+' ['+this.J_Blog_CategoryName+']</td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">是否审核:</td><td><label for="J_Blog_IsView1"><input type="radio" Id="J_Blog_IsView1" value="0" '+IIf(this.J_Blog_IsView == 0," checked","")+' name="J_Blog_IsView" />是</label> <label for="J_Blog_IsView2"><input type="radio" Id="J_Blog_IsView2" value="1" '+IIf(this.J_Blog_IsView == 1," checked","")+' name="J_Blog_IsView" />否</label></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">禁用UBB:</td><td><label for="J_Blog_UBB1"><input type="radio" Id="J_Blog_UBB1" value="1" '+IIf(this.J_Blog_UBB == 1," checked","")+' name="J_Blog_UBB" />是</label> <label for="J_Blog_UBB2"><input type="radio" Id="J_Blog_UBB2" value="0" '+IIf(this.J_Blog_UBB == 0," checked","")+' name="J_Blog_UBB" />否</label></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">禁用表情:</td><td><label for="J_Blog_Emot1"><input type="radio" Id="J_Blog_Emot1" value="1" '+IIf(this.J_Blog_Emot == 1," checked","")+' name="J_Blog_Emot" />是</label> <label for="J_Blog_Emot2"><input type="radio" Id="J_Blog_Emot2" value="0" '+IIf(this.J_Blog_Emot == 0," checked","")+' name="J_Blog_Emot" />否</label></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">是否隐藏:</td><td><label for="J_Blog_Property1"><input type="radio" Id="J_Blog_Property1" value="1" '+IIf(this.J_Blog_Property == 1," checked","")+' name="J_Blog_Property" />是</label> <label for="J_Blog_Property2"><input type="radio" Id="J_Blog_Property2" value="0" '+IIf(this.J_Blog_Property == 0," checked","")+' name="J_Blog_Property" />否</label></td>');
	html += ('</tr>');

    this.editBar();
	document.write(html);
}
J_Blog_Comm.prototype.editBar = function()
{
	var editbar;
	var frmInfo;
	var blStatus = "";

	editbar = parent.frames["frmbar"].document.all.span_editarea;
	frmInfo = "parent.frames['showfrm']";

	try
	{
		editbar.innerHTML;
	}
	catch (e)
	{
		editbar = parent.frmbar;
		frmInfo = "document.frames['frminc']";
	}

	editbar.innerHTML = ('<input type="button" id="btnSubmit" value="提 交" onclick="'+frmInfo+'.doSubmit();" '+blStatus+'> <input type="button" id="btnReset" value="重 写" onclick="'+frmInfo+'.frmComm.reset();"> ');
}

/**
 * 频道保存状态
 */
function submitStatus(frm)
{
	if (chkform(frm))
	{
		try
		{
			//parent.btnAddnew.disabled = false;
			parent.btnSubmit.disabled = true;
			parent.btnReset.disabled = true;
		}
		catch (e){
			this.disabled = true;
		}

		return true;
	}else{
		return false;
	}
}

function doSubmit()
{
	if (submitStatus(frmComm))
	{
		frmComm.submit();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -