home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / IPDSINTL.DLL_1033 / HTML / DATETIMEPICKER.XCT < prev    next >
Extensible Markup Language  |  2010-03-29  |  8KB  |  1 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?><!-- _lcid="1033" _version="" --><!-- _LocalBinding --><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:xdFormatting="http://schemas.microsoft.com/office/infopath/2003/xslt/formatting"><xsl:output method="html"></xsl:output><xsl:param name="XPath"></xsl:param><xsl:param name="fReadOnly"></xsl:param><xsl:variable name="fConvert" select="xd:aj_getPropByName('fConvert')"></xsl:variable><xsl:variable name="fLabelAutoGeneration" select="xd:aj_getPropByName('labelAutoGeneration')"></xsl:variable><xsl:variable name="fAutoCMEMode" select="xd:aj_getPropByName('fAutoCMEMode')"></xsl:variable><xsl:variable name="fControlOnlyMode" select="xd:aj_getPropByName('fControlOnlyMode')"></xsl:variable><xsl:variable name="scriptingID" select="xd:aj_getComponentID()"></xsl:variable><xsl:variable name="fInsideDataTable" select="xd:aj_getPropByName('fInsideDataTable')"></xsl:variable><xsl:variable name="fInsideAnyTable" select="xd:aj_getPropByName('fInsideAnyTable')"></xsl:variable><xsl:variable name="fDirLTR" select="xd:aj_getPropByName('fDirLTR')"></xsl:variable><xsl:template match="*|@*"><xsl:if test="$fLabelAutoGeneration    and                     not($fAutoCMEMode)        and                     not($fControlOnlyMode)     and                     not($fConvert)             and                     not($fInsideDataTable)     and                     string($XPath) != ''"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getLabelHTML('dtpicker', .)"></xsl:value-of>:</xsl:if><DIV NOWRAP="true" CLASS="xdDTPicker" xd:xctname="DTPicker" tabIndex="0"><xsl:attribute name="xd:CtrlId"><xsl:value-of select="$scriptingID"></xsl:value-of></xsl:attribute><xsl:attribute name="TITLE"></xsl:attribute><xsl:attribute name="STYLE"><xsl:choose><xsl:when test="$fInsideAnyTable">width:50%;</xsl:when><xsl:otherwise>width:130px;</xsl:otherwise></xsl:choose></xsl:attribute><SPAN xd:xctname="DTPicker_DTText" HIDEFOCUS="true" xd:innerCtrl="_DTText" CONTENTEDITABLE="true" xd:aj_tabIndex="0" tabIndex="-1"><xsl:if test="$fReadOnly"><xsl:attribute name="xd:disableEditing">yes</xsl:attribute></xsl:if><xsl:attribute name="CLASS"><xsl:choose><xsl:when test="$fDirLTR">xdDTText xdBehavior_FormattingNoBUI</xsl:when><xsl:otherwise>xdDTTextRTL xdBehavior_FormattingNoBUI</xsl:otherwise></xsl:choose></xsl:attribute><xsl:choose><xsl:when test="$XPath"><xsl:if test="xd:aj_computeDataFormat(true(), .)"></xsl:if><xsl:variable name="strDataFormatCategory" select="xd:aj_getPropByName('dataFormatCategory')"></xsl:variable><xsl:variable name="strDataFormatSpec" select="xd:aj_getPropByName('dataFormatSpec')"></xsl:variable><xsl:attribute name="xd:aj_type">0</xsl:attribute><xsl:attribute name="xd:aj_uniqueid_innerhtml"><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_node_innerhtml"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_attrtype_innerhtml">text</xsl:attribute><xsl:attribute name="xd:aj_bound1">innerhtml</xsl:attribute><xsl:attribute name="xd:binding"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:boundProp">xd:num</xsl:attribute><xsl:attribute name="xd:aj_helper">xdFormatting:formatString</xsl:attribute><xsl:attribute name="xd:aj_param">"<xsl:value-of select="$strDataFormatCategory"></xsl:value-of>","<xsl:value-of select="$strDataFormatSpec"></xsl:value-of>"</xsl:attribute><xsl:attribute name="xd:datafmt">"<xsl:value-of select="$strDataFormatCategory"></xsl:value-of>","<xsl:value-of select="$strDataFormatSpec"></xsl:value-of>"</xsl:attribute><xsl:attribute name="xd:aj_node_msonum"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_attrtype_msonum">text</xsl:attribute><xsl:attribute name="xd:aj_uniqueid_msonum"><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:num"></xsl:attribute><xsl:attribute name="xd:aj_bound0">xd:num</xsl:attribute><xsl:choose><xsl:when test="function-available('xdFormatting:formatString')"><xsl:value-of select="xdFormatting:formatString(., string($strDataFormatCategory), string($strDataFormatSpec))"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of select="."></xsl:value-of></xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><xsl:attribute name="xd:protect">outer</xsl:attribute></xsl:otherwise></xsl:choose></SPAN><BUTTON xd:xctname="DTPicker_DTButton" xd:innerCtrl="_DTButton" xd:aj_tabIndex="0" tabIndex="-1"><xsl:attribute name="CLASS"><xsl:choose><xsl:when test="$fDirLTR">xdDTButton</xsl:when><xsl:otherwise>xdDTButtonRTL</xsl:otherwise></xsl:choose></xsl:attribute><IMG tabIndex="-1" SRC="res://ipdesign.dll/calendar.gif"></IMG></BUTTON></DIV><SPAN HIDEFOCUS="true" TITLE="" xd:CtrlId="{$scriptingID}" xd:xctname="PlainText" xd:aj_tabIndex="0" tabIndex="0"><xsl:if test="$fReadOnly"><xsl:attribute name="xd:disableEditing">yes</xsl:attribute></xsl:if><xsl:attribute name="STYLE"><xsl:choose><xsl:when test="$fInsideAnyTable">width:49%;</xsl:when><xsl:otherwise>width:130px;</xsl:otherwise></xsl:choose></xsl:attribute><xsl:if test="$XPath"><xsl:variable name="strDataFormatCategory" select="'datetime'"></xsl:variable><xsl:variable name="strDataFormatSpec" select="'dateFormat:none;'"></xsl:variable><xsl:choose><xsl:when test="$strDataFormatCategory = ''"><xsl:attribute name="CLASS"><xsl:choose><xsl:when test="$fDirLTR">xdTextBox</xsl:when><xsl:otherwise>xdTextBoxRTL</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="xd:aj_bound0">innerhtml</xsl:attribute></xsl:when><xsl:otherwise><xsl:attribute name="CLASS"><xsl:choose><xsl:when test="$fDirLTR">xdTextBox xdBehavior_Formatting</xsl:when><xsl:otherwise>xdTextBoxRTL xdBehavior_Formatting</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="CONTENTEDITABLE">true</xsl:attribute><xsl:attribute name="xd:num"></xsl:attribute><xsl:attribute name="xd:boundProp">xd:num</xsl:attribute><xsl:attribute name="xd:aj_bound0">xd:num</xsl:attribute><xsl:attribute name="xd:aj_bound1">innerhtml</xsl:attribute><xsl:attribute name="xd:aj_helper">xdFormatting:formatString</xsl:attribute><xsl:attribute name="xd:aj_param">"<xsl:value-of select="$strDataFormatCategory"></xsl:value-of>","<xsl:value-of select="$strDataFormatSpec"></xsl:value-of>"</xsl:attribute><xsl:attribute name="xd:datafmt">"<xsl:value-of select="$strDataFormatCategory"></xsl:value-of>","<xsl:value-of select="$strDataFormatSpec"></xsl:value-of>"</xsl:attribute><xsl:attribute name="xd:aj_node_msonum"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_attrtype_msonum">text</xsl:attribute><xsl:attribute name="xd:aj_uniqueid_msonum"><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:attribute></xsl:otherwise></xsl:choose><xsl:attribute name="xd:aj_type">0</xsl:attribute><xsl:attribute name="xd:binding"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_uniqueid_innerhtml"><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_node_innerhtml"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_attrtype_innerhtml">text</xsl:attribute><xsl:choose><xsl:when test="$strDataFormatCategory != '' and function-available('xdFormatting:formatString')"><xsl:value-of select="xdFormatting:formatString(., string($strDataFormatCategory), string($strDataFormatSpec))"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of select="."></xsl:value-of></xsl:otherwise></xsl:choose></xsl:if></SPAN></xsl:template></xsl:stylesheet>