📄 index.xsl
字号:
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head><title>使用不同的样式</title></head>
<script language = "JavaScript">
function ViewRecords()
{
products.dataPageSize=items.value;
products.firstPage();
}
function FirstPage()
{
products.firstPage();
}
function NextPage()
{
products.nextPage();
}
function LastPage()
{
products.lastPage();
}
function PrevPage()
{
products.previousPage();
}
</script>
<body>
<center>
<embed width="100%" height="15%" src="Long.swf"/>
<form action="control1.jsp" method="post">
<table border="0" align="center" width="100%">
<tr><td style="font-size:45;" rowspan="2" align="center">惠通软件公司客户管理软件</td><td width="25%"><a href="view_0.jsp">客户信息添加</a></td></tr>
<tr><td width="25%"><a href="vi.jsp">客户信息查询</a></td></tr>
<xsl:for-each select="客户表/客户">
<tr>
<xsl:apply-templates/>
</tr>
</xsl:for-each>
</table>
</form>
</center>
<xml id="dos" src="Client.xml"></xml>
<table id="products" border="0" width="100%" datasrc="#dos" align="center">
<thead>
<th>客户姓名</th>
<th>客户住址</th>
<th>联系方式</th>
<th>客户爱好</th>
<th>客户职业</th>
</thead>
<tr>
<td align="center"><span datafld="客户姓名"></span></td>
<td align="center"><span datafld="客户住址"></span></td>
<td align="center"><span datafld="联系方式"></span></td>
<td align="center"><span datafld="客户爱好"></span></td>
<td align="center"><span datafld="客户职业"></span></td>
</tr>
<tr>
<td colspan="5" height="1" background="073.gif"></td>
</tr>
</table>
<center>
<input type="button" value="第一页" onclick="FirstPage()"/>
<input type="button" value="上一页" onclick="PrevPage()"/>
<input type="button" value="下一页" onclick="NextPage()"/>
<input type="button" value="最后一页" onclick="LastPage()"/>
请输入一页中要查看的记录数:<input type="text" maxlength="1" size="2" id="items" name="na1"/>
<input type="button" value="查看" onclick="ViewRecords()"/>
</center>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -