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 @@ ...@@ -6,33 +6,31 @@
<xsl:template match="/"> <xsl:template match="/">
<html> <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"> <form name="porderFinish" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<table class="tableClass" id="Details1" border="0" cellspacing="1" cellpadding="1"> <div style="height:90%; width:98%;overflow:-moz-scrollbars-vertical;overflow-x:auto;overflow-y:auto;white-space:nowrap;">
<thead class="table-head" style="text-align:center;"> <table class="headertableClass" id="Details1" width="100%" border="0" cellspacing="1" cellpadding="1">
<tr> <tr>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" width="15%" nowrap="true" valign="bottom" >
<strong>Purchase Order</strong> Purchase Order
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" width="25%" nowrap="true" valign="bottom" >
<strong>Remarks</strong> Remarks
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" width="15%" nowrap="true" valign="bottom" >
<strong>Supplier Code</strong> Supplier Code
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" width="35%" nowrap="true" valign="bottom" >
<strong>Supplier Name</strong> Supplier Name
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="right" width="20%" nowrap="true" valign="bottom" >
<strong>Total Tax</strong> Total Tax
</th> </th>
</tr> </tr>
</thead>
<tbody class="table-body"> <tbody class="table-body">
<xsl:for-each select="//finish"> <xsl:for-each select="//finish">
...@@ -42,20 +40,20 @@ ...@@ -42,20 +40,20 @@
<xsl:variable name="supp_name"><xsl:value-of select="supp_name"/></xsl:variable> <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> <xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
<tr style="text-align:center;"> <tr class="trClass">
<td> <td class="td_leftAlign">
<xsl:value-of select="fieldId"/> <xsl:value-of select="fieldId"/>
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="fieldValue"/> <xsl:value-of select="fieldValue"/>
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="supp_code"/> <xsl:value-of select="supp_code"/>
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="supp_name"/> <xsl:value-of select="supp_name"/>
</td> </td>
<td> <td class="td_rightAlign">
<xsl:value-of select="tax_amt"/> <xsl:value-of select="tax_amt"/>
</td> </td>
...@@ -63,33 +61,31 @@ ...@@ -63,33 +61,31 @@
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
</table> </table>
<table class="tableClass" id="Details2" border="0" cellspacing="1" cellpadding="1"> <table class="headertableClass" id="Details2" width="100%" style ="border-top:none" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head" style="text-align:center;">
<tr> <tr>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" nowrap="true" valign="bottom" >
<strong>Item SKU Code</strong> Item SKU Code
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="right" nowrap="true" valign="bottom" >
<strong>Quantity</strong> Quantity
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="right" nowrap="true" valign="bottom" >
<strong>Total Amount</strong> Total Amount
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="right" nowrap="true" valign="bottom" >
<strong>Tax Amount</strong> Tax Amount
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" nowrap="true" valign="bottom" >
<strong>Tax Class</strong> Tax Class
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" nowrap="true" valign="bottom" >
<strong>Tax Chap</strong> Tax Chap
</th> </th>
<th class="thClass" nowrap="true" valign="bottom" > <th class="tHeader" align="left" nowrap="true" valign="bottom" >
<strong>Tax Env</strong> Tax Env
</th> </th>
</tr> </tr>
</thead>
<tbody class="table-body"> <tbody class="table-body">
<xsl:for-each select="//extra"> <xsl:for-each select="//extra">
...@@ -103,41 +99,54 @@ ...@@ -103,41 +99,54 @@
<xsl:variable name="tax_chap"><xsl:value-of select="tax_chap"/></xsl:variable> <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> <xsl:variable name="tax_env"><xsl:value-of select="tax_env"/></xsl:variable>
<tr style="text-align:center;"> <tr class="trClass" width="100%">
<td> <td class="td_leftAlign">
<xsl:value-of select="item_code"/> <xsl:value-of select="item_code"/>
</td> </td>
<td> <td class="td_rightAlign">
<xsl:value-of select="quantity"/> <xsl:value-of select="quantity"/>
</td> </td>
<td> <td class="td_rightAlign">
<xsl:value-of select="tot_amt"/> <xsl:value-of select="tot_amt"/>
</td> </td>
<td> <td class="td_rightAlign">
<xsl:value-of select="tax_amt"/> <xsl:value-of select="tax_amt"/>
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="tax_class"/> <xsl:value-of select="tax_class"/>
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="tax_chap"/> <xsl:value-of select="tax_chap"/>
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="tax_env"/> <xsl:value-of select="tax_env"/>
</td> </td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
</table> </table>
</div>
<div style="width=20%;height:6px;margin-left=-12px;margin-top:1px;margin-bottom:0px;">
<table> <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> <tr>
<td colspan="2"> <td colspan="2">
<input type="button" style="cursor:hand" onclick="javascript:callForm1('porderWiz')" <input type="button" style="cursor:hand" onclick="javascript:callForm1('porderWiz')"
class="button green-Btn pophelp-okcancel" value="Home" title='Home' /> class="button green-Btn pophelp-okcancel" value="Home" title='Home' />
</td> </td>
</tr> </tr>
</table> </table> -->
</form> </form>
</body> </body>
</html> </html>
......
...@@ -7,62 +7,96 @@ ...@@ -7,62 +7,96 @@
<html> <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_Common.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/prodWiz_Popup.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> <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 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 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"> <form name="Wizard_SuppDetails">
<table class="tableClass" id="Details" border="0" cellspacing="1" cellpadding="1"> <table id="Details" class="headertableClass" border="0" cellspacing="1" cellpadding="1">
<thead class="table-head">
<tr> <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>
<th class="thClass" nowrap="true" valign="bottom" width="30%"> <xsl:for-each select="//Headers">
<strong>Code</strong> <xsl:variable name="headName"><xsl:value-of select="headName"/></xsl:variable>
</th> <xsl:variable name="headSize"><xsl:value-of select="headSize"/></xsl:variable>
<th class="thClass" nowrap="true" valign="bottom" width="70%"> <th align="left" class="tHeader" nowrap="true" valign="bottom" width="{$headSize}%">
<strong>Description</strong> <xsl:value-of select="headName" />
</th> </th>
</xsl:for-each>
</tr> </tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="//supp_code"> <xsl:for-each select="//supp_code">
<xsl:variable name="fieldId"><xsl:value-of select="fieldId"/></xsl:variable> <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="fieldValue"><xsl:value-of select="fieldValue"/></xsl:variable>
<xsl:variable name="otherField"><xsl:value-of select="otherField"/></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="otherField2"><xsl:value-of select="otherField2"/></xsl:variable>
<xsl:variable name="otherField3"><xsl:value-of select="otherField3"/></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="otherField4"><xsl:value-of select="otherField4"/></xsl:variable>
<xsl:variable name="otherField5"><xsl:value-of select="otherField5"/></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="chkbox"><xsl:value-of select="@selected"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable> <xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<SCRIPT> <SCRIPT>
<![CDATA[ var qtyR; qtyR ="]]> <xsl:value-of select="$dbID"/> <![CDATA[ var qtyR; qtyR ="]]> <xsl:value-of select="$dbID"/>
<![CDATA[";maxId= qtyR; ]]> <![CDATA[";maxId= qtyR; ]]>
</SCRIPT> </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> <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> <td class="td_leftAlign">
<xsl:value-of select="fieldId"/> <xsl:value-of select="fieldId"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldId" id="DetailITCode.{normalize-space($dbID)}.fieldId" <input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldId" id="DetailITCode.{normalize-space($dbID)}.fieldId"
value="{normalize-space($fieldId)}" /> value="{normalize-space($fieldId)}" />
</td> </td>
<td> <td class="td_leftAlign">
<xsl:value-of select="fieldValue"/> <xsl:value-of select="fieldValue"/>
<input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue" <input type="hidden" name="Detail3.{normalize-space($dbID)}.fieldValue" id="DetailITCode.{normalize-space($dbID)}.fieldValue"
value="{normalize-space($fieldValue)}" /> value="{normalize-space($fieldValue)}" />
...@@ -71,7 +105,7 @@ ...@@ -71,7 +105,7 @@
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField" <input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField" id="DetailITCode.{normalize-space($dbID)}.otherField"
value="{normalize-space($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)}" /> value="{normalize-space($otherField1)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField2" id="DetailITCode.{normalize-space($dbID)}.otherField2" <input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField2" id="DetailITCode.{normalize-space($dbID)}.otherField2"
value="{normalize-space($otherField2)}" /> value="{normalize-space($otherField2)}" />
...@@ -81,14 +115,11 @@ ...@@ -81,14 +115,11 @@
value="{normalize-space($otherField4)}" /> value="{normalize-space($otherField4)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField5" id="DetailITCode.{normalize-space($dbID)}.otherField5" <input type="hidden" name="Detail3.{normalize-space($dbID)}.otherField5" id="DetailITCode.{normalize-space($dbID)}.otherField5"
value="{normalize-space($otherField5)}" /> value="{normalize-space($otherField5)}" />
<input type="hidden" name="Detail3.{normalize-space($dbID)}.descr1" id="DetailITCode.{normalize-space($dbID)}.descr1" <input type="hidden" name="Detail3.{normalize-space($dbID)}.descr1" id="DetailITCode.{normalize-space($dbID)}.descr1"
value="{normalize-space($descr1)}" /> value="{normalize-space($descr1)}" /> -->
</tr> </tr>
</xsl:for-each> </xsl:for-each>
<input type="hidden" id="checkID" /> <!-- <input type="hidden" id="checkID" /> -->
</tbody>
</table> </table>
</form> </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