Project

General

Profile

« Previous | Next » 

Revision 2050

Added by brooke almost 21 years ago

added sessionid hidden fields, based on $sessid transformer parameter set by DBTransform.java

View differences:

lib/style/common/resultset.xsl
31 31
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
32 32

  
33 33
  <xsl:output method="html"/>
34
  <xsl:param name="sessid"/>
34 35
  <xsl:param name="qformat">default</xsl:param>
35 36
  <xsl:param name="enableediting">false</xsl:param>
36 37
  <xsl:template match="/">
......
47 48
          function submitform(action,form_ref) {
48 49
              form_ref.action.value=action;
49 50
              form_ref.abstractpath.value="";
51
              form_ref.sessionid.value="]]><xsl:value-of select="$sessid" /><![CDATA[";
50 52
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
51 53
              form_ref.submit();
52 54
          }
53
          function submitform1(action, abstractpath, form_ref) {
54
              form_ref.action.value=action;
55
              form_ref.abstractpath.value=abstractpath;
56
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
57
              form_ref.submit();
58
          }
59
          function submitform2(action, qformat, form_ref) {
60
              form_ref.action.value=action;
61
              form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
62
              form_ref.abstractpath.value="";
63
              form_ref.submit();
64
          }
55

  
56
/*******************************************************************************
57
*** MB thinks these could be deleted? Matt to confirm
58
*******************************************************************************/
59

  
60
           function submitform1(action, abstractpath, form_ref) {
61
               form_ref.action.value=action;
62
               form_ref.abstractpath.value=abstractpath;
63
               form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
64
               form_ref.submit();
65
           }
66
           function submitform2(action, qformat, form_ref) {
67
               form_ref.action.value=action;
68
               form_ref.qformat.value="]]><xsl:value-of select="$qformat" /><![CDATA[";
69
               form_ref.abstractpath.value="";
70
               form_ref.submit();
71
           }
72

  
73
/*******************************************************************************
74
*** end potential deletion
75
*******************************************************************************/
76

  
65 77
          ]]>
66 78
        </script>
67 79
      </head>
......
117 129
                 <!-- specified down IN javascript:submitform2('read','zip',docid) -->
118 130

  
119 131
                 <input type="hidden" name="qformat" />
132
                 <input type="hidden" name="sessionid" />
120 133
                 <xsl:if test="$enableediting = 'true'">
121 134
	 	           <input type="hidden" name="enableediting" value="{$enableediting}"/>
122 135
                 </xsl:if>
......
185 198
	       <form action="@servlet-path@" method="POST">
186 199
	               <input type="hidden" name="action" value="read"/>
187 200
	 	       <input type="hidden" name="qformat" value="{$qformat}"/>
201
				<input type="hidden" name="sessionid"  value="{$sessid}"/>
188 202
                       <input type="hidden" name="docid">
189 203
                       <xsl:attribute name="value">
190 204
                          <xsl:value-of select="./docid"/>
......
199 213
                       method="POST">
200 214
	               <input type="hidden" name="stage" value="modify"/>	
201 215
	 	           <input type="hidden" name="cfg" value="{$qformat}"/>
216
					<input type="hidden" name="sessionid"  value="{$sessid}"/>
202 217
                   <input type="hidden" name="docid">
203 218
                     <xsl:attribute name="value">
204 219
                       <xsl:value-of select="./docid"/>
......
213 228
                       method="POST">
214 229
	               <input type="hidden" name="stage" value="delete"/>	
215 230
	 	           <input type="hidden" name="cfg" value="{$qformat}"/>
231
					<input type="hidden" name="sessionid"  value="{$sessid}"/>
216 232
                   <input type="hidden" name="docid">
217 233
                     <xsl:attribute name="value">
218 234
                       <xsl:value-of select="./docid"/>

Also available in: Unified diff