📄 dispaly.js
字号:
function J_Blog_Link(){
var J_Blog_ID;
var J_Blog_DO;
var J_Blog_Name;
var J_Blog_URL;
var J_Blog_Img;
var J_Blog_Type;
var J_Blog_Content;
var J_Blog_View;
var J_Blog_Auditing;
this.J_Blog_ID = J_Blog_ID;
this.J_Blog_DO = J_Blog_DO;
this.J_Blog_Name = J_Blog_Name;
this.J_Blog_URL = J_Blog_URL;
this.J_Blog_Img = J_Blog_Img;
this.J_Blog_Type = J_Blog_Type;
this.J_Blog_Content = J_Blog_Content;
this.J_Blog_View = J_Blog_View;
this.J_Blog_Auditing = J_Blog_Auditing;
}
J_Blog_Link.prototype.Show = function(){
try{
top.doSetProperty("title","链接属性管理");
top.doSetProperty("description","添加和管理链接基础属性信息。");
}catch(exception){
;
}
html = ('<form name="frmLinks" action="/j_blog_post.jsp?action=link" 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="50" Maxlength="46" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">网站地址:</td><td><input type="text" value="'+this.J_Blog_URL+'" name="J_Blog_URL" size="50" Maxlength="50" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">Logo地址:</td><td><input type="text" value="'+this.J_Blog_Img+'" name="J_Blog_Img" size="50" Maxlength="50" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">简单介绍:</td><td><input type="text" value="'+this.J_Blog_Content+'" name="J_Blog_Content" size="50" Maxlength="50" allownull="0" /></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">链接类型:</td><td><label for="J_Blog_Type1"><input type="radio" name="J_Blog_Type" Id="J_Blog_Type1" value="1" '+IIf(this.J_Blog_Type == 1," checked","")+'> 文字链接</label> <label for="J_Blog_Type2"><input type="radio" name="J_Blog_Type" Id="J_Blog_Type2" value="0" '+IIf(this.J_Blog_Type == 0," checked","")+'> 图片链接</label></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">显示位置:</td><td><label for="J_Blog_View1"><input type="radio" name="J_Blog_View" Id="J_Blog_View1" value="1" '+IIf(this.J_Blog_View == 1," checked","")+'> 首页显示</label> <label for="J_Blog_View2"><input type="radio" name="J_Blog_View" Id="J_Blog_View2" value="0" '+IIf(this.J_Blog_View == 0," checked","")+'> 内页显示</label></td>');
html += ('</tr>');
html += ('<tr bgcolor="#F6F6F6">');
html += ('<td width="20%" bgcolor="#FFFFCC">是否审核:</td><td><label for="J_Blog_Auditing1"><input type="radio" name="J_Blog_Auditing" Id="J_Blog_Auditing1" value="1" '+IIf(this.J_Blog_Auditing == 1," checked","")+'> 已审核</label> <label for="J_Blog_Auditing2"><input type="radio" name="J_Blog_Auditing" Id="J_Blog_Auditing2" value="0" '+IIf(this.J_Blog_Auditing == 0," checked","")+'> 未审核</label></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_Link.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 = \'link/link.jsp?action=addnew\'" disabled> <input type="button" id="btnSubmit" value="提 交" onclick="'+frmInfo+'.doSubmit();" '+blStatus+'> <input type="button" id="btnReset" value="重 写" onclick="'+frmInfo+'.frmLinks.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(frmLinks))
{
frmLinks.submit();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -