Project

General

Profile

« Previous | Next » 

Revision 3765

use {$contextURL} and {$cgi-prefix} param for absolute paths (instead of relative paths)

View differences:

resultset-table.xsl
30 30
-->
31 31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
32 32
                version="1.0">
33
  <xsl:param name="cgi-url" select='string("")'/>
34 33
    <xsl:template name="resultstable">
35 34
        <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
36 35
            
......
46 45
                <table class="resultstable" width="95%" align="center" border="0" cellpadding="0" cellspacing="0">
47 46
                    <tr>
48 47
                        <th class="tablehead_lcorner" align="right" valign="top">
49
                            <img src="./style/skins/default/images/transparent1x1.gif" width="1" height="1" />
48
                            <img src="{$contextURL}/style/skins/default/images/transparent1x1.gif" width="1" height="1" />
50 49
                        </th>
51 50
                        <th class="tablehead" style="text-align: left">
52 51
                            Title
......
66 65
                            </th>
67 66
                        </xsl:if>
68 67
                        <th class="tablehead_rcorner" align="right" valign="top">
69
                            <img src="./style/skins/default/images/transparent1x1.gif" width="1" height="1" />
68
                            <img src="{$contextURL}/style/skins/default/images/transparent1x1.gif" width="1" height="1" />
70 69
                        </th>
71 70
                    </tr>
72 71
                    
......
88 87
                            
89 88
                            <td width="10">&#160;</td>
90 89
                            <td class="text_plain">
91
                                <form action="./metacat" method="POST">
90
                                <form action="{$contextURL}/metacat" method="POST">
92 91
                                    <xsl:attribute name="name"><xsl:value-of
93 92
                                        select="translate(./docid, '()-.', '____')" /></xsl:attribute>
94 93
                                    
......
182 181
                            
183 182
                            <xsl:if test="$enableediting = 'true'">
184 183
                                <td class="text_plain">
185
                                    <form action="./metacat" method="POST">
184
                                    <form action="{$contextURL}/metacat" method="POST">
186 185
                                        <input type="hidden" name="action" value="read" />
187 186
                                        <input type="hidden" name="qformat" value="{$qformat}" />
188 187
                                        <input type="hidden" name="sessionid" value="{$sessid}" />
......
196 195
                                            </input>
197 196
                                        </center>
198 197
                                    </form>
199
                                    <form action="{$cgi-url}/register-dataset.cgi" method="POST">
198
                                    <form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
200 199
                                        <input type="hidden" name="stage" value="modify" />
201 200
                                        <input type="hidden" name="cfg" value="{$qformat}" />
202 201
                                        <input type="hidden" name="sessionid" value="{$sessid}" />
......
210 209
                                            </input>
211 210
                                        </center>
212 211
                                    </form>
213
                                    <form action="{$cgi-url}/register-dataset.cgi" method="POST">
212
                                    <form action="{$cgi-prefix}/register-dataset.cgi" method="POST">
214 213
                                        <input type="hidden" name="stage" value="delete" />
215 214
                                        <input type="hidden" name="cfg" value="{$qformat}" />
216 215
                                        <input type="hidden" name="sessionid" value="{$sessid}" />

Also available in: Unified diff