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

📄 dispaly.js

📁 J-Blog v1.0 系统配置: web.xml里默认配置为:resin 2.1.14 可根据您的具体服务器配置。 注意链接池就是了! 然后导入database/j-blog.sql 默
💻 JS
字号:
function J_Blog_Skins(){
    var J_Blog_ID;
    var J_Blog_Name;
    var J_Blog_Content;
    var J_Blog_Path;
    var J_Blog_Author;
    var J_Blog_CreateDate;
    var J_Blog_Image;
    var J_Blog_DO;
    var J_Blog_Style;
    var J_Blog_StyleFile;

    this.J_Blog_ID = J_Blog_ID;
    this.J_Blog_Name = J_Blog_Name;
    this.J_Blog_Content = J_Blog_Content;
    this.J_Blog_Path = J_Blog_Path;
    this.J_Blog_Author = J_Blog_Author;
    this.J_Blog_CreateDate = J_Blog_CreateDate;
    this.J_Blog_Image = J_Blog_Image;
    this.J_Blog_DO = J_Blog_DO;
    this.J_Blog_Style = J_Blog_Style;
    this.J_Blog_StyleFile = J_Blog_StyleFile;
}
J_Blog_Skins.prototype.Show = function(){
    try{
		top.doSetProperty("title","模板属性管理");
		top.doSetProperty("description","添加和管理模板基础属性信息。");
	}catch(exception){
        ;
    }

    html  = ('<form name="frmSkins" action="/j_blog_post.jsp?action=skins" method="post" onsubmit="return submitStatus(this);">');
    html += ('<input type="hidden" name="J_Blog_DO" value="'+this.J_Blog_DO+'">');
	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 width="20%" bgcolor="#FFFFCC">模板名称:</td><td><input type="text" value="'+this.J_Blog_Name+'" name="J_Blog_Name" size="20" Maxlength="20" allownull="0" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">目录名称:</td><td><input type="text" value="'+this.J_Blog_Path+'" name="J_Blog_Path" size="20" Maxlength="16" allownull="0" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">制 作 人 :</td><td><input type="text" value="'+this.J_Blog_Author+'" name="J_Blog_Author" size="20" Maxlength="16" allownull="0" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">模板文件:</td><td><input type="text" value="'+this.J_Blog_StyleFile+'" name="J_Blog_StyleFile" size="35" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">样 式 表 :</td><td><input type="text" value="'+this.J_Blog_Style+'" name="J_Blog_Style" size="35" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">缩 略 图 :</td><td><input type="text" value="'+this.J_Blog_Image+'" name="J_Blog_Image" size="35" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">创建时间:</td><td><input type="text" value="'+this.J_Blog_CreateDate+'" name="J_Blog_CreateDate" size="30" Maxlength="50" allownull="0" /></td>');
	html += ('</tr>');

    html += ('<tr bgcolor="#F6F6F6">');
	html += ('<td width="20%" bgcolor="#FFFFCC">简单介绍:</td><td><textarea name="J_Blog_Content" rows="5" cols="50%">'+this.J_Blog_Content+'</textarea></td>');
	html += ('</tr>');

    html += ('</table>');

    html += ('<input type="submit" style="width:0px;height:0px"/>');
	html += ('<input type="reset" style="width:0px;height:0px"/>');
	html += ('</form>');

    this.editBar();
	document.write(html);
}
J_Blog_Skins.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="btnAddnew" value="新 建" onclick="'+frmInfo+'.location =  \'templates/templates.jsp?action=addnew\'" disabled> <input type="button" id="btnSubmit" value="提 交" onclick="'+frmInfo+'.doSubmit();" '+blStatus+'> <input type="button" id="btnReset" value="重 写" onclick="'+frmInfo+'.frmSkins.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(frmSkins))
	{
		frmSkins.submit();
	}
}

⌨️ 快捷键说明

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