<--头尾-->
<?xml version="1.0" encoding="GB2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="GB2312" indent="no"/>
<xsl:template match="root">
</xsl:template>
</xsl:stylesheet>
************************
οnclick="location.href='ProclaimAddEdit.do?buttonName=ADD'"(传参)
**************************
<--使文本框分为两段-->
<xsl:value-of select="edate" />
**************************
<a href="javascript:window.close()">关闭窗口</a>
************************************************
style='word-break:break-all;'
*******************************************
<font color="#FF0000"><xsl:value-of select="system/message" /></font> <font color="#FF0000">*</font>
************************************
<xsl:attribute name="value"><xsl:value-of select="loginPassword" /></xsl:attribute>
****************************************
<font color="#FF0000">默认为当前月</font> 红色
*******************
<div style="visibility: hidden"><xsl:value-of select="buttonName"/></div> // 隐藏一个button来传参数
*************************
<META HTTP-EQUIV="REFRESH" CONTENT="3;URL=CHANGE.HTML"> 让一个页面3秒后自动载入
************************************
<xsl:variable name="var1" select="videofile"/>
<xsl:choose>
<xsl:when test="$var1!='' ">
<a class="stu_company2" target="_parent" href="../student/download.jsp?fileName={videofile}">
视频介绍
</a>
</xsl:when>
<xsl:when test="$var1='' ">
无视频介绍
</xsl:when>
</xsl:choose>
**********************************************************************
  //空格 maxLength="100"//最大长度 nowrap="" //不换行 > //" >"
******************************************************
<div style="visibility: hidden"><xsl:value-of select="buttonName"/></div>
*****************************************************
; width:120px //控制按钮的大小 返回到指定界面(οnclick="document.location.href='TerminalOrderConfirmPage.htm'") οnclick="confirm('你确实要删除吗?');"
*****************************************************
οnclick="javascript:window.close()" //按钮关闭的功能
**********************************************************
οnclick="window.print()" //按钮实现用ie打印的功能
*******************************************************
<base target="_self" /> //在本页面弹出页面
target="_self" // tablebean里调用的时候,
***********************************************************
class="stu_company2" // 超链是橘黄颜色的
class="con" //超链是蓝颜色的
**********************************************************
οnclick="document.location.href='YM_EditEPAppraisal.jsp?No={no}&studentid={studentid}'" //按钮传多个参数
***************************************
<xsl:attribute name="href"><xsl:value-of select="customerSite"/></xsl:attribute><xsl:value-of select="customerSite"/></a>
//超链属性
***************************************
1. <xsl:attribute name="width">
<xsl:value-of select="width"/>%
</xsl:attribute>
2. <xsl:variable name="width" select="width"/>
<td width="{$width}%" class="main-table-fun-top-th" style="height: 25; ">
//宽度属性--在table里使用
<xsl:for-each select="headpart/head">
<xsl:variable name="width" select="width"/>
<td width="{$width}%" class="main-table-fun-top-th" style="height: 25; ">
<xsl:value-of select="name"/> </td>
</xsl:for-each>
***********************
<!--提示信息页-->
<font color="#FF0000"><xsl:value-of select="system/appMessage/ResultMsg"/>
<xsl:value-of select="system/appMessage/message"/></font>
**********************
<!-- 单选钮 -->
<input type="radio" value="0" name="Sex">
<xsl:if test="sex[.='true']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>男
<input type="radio" value="1" name="Sex">
<xsl:if test="sex[.='false']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>女
************************
<!-- 复选框 -->
<xsl:for-each select="terminologyList/terminology">
<tr><td>
<input type="checkbox" name="UserRole">
<xsl:if test="./@checked[.='1']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<xsl:attribute name="value">
<xsl:value-of select="terminologyID"/>
</xsl:attribute>
</input>
</td>
<td> <xsl:value-of select="terminologyContent"/></td>
<td></td>
</tr>
</xsl:for-each>
***************************
<!-- 判断链接 -->
<xsl:variable name="str1"><xsl:value-of select="useState"/></xsl:variable>
<xsl:choose >
<xsl:when test="$str1=1"><a href="">冻结态</a></xsl:when>
<xsl:otherwise>激活态</xsl:otherwise>
</xsl:choose>
*****************************
<!-- 文本框 -->
<input type="text" name="textfield2">
<xsl:attribute name="value">
<xsl:value-of select="userPW" />
</xsl:attribute>
</input>
*****************************
<--长方形文本框-->
<textarea rows="5" name="S1" cols="24"><xsl:value-of select="aim" /></textarea>
****************************
<!-- 有单选按钮的列表-->
<xsl:for-each select="cycleList">
<xsl:variable name="var1" select="number"/>
<tr>
<td width="2%" height="30" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF"><input type="radio" value="{$var1}" checked="" name="partID" /></td>
<td width="8%" height="30" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF"><xsl:value-of select="number"/></td>
<td width="7%" height="30" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF"><xsl:value-of select="server"/></td>
<td width="4%" height="30" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF"><xsl:value-of select="price"/></td>
<td width="6%" height="30" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF"><xsl:value-of select="buyTime"/></td>
<td width="14%" height="30" class="main-table-fun-top" style="color: #000000; background-color: #FFFFFF"><xsl:value-of select="qualityInfo"/></td></tr>
</xsl:for-each>
******************************
<!--有表示状态的下拉框-->
<xsl:if test="state[.='1']">
<select size="1" name="kind" onChange="b()">
<option selected="" value="1">报废</option>
<option value="2">使用</option>
<option value="3">未使用</option>
</select>
</xsl:if>
<xsl:if test="state[.='2']">
<select size="1" name="kind" onChange="b()">
<option value="1">报废</option>
<option selected="" value="2">使用</option>
<option value="3">未使用</option>
</select>
</xsl:if>
<xsl:if test="state[.='3']">
<select size="1" name="kind" onChange="b()">
<option value="1">报废</option>
<option value="2">使用</option>
<option selected="" value="3">未使用</option>
</select>
</xsl:if>
************************************
<!--一段有用的javascript刷新-->
<SCRIPT language="JavaScript1.2">
<xsl:comment>
<![CDATA[
function a(){
document.form.action="EditPage.jsp"
document.form.submit();
}
]]>
</xsl:comment>
</SCRIPT>
************************************
<!--下拉框-->
<select size="1" name="equipmentType" >
<xsl:for-each select="assetList/asset">
<xsl:if test="assetID/@selected[.='1']">
<option selected='selected'>
<xsl:attribute name="value">
<xsl:value-of select="assetID"/>
</xsl:attribute>
<xsl:value-of select="assetName"/>
</option>
</xsl:if>
<xsl:if test="assetID/@selected[.='0']">
<option>
<xsl:attribute name="value">
<xsl:value-of select="assetID"/>
</xsl:attribute>
<xsl:value-of select="assetName"/>
</option>
</xsl:if>
</xsl:for-each>
</select>
***************************************
<!--隐含着传参数-->
<input type="hidden" name="equipmentID">
<xsl:attribute name="value">
<xsl:value-of select="assetNumber"/>
</xsl:attribute>
</input>
****************************************
<!--定义变量-->
<xsl:variable name="Var1" select="buttonName"/>
****************************************
<!--有数字的联结-->
<xsl:if test="fittingAccount[.!='0']"><a href="StatResultPartIDPageAction.do?partID={partID}"><xsl:value-of select="fittingAccount"/></a></xsl:if>
<xsl:if test="fittingAccount[.='0']">0</xsl:if>
*****************************************
<!--加入改代码使提交按钮背景变色和加个图片-->
style="border:0px ridge #FFFFFF; background-color:#E2F3C0; color:#FFFFFF; width='13'; height='13'; background-image:url('../../resources/images/small1_langlib.gif')"
style="border:0px ridge #95b756; background-color:#c1da90; color:#006600;"
*****************************************
<!--复选框定格式-->
<xsl:variable name="Var1" select="peopleList/@number"/>
<xsl:choose>
<xsl:when test="$Var1='1'">
<xsl:for-each select="peopleList/people">
<tr>
<td style="border-style: none; border-width: medium" width="181"></td>
</tr>
<td width="181" style="border-style: none; border-width: medium"></td>
<td style="border-style: none; border-width: medium" width="156"> </td>
<td width="166" style="border-style: none; border-width: medium"></td>
<td width="173" style="border-style: none; border-width: medium"></td>
</xsl:for-each>
</xsl:when>
<xsl:when test="$Var1='2'">
<tr>
<td style="border-style: none; border-width: medium" width="181"></td>
</tr>
<td width="181" style="border-style: none; border-width: medium"></td>
<xsl:for-each select="peopleList/people">
<td width="156" style="border-style: none; border-width: medium">
<input type="checkbox" name="Users" value="ON"><xsl:if test="@checked[.='1']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<xsl:attribute name="value">
<xsl:value-of select="peopleID"/>
</xsl:attribute>
</input>
<xsl:value-of select="peopleName"/></td>
</xsl:for-each><td width="166"></td>
</xsl:when>
<xsl:when test="$Var1!='2'and $Var1!='1'">
<xsl:for-each select="peopleList/people"><xsl:if test=" (position()-1) mod 3=0">
<tr>
<td width="181" style="border-style: none; border-width: medium"> </td></tr>
<td width="181" style="border-style: none; border-width: medium"></td></xsl:if>
<td width="156" style="border-style: none; border-width: medium">
<input type="checkbox" name="Users" value="ON"><xsl:if test="@checked[.='1']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<xsl:attribute name="value">
<xsl:value-of select="peopleID"/>
</xsl:attribute>
</input>
<xsl:value-of select="peopleName"/></td>
</xsl:for-each>
</xsl:when>
</xsl:choose>
*****************************************
<!--根据按钮的状态来显示向上,或向下的功能-->
<xsl:if test="upState[.='1']"><input type="button" value="向上" name="B2" οnclick="UpOrDownChenckActionItemAction.do?ButtonName=UP&CheckActionID={sortID}" class="19" /></xsl:if>
<xsl:if test="upState[.='0']"><input type="button" value="向上" name="B2" class="19" disabled="" /></xsl:if>
************************************
<!--超链结属性-->
<a target="_blank" ><xsl:attribute name="href"><xsl:value-of
select="customerSite"/></xsl:attribute><xsl:value-of select="customerSite"/></a>
**************************************
<!--隐藏-->
<input type="hidden" name="userID">
<xsl:attribute name="value">
<xsl:value-of select="peopleId"/>
</xsl:attribute>
</input>
*****************************************
<_----------------复选框中每三个表单换一行,表单中每两个换一行----------------->
<xsl:for-each select="orderList/order">
<xsl:if test="(position()-1) mod 3=0">
<tr><td></td></tr>
</xsl:if>
<td width="31%" height="37" bordercolor="#DCEAF5" align="left" valign="top">
<fieldset style="border:1px solid #800000; padding:2; ">
<legend>
<a class="link-left-menu" href="AttributeItemAdd.do?surveyClassID={userreschclassid}"><xsl:value-of select="userreschclassname"/></a>
</legend>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber8">
<tr>
<xsl:for-each select="orderList1/oreder1">
<xsl:if test=" (position()-1) mod 2=0">
<tr><td></td></tr>
</xsl:if>
<td width="50%" align="center"><a class="link-left-menu" href="Attribute.do?surveyGroupID={secondSurveryId}"><xsl:value-of select="secondSurveryName"/></a></td>
</xsl:for-each>
</tr>
</table>
</fieldset>
</td>
</xsl:for-each>
**********************************************
<!--复选框每三个一换行-->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-width: 0"
bordercolor="#111111" width="100%" id="AutoNumber1" class="main-11px-font">
<tbody>
<xsl:for-each select="currentStateList/currentState">
<xsl:if test=" (position()-1) mod 3=0">
<tr><td></td></tr>
</xsl:if>
<td width="25%" style="border-style: none; border-width: medium">
<input type="checkbox" name="stateIDs">
<xsl:if test="@checked[.='1']">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<xsl:attribute name="value">
<xsl:value-of select="currentStateID"/>
</xsl:attribute>
</input>
<xsl:value-of select="currentStateContent"/></td>
</xsl:for-each>
</tbody>
</table>
************************************************
<--标准的"邮编"代码--->
<input name="clientCompanyPostCard" type="text" maxlength="6" size="20" οnkeypress="return (//d/.test(String.fromCharCode(event.keyCode)))" style="ime-mode:
disabled" ><xsl:attribute name="value"><xsl:value-of select="clientCompanyPostCard" /></xsl:attribute></input>
******************************************************
<--双重循环带隐藏-->
<xsl:for-each select="orderList/order">
<tr>
<td width="31%" height="25" bordercolor="#DCEAF5" align="right">
<input type="hidden" name="userreschclassid" size="8" >
<xsl:attribute name="value">
<xsl:value-of select="userreschclassid" />
</xsl:attribute>
</input>
<xsl:value-of select="userreschclassname" />
</td>
<td width="69%" height="25" bordercolor="#DCEAF5" colspan="3">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#F3F8FC" width="62%" id="AutoNumber10">
<tbody>
<xsl:for-each select="orderList1/oreder1">
<tr>
<td width="46%" align="right"><span lang="en-us">
<input type="hidden" name="secondSurveryId" size="8" >
<xsl:attribute name="value">
<xsl:value-of select="secondSurveryId" />
</xsl:attribute>
</input>
<xsl:value-of select="secondSurveryName" />
</span> </td>
<td width="54%"><span lang="en-us">
<input type="hidden" name="userreschitemid" size="8">
<xsl:attribute name="value">
<xsl:value-of select="userreschitemid" />
</xsl:attribute>
</input>
<xsl:value-of select="userreschitemname" />
</span> </td>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
</tr>
</xsl:for-each>
%%%%%%%%%%%%%%%%%%%%%%%%%中间文本的格式%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<input type="text" name="clientBirthDate" size="12" maxlength="20" readonly="" οnclick="showcal(this)">
<xsl:attribute name="value">
<xsl:value-of select="clientBirthDate"/>
</xsl:attribute>
</input>