|
@@ -21,7 +21,7 @@
|
|
|
<xsl:param name="fullHtml" select="1"/>
|
|
|
<xsl:param name="includeFormTag" select="1"/>
|
|
|
<xsl:param name="method" select="'SprayVariable'"/>
|
|
|
- <xsl:param name="submethod" select="'csv'"/>
|
|
|
+ <xsl:param name="submethod" select="'variable'"/>
|
|
|
|
|
|
<xsl:template match="/Environment">
|
|
|
<xsl:choose>
|
|
@@ -154,16 +154,6 @@
|
|
|
document.getElementById('maskV').innerHTML = o.value+'._$P$_of_$N$';
|
|
|
handleSubmitBtn();
|
|
|
}
|
|
|
- /*function onChangeFormat()
|
|
|
- {
|
|
|
- if (method == 'SprayVariable' && smethod == 'csv')
|
|
|
- {
|
|
|
- if (document.forms[0].sourceFormat.value != "1")
|
|
|
- document.forms[0].compress.disabled = true;
|
|
|
- else
|
|
|
- document.forms[0].compress.disabled = false;
|
|
|
- }
|
|
|
- }*/
|
|
|
function handleSubmitBtn()
|
|
|
{
|
|
|
//disable = label == '';
|
|
@@ -180,9 +170,9 @@
|
|
|
if (method == 'SprayVariable')
|
|
|
{
|
|
|
disable = (document.getElementById('sourceMaxRecordSize') != null && document.getElementById('sourceMaxRecordSize').value == 0) ||
|
|
|
- (document.getElementById('sourceCsvSeparator') != null && document.getElementById('sourceCsvSeparator').value == '') ||
|
|
|
- (document.getElementById('sourceCsvTerminate') != null && document.getElementById('sourceCsvTerminate').value == '') ||
|
|
|
- (document.getElementById('sourceCsvQuote') != null && document.getElementById('sourceCsvQuote').value == '') ||
|
|
|
+ (document.getElementById('sourceSeparators') != null && document.getElementById('sourceSeparators').value == '') ||
|
|
|
+ (document.getElementById('sourceTerminators') != null && document.getElementById('sourceTerminators').value == '') ||
|
|
|
+ (document.getElementById('sourceQuote') != null && document.getElementById('sourceQuote').value == '') ||
|
|
|
(document.getElementById('sourceRowTag') != null && document.getElementById('sourceRowTag').value == '');
|
|
|
}
|
|
|
document.getElementById('submitBtn').readonly = disable;
|
|
@@ -249,7 +239,7 @@
|
|
|
|
|
|
function setSourceCsvSeparator(noSeparatorCheckbox)
|
|
|
{
|
|
|
- var separatorInputField = document.getElementById("sourceCsvSeparator");
|
|
|
+ var separatorInputField = document.getElementById("sourceSeparators");
|
|
|
if (separatorInputField == NaN)
|
|
|
return;
|
|
|
|
|
@@ -289,7 +279,7 @@
|
|
|
<h3>Spray <xsl:choose>
|
|
|
<xsl:when test="$method='SprayFixed'">Fixed</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
- <xsl:choose><xsl:when test="$submethod='csv'"> CSV</xsl:when><xsl:otherwise> XML</xsl:otherwise></xsl:choose>
|
|
|
+ <xsl:choose><xsl:when test="$submethod='variable'"> Variable</xsl:when><xsl:otherwise> XML</xsl:otherwise></xsl:choose>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
</h3>
|
|
@@ -384,7 +374,7 @@
|
|
|
<select id="sourceFormat" name="sourceFormat" onchange="onChangeFormat()" onblur="onChangeFormat()">
|
|
|
-->
|
|
|
<select id="sourceFormat" name="sourceFormat">
|
|
|
- <xsl:if test="$submethod='csv'">
|
|
|
+ <xsl:if test="$submethod='variable'">
|
|
|
<option value="1">ASCII</option>
|
|
|
</xsl:if>
|
|
|
<xsl:choose>
|
|
@@ -493,35 +483,35 @@
|
|
|
<input type="text" id="sourceMaxRecordSize" name="sourceMaxRecordSize" value="{$rsz}" size="6" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <xsl:choose><xsl:when test="$submethod='csv'">
|
|
|
+ <xsl:choose><xsl:when test="$submethod='variable'">
|
|
|
<tr>
|
|
|
- <td>Separator:</td>
|
|
|
+ <td>Separators:</td>
|
|
|
<td>
|
|
|
- <input type="text" id="sourceCsvSeparator" name="sourceCsvSeparator" size="6" value="{$sep}" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
+ <input type="text" id="sourceSeparators" name="sourceSeparators" size="6" value="{$sep}" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td/>
|
|
|
<td>
|
|
|
- <input type="checkbox" id="NoSourceCsvSeparator" name="NoSourceCsvSeparator" value="1" onclick="return setSourceCsvSeparator(this)">No Separator</input>
|
|
|
+ <input type="checkbox" id="NoSourceSeparator" name="NoSourceSeparator" value="1" onclick="return setSourceCsvSeparator(this)">No Separator</input>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>Escape:</td>
|
|
|
<td>
|
|
|
- <input type="text" id="sourceCsvEscape" name="sourceCsvEscape" size="6" value="" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
+ <input type="text" id="sourceEscape" name="sourceEscape" size="6" value="" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>Line Terminator:</td>
|
|
|
+ <td>Line Terminators:</td>
|
|
|
<td>
|
|
|
- <input type="text" id="sourceCsvTerminate" name="sourceCsvTerminate" size="6" value="{$term}" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
+ <input type="text" id="sourceTerminators" name="sourceTerminators" size="6" value="{$term}" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>Quote:</td>
|
|
|
<td>
|
|
|
- <input type="text" id="sourceCsvQuote" name="sourceCsvQuote" size="6" value="{$quote}" maxlength="1" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
+ <input type="text" id="sourceQuote" name="sourceQuote" size="6" value="{$quote}" maxlength="1" onchange="handleSubmitBtn()" onblur="handleSubmitBtn()"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</xsl:when>
|