📄 labeltemplate.aspx
字号:
inserttext = "<xsl:value-of select=\"" + selectobj.getAttribute("path") + "$" + selectobj.getAttribute("tn") + "\"/>";
break;
case 'alt':
inserttext = "{" + selectobj.getAttribute("path") + "/$" + selectobj.getAttribute("tn") + "}";
break;
default:
inserttext = "<xsl:value-of select=\"$" + selectobj.getAttribute("tn") + "\"/>";
break;
}
break;
case '3':
switch (presskey)
{
case 'ctrl':
inserttext = "<xsl:param name=\"" + selectobj.innerText + "\" />";
break;
case 'alt':
inserttext = "$" + selectobj.innerText;
break;
default:
inserttext = "<xsl:value-of select=\"$" + selectobj.innerText + "\" />";
break;
}
break;
case '4':
inserttext = selectobj.getAttribute("code").replace(/&qout;/g, "\"");
break;
case '5':
inserttext = "pe:" + selectobj.getAttribute("code").replace(/&qout;/g, "'");
break;
}
}
document.onmousedown = initDrag;
document.onmouseup = function() {
isdrag=false;
if(dragspan != null)
{
document.body.removeChild(dragspan);
dragspan = null;
}
}
document.onkeyup = function() {
presskey = '';
}
document.onkeydown = function(e) {
var isie = (document.all) ? true : false;
var key;
if (isie)
key = window.event.keyCode;
else
key = e.which;
if(key == 18)
{
presskey = 'alt';
}
else if(key == 17)
{
presskey = 'ctrl';
}
else
{
presskey = '';
}
}
/* 导出XML数据 */
function openxmlshow()
{
window.open('LabelXmlShow.aspx?name=' + encodeURI('<%= m_LabelName %>'), '_blank');
}
/* 页面元素控制 */
var fpath = '<% =StyleSheetPath %>';
function switchSysBar(objname, tarname, dir){
var obj = $get(objname);
if (obj.alt == "关闭"){
obj.alt = "打开";
if(dir == "right")
obj.src = fpath + "Images/butClose.gif";
else
obj.src = fpath + "Images/butOpen.gif";
$get(tarname).style.display="none";
}
else
{
obj.alt = "关闭";
if(dir == "right")
obj.src = fpath + "Images/butOpen.gif";
else
obj.src = fpath + "Images/butClose.gif";
$get(tarname).style.display="";
}
}
function sizeChange(size){
var obj=document.getElementById("<% = TxtTemplate.ClientID %>");
var height = parseInt(obj.offsetHeight);
if (height+size>=100)
{
obj.style.height=height+size + 'px';
}
}
function sizeshowmode(){
var obj=$get("<% = LabShow.ClientID %>");
var converter = document.createElement("DIV");
if($get("tohtml").value != "源码")
{
$get("tohtml").value = "源码";
converter.innerHTML = obj.innerHTML;
obj.innerHTML = converter.innerText;
}
else
{
$get("tohtml").value = "内容";
converter.innerText = obj.innerHTML;
obj.innerHTML = converter.innerHTML;
}
converter = null;
}
-->
</script>
<table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="0" class="border">
<tr>
<td class="spacingtitle" style="height: 22px;" colspan="5" align="center">
<b>标签内容编辑</b></td>
</tr>
<tr class="tdbg">
<td style="text-align: center; vertical-align: top; width: 220px" id="ft">
<ajaxToolkit:TabContainer runat="server" ID="TabContainer1" Height="400px">
<ajaxToolkit:TabPanel runat="Server" ID="TabPanel" HeaderText="标准代码">
<ContentTemplate>
<div style="overflow: auto; float: left; width: 100%; height: 390px; text-align: left">
<div code="xmlns:ms=&qout;urn:schemas-microsoft-com:xslt&qout;" onclick="cit()" outype="4"
class="spanfixdiv">
MS命名空间</div>
<div code="xmlns:js=&qout;urn:the-xml-files:xslt-js&qout;" onclick="cit()" outype="4"
class="spanfixdiv">
JS代码命名空间</div>
<div code="xmlns:vb=&qout;urn:the-xml-files:xslt-vb&qout;" onclick="cit()" outype="4"
class="spanfixdiv">
VB代码命名空间</div>
<div code="xmlns:csharp=&qout;urn:the-xml-files:xslt-csharp&qout;" onclick="cit()"
outype="4" class="spanfixdiv">
C#命名空间</div>
<div code="xmlns:pe=&qout;labelproc&qout;" onclick="cit()" outype="4" class="spanfixdiv">
扩展函数命名空间</div>
<div code="disable-output-escaping=&qout;yes&qout;" onclick="cit()" outype="4" class="spanfixdiv">
HTML编码输出</div>
<div code="<xsl:value-of select=&qout;&qout;/>" onclick="cit()" outype="4" class="spanfixdiv"
title="变量调用标签">
value-of</div>
<div code="<xsl:for-each select=&qout;&qout;></xsl:for-each>" onclick="cit()" outype="4"
class="spanfixdiv" title="变量循环">
for-each</div>
<div code="<xsl:param name=&qout;&qout;/>" onclick="cit()" outype="4" class="spanfixdiv"
title="变量引入">
Param</div>
<div code="<xsl:with-param name=&qout;&qout;/></xsl:with-param>" onclick="cit()"
outype="4" class="spanfixdiv" title="变量传递">
With-Param</div>
<div code="<xsl:variable name=&qout;&qout;/>" onclick="cit()" outype="4" class="spanfixdiv"
title="变量定义">
Variable</div>
<div code="<xsl:template match=&qout;&qout;></xsl:template>" onclick="cit()" outype="4"
class="spanfixdiv" title="循环模板定义">
Templates</div>
<div code="<xsl:apply-templates select=&qout;&qout;/>" onclick="cit()" outype="4"
class="spanfixdiv" title="循环引用标签">
Apply-templates</div>
<div code="<a> <xsl:attribute name=&qout;href&qout;></xsl:attribute> <xsl:attribute name=&qout;title&qout;></xsl:attribute></a>"
onclick="cit()" outype="4" class="spanfixdiv" title="超连接元素">
A</div>
<div code="<xsl:element name=&qout;img&qout;><xsl:attribute name=&qout;src&qout;></xsl:attribute><xsl:attribute name=&qout;border&qout;>0</xsl:attribute></xsl:element>"
onclick="cit()" outype="4" class="spanfixdiv" title="图象元素">
Img</div>
<div code="<xsl:text disable-output-escaping=&qout;yes&qout;></xsl:text>" onclick="cit()"
outype="4" class="spanfixdiv" title="格式化字符输出">
Text</div>
<div code="<xsl:if test=&qout;&qout;></xsl:if>" onclick="cit()" outype="4" class="spanfixdiv"
title="条件标签">
If</div>
<div code="<xsl:choose><xsl:when test=&qout;&qout;></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose>"
onclick="cit()" outype="4" class="spanfixdiv" title="条件循环">
When</div>
</div>
</ContentTemplate>
</ajaxToolkit:TabPanel>
<ajaxToolkit:TabPanel runat="Server" ID="TabPanel1" HeaderText="扩展函数">
<ContentTemplate>
<div style="overflow: auto; float: left; width: 100%; height: 390px; text-align: left">
<div code="GetInfoPath(信息ID)" onclick="cit()" outype="5" class="spanfixdiv">
取得信息路径</div>
<div code="GetNodePath(是否带参数,栏目ID)" onclick="cit()" outype="5" class="spanfixdiv">
取得栏目路径</div>
<div code="GetSpecialPath(&qout;专题ID&qout;)" onclick="cit()" outype="5" class="spanfixdiv">
取得专题路径</div>
<div code="GetSpecialCategoryPath(&qout;专题类别ID&qout;)" onclick="cit()" outype="5"
class="spanfixdiv">
取得专题类别路径</div>
<div code="GetNode(&qout;栏目ID&qout;,&qout;name|dir|aspxname&qout;)" onclick="cit()"
outype="5" class="spanfixdiv">
取得栏目对象</div>
<div code="GetSpecial(&qout;专题ID&qout;,&qout;name|dir|categoryid&qout;)" onclick="cit()"
outype="5" class="spanfixdiv">
取得专题对象</div>
<div code="ReplaceText(&qout;字符&qout;,&qout;替换目标&qout;,&qout;替换内容&qout;)" onclick="cit()"
outype="5" class="spanfixdiv">
替换字符</div>
<div code="FiltText(&qout;字符&qout;)" onclick="cit()" outype="5" class="spanfixdiv">
站内过滤字符</div>
<div code="FiltInsideLink(&qout;字符&qout;)" onclick="cit()" outype="5" class="spanfixdiv">
替换站内链接</div>
<div code="TimeNow()" onclick="cit()" outype="5" class="spanfixdiv">
现在时间</div>
<div code="ConverToWeek(&qout;1999/01/01&qout;)" onclick="cit()" outype="5" class="spanfixdiv">
转换到星期</div>
<div code="FormatDate(&qout;1999/01/01&qout;,&qout;YYYY-MM-DD&qout;)" onclick="cit()"
outype="5" class="spanfixdiv">
转换日期格式</div>
<div code="TimeSpan(&qout;1999/01/01&qout;,pe:TimeNow())" onclick="cit()" outype="5"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -