Commit a224047a authored by msingh's avatar msingh

Added xsl.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98932 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 039bb186
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<link href="/ibase/webitm/css/DD/ProductWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/DD/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Edit.js"></script>
<script>
<![CDATA[
/*$(function() {
/*getAppDateFormat();*/ /* Comment added by parikshit kumbhar on 09/07/15 */
});*/
]]>
</script>
<body onload="getAppDateFormat()">
<form name="prodWizEditFormI" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div id="header">
<div id="headingText">Product Wizard Edit</div>
</div>
<div class="mainPage-Container">
<table id="activityTable" border="0" cellSpacing="1" cellPadding="0" style="width: 30%">
<xsl:for-each select="//Detail1">
<xsl:variable name="item_code"><xsl:value-of select="item_code"/></xsl:variable>
<xsl:variable name="descr"><xsl:value-of select="descr"/></xsl:variable>
<xsl:variable name="login_code"><xsl:value-of select="login_code"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:variable name="date_format"><xsl:value-of select="date_format"/></xsl:variable><!-- Added by parkshit kumbhar on 08/07/15 [to set date format] -->
<input type="hidden" name="Detail1.{normalize-space($dbID)}.login_code" id="Detail1.{normalize-space($dbID)}.login_code"
value="{$login_code}" ISCHANGED="false"/>
<tr>
<td class="td_leftAlign" nowrap="true" style="width:10%;">
<strong>Parent Code* :</strong>
</td>
<!-- <td class="td_leftAlign" style="width:20%;">
<input type="text" class="editInputClass" value="{$item_code}" name="Detail1.{normalize-space($dbID)}.item_code"
id="Detail1.{normalize-space($dbID)}.item_code" maxlength="10" style="width: 100%"/>
</td> -->
<td class="td_leftAlign">
<div style="position:relative; width: 80%;">
<input type="text" class="editInputClass" value="{$item_code}" name="Detail1.{normalize-space($dbID)}.item_code"
id="Detail1.{normalize-space($dbID)}.item_code" maxlength="10" ISCHANGED="true"
onkeydown="javascript:openSearchPopup(event, '{normalize-space($dbID)}','{normalize-space($login_code)}','item_code', 'Item Code', 0);"
style="width: 95%;"/><!--Added by parikshit on 16/7/15 [to open popup on F2 added openSearchPopup] -->
<div style="width:3%; float: right;">
<a href="javascript:callListJSP('{normalize-space($dbID)}','{normalize-space($login_code)}','item_code', 'Item Code', 0);"
style="float: left;text-decoration: none;">
<img src="/ibase/webitm/images/DD/popup1.png" style="margin-left: -5px;" title="Select Item Code" />
</a>
</div>
<input type="hidden" value="{$date_format}" name="Detail1.{normalize-space($dbID)}.date_format" id="date_format" ISCHANGED="true" /><!-- Added by parkshit kumbhar on 08/07/15 [to set date format] -->
</div>
</td>
</tr>
<tr>
<td>
<input type="submit" id="next" style="cursor:hand" value="Next" class="button" title='Next'
onclick="javascript:return checkNullvalidation({normalize-space($dbID)}, 'next');" />
</td>
</tr>
</xsl:for-each>
</table>
<div style="border: 1px solid transparent; width: 100%;">
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="dd_productWizEdit" name="OBJ_NAME" id="OBJ_NAME"/>
<input type="hidden" value="" name="action" id="action" />
<table id="errorActivityTable" class="tableClass" border="0" cellSpacing="2" cellPadding="1" width="98%">
<xsl:for-each select="//error">
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr>
<xsl:if test="position() = 1">
<td class="td_leftAlign" nowrap="true" valign="bottom" width="20%" >
<xsl:value-of select="message"/>
</td>
<td class="td_leftAlign" nowrap="true" valign="bottom" width="40%" >
Description : <xsl:value-of select="description"/>
</td>
</xsl:if>
<xsl:if test="$type = 'W'">
<td class="td_leftAlign" nowrap="true" valign="bottom" width="20%">
Override Warnings :
<input type="checkbox" name="forceSave" value="false" onClick="setChecked(this)"/>
</td>
</xsl:if>
</tr>
</xsl:for-each>
</table>
</div>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Common.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Popup.js"></script>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<script language="JavaScript" type="text/javascript">
<![CDATA[
$(function() {
selectedCode = [];
for( dbID = 1; dbID <= maxId; dbID++)
{
objCurr = document.getElementById("DetailITCode."+ dbID +".selectbox");
if( objCurr.value == 'true' )
{
if ($.inArray( dbID, selectedCode ))
{
selectedCode.push( dbID );
}
}
}
});
]]>
</script>
<body onload="setUserTheme()">
<form name="Wizard_Activity" id="Wizard_Activity">
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<tr>
<th class="thClass" nowrap="true" width="5%">
<input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="20%">
<strong>Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="75%">
<strong>Description</strong><!--Added By Parikshit Kumbhar on 22/06/2015 [D15CKAT031] [changed Description previously Descr] -->
</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//PROD_TYPE">
<xsl:variable name="fieldId"><xsl:value-of select="fieldId"/></xsl:variable>
<xsl:variable name="fieldValue"><xsl:value-of select="fieldValue"/></xsl:variable>
<xsl:variable name="otherField"><xsl:value-of select="otherField"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<SCRIPT>
<![CDATA[ var qtyR; qtyR ="]]> <xsl:value-of select="$dbID"/>
<![CDATA[";maxId= qtyR; ]]>
</SCRIPT>
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<tr>
<td>
<xsl:choose>
<xsl:when test="$chkbox ='Y'">
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" checked='true' value="true" onClick="setCheckedPopup(this)"/>
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="selectbox" id="DetailITCode.{normalize-space($dbID)}.selectbox" value="false" onClick="setCheckedPopup(this)"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td id="{normalize-space($dbID)}" onclick="setCheckedRow(event, this)">
<xsl:value-of select="fieldId"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldId" id="DetailITCode.{normalize-space($dbID)}.fieldId"
value="{normalize-space($fieldId)}" />
</td>
<td id="{normalize-space($dbID)}" onclick="setCheckedRow(event, this)">
<xsl:value-of select="fieldValue"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue"
value="{normalize-space($fieldValue)}" />
</td>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField"
value="{normalize-space($otherField)}" />
</tr>
</xsl:for-each>
</tbody>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment