|
发表于 2014-3-31 11:09:37
|
显示全部楼层
可以通过form提交访问j文件
例如
<xhtml:form enctype="multipart/form-data" name="f" id="{$div-form}"
action="/UI/system/components/excel/import/upload.j" method="post" target="{$div-iframe}" style="margin:0;">
<xhtml:input name="process" type="hidden" value="/SA/excel/system/systemProcess"/>
<xhtml:input name="activity" type="hidden" value="mainActivity"/>
<xhtml:input name="action" type="hidden" value="uploadImportExcel"/>
<xhtml:div style="height:20px;">i18n{import-mapping}</xhtml:div>
<xhtml:select class="xui-select" name="mapping" style="margin-top:4;width:330px;height:20px;vertical-align:middle;line-height:18px;">
<xsl:for-each select="tokenize(@mapping-src,',')">
<xsl:variable name="tempList" select="tokenize(.,'/')" />
<xhtml:option value="{.}"><xsl:value-of select="$tempList[last()]"/></xhtml:option>
</xsl:for-each>
</xhtml:select>
<xhtml:div style="margin-top:8px;height:20px;">i18n{import-excel}</xhtml:div>
<xhtml:input name="excel" type="file" style="margin-top:4;width:100%;height:20px;vertical-align:middle;line-height:18px;"/>
</xhtml:form> |
|