Commit d6f29a60 authored by wansari's avatar wansari

updated XSL for galaxy theme changes


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103910 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9f5169ac
......@@ -6,33 +6,31 @@
<xsl:template match="/">
<html>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<script type="text/javascript" src="/ibase/webitm/js/porderWiz_Popup.js"></script>
<body onload="setUserTheme()">
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<body>
<form name="porderFinish" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<table class="tableClass" id="Details1" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head" style="text-align:center;">
<div style="height:90%; width:98%;overflow:-moz-scrollbars-vertical;overflow-x:auto;overflow-y:auto;white-space:nowrap;">
<table class="headertableClass" id="Details1" width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Purchase Order</strong>
<th class="tHeader" align="left" width="15%" nowrap="true" valign="bottom" >
Purchase Order
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Remarks</strong>
<th class="tHeader" align="left" width="25%" nowrap="true" valign="bottom" >
Remarks
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Supplier Code</strong>
<th class="tHeader" align="left" width="15%" nowrap="true" valign="bottom" >
Supplier Code
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Supplier Name</strong>
<th class="tHeader" align="left" width="35%" nowrap="true" valign="bottom" >
Supplier Name
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Total Tax</strong>
<th class="tHeader" align="right" width="20%" nowrap="true" valign="bottom" >
Total Tax
</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//finish">
......@@ -42,20 +40,20 @@
<xsl:variable name="supp_name"><xsl:value-of select="supp_name"/></xsl:variable>
<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
<tr style="text-align:center;">
<td>
<tr class="trClass">
<td class="td_leftAlign">
<xsl:value-of select="fieldId"/>
</td>
<td>
<td class="td_leftAlign">
<xsl:value-of select="fieldValue"/>
</td>
<td>
<td class="td_leftAlign">
<xsl:value-of select="supp_code"/>
</td>
<td>
<td class="td_leftAlign">
<xsl:value-of select="supp_name"/>
</td>
<td>
<td class="td_rightAlign">
<xsl:value-of select="tax_amt"/>
</td>
......@@ -63,33 +61,31 @@
</xsl:for-each>
</tbody>
</table>
<table class="tableClass" id="Details2" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head" style="text-align:center;">
<table class="headertableClass" id="Details2" width="100%" style ="border-top:none" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Item SKU Code</strong>
<th class="tHeader" align="left" nowrap="true" valign="bottom" >
Item SKU Code
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Quantity</strong>
<th class="tHeader" align="right" nowrap="true" valign="bottom" >
Quantity
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Total Amount</strong>
<th class="tHeader" align="right" nowrap="true" valign="bottom" >
Total Amount
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Amount</strong>
<th class="tHeader" align="right" nowrap="true" valign="bottom" >
Tax Amount
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Class</strong>
<th class="tHeader" align="left" nowrap="true" valign="bottom" >
Tax Class
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Chap</strong>
<th class="tHeader" align="left" nowrap="true" valign="bottom" >
Tax Chap
</th>
<th class="thClass" nowrap="true" valign="bottom" >
<strong>Tax Env</strong>
<th class="tHeader" align="left" nowrap="true" valign="bottom" >
Tax Env
</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//extra">
......@@ -103,41 +99,54 @@
<xsl:variable name="tax_chap"><xsl:value-of select="tax_chap"/></xsl:variable>
<xsl:variable name="tax_env"><xsl:value-of select="tax_env"/></xsl:variable>
<tr style="text-align:center;">
<td>
<tr class="trClass" width="100%">
<td class="td_leftAlign">
<xsl:value-of select="item_code"/>
</td>
<td>
<td class="td_rightAlign">
<xsl:value-of select="quantity"/>
</td>
<td>
<td class="td_rightAlign">
<xsl:value-of select="tot_amt"/>
</td>
<td>
<td class="td_rightAlign">
<xsl:value-of select="tax_amt"/>
</td>
<td>
<td class="td_leftAlign">
<xsl:value-of select="tax_class"/>
</td>
<td>
<td class="td_leftAlign">
<xsl:value-of select="tax_chap"/>
</td>
<td>
<td class="td_leftAlign">
<xsl:value-of select="tax_env"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
<div style="width=20%;height:6px;margin-left=-12px;margin-top:1px;margin-bottom:0px;">
<table>
<tr>
<td colspan="2">
<input type="submit" style="cursor:hand" class="button" value="Home" title='Home' id="Home"/>
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="porderWiz" name="OBJ_NAME" />
<input type="hidden" value="previous" name="action" id="action" />
<input type="hidden" value="1:MP" name="formType" id="formType" />
</td>
</tr>
</table>
</div>
<!-- <table>
<tr>
<td colspan="2">
<input type="button" style="cursor:hand" onclick="javascript:callForm1('porderWiz')"
class="button green-Btn pophelp-okcancel" value="Home" title='Home' />
</td>
</tr>
</table>
</table> -->
</form>
</body>
</html>
......
......@@ -7,62 +7,96 @@
<html>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<!-- <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>
<script type="text/javascript" src="/ibase/webitm/js/porderWiz_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 type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="/ibase/webitm/css/Standard/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<script language="JavaScript" type="text/javascript">
<![CDATA[
$(function() {
selectedCode = [];
<body onload="setUserTheme()">
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>
<form name="Wizard_SuppDetails">
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<table id="Details" class="headertableClass" border="0" cellspacing="1" cellpadding="1">
<tr>
<th class="thClass" nowrap="true" width="5%">
<th class="tHeader" nowrap="true" width="5%">
<!-- <input type="checkbox" id="chkAll" onclick="return checkAllPopup(this)"/> -->
</th>
<th class="thClass" nowrap="true" valign="bottom" width="30%">
<strong>Code</strong>
</th>
<th class="thClass" nowrap="true" valign="bottom" width="70%">
<strong>Description</strong>
<xsl:for-each select="//Headers">
<xsl:variable name="headName"><xsl:value-of select="headName"/></xsl:variable>
<xsl:variable name="headSize"><xsl:value-of select="headSize"/></xsl:variable>
<th align="left" class="tHeader" nowrap="true" valign="bottom" width="{$headSize}%">
<xsl:value-of select="headName" />
</th>
</xsl:for-each>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//supp_code">
<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="otherField1"><xsl:value-of select="otherField1"/></xsl:variable>
<!-- <xsl:variable name="otherField1"><xsl:value-of select="otherField1"/></xsl:variable>
<xsl:variable name="otherField2"><xsl:value-of select="otherField2"/></xsl:variable>
<xsl:variable name="otherField3"><xsl:value-of select="otherField3"/></xsl:variable>
<xsl:variable name="otherField4"><xsl:value-of select="otherField4"/></xsl:variable>
<xsl:variable name="otherField5"><xsl:value-of select="otherField5"/></xsl:variable>
<xsl:variable name="descr1"><xsl:value-of select="descr1"/></xsl:variable>
<xsl:variable name="descr1"><xsl:value-of select="descr1"/></xsl:variable> -->
<xsl:variable name="chkbox"><xsl:value-of select="@selected"/></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>
<tr id="{normalize-space($dbID)}" onclick="rowChecked(this.id)">
<tr class="trClass" id="{normalize-space($dbID)}" onclick="setCheckedRow(event, this)" ondblclick="setDoubleClickData(event, this)">
<td>
<input type="checkbox" name="selectbox" value="false" onclick="checkone(this.id)" id="DetailITCode.{normalize-space($dbID)}.selectbox"/>
<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>
<td class="td_leftAlign">
<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>
<td class="td_leftAlign">
<xsl:value-of select="fieldValue"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue"
value="{normalize-space($fieldValue)}" />
......@@ -71,7 +105,7 @@
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField"
value="{normalize-space($otherField)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField1" id="DetailITCode.{normalize-space($dbID)}.otherField1"
<!-- <input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField1" id="DetailITCode.{normalize-space($dbID)}.otherField1"
value="{normalize-space($otherField1)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField2" id="DetailITCode.{normalize-space($dbID)}.otherField2"
value="{normalize-space($otherField2)}" />
......@@ -81,14 +115,11 @@
value="{normalize-space($otherField4)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField5" id="DetailITCode.{normalize-space($dbID)}.otherField5"
value="{normalize-space($otherField5)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.descr1" id="DetailITCode.{normalize-space($dbID)}.descr1"
value="{normalize-space($descr1)}" />
value="{normalize-space($descr1)}" /> -->
</tr>
</xsl:for-each>
<input type="hidden" id="checkID" />
</tbody>
<!-- <input type="hidden" id="checkID" /> -->
</table>
</form>
......
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