- Timestamp:
- Feb 21, 2012, 1:49:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/refform.jsp
r1342 r1538 11 11 import="net.sf.basedb.clients.web.Base" 12 12 import="net.sf.basedb.clients.web.util.HTML" 13 import="net.sf.basedb.clients.web.extensions.ExtensionsControl" 13 14 import="net.sf.basedb.util.Values" 14 15 import="java.util.List" … … 20 21 final String ID = sc.getId(); 21 22 final float scale = Base.getScale(sc); 23 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); 22 24 DbControl dc = null; 23 25 try … … 38 40 <base:page type="default" > 39 41 <base:head scripts="ajax.js" styles="path.css"> 40 <link rel="stylesheet" type="text/css" href="reggie.css"> 42 <link rel="stylesheet" type="text/css" href="css/reggie.css"> 43 <% 44 if (Application.getMajorVersion() == 3 && Application.getMinorVersion() == 0) 45 { 46 %> 47 <link rel="stylesheet" type="text/css" href="css/base30.css"> 48 <% 49 } 50 %> 41 51 <script language="JavaScript" src="reggie.js" type="text/javascript" charset="UTF-8"></script> 42 52 … … 158 168 { 159 169 html += '<tr><td colspan="2" class="summary" onclick="showHide(\'alreadyLinked\')" title="Click to show/hide details">'; 160 html += '<img src=" ../../images/show_section.gif" id="alreadyLinkedImg">';170 html += '<img src="images/show_section.png" id="alreadyLinkedImg">'; 161 171 html += numAlreadyLinked + ' file(s) was already linked to a case</td></tr>\n'; 162 172 html += '<tbody id="alreadyLinked" style="display: none;">' + htmlAlreadyLinked + "</tbody>"; … … 165 175 { 166 176 html += '<tr><td colspan="2" class="summary" onclick="showHide(\'linkCreated\')" title="Click to show/hide details">'; 167 html += '<img src=" ../../images/hide_section.gif" id="linkCreatedImg">';177 html += '<img src="images/hide_section.png" id="linkCreatedImg">'; 168 178 html += numLinkedNow + ' file(s) linked to a case</td></tr>\n'; 169 179 html += '<tbody id="linkCreated">' + htmlLinkedNow + "</tbody>"; … … 172 182 { 173 183 html += '<tr><td colspan="2" class="summary" onclick="showHide(\'notLinked\')" title="Click to show/hide details">'; 174 html += '<img src=" ../../images/hide_section.gif" id="notLinkedImg">';184 html += '<img src="images/hide_section.png" id="notLinkedImg">'; 175 185 html += numNotLinked + ' file(s) could not be linked</td></tr>\n'; 176 186 html += '<tbody id="notLinked">' + htmlNotLinked + "</tbody>"; … … 187 197 Main.showHide(sectionId); 188 198 var img = document.getElementById(sectionId + 'Img'); 189 img.src = img.src.indexOf('show') > 0 ? ' ../../images/hide_section.gif' : '../../images/show_section.gif';199 img.src = img.src.indexOf('show') > 0 ? 'images/hide_section.png' : 'images/show_section.png'; 190 200 } 191 201 </script> … … 230 240 <base:body onload="init()"> 231 241 232 <p:path style="margin-top: 20px; margin-bottom: 10px;">233 <p:pathelement title="Reggie" href="<%="index.jsp?ID="+ID%>" />234 <p:pathelement title="Referral form registration" />235 </p:path>236 242 <p:path><p:pathelement 243 title="Reggie" href="<%="index.jsp?ID="+ID%>" 244 /><p:pathelement title="Referral form registration" 245 /></p:path> 246 <div class="content"> 237 247 <% 238 248 if (sc.getActiveProjectId() == 0) 239 249 { 240 250 %> 241 < base:note type="warning" style="width: 800px; margin-left: 20px; margin-bottom: 20px; margin-right: 0px; font-weight: bold; color: #cc0000;">251 <div class="messagecontainer note" style="width: 800px; margin-left: 20px; margin-bottom: 20px; margin-right: 0px; font-weight: bold; color: #cc0000;"> 242 252 No project has been selected. You may proceed with the registration but 243 253 created items will not be shared. 244 </ base:note>254 </div> 245 255 <% 246 256 } … … 302 312 </div> 303 313 304 <div class=" error" id="errorMessage" style="display: none; width: 800px; margin-left: 20px; margin-bottom: 0px;"></div>314 <div class="messagecontainer error" id="errorMessage" style="display: none; width: 800px; margin-left: 20px; margin-bottom: 0px;"></div> 305 315 306 316 <div id="done" class="success" style="display: none; width: 800px; margin-left: 20px; margin-top: 20px;"></div> … … 309 319 <tr> 310 320 <td><base:button id="gocancel" title="Cancel" onclick="goRestart(false)" style="display: none;"/></td> 311 <td><base:button id="goprocess" title="Process" image=" gonext.gif" onclick="goProcess()"321 <td><base:button id="goprocess" title="Process" image="<%=home+"/images/gonext.png"%>" onclick="goProcess()" 312 322 tooltip="Process the files in the selected directory"/></td> 313 <td><base:button id="gorestart" title="Restart" image=" goback.gif" onclick="goRestart(true)" style="display: none;"/></td>323 <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" onclick="goRestart(true)" style="display: none;"/></td> 314 324 <td id="gonext.message" class="message"></td> 315 325 </tr> 316 326 </table> 317 327 </form> 328 </div> 318 329 319 330 </base:body>
Note: See TracChangeset
for help on using the changeset viewer.