Changeset 5913
- Timestamp:
- Dec 15, 2011, 2:40:57 PM (11 years ago)
- Location:
- trunk/www
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/biomaterials/bioplateeventtypes/edit_eventtype.jsp
r5908 r5913 132 132 </base:head> 133 133 <base:body onload="init()"> 134 < p>134 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 135 135 <form action="index.jsp?ID=<%=ID%>" method="post" name="bioPlateEventType" onsubmit="return false;"> 136 136 <input type="hidden" name="cmd" value="UpdateItem"> 137 137 138 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>139 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*260)+"px;"%>"138 <t:tabcontrol id="settings" 139 subclass="content dialogtabcontrol" 140 140 position="bottom" remember="<%=eventType != null%>" 141 141 extensions="<%=invoker%>"> 142 142 <t:tab id="info" title="Bioplate event type" validate="validateBioPlateEventType()" helpid="bioplateeventtype.edit"> 143 <table class="f orm" cellspacing=0>143 <table class="fullform input100"> 144 144 <tr> 145 <t d class="prompt">Name</td>145 <th>Name</th> 146 146 <td><input <%=requiredClazz%> type="text" name="name" 147 147 value="<%=HTML.encodeTags(eventType == null ? Values.getString(cc.getPropertyValue("name"), "New bioplate event type") : eventType.getName())%>" 148 size="40" maxlength="<%=BioPlateEventType.MAX_NAME_LENGTH%>"></td> 148 maxlength="<%=BioPlateEventType.MAX_NAME_LENGTH%>"></td> 149 <td></td> 149 150 </tr> 150 151 <% … … 152 153 { 153 154 %> 154 <tr 155 <t d class="prompt">System ID</td>155 <tr> 156 <th>System ID</th> 156 157 <td> 157 158 <input class="text unchangeable" type="text" name="system_id" 158 159 value="<%=HTML.encodeTags(eventType == null ? Values.getString(cc.getPropertyValue("systemId"), "") : eventType.getSystemId())%>" 159 size="40"maxlength="<%=BioPlateEventType.MAX_SYSTEM_ID_LENGTH%>">160 maxlength="<%=BioPlateEventType.MAX_SYSTEM_ID_LENGTH%>"> 160 161 </td> 162 <td></td> 161 163 </tr> 162 164 <% 163 165 } 164 166 %> 165 <tr >166 <t d class="prompt">Description</td>167 <td nowrap>168 <textarea <%=clazz%> rows=" 4" cols="40" name="description"167 <tr class="dynamic"> 168 <th>Description</th> 169 <td> 170 <textarea <%=clazz%> rows="6" name="description" 169 171 ><%=HTML.encodeTags(eventType == null ? cc.getPropertyValue("description") : eventType.getDescription())%></textarea> 170 <a href="javascript:Main.zoom('Description', 'bioPlateEventType', 'description')" 171 title="Edit in larger window"><base:icon image="zoom.png" /></a> 172 </td> 173 <td style="width: 20px;"> 174 <base:icon image="zoom.png" 175 onclick="Main.zoom('Description', 'bioPlateEventType', 'description')" 176 tooltip="Edit in larger window" 177 /> 172 178 </td> 173 179 </tr> 174 180 </table> 175 <div align=right> <i><base:icon image="required.gif" /> = required information</i>176 <%if (eventType == null) {%><br>177 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>178 <%}%>179 </div>180 181 </t:tab> 181 182 </t:tabcontrol> 182 183 <table align="center">184 <tr>185 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>186 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>187 </tr>188 </table>189 183 </form> 184 185 <div class="legend"> 186 <base:icon image="required.gif" /> = required information 187 <%if (eventType == null) {%><br> 188 <base:icon image="unchangeable.gif" /> = can't be changed later 189 <%}%> 190 </div> 191 192 <base:buttongroup subclass="dialogbuttons"> 193 <base:button onclick="saveSettings()" title="Save" /> 194 <base:button onclick="window.close()" title="Cancel" /> 195 </base:buttongroup> 190 196 </base:body> 191 197 </base:page> -
trunk/www/biomaterials/bioplates/edit_bioplate.jsp
r5908 r5913 302 302 </base:head> 303 303 <base:body onload="init()"> 304 <p> 304 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 305 305 306 <form action="index.jsp?ID=<%=ID%>" method="post" name="bioplate" onsubmit="return false;"> 306 307 <input type="hidden" name="cmd" value="UpdateItem"> 307 308 308 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>309 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"309 <t:tabcontrol id="settings" 310 subclass="content dialogtabcontrol" 310 311 position="bottom" remember="<%=bioplate != null%>" switch="switchTab" 311 312 extensions="<%=invoker%>"> 312 313 <t:tab id="info" title="Plate" validate="validateBioPlate()" helpid="bioplate.edit"> 313 <table class="f orm" cellspacing=0>314 <tr> 315 <t d class="prompt">Name</td>314 <table class="fullform input100"> 315 <tr> 316 <th>Name</th> 316 317 <td><input <%=requiredClazz%> type="text" name="name" 317 318 value="<%=HTML.encodeTags(bioplate == null ? Values.getString(cc.getPropertyValue("name"), "New bioplate") : bioplate.getName())%>" 318 size="40" maxlength="<%=BioPlate.MAX_NAME_LENGTH%>"></td> 319 </tr> 320 <tr> 321 <td class="prompt">Bioplate type</td> 319 maxlength="<%=BioPlate.MAX_NAME_LENGTH%>"></td> 320 <td></td> 321 </tr> 322 <tr> 323 <th>Bioplate type</th> 322 324 <td> 323 325 <% … … 345 347 %> 346 348 </td> 347 </tr> 348 <tr> 349 <td class="prompt">Plate geometry</td> 349 <td></td> 350 </tr> 351 <tr> 352 <th>Plate geometry</th> 350 353 <td> 351 354 <% … … 373 376 %> 374 377 </td> 375 </tr> 376 <tr> 377 <td class="prompt">Freezer</td> 378 <td></td> 379 </tr> 380 <tr> 381 <th>Freezer</th> 378 382 <td> 379 383 <base:select … … 389 393 /> 390 394 </td> 391 </tr> 392 <tr> 393 <td class="prompt">Barcode</td> 395 <td></td> 396 </tr> 397 <tr> 398 <th>Barcode</th> 394 399 <td><input <%=clazz%> type="text" name="barcode" 395 400 value="<%=HTML.encodeTags(bioplate == null ? Values.getString(cc.getPropertyValue("barcode"), "") : bioplate.getBarcode())%>" 396 size="40" maxlength="<%=BioPlate.MAX_BARCODE_LENGTH%>"></td> 401 maxlength="<%=BioPlate.MAX_BARCODE_LENGTH%>"></td> 402 <td></td> 397 403 </tr> 398 404 <tr> 399 <t d class="prompt"><label for="destroyed">Destroyed</label></td>405 <th class="prompt"><label for="destroyed">Destroyed</label></th> 400 406 <td><input type="checkbox" name="destroyed" id="destroyed" value="1" 401 407 <%=(bioplate != null && bioplate.isDestroyed()) || (bioplate == null && Values.getBoolean(cc.getPropertyValue("destroyed"))) ? "checked" : ""%>> 402 408 </td> 403 </tr> 404 <tr > 405 <td class="prompt">Description</td> 406 <td nowrap> 407 <textarea <%=clazz%> rows="4" cols="40" name="description" 409 <td></td> 410 </tr> 411 <tr class="dynamic"> 412 <th>Description</th> 413 <td> 414 <textarea <%=clazz%> rows="6" name="description" 408 415 ><%=HTML.encodeTags(bioplate == null ? cc.getPropertyValue("description") : bioplate.getDescription())%></textarea> 409 <a href="javascript:Main.zoom('Description', 'bioplate', 'description')" 410 title="Edit in larger window"><base:icon image="zoom.png" /></a> 416 </td> 417 <td style="width: 20px;"> 418 <base:icon image="zoom.png" 419 onclick="Main.zoom('Description', 'bioplate', 'description')" 420 tooltip="Edit in larger window" 421 /> 411 422 </td> 412 423 </tr> 413 424 </table> 414 <div align=right> <i><base:icon image="required.gif" /> = required information</i>415 <%if (bioplate == null) {%><br>416 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>417 <%}%>418 </div>419 425 </t:tab> 420 426 421 <t:tab id="annotations" title="Annotations" helpid="annotations.edit"> 422 <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 423 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 424 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 427 <t:tab id="annotations" title="Annotations" helpid="annotations.edit"><iframe 428 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 429 style="width: 100%; height: 100%;"></iframe> 425 430 </t:tab> 426 431 </t:tabcontrol> 427 428 <table align="center">429 <tr>430 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>431 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>432 </tr>433 </table>434 432 </form> 433 434 <div class="legend"> 435 <base:icon image="required.gif" /> = required information 436 <%if (bioplate == null) {%><br> 437 <base:icon image="unchangeable.gif" /> = can't be changed later 438 <%}%> 439 </div> 440 441 <base:buttongroup subclass="dialogbuttons"> 442 <base:button onclick="saveSettings()" title="Save" /> 443 <base:button onclick="window.close()" title="Cancel" /> 444 </base:buttongroup> 435 445 </base:body> 436 446 </base:page> -
trunk/www/biomaterials/bioplates/events/edit_event.jsp
r5908 r5913 196 196 </base:head> 197 197 <base:body onload="init()"> 198 < p>198 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 199 199 <form action="index.jsp?ID=<%=ID%>" method="post" name="event" onsubmit="return false;"> 200 200 <input type="hidden" name="cmd" value="UpdateItem"> 201 201 202 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>203 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*340)+"px;"%>"202 <t:tabcontrol id="settings" 203 subclass="content dialogtabcontrol" 204 204 position="bottom" remember="<%=event != null%>" 205 205 extensions="<%=invoker%>"> 206 206 <t:tab id="info" title="Bioplate event" validate="validateBioPlateEvent()" helpid="bioplateevent.edit"> 207 <table class="f orm" cellspacing=0>207 <table class="fullform input100"> 208 208 <tr> 209 <t d class="prompt">Name</td>209 <th>Name</th> 210 210 <td><input <%=requiredClazz%> type="text" name="name" 211 211 value="<%=HTML.encodeTags(event.getName())%>" 212 size="40" maxlength="<%=BioPlateEvent.MAX_NAME_LENGTH%>"></td> 212 maxlength="<%=BioPlateEvent.MAX_NAME_LENGTH%>"></td> 213 <td></td> 213 214 </tr> 214 215 <tr> 215 <t d class="prompt">Event date</td>216 <th>Event date</th> 216 217 <td> 217 <table border="0" cellspacing="0" cellpadding="0">218 <table> 218 219 <tr> 219 220 <td> 220 <input <%=clazz%> type="text" name="event_date" 221 <input <%=clazz%> type="text" name="event_date" style="width: 15em;" 221 222 value="<%=HTML.encodeTags(dateFormatter.format(event.getEventDate()))%>" 222 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 223 223 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 224 224 </td> 225 225 <td> … … 234 234 </table> 235 235 </td> 236 <td></td> 236 237 </tr> 237 238 <tr> 238 <t d class="prompt">Protocol</td>239 <th>Protocol</th> 239 240 <td> 240 241 <base:select … … 248 249 /> 249 250 </td> 251 <td></td> 250 252 </tr> 251 253 <tr> 252 <t d class="prompt">Hardware</td>254 <th>Hardware</th> 253 255 <td> 254 256 <base:select … … 262 264 /> 263 265 </td> 264 </tr> 265 <tr > 266 <td class="prompt">Description</td> 267 <td nowrap> 268 <textarea <%=clazz%> rows="4" cols="40" name="description" 266 <td></td> 267 </tr> 268 <tr class="dynamic"> 269 <th>Description</td> 270 <td> 271 <textarea <%=clazz%> rows="6" name="description" 269 272 ><%=HTML.encodeTags(event.getDescription())%></textarea> 270 <a href="javascript:Main.zoom('Description', 'event', 'description')" 271 title="Edit in larger window"><base:icon image="zoom.png" /></a> 273 </td> 274 <td style="width: 20px;"> 275 <base:icon image="zoom.png" 276 onclick="Main.zoom('Description', 'event', 'description')" 277 tooltip="Edit in larger window" 278 /> 272 279 </td> 273 280 </tr> 274 281 </table> 275 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>276 282 </t:tab> 277 283 </t:tabcontrol> 278 279 <table align="center">280 <tr>281 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>282 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>283 </tr>284 </table>285 284 </form> 285 286 <div class="legend"> 287 <base:icon image="required.gif" /> = required information 288 </div> 289 290 <base:buttongroup subclass="dialogbuttons"> 291 <base:button onclick="saveSettings()" title="Save" /> 292 <base:button onclick="window.close()" title="Cancel" /> 293 </base:buttongroup> 286 294 </base:body> 287 295 </base:page> -
trunk/www/biomaterials/bioplates/wells/edit_biowell.jsp
r5709 r5913 49 49 %> 50 50 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> 51 <%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>52 51 <% 53 52 final Item itemType = Item.BIOWELL; … … 107 106 { 108 107 var frm = document.forms['biowell']; 109 if ( TabControl.validateActiveTab('settings'))108 if (validateBioWell()) 110 109 { 111 110 frm.biomaterial_type.disabled = false; … … 166 165 </base:head> 167 166 <base:body> 168 < p>167 <h1><%=title%> <base:help helpid="biowell.edit" /></h1> 169 168 <form action="index.jsp?ID=<%=ID%>" method="post" name="biowell" onsubmit="return false;"> 170 169 <input type="hidden" name="cmd" value="UpdateItem"> 171 170 172 <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3> 173 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>" 174 position="bottom" 175 extensions="<%=invoker%>"> 176 <t:tab id="info" title="Biowell" validate="validateBioWell()" helpid="biowell.edit"> 177 <table class="form" cellspacing=0> 178 <tr> 179 <td class="prompt">Bioplate</td> 171 <div class="content bottomborder"> 172 173 <table class="fullform input100"> 174 <tr> 175 <th>Bioplate</th> 180 176 <td><%=HTML.encodeTags(bioPlate.getName())%></td> 181 177 </tr> 182 178 <tr> 183 <t d class="prompt">Well location</td>179 <th>Well location</th> 184 180 <td><%=rowFormatter.format(bioWell.getRow())%><%=columnFormatter.format(bioWell.getColumn())%></td> 185 181 </tr> 186 182 <tr> 187 <t d class="prompt">Biomaterial type</td>183 <th>Biomaterial type</th> 188 184 <td> 189 185 <select name="biomaterial_type" onchange="bioMaterialTypeOnChange()" <%=bioMaterialType != null ? "disabled": ""%>> … … 212 208 </tr> 213 209 <tr> 214 <t d class="prompt">Biomaterial</td>210 <th>Biomaterial</th> 215 211 <td> 216 212 <base:select … … 231 227 %> 232 228 <tr> 233 <t d></td>229 <th></th> 234 230 <td> 235 231 <base:note type="warning" style="background: #ffffd8;"> … … 242 238 } 243 239 %> 240 <tr class="dynamic"> 241 <th></th> 242 <td></td> 243 </tr> 244 244 </table> 245 </t:tab>246 </t:tabcontrol>247 <table align="center">248 <tr>249 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>250 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>251 </tr>252 </table>253 245 </form> 246 247 <base:buttongroup subclass="dialogbuttons"> 248 <base:button onclick="saveSettings()" title="Save" /> 249 <base:button onclick="window.close()" title="Cancel" /> 250 </base:buttongroup> 254 251 </base:body> 255 252 </base:page> -
trunk/www/biomaterials/bioplatetypes/edit_platetype.jsp
r5908 r5913 197 197 </base:head> 198 198 <base:body onload="init()"> 199 < p>199 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 200 200 <form action="index.jsp?ID=<%=ID%>" method="post" name="bioPlateType" onsubmit="return false;"> 201 201 <input type="hidden" name="cmd" value="UpdateItem"> 202 202 203 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>204 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*260)+"px;"%>"203 <t:tabcontrol id="settings" 204 subclass="content dialogtabcontrol" 205 205 position="bottom" remember="<%=bioPlateType != null%>" 206 206 extensions="<%=invoker%>"> 207 207 <t:tab id="info" title="Bioplate type" validate="validateBioPlateType()" helpid="bioplatetype.edit"> 208 <table class="f orm" cellspacing=0>208 <table class="fullform input100"> 209 209 <tr> 210 <t d class="prompt">Name</td>210 <th>Name</th> 211 211 <td><input <%=requiredClazz%> type="text" name="name" 212 212 value="<%=HTML.encodeTags(bioPlateType == null ? Values.getString(cc.getPropertyValue("name"), "New bioplate type") : bioPlateType.getName())%>" 213 size="40" maxlength="<%=BioPlateType.MAX_NAME_LENGTH%>"></td> 213 maxlength="<%=BioPlateType.MAX_NAME_LENGTH%>"></td> 214 <td></td> 214 215 </tr> 215 <tr 216 <t d class="prompt">Biomaterial type</td>216 <tr> 217 <th>Biomaterial type</th> 217 218 <% 218 219 if (bioPlateType == null) … … 235 236 } 236 237 %> 238 <td></td> 237 239 </tr> 238 240 <% … … 240 242 { 241 243 %> 242 <tr 243 <t d class="prompt">Biomaterial subtype</td>244 <td colspan="2">244 <tr> 245 <th>Biomaterial subtype</th> 246 <td> 245 247 <select name="subtype_id" 246 248 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%> … … 276 278 </select> 277 279 </td> 280 <td></td> 278 281 </tr> 279 282 <% … … 281 284 %> 282 285 <tr> 283 <t d class="prompt">Well lock mode</td>286 <th>Well lock mode</th> 284 287 <td> 285 <select name="lockMode" >288 <select name="lockMode" class="selectionlist"> 286 289 <% 287 290 for (BioWell.LockMode lm : BioWell.LockMode.values()) … … 295 298 </select> 296 299 </td> 300 <td></td> 297 301 </tr> 298 <tr >299 <t d class="prompt">Description</td>300 <td nowrap>301 <textarea <%=clazz%> rows=" 4" cols="40" name="description"302 <tr class="dynamic"> 303 <th>Description</th> 304 <td> 305 <textarea <%=clazz%> rows="6" name="description" 302 306 ><%=HTML.encodeTags(bioPlateType == null ? cc.getPropertyValue("description") : bioPlateType.getDescription())%></textarea> 303 <a href="javascript:Main.zoom('Description', 'bioPlateType', 'description')" 304 title="Edit in larger window"><base:icon image="zoom.png" /></a> 307 </td> 308 <td style="width: 20px;"> 309 <base:icon image="zoom.png" 310 onclick="Main.zoom('Description', 'bioPlateType', 'description')" 311 tooltip="Edit in larger window" 312 /> 305 313 </td> 306 314 </tr> 307 315 </table> 308 <div align=right> <i><base:icon image="required.gif" /> = required information</i>309 <%if (bioPlateType == null) {%><br>310 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>311 <%}%>312 </div>313 316 </t:tab> 314 317 </t:tabcontrol> 315 316 <table align="center">317 <tr>318 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>319 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>320 </tr>321 </table>322 318 </form> 319 320 <div class="legend"> 321 <base:icon image="required.gif" /> = required information 322 <%if (bioPlateType == null) {%><br> 323 <base:icon image="unchangeable.gif" /> = can't be changed later 324 <%}%> 325 </div> 326 327 <base:buttongroup subclass="dialogbuttons"> 328 <base:button onclick="saveSettings()" title="Save" /> 329 <base:button onclick="window.close()" title="Cancel" /> 330 </base:buttongroup> 323 331 </base:body> 324 332 </base:page> -
trunk/www/biomaterials/biosources/edit_biosource.jsp
r5908 r5913 169 169 </base:head> 170 170 <base:body onload="init()"> 171 < p>171 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 172 172 <form action="index.jsp?ID=<%=ID%>" method="post" name="biosource" onsubmit="return false;"> 173 173 <input type="hidden" name="cmd" value="UpdateItem"> 174 174 175 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>176 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"175 <t:tabcontrol id="settings" 176 subclass="content dialogtabcontrol" 177 177 position="bottom" remember="<%=bioSource != null%>" switch="switchTab" 178 178 extensions="<%=invoker%>"> 179 179 <t:tab id="info" title="Biosource" validate="validateBioSource()" helpid="biosource.edit"> 180 <table class="f orm" cellspacing=0>180 <table class="fullform input100"> 181 181 <tr> 182 <t d class="prompt">Name</td>182 <th>Name</td> 183 183 <td><input <%=requiredClazz%> type="text" name="name" 184 184 value="<%=HTML.encodeTags(bioSource == null ? Values.getString(cc.getPropertyValue("name"), "New biosource") : bioSource.getName())%>" 185 size="40" maxlength="<%=BioSource.MAX_NAME_LENGTH%>"></td> 186 </tr> 187 <tr > 188 <td class="prompt">Type</td> 189 <td colspan="2"> 185 maxlength="<%=BioSource.MAX_NAME_LENGTH%>"></td> 186 <td></td> 187 </tr> 188 <tr> 189 <th>Type</th> 190 <td> 190 191 <select name="subtype_id" 191 192 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%>> … … 217 218 </select> 218 219 </td> 220 <td></td> 219 221 </tr> 220 222 <tr> 221 <t d class="prompt">External ID</td>223 <th>External ID</th> 222 224 <td><input <%=clazz%> type="text" name="external_id" 223 225 value="<%=HTML.encodeTags(bioSource == null ? Values.getString(cc.getPropertyValue("externalId"), "") : bioSource.getExternalId())%>" 224 size="40" maxlength="<%=BioSource.MAX_EXTERNAL_ID_LENGTH%>"></td> 225 </tr> 226 <tr > 227 <td class="prompt">Description</td> 228 <td nowrap> 229 <textarea <%=clazz%> rows="4" cols="40" name="description" 226 maxlength="<%=BioSource.MAX_EXTERNAL_ID_LENGTH%>"></td> 227 <td></td> 228 </tr> 229 <tr class="dynamic"> 230 <th>Description</th> 231 <td> 232 <textarea <%=clazz%> rows="6" name="description" 230 233 ><%=HTML.encodeTags(bioSource == null ? cc.getPropertyValue("description") : bioSource.getDescription())%></textarea> 231 <a href="javascript:Main.zoom('Description', 'biosource', 'description')"232 title="Edit in larger window"><base:icon image="zoom.png" /></a>233 234 </td> 235 <td style="width: 20px;"> 236 <base:icon image="zoom.png" 237 onclick="Main.zoom('Description', 'biosource', 'description')" 238 tooltip="Edit in larger window" 239 /> 240 </td> 234 241 </tr> 235 242 </table> 236 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>237 243 </t:tab> 238 244 239 <t:tab id="annotations" title="Annotations" helpid="annotations.edit"> 240 <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 241 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 242 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 243 </t:tab> 244 245 <t:tab id="annotations" title="Annotations" helpid="annotations.edit"><iframe 246 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 247 style="width: 100%; height: 100%;"></iframe></t:tab> 245 248 </t:tabcontrol> 246 247 <table align="center">248 <tr>249 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>250 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>251 </tr>252 </table>253 249 </form> 250 251 <div class="legend"> 252 <base:icon image="required.gif" /> = required information 253 </div> 254 255 <base:buttongroup subclass="dialogbuttons"> 256 <base:button onclick="saveSettings()" title="Save" /> 257 <base:button onclick="window.close()" title="Cancel" /> 258 </base:buttongroup> 254 259 </base:body> 255 260 </base:page> -
trunk/www/biomaterials/events/edit_event.jsp
r5908 r5913 171 171 </base:head> 172 172 <base:body onload="init()"> 173 < p>173 <h1><%=title%></h1> 174 174 <form action="index.jsp?ID=<%=ID%>" method="post" name="event" onsubmit="return false;"> 175 175 <input type="hidden" name="cmd" value="UpdateItem"> … … 177 177 <input type="hidden" name="biomaterial_id" value="<%=bioMaterialId%>"> 178 178 179 < h3 class="docked"><%=title%></h3>180 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*250)+"px;"%>"179 <t:tabcontrol id="settings" 180 subclass="content dialogtabcontrol" 181 181 position="bottom" remember="<%=event != null%>" 182 182 extensions="<%=invoker%>"> 183 183 <t:tab id="info" title="Event" validate="validateEvent()"> 184 <table class="f orm" cellspacing=0>184 <table class="fullform input100"> 185 185 <tr> 186 <t d class="prompt">Event date</td>186 <th>Event date</th> 187 187 <td> 188 <table border="0" cellspacing="0" cellpadding="0">188 <table> 189 189 <tr> 190 190 <td> 191 <input <%=clazz%> type="text" name="event_date"191 <input <%=clazz%> style="width: 15em;" type="text" name="event_date" 192 192 value="<%=HTML.encodeTags(dateFormatter.format(eventDate == null ? new Date() : eventDate))%>" 193 size="20"maxlength="20" title="Enter date in format: <%=htmlDateFormat%>">193 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 194 194 195 195 </td> … … 205 205 </table> 206 206 </td> 207 <td></td> 207 208 </tr> 208 209 <tr> 209 <t d class="prompt">Used quantity</td>210 <td><input <%=clazz%> type="text" name="used_quantity"211 value="<%=Values.formatNumber(event == null ? null : event.getUsedQuantity(), -1)%>" size="12"210 <th>Used quantity</th> 211 <td><input <%=clazz%> style="width: 15em;" type="text" name="used_quantity" 212 value="<%=Values.formatNumber(event == null ? null : event.getUsedQuantity(), -1)%>" 212 213 maxlength="10" onkeypress="return Numbers.numberOnly(event)"> (µg)</td> 214 <td></td> 213 215 </tr> 214 216 <tr> 215 <t d class="prompt">Protocol</td>217 <th>Protocol</th> 216 218 <td> 217 219 <base:select … … 226 228 /> 227 229 </td> 228 </tr> 229 <tr > 230 <td class="prompt">Comment</td> 231 <td nowrap> 232 <textarea <%=clazz%> rows="4" cols="40" 233 name="comment" ><%=HTML.encodeTags(event == null ? cc.getPropertyValue("comment") : event.getComment())%></textarea> 234 <a href="javascript:Main.zoom('Comment', 'event', 'comment')" title="Edit in larger window"><base:icon image="zoom.png" /></a> 230 <td></td> 231 </tr> 232 <tr class="dynamic"> 233 <th>Comment</th> 234 <td> 235 <textarea <%=clazz%> rows="6" name="comment" 236 ><%=HTML.encodeTags(event == null ? cc.getPropertyValue("comment") : event.getComment())%></textarea> 237 </td> 238 <td style="width: 20px;"> 239 <base:icon image="zoom.png" 240 onclick="Main.zoom('Comment', 'event', 'comment')" 241 tooltip="Edit in larger window" 242 /> 235 243 </td> 236 244 </tr> 237 245 </table> 238 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>239 246 </t:tab> 240 247 </t:tabcontrol> 241 242 <table align="center">243 <tr>244 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>245 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>246 </tr>247 </table>248 248 </form> 249 250 <base:buttongroup subclass="dialogbuttons"> 251 <base:button onclick="saveSettings()" title="Save" /> 252 <base:button onclick="window.close()" title="Cancel" /> 253 </base:buttongroup> 249 254 </base:body> 250 255 </base:page> -
trunk/www/biomaterials/extracts/edit_extract.jsp
r5908 r5913 701 701 </base:head> 702 702 <base:body onload="init()"> 703 < p>703 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 704 704 <form action="index.jsp?ID=<%=ID%>" method="post" name="extract" onsubmit="return false;"> 705 705 <input type="hidden" name="cmd" value="UpdateItem"> 706 706 707 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>708 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"707 <t:tabcontrol id="settings" 708 subclass="content dialogtabcontrol" 709 709 position="bottom" remember="<%=extract != null%>" switch="switchTab" 710 710 extensions="<%=invoker%>"> 711 711 <t:tab id="info" title="Extract" validate="validateExtract()" helpid="extract.edit"> 712 <table class="f orm" cellspacing=0>713 <tr> 714 <t d class="prompt">Name</td>712 <table class="fullform input100"> 713 <tr> 714 <th>Name</th> 715 715 <td><input <%=requiredClazz%> type="text" name="name" 716 716 value="<%=HTML.encodeTags(name)%>" 717 size="40" maxlength="<%=Extract.MAX_NAME_LENGTH%>"></td> 717 maxlength="<%=Extract.MAX_NAME_LENGTH%>"></td> 718 <td></td> 718 719 </tr> 719 720 <tr > 720 <t d class="prompt">Type</td>721 <td colspan="2">721 <th>Type</th> 722 <td> 722 723 <select name="subtype_id" 723 724 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%> … … 752 753 </select> 753 754 </td> 754 </tr> 755 <tr> 756 <td class="prompt">Tag</td> 755 <td></td> 756 </tr> 757 <tr> 758 <th>Tag</th> 757 759 <td> 758 760 <base:select … … 767 769 /> 768 770 </td> 769 </tr> 770 <tr> 771 <td class="prompt">External ID</td> 771 <td></td> 772 </tr> 773 <tr> 774 <th>External ID</th> 772 775 <td><input <%=clazz%> type="text" name="external_id" 773 776 value="<%=HTML.encodeTags(extract == null ? Values.getString(cc.getPropertyValue("externalId"), "") : extract.getExternalId())%>" 774 size="40" maxlength="<%=Extract.MAX_EXTERNAL_ID_LENGTH%>"></td> 775 </tr> 776 <tr> 777 <td class="prompt">Original quantity</td> 778 <td><input <%=clazz%> type="text" name="original_quantity" 779 value="<%=Values.formatNumber(extract == null ? Values.getFloat(cc.getPropertyValue("originalQuantity"), null): extract.getOriginalQuantity(), -1)%>" size="12" 777 maxlength="<%=Extract.MAX_EXTERNAL_ID_LENGTH%>"></td> 778 <td></td> 779 </tr> 780 <tr> 781 <th>Original quantity</th> 782 <td><input <%=clazz%> type="text" name="original_quantity" style="width: 15em;" 783 value="<%=Values.formatNumber(extract == null ? Values.getFloat(cc.getPropertyValue("originalQuantity"), null): extract.getOriginalQuantity(), -1)%>" 780 784 maxlength="10" onkeypress="return Numbers.numberOnly(event)"> (µg)</td> 781 </tr> 782 <tr> 783 <td class="prompt">Created</td> 784 <td> 785 <table border="0" cellspacing="0" cellpadding="0"> 785 <td></td> 786 </tr> 787 <tr> 788 <th>Created</th> 789 <td> 790 <table> 786 791 <tr> 787 792 <td> 788 <input <%=clazz%> type="text" name="event_date" <%=lockEventProperties ? "disabled" : ""%>793 <input <%=clazz%> style="width: 15em;" type="text" name="event_date" <%=lockEventProperties ? "disabled" : ""%> 789 794 value="<%=HTML.encodeTags(dateFormatter.format(eventDate))%>" 790 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 791 795 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 792 796 </td> 793 797 <td> … … 803 807 </table> 804 808 </td> 805 </tr> 806 <tr> 807 <td class="prompt">Registered</td> 809 <td></td> 810 </tr> 811 <tr> 812 <th>Registered</th> 808 813 <td><%=dateFormatter.format(creationEvent == null ? new Date() : creationEvent.getEntryDate())%></td> 809 </tr> 810 <tr> 811 <td class="prompt">Protocol</td> 814 <td></td> 815 </tr> 816 <tr> 817 <th>Protocol</th> 812 818 <td> 813 819 <base:select … … 825 831 /> 826 832 </td> 827 </tr> 828 <tr> 829 <td class="prompt">Bioplate</td> 833 <td></td> 834 </tr> 835 <tr> 836 <th>Bioplate</th> 830 837 <td> 831 838 <base:select … … 842 849 /> 843 850 </td> 844 </tr> 845 <tr> 846 <td class="prompt">Biowell</td> 851 <td></td> 852 </tr> 853 <tr> 854 <th class="subprompt">- well</th> 847 855 <td> 848 856 <base:select … … 858 866 /> 859 867 </td> 860 </tr> 861 <tr > 862 <td class="prompt">Description</td> 863 <td nowrap> 864 <textarea <%=clazz%> rows="4" cols="40" name="description" 868 <td></td> 869 </tr> 870 <tr class="dynamic"> 871 <th>Description</th> 872 <td> 873 <textarea <%=clazz%> rows="6" name="description" 865 874 ><%=HTML.encodeTags(extract == null ? cc.getPropertyValue("description") : extract.getDescription())%></textarea> 866 <a href="javascript:Main.zoom('Description', 'extract', 'description')" 867 title="Edit in larger window"><base:icon image="zoom.png" /></a> 875 </td> 876 <td style="width: 20px;"> 877 <base:icon image="zoom.png" 878 onclick="Main.zoom('Description', 'extract', 'description')" 879 tooltip="Edit in larger window" 880 /> 868 881 </td> 869 882 </tr> 870 883 </table> 871 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>872 884 </t:tab> 873 885 874 886 <t:tab id="parents" title="Parents" helpid="extract.parents"> 875 <table class="f orm" cellspacing=0>876 <tr> 877 <t d class="prompt">Parent type</td>887 <table class="fullform input100"> 888 <tr> 889 <th>Parent type</th> 878 890 <td> 879 891 <input type="radio" name="parentType" id="parentType.sample" … … 887 899 </td> 888 900 </tr> 889 <tr 890 <t d class="prompt">Sample</td>901 <tr> 902 <th>Sample</th> 891 903 <td> 892 904 <base:select 893 905 id="sample_id" 894 906 clazz="selectionlist" 895 buttonstyle="width: 1 50px;"907 buttonstyle="width: 12em;" 896 908 buttonicon="add.png" 897 909 buttontitle="Select sample…" 898 buttonclass="leftaligned b uttonclass"910 buttonclass="leftaligned basicbutton" 899 911 required="false" 900 912 current="<%=currentSample%>" … … 909 921 </tr> 910 922 <tr> 911 <t d class="subprompt">-</td>912 <td> 913 used quantity914 <input <%=clazz%> type="text" name="used_from_sample"value="<%=Values.formatNumber(usedFromSample, -1)%>"915 size="12"maxlength="10" onkeypress="return Numbers.numberOnly(event)"923 <th class="subprompt">used quantity</td> 924 <td> 925 <input <%=clazz%> style="width: 15em;" type="text" name="used_from_sample" 926 value="<%=Values.formatNumber(usedFromSample, -1)%>" 927 maxlength="10" onkeypress="return Numbers.numberOnly(event)" 916 928 onblur="usedFromSampleOnBlur()"> (µg) 917 929 </td> 918 930 </tr> 919 <tr > 920 <td class="prompt">Extracts</td> 921 <td> 922 <table border="0" cellspacing="0" cellpadding="0"> 923 <tr > 931 <tr class="big"> 932 <th>Extracts</td> 933 <td> 934 <div class="selectionlist"> 935 <table> 936 <tr> 924 937 <td> 925 <select name="extracts" size="12" multiple class="selectionlist" 926 onchange="extractsOnChange()"> 927 </select> 938 <select name="extracts" size="12" multiple onchange="extractsOnChange()"> 939 </select> 940 </td> 941 <td> 942 <td style="vertical-align: top;"> 943 <base:buttongroup vertical="true"> 944 <base:button 945 subclass="leftaligned" 946 style="width: 12em;" 947 onclick="addExtractsOnClick()" 948 title="Add extracts…" 949 tooltip="Add extracts" 950 /> 951 <base:button 952 subclass="leftaligned" 953 style="width: 12em;" 954 onclick="removeOnClick()" 955 title="Remove" 956 tooltip="Remove the selected extracts" 957 /> 958 </base:buttongroup> 928 959 <input type="hidden" name="modifiedExtracts" value=""> 929 960 <input type="hidden" name="removedExtracts" value=""> 930 961 </td> 931 <td>932 <table border="0" cellspacing="0" cellpadding="0">933 <tr><td style="padding: 1px 0px 4px 0px;"><base:button934 clazz="leftaligned buttonclass"935 style="width: 150px;"936 onclick="addExtractsOnClick()"937 title="Add extracts…"938 tooltip="Add extracts"939 /></td></tr>940 <tr><td width="150"><base:button941 clazz="leftaligned buttonclass"942 style="width: 150px;"943 onclick="removeOnClick()"944 title="Remove"945 tooltip="Remove the selected extracts"946 /></td></tr>947 </table>948 </td>949 962 </tr> 950 963 </table> 951 </td> 952 </tr> 953 <tr> 954 <td class="subprompt">-</td> 955 <td>used quantity 956 <input <%=clazz%> type="text" name="used_quantity" value="" 957 size="12" maxlength="10" onkeypress="return Numbers.numberOnly(event)" 964 </div> 965 </td> 966 </tr> 967 <tr> 968 <th class="subprompt">used quantity</th> 969 <td> 970 <input <%=clazz%> style="width: 15em;" type="text" name="used_quantity" 971 value="" 972 maxlength="10" onkeypress="return Numbers.numberOnly(event)" 958 973 onkeyup="usedQuantityOnBlur();" 959 974 > (µg) 960 975 </td> 961 976 </tr> 977 <tr class="dynamic"> 978 <th></th> 979 <td></td> 980 </tr> 962 981 </table> 963 982 </t:tab> 964 983 965 <t:tab id="annotations" title="Annotations & parameters" 966 helpid="annotations.edit" tooltip="Enter values for annotations and protocol parameters"> 967 <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 968 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 969 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 970 </t:tab> 984 <t:tab id="annotations" title="Annotations & parameters" helpid="annotations.edit"><iframe 985 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 986 style="width: 100%; height: 100%;"></iframe></t:tab> 971 987 972 <t:tab id="inheritedAnnotations" title="Inherited annotations" helpid="annotations.edit.inherited"> 973 974 <iframe name="inheritedAnnotations" id="idInheritedAnnotations" src="../../common/annotations/wait.jsp" 975 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 976 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 977 </t:tab> 988 <t:tab id="inheritedAnnotations" title="Inherited annotations" 989 helpid="annotations.edit.inherited"><iframe 990 name="inheritedAnnotations" id="idInheritedAnnotations" src="../../common/annotations/wait.jsp" 991 style="width: 100%; height: 100%;"></iframe></t:tab> 978 992 </t:tabcontrol> 979 980 <table align="center">981 <tr>982 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>983 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>984 </tr>985 </table>986 993 </form> 994 995 <div class="legend"> 996 <base:icon image="required.gif" /> = required information 997 </div> 998 999 <base:buttongroup subclass="dialogbuttons"> 1000 <base:button onclick="saveSettings()" title="Save" /> 1001 <base:button onclick="window.close()" title="Cancel" /> 1002 </base:buttongroup> 987 1003 </base:body> 988 1004 </base:page> -
trunk/www/biomaterials/lists/edit_list.jsp
r5908 r5913 190 190 </base:head> 191 191 <base:body onload="init()"> 192 < p>192 <h1><%=title%> <base:help tabcontrol="settings"/></h1> 193 193 <form action="index.jsp?ID=<%=ID%>" method="post" name="list" onsubmit="return false;"> 194 194 <input type="hidden" name="cmd" value="UpdateItem"> … … 202 202 } 203 203 %> 204 < h3 class="docked"><%=title%> <base:help tabcontrol="settings"/></h3>205 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"204 <t:tabcontrol id="settings" 205 subclass="content dialogtabcontrol" 206 206 position="bottom" remember="<%=list != null%>" 207 207 extensions="<%=invoker%>"> 208 208 <t:tab id="info" title="Biomaterial list" validate="validateList()" helpid="biomateriallist.edit"> 209 <table class="f orm" cellspacing=0>209 <table class="fullform input100"> 210 210 <tr> 211 <t d class="prompt">Name</td>211 <th>Name</th> 212 212 <td><input <%=requiredClazz%> type="text" name="name" 213 213 value="<%=HTML.encodeTags(list == null ? Values.getString(cc.getPropertyValue("name"), "New list") : list.getName())%>" 214 size="40" maxlength="<%=BioMaterialList.MAX_NAME_LENGTH%>"></td> 214 maxlength="<%=BioMaterialList.MAX_NAME_LENGTH%>"></td> 215 <td></td> 215 216 </tr> 216 217 <tr> 217 <t d class="prompt">Member type</td>218 <th>Member type</th> 218 219 <td> 219 220 <select name="memberType" <%=mergeLists || list != null ? "disabled" : "" %>> … … 223 224 </select> 224 225 </td> 226 <td></td> 225 227 </tr> 226 228 <% … … 228 230 { 229 231 %> 230 <tr 231 <t d class="prompt">Source biomaterials</td>232 <tr> 233 <th style="height: 5em;">Source biomaterials</th> 232 234 <td> 233 235 <input type="radio" name="source" id="sourceSelected" value="selected" … … 238 240 ><label for="sourceAll">All pages</label><br> 239 241 </td> 242 <td></td> 240 243 </tr> 241 244 <tr> 242 <t d class="prompt">Include pooled</td>245 <th>Include pooled</th> 243 246 <td> 244 247 <input type="checkbox" name="pooled" id="pooled" value="1" 245 248 ><label for="pooled">Include pooled children/parents in the list</label><br> 246 249 </td> 250 <td></td> 247 251 </tr> 248 252 <% … … 251 255 { 252 256 %> 253 <tr 254 <t d class="prompt">Add members?</td>257 <tr> 258 <th style="height: 6em;">Add members?</th> 255 259 <td> 256 260 <input type="radio" name="create" id="createEmpty" value="" … … 262 266 <input type="radio" name="create" id="createCount" value="count" 263 267 ><label for="createCount" title="The new list contains only items that are present in some of selected lists">Present in at least</label> 264 <input type="text" class="text" name="minCount" s ize="2" maxlength="2"268 <input type="text" class="text" name="minCount" style="width: 3em;" maxlength="2" 265 269 value="1" 266 270 onkeypress="return Numbers.integerOnly(event)" … … 268 272 of the selected lists (1-<%=numSelectedLists%>). 269 273 <br> 270 271 274 </td> 275 <td></td> 272 276 </tr> 273 277 <% … … 275 279 %> 276 280 <tr> 277 <t d class="prompt">External ID</td>281 <th>External ID</th> 278 282 <td><input <%=clazz%> type="text" name="external_id" 279 283 value="<%=HTML.encodeTags(list == null ? Values.getString(cc.getPropertyValue("externalId"), "") : list.getExternalId())%>" 280 size="40" maxlength="<%=BioMaterialList.MAX_EXTERNAL_ID_LENGTH%>"></td> 284 maxlength="<%=BioMaterialList.MAX_EXTERNAL_ID_LENGTH%>"></td> 285 <td></td> 281 286 </tr> 282 <tr >283 <t d class="prompt">Description</td>284 <td nowrap>285 <textarea <%=clazz%> rows=" 4" cols="40" name="description"287 <tr class="dynamic"> 288 <th>Description</th> 289 <td> 290 <textarea <%=clazz%> rows="6" name="description" 286 291 ><%=HTML.encodeTags(list == null ? cc.getPropertyValue("description") : list.getDescription())%></textarea> 287 <a href="javascript:Main.zoom('Description', 'list', 'description')" 288 title="Edit in larger window"><base:icon image="zoom.png" /></a> 292 </td> 293 <td style="width: 20px;"> 294 <base:icon image="zoom.png" 295 onclick="Main.zoom('Description', 'list', 'description')" 296 tooltip="Edit in larger window" 297 /> 289 298 </td> 290 299 </tr> 291 300 </table> 292 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>293 301 </t:tab> 294 302 </t:tabcontrol> 295 296 <table align="center">297 <tr>298 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>299 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>300 </tr>301 </table>302 303 </form> 304 305 <div class="legend"> 306 <base:icon image="required.gif" /> = required information 307 </div> 308 309 <base:buttongroup subclass="dialogbuttons"> 310 <base:button onclick="saveSettings()" title="Save" /> 311 <base:button onclick="window.close()" title="Cancel" /> 312 </base:buttongroup> 303 313 </base:body> 304 314 </base:page> -
trunk/www/biomaterials/lists/merge.jsp
r5905 r5913 130 130 </base:head> 131 131 <base:body onload="init()"> 132 < p>132 <h1><%=title%> <base:help helpid="biomateriallist.merge" /></h1> 133 133 <form action="index.jsp?ID=<%=ID%>" method="post" name="merge" onsubmit="return false;"> 134 134 <input type="hidden" name="cmd" value="MergeItem"> 135 135 136 <h3 class="docked"><%=title%> <base:help helpid="biomateriallist.merge" /></h3> 137 <div class="boxedbottom" style="height: <%=(int)(scale*300)%>px; "> 138 <table class="form" cellspacing=0> 139 136 <div class="content bottomborder"> 137 <table class="fullform input100"> 140 138 <tr> 141 <t d class="prompt">This list</td>139 <th>This list</th> 142 140 <td><%=HTML.encodeTags(bmList.getName())%></td> 143 141 <td rowspan="2"> … … 145 143 </td> 146 144 </tr> 147 <tr >148 <t d class="prompt">What to do</td>145 <tr class="big"> 146 <th>What to do</th> 149 147 <td> 150 148 <select name="mergeType" onchange="mergeTypeOnChange()"> … … 168 166 After the operation this list will 169 167 contain items from the red-colored areas in the image. 170 171 168 </td> 172 169 </tr> 173 <tr >174 <t d class="prompt">Biomaterial lists</td>170 <tr class="dynamic"> 171 <th>Biomaterial lists</th> 175 172 <td colspan="2"> 176 <table border="0" cellspacing="0" cellpadding="0"> 177 <tr > 173 <div class="selectionlist"> 174 <table> 175 <tr> 178 176 <td> 179 <select name="bioMaterialLists" size=" 5" multiple style="width: 20em;">177 <select name="bioMaterialLists" size="10" multiple> 180 178 </select> 181 <input type="hidden" name="sourceLists" value="">182 179 </td> 183 180 <td> 184 <table border="0"> 185 <tr><td width="150"><base:button 186 onclick="addBioMaterialListsOnClick()" 187 title="Add biomaterial lists…" 188 tooltip="Add biomaterial lists" 189 /></td></tr> 190 <tr><td width="150"><base:button 191 onclick="removeBioMaterialListsOnClick()" 192 title="Remove" 193 tooltip="Remove the selected lists" 194 /></td></tr> 195 </table> 181 <td style="vertical-align: top;"> 182 <base:buttongroup vertical="true"> 183 <base:button 184 subclass="leftaligned" 185 style="width: 12em;" 186 onclick="addBioMaterialListsOnClick()" 187 title="Add biomaterial lists…" 188 tooltip="Add biomaterial lists" 189 /> 190 <base:button 191 subclass="leftaligned" 192 style="width: 12em;" 193 onclick="removeBioMaterialListsOnClick()" 194 title="Remove" 195 tooltip="Remove the selected lists" 196 /> 197 </base:buttongroup> 198 <input type="hidden" name="sourceLists" value=""> 196 199 </td> 197 200 </tr> 198 201 </table> 202 </div> 199 203 </td> 200 204 </tr> … … 202 206 203 207 </div> 204 205 <table align="center">206 <tr>207 <td width="50%"><base:button onclick="saveSettings()" title="Ok" /></td>208 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>209 </tr>210 </table>211 208 </form> 209 210 <base:buttongroup subclass="dialogbuttons"> 211 <base:button onclick="saveSettings()" title="Ok" /> 212 <base:button onclick="window.close()" title="Cancel" /> 213 </base:buttongroup> 212 214 </base:body> 213 215 </base:page> -
trunk/www/biomaterials/lists/view_list.jsp
r5910 r5913 151 151 function merge(mergeType) 152 152 { 153 Main.openPopup('merge.jsp?ID=<%=ID%>&item_id=<%=itemId%>&mergeType='+mergeType, 'Union', 600, 4 40);153 Main.openPopup('merge.jsp?ID=<%=ID%>&item_id=<%=itemId%>&mergeType='+mergeType, 'Union', 600, 400); 154 154 } 155 155 function placeOnPlate() -
trunk/www/biomaterials/samples/edit_sample.jsp
r5908 r5913 641 641 </base:head> 642 642 <base:body onload="init()"> 643 < p>643 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 644 644 <form action="index.jsp?ID=<%=ID%>" method="post" name="sample" onsubmit="return false;"> 645 645 <input type="hidden" name="cmd" value="UpdateItem"> 646 646 647 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>648 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"647 <t:tabcontrol id="settings" 648 subclass="content dialogtabcontrol" 649 649 position="bottom" remember="<%=sample != null%>" switch="switchTab" 650 650 extensions="<%=invoker%>"> 651 651 <t:tab id="info" title="Sample" validate="validateSample()" helpid="sample.edit"> 652 <table class="f orm" cellspacing=0>653 <tr> 654 <t d class="prompt">Name</td>652 <table class="fullform input100"> 653 <tr> 654 <th>Name</th> 655 655 <td><input <%=requiredClazz%> type="text" name="name" 656 656 value="<%=HTML.encodeTags(name)%>" 657 size="40" maxlength="<%=Sample.MAX_NAME_LENGTH%>"></td> 658 </tr> 659 <tr > 660 <td class="prompt">Type</td> 661 <td colspan="2"> 657 maxlength="<%=Sample.MAX_NAME_LENGTH%>"></td> 658 <td></td> 659 </tr> 660 <tr> 661 <th>Type</th> 662 <td> 662 663 <select name="subtype_id" 663 664 <%=!readCurrentSubtype ? "disabled readonly class=\"disabled selectionlist\"" : "class=\"selectionlist\""%> … … 692 693 </select> 693 694 </td> 694 </tr> 695 <tr> 696 <td class="prompt">External ID</td> 695 <td></td> 696 </tr> 697 <tr> 698 <th>External ID</th> 697 699 <td><input <%=clazz%> type="text" name="external_id" 698 700 value="<%=HTML.encodeTags(sample == null ? Values.getString(cc.getPropertyValue("externalId"), "") : sample.getExternalId())%>" 699 size="40" maxlength="<%=Sample.MAX_EXTERNAL_ID_LENGTH%>"></td> 700 </tr> 701 <tr> 702 <td class="prompt">Original quantity</td> 703 <td><input <%=clazz%> type="text" name="original_quantity" 701 maxlength="<%=Sample.MAX_EXTERNAL_ID_LENGTH%>"></td> 702 <td></td> 703 </tr> 704 <tr> 705 <th>Original quantity</th> 706 <td><input <%=clazz%> type="text" name="original_quantity" style="width: 15em;" 704 707 value="<%=Values.formatNumber(sample == null ? Values.getFloat(cc.getPropertyValue("originalQuantity"), null): sample.getOriginalQuantity(), -1)%>" size="12" 705 708 maxlength="10" onkeypress="return Numbers.numberOnly(event)"> (µg)</td> 706 </tr> 707 <tr> 708 <td class="prompt">Created</td> 709 <td></td> 710 </tr> 711 <tr> 712 <th>Created</th> 709 713 <td> 710 <table border="0" cellspacing="0" cellpadding="0">714 <table> 711 715 <tr> 712 716 <td> 713 <input <%=clazz%> type="text" name="event_date" <%=lockEventProperties ? "disabled" : ""%>717 <input <%=clazz%> style="width: 15em;" type="text" name="event_date" <%=lockEventProperties ? "disabled" : ""%> 714 718 value="<%=HTML.encodeTags(dateFormatter.format(eventDate))%>" 715 size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 716 719 maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"> 717 720 </td> 718 721 <td> … … 728 731 </table> 729 732 </td> 730 </tr> 731 <tr> 732 <td class="prompt">Registered</td> 733 <td></td> 734 </tr> 735 <tr> 736 <th>Registered</th> 733 737 <td><%=dateFormatter.format(creationEvent == null ? new Date() : creationEvent.getEntryDate())%></td> 734 </tr> 735 <tr> 736 <td class="prompt">Protocol</td> 738 <td></td> 739 </tr> 740 <tr> 741 <th>Protocol</th> 737 742 <td> 738 743 <base:select … … 750 755 /> 751 756 </td> 752 </tr> 753 <tr> 754 <td class="prompt">Bioplate</td> 757 <td></td> 758 </tr> 759 <tr> 760 <th>Bioplate</th> 755 761 <td> 756 762 <base:select … … 767 773 /> 768 774 </td> 769 </tr> 770 <tr> 771 <td class="prompt">Biowell</td> 775 <td></td> 776 </tr> 777 <tr> 778 <th class="subprompt">- well</th> 772 779 <td> 773 780 <base:select … … 783 790 /> 784 791 </td> 785 </tr> 786 <tr > 787 <td class="prompt">Description</td> 788 <td nowrap> 789 <textarea <%=clazz%> rows="4" cols="40" name="description" 792 <td></td> 793 </tr> 794 <tr class="dynamic"> 795 <th>Description</th> 796 <td> 797 <textarea <%=clazz%> rows="6" name="description" 790 798 ><%=HTML.encodeTags(sample == null ? cc.getPropertyValue("description") : sample.getDescription())%></textarea> 791 <a href="javascript:Main.zoom('Description', 'sample', 'description')" 792 title="Edit in larger window"><base:icon image="zoom.png" /></a> 799 </td> 800 <td style="width: 20px;"> 801 <base:icon image="zoom.png" 802 onclick="Main.zoom('Description', 'sample', 'description')" 803 tooltip="Edit in larger window" 804 /> 793 805 </td> 794 806 </tr> 795 807 </table> 796 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>797 808 </t:tab> 798 809 799 810 <t:tab id="parents" title="Parents" helpid="sample.parents" > 800 <table class="f orm" cellspacing=0>801 <tr> 802 <t d class="prompt">Parent type</td>811 <table class="fullform input100"> 812 <tr> 813 <th>Parent type</th> 803 814 <td> 804 815 <input type="radio" name="parentType" id="parentType.biosource" … … 813 824 </tr> 814 825 <tr> 815 <t d class="prompt">Biosource</td>826 <th>Biosource</th> 816 827 <td> 817 828 <base:select 818 829 id="biosource_id" 819 830 clazz="selectionlist" 820 buttonstyle="width: 1 50px;"831 buttonstyle="width: 12em;" 821 832 buttonicon="add.png" 822 833 buttontitle="Select biosource…" 823 buttonclass="leftaligned b uttonclass"834 buttonclass="leftaligned basicbutton" 824 835 required="false" 825 836 current="<%=currentBioSource%>" … … 833 844 </td> 834 845 </tr> 835 <tr >836 <t d class="prompt">Samples</td>846 <tr class="big"> 847 <th>Samples</th> 837 848 <td> 838 <table border="0" cellspacing="0" cellpadding="0"> 839 <tr > 840 <td> 841 <select name="samples" size="12" multiple class="selectionlist" 842 onchange="samplesOnChange()"> 843 </select> 849 <div class="selectionlist"> 850 <table> 851 <tr> 852 <td> 853 <select name="samples" size="12" multiple onchange="samplesOnChange()"> 854 </select> 855 </td> 856 <td style="vertical-align: top;"> 857 <base:buttongroup vertical="true"> 858 <base:button 859 subclass="leftaligned" 860 style="width: 12em;" 861 onclick="addSamplesOnClick()" 862 title="Add samples…" 863 tooltip="Add samples" 864 /> 865 <base:button 866 subclass="leftaligned" 867 style="width: 12em;" 868 onclick="removeOnClick()" 869 title="Remove" 870 tooltip="Remove the selected samples" 871 /> 872 </base:buttongroup> 844 873 <input type="hidden" name="modifiedSamples" value=""> 845 874 <input type="hidden" name="removedSamples" value=""> 846 875 </td> 847 <td>848 <table border="0" cellspacing="0" cellpadding="0">849 <tr><td style="padding: 1px 0px 4px 0px;"><base:button850 clazz="leftaligned buttonclass"851 style="width: 150px;"852 onclick="addSamplesOnClick()"853 title="Add samples…"854 tooltip="Add samples"855 /></td></tr>856 <tr><td><base:button857 clazz="leftaligned buttonclass"858 style="width: 150px;"859 onclick="removeOnClick()"860 title="Remove"861 tooltip="Remove the selected samples"862 /></td></tr>863 </table>864 </td>865 876 </tr> 866 877 </table> 867 </td> 868 </tr> 869 <tr> 870 <td class="subprompt">-</td> 871 <td>used quantity 872 <input <%=clazz%> type="text" name="used_quantity" value="" 873 size="12" maxlength="10" onkeypress="return Numbers.numberOnly(event)" 878 </div> 879 </td> 880 </tr> 881 <tr> 882 <th class="subprompt">- used quantity</th> 883 <td> 884 <input <%=clazz%> style="width: 15em;" type="text" name="used_quantity" value="" 885 maxlength="10" onkeypress="return Numbers.numberOnly(event)" 874 886 onkeyup="usedQuantityOnBlur();" 875 887 > (µg) 876 888 </td> 877 </tr> 889 </tr> 890 <tr class="dynamic"> 891 <th></th> 892 <td></td> 893 </tr> 878 894 </table> 879 895 </t:tab> 880 896 881 <t:tab id="annotations" title="Annotations & parameters" 882 helpid="annotations.edit" tooltip="Enter values for annotations and protocol parameters"> 883 <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 884 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 885 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 886 </t:tab> 887 888 <t:tab id="inheritedAnnotations" title="Inherited annotations" helpid="annotations.edit.inherited"> 889 890 <iframe name="inheritedAnnotations" id="idInheritedAnnotations" src="../../common/annotations/wait.jsp" 891 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 892 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 893 </t:tab> 897 <t:tab id="annotations" title="Annotations & parameters" helpid="annotations.edit"><iframe 898 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 899 style="width: 100%; height: 100%;"></iframe></t:tab> 900 901 <t:tab id="inheritedAnnotations" title="Inherited annotations" 902 helpid="annotations.edit.inherited"><iframe 903 name="inheritedAnnotations" id="idInheritedAnnotations" src="../../common/annotations/wait.jsp" 904 style="width: 100%; height: 100%;"></iframe></t:tab> 894 905 </t:tabcontrol> 895 896 <table align="center">897 <tr>898 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>899 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>900 </tr>901 </table>902 906 </form> 907 908 <div class="legend"> 909 <base:icon image="required.gif" /> = required information 910 </div> 911 912 <base:buttongroup subclass="dialogbuttons"> 913 <base:button onclick="saveSettings()" title="Save" /> 914 <base:button onclick="window.close()" title="Cancel" /> 915 </base:buttongroup> 916 903 917 </base:body> 904 918 </base:page> -
trunk/www/biomaterials/tags/edit_tag.jsp
r5908 r5913 146 146 </base:head> 147 147 <base:body onload="init()"> 148 < p>148 <h1><%=title%> <base:help tabcontrol="settings"/></h1> 149 149 <form action="index.jsp?ID=<%=ID%>" method="post" name="tag" onsubmit="return false;"> 150 150 <input type="hidden" name="cmd" value="UpdateItem"> 151 151 152 < h3 class="docked"><%=title%> <base:help tabcontrol="settings"/></h3>153 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>"152 <t:tabcontrol id="settings" 153 subclass="content dialogtabcontrol" 154 154 position="bottom" remember="<%=tag != null%>" 155 155 extensions="<%=invoker%>"> 156 156 <t:tab id="info" title="Tag" validate="validateTag()" helpid="tag.edit"> 157 <table class="f orm" cellspacing=0>157 <table class="fullform input100 smaller"> 158 158 <tr> 159 <t d class="prompt">Name</td>159 <th>Name</th> 160 160 <td><input <%=requiredClazz%> type="text" name="name" 161 161 value="<%=HTML.encodeTags(tag == null ? Values.getString(cc.getPropertyValue("name"), "New tag") : tag.getName())%>" 162 size="40" maxlength="<%=Tag.MAX_NAME_LENGTH%>"></td> 162 maxlength="<%=Tag.MAX_NAME_LENGTH%>"></td> 163 <td></td> 163 164 </tr> 164 <tr 165 <t d class="prompt">Type</td>166 <td colspan="2">165 <tr> 166 <th>Type</th> 167 <td> 167 168 <select name="tagtype_id" 168 169 <%=!readCurrentTagType ? "disabled readonly class=\"disabled\"" : "class=\"required\""%>> … … 190 191 </select> 191 192 </td> 193 <td></td> 192 194 </tr> 193 <tr >194 <t d class="prompt">Description</td>195 <td nowrap>196 <textarea <%=clazz%> rows="4" cols="40"name="description"195 <tr class="dynamic"> 196 <th>Description</th> 197 <td> 198 <textarea <%=clazz%> rows="4" name="description" 197 199 ><%=HTML.encodeTags(tag == null ? cc.getPropertyValue("description") : tag.getDescription())%></textarea> 198 <a href="javascript:Main.zoom('Description', 'tag', 'description')" 199 title="Edit in larger window"><base:icon image="zoom.png" /></a> 200 </td> 201 <td style="width: 20px;"> 202 <base:icon image="zoom.png" 203 onclick="Main.zoom('Description', 'tag', 'description')" 204 tooltip="Edit in larger window" 205 /> 200 206 </td> 201 207 </tr> 202 208 </table> 203 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>204 209 </t:tab> 205 210 </t:tabcontrol> 206 207 <table align="center">208 <tr>209 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>210 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>211 </tr>212 </table>213 211 </form> 212 213 <div class="legend"> 214 <base:icon image="required.gif" /> = required information 215 </div> 216 217 <base:buttongroup subclass="dialogbuttons"> 218 <base:button onclick="saveSettings()" title="Save" /> 219 <base:button onclick="window.close()" title="Cancel" /> 220 </base:buttongroup> 214 221 </base:body> 215 222 </base:page> -
trunk/www/common/annotations/annotate.jsp
r5908 r5913 209 209 { 210 210 boolean isParameter = protocolParameters != null && protocolParameters.contains(at); 211 String label = (isParameter ? "<img src=\"../../images/parameter.gif\">" : "") +212 HTML.encodeTags(Values.trimString(at.getName(), 25));213 211 String fullLabel = HTML.encodeTags(at.getName()); 212 String label = (isParameter ? "<img src=\"../../images/parameter.gif\">" : "") + fullLabel; 214 213 List values = null; 215 214 Unit unit = at.getDefaultUnit(); … … 588 587 </base:head> 589 588 590 <base:body onload="init()" style="<%=standalone ? "" : "background: #E0E0E0;"%>">589 <base:body onload="init()"> 591 590 <% 592 591 if (standalone) 593 592 { 594 593 %> 595 <h 3 class="docked"><%=title%> <base:help helpid="annotations.edit" /></h3>596 <div class=" boxed" style="background: #E0E0E0">594 <h1><%=title%> <base:help helpid="annotations.edit" /></h1> 595 <div class="content"> 597 596 <% 598 597 } … … 600 599 601 600 <form name="annotations"> 602 <table class="form" cellspacing="2" border="0" cellpadding="0" width="100%"> 603 <tr > 604 <td width="50%"> 605 <b>Categories</b> <select name="categories" onchange="categoryOnChange()"> 606 <option value="-1">- all - 601 602 <div class="absolutefull"> 603 <div class="absolutefull filled rightborder" style="width: 18em;"> 604 <div class="absolutefull" style="height: 2em;"> 605 <table style="margin: auto; height: 100%;"><tr><td> 606 <select name="categories" onchange="categoryOnChange()" style="width: 17em;"> 607 <option value="-1">- all - 608 <% 609 if (protocol != null) 610 { 611 %> 612 <option value="-2">- protocol parameters - 613 <% 614 } 615 %> 616 <option value="0">- uncategorized - 617 <% 618 for (AnnotationTypeCategory category : allCategories) 619 { 620 boolean selected = category.getName().equals(selectedCategoryName); 621 %> 622 <option value="<%=category.getId()%>" 623 title="<%=HTML.encodeTags(category.getDescription())%>" 624 <%=selected ? "selected" : "" %> 625 ><%=HTML.encodeTags(category.getName())%> 626 <% 627 } 628 %> 629 </select> 630 </td></tr></table> 631 </div> 632 633 <div class="absolutefull parameterlist topborder" 634 style="top: 2em; bottom: 3em;"> 635 <% 636 if (annotationTypes.size() == 0) 637 { 638 %> 639 <div class="messagecontainer error"> 640 There are no annotation types defined for this kind of item. 641 </div> 642 <% 643 } 644 %> 645 <%=sb.toString()%> 646 </div> 647 648 <div class="absolutefull topborder" style="top: auto; bottom: 0px; height: 3em;"> 649 <table style="height: 100%; margin:auto;"><tr><td> 650 <base:icon image="hasvalues.gif" /> = has value(s)<br> 651 <base:icon image="parameter.gif" /> = protocol parameter 652 </td></tr></table> 653 </div> 654 </div> 655 656 <div class="absolutefull input100" style="left: 18em; padding: 8px;"> 607 657 <% 608 if ( protocol!= null)658 if (message != null) 609 659 { 610 660 %> 611 < option value="-2">- protocol parameters -661 <div class="messagecontainer help" style="margin-top: 0.2em;"><%=message%></div> 612 662 <% 613 663 } 664 if (!writePermission) 665 { 666 %> 667 <div class="messagecontainer error" >You do not have permission to change this information</div> 668 <% 669 } 614 670 %> 615 <option value="0">- uncategorized -616 <%617 for (AnnotationTypeCategory category : allCategories)618 {619 boolean selected = category.getName().equals(selectedCategoryName);620 %>621 <option value="<%=category.getId()%>"622 title="<%=HTML.encodeTags(category.getDescription())%>"623 <%=selected ? "selected" : "" %>624 ><%=HTML.encodeTags(category.getName())%>625 <%626 }627 %>628 </select>629 <div class="parameterlist" style="height: <%=(int)(scale*300)%>px; margin-top: 4px;">630 <%=sb.toString()%>631 </div>632 <base:icon image="hasvalues.gif" /> = Has value(s)633 <base:icon image="parameter.gif" /> = Protocol parameter634 </td>635 <td width="50%">636 <%=message == null ? "" : message + "<br>"%>637 <br>638 671 <div id="valuecontainer" style="display: none;"> 639 672 <b>Values</b> <span id="multiplicity"></span><br> … … 677 710 %> 678 711 <div id="<%=inputName%>_div" style="display: none;"> 712 <table style="width: 100%;"><tr><td style="width: 98%;"> 679 713 <% 680 714 if (at.isEnumeration()) … … 762 796 (<%=valueType == Type.INT ? "Integer" : "Long"%><%=minMax%>)<br> 763 797 <input <%=clazz%> type="text" name="<%=inputName%>" value="" 764 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)"798 maxlength="20" onkeypress="return Numbers.integerOnly(event)" 765 799 onblur="valueOnBlur(this.value)"> 766 800 <% … … 787 821 (<%=valueType == Type.FLOAT ? "Float" : "Double"%><%=minMax%>)<br> 788 822 <input <%=clazz%> type="text" name="<%=inputName%>" value="" 789 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)"823 maxlength="20" onkeypress="return Numbers.numberOnly(event)" 790 824 onblur="valueOnBlur(this.value)"> 791 825 <% … … 798 832 <b><%=HTML.encodeTags(at.getName())%></b> (String)<br> 799 833 <input <%=clazz%> type="text" name="<%=inputName%>" value="" 800 size="<%=width%>"maxlength="<%=maxLength%>"834 maxlength="<%=maxLength%>" 801 835 onblur="valueOnBlur(this.value)"> 802 836 <% … … 806 840 %> 807 841 <b><%=HTML.encodeTags(at.getName())%></b> (Text)<br> 808 <textarea <%=clazz%> name="<%=inputName%>" rows="<%=height%>" cols="<%=width%>" 809 onblur="valueOnBlur(this.value)"></textarea> 810 <a href="javascript:Main.zoom('<%=HTML.javaScriptEncode(at.getName())%>', 'annotations', '<%=inputName%>')" 811 title="Edit in larger window"><base:icon image="zoom.png" /></a> 842 <table style="width: 100%;"> 843 <tr> 844 <td> 845 <textarea <%=clazz%> name="<%=inputName%>" rows="<%=height%>" 846 onblur="valueOnBlur(this.value)"></textarea> 847 </td> 848 <td style="width: 20px;"> 849 <base:icon image="zoom.png" 850 onclick="<%="Main.zoom('" + HTML.javaScriptEncode(at.getName()) +"', 'annotations', '" + inputName + "')"%>" 851 tooltip="Edit in larger window" 852 /> 853 </td> 854 </tr> 855 </table> 812 856 <% 813 857 } … … 889 933 if (current == null) current = at.getDefaultUnit(); 890 934 %> 935 </td><td style="vertical-align: bottom;"> 891 936 <select name="unit:<%=at.getId()%>" onchange="unitOnChange(this)"> 892 937 <% … … 919 964 } 920 965 %> 921 <p> 922 <%=HTML.encodeTags(at.getDescription())%> 966 </td></tr></table> 967 <% 968 if (at.getDescription() != null) 969 { 970 %> 971 <div class="messagecontainer help" style="margin-left: 0px; margin-right: 0px;"> 972 <%=HTML.niceFormat(at.getDescription())%> 973 </div> 974 <% 975 } 976 %> 923 977 </div> 924 978 <% 925 979 } 926 980 %> 927 </td> 928 929 </tr> 930 </table> 931 981 </div> 982 </div> 932 983 </form> 933 934 984 <% 935 985 if (standalone) … … 937 987 %> 938 988 </div> 939 <% 940 if (writePermission) 941 { 942 %> 943 <table align="center"> 944 <tr> 945 <td width="50%"><base:button onclick="saveAnnotations()" title="Save" /></td> 946 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 947 </tr> 948 </table> 949 <% 950 } 951 else 952 { 953 %> 954 <div class="error">You do not have permission to change this information</div> 955 <table align="center"> 956 <tr> 957 <td><base:button onclick="window.close()" title="Close" /></td> 958 </tr> 959 </table> 960 <% 961 } 962 %> 989 <base:buttongroup subclass="dialogbuttons topborder"> 990 <base:button onclick="saveAnnotations()" title="Save" visible="<%=writePermission%>" /> 991 <base:button onclick="window.close()" title="Cancel" visible="<%=writePermission%>" /> 992 <base:button onclick="window.close()" title="Close" visible="<%=!writePermission%>" /> 993 </base:buttongroup> 963 994 <form name="modified" method="post" action="index.jsp?ID=<%=ID%>"> 964 995 <input type="hidden" name="cmd" value="SaveAnnotations"> … … 969 1000 } 970 1001 %> 971 972 1002 </base:body> 973 1003 </base:page> -
trunk/www/common/annotations/inherit.jsp
r5905 r5913 369 369 </script> 370 370 </base:head> 371 <base:body onload="init()" style="<%=standalone ? "" : "background: #E0E0E0;"%>">371 <base:body onload="init()"> 372 372 <% 373 373 if (standalone) 374 374 { 375 375 %> 376 <h 3 class="docked"><%=title%> <base:help helpid="annotations.inherit" /></h3>377 <div class=" boxed" style="background: #E0E0E0">376 <h1><%=title%> <base:help helpid="annotations.inherit" /></h1> 377 <div class="content"> 378 378 <% 379 379 } 380 380 %> 381 382 <form name="annotations"> 383 <table class="form" cellspacing="2" border="0" cellpadding="0" width="100%"> 384 <tr > 385 <td width="50%"> 386 <div id="joust" class="joust parameterlist" 387 style="height: <%=(int)(scale*320)%>px;"> 388 <% 389 if (parentAnnotations.size() == 0) 390 { 391 %> 392 <div class="error">There are no parent items with annotations.</div> 393 <% 394 } 395 %> 381 <form name="annotations"> 382 <div class="absolutefull"> 383 384 <div class="absolutefull filled rightborder" style="width: 28em;"> 385 386 <div class="absolutefull parameterlist" style="bottom: 3em;"> 387 <div id="joust" class="joust"> 388 <% 389 if (parentAnnotations.size() == 0) 390 { 391 %> 392 <div class="messagecontainer error">There are no parent items with annotations.</div> 393 <% 394 } 395 %> 396 </div> 397 </div> 398 399 <div class="absolutefull topborder" style="top: auto; bottom: 0px; height: 3em;"> 400 <table style="height: 100%; margin:auto;"><tr><td> 401 <base:icon image="joust/annotation.gif" /> = annotation 402 <base:icon image="joust/parameter.gif" /> = protocol parameter<br> 403 <base:icon image="joust/itemerror.gif" /> = not a parent item 404 </td></tr></table> 405 </div> 406 396 407 </div> 397 <base:icon image="joust/annotation.gif" /> = Annotation 398 <base:icon image="joust/parameter.gif" /> = Protocol parameter<br> 399 <base:icon image="joust/itemerror.gif" /> = Not a parent item 400 </td> 401 <td width="50%"> 402 <b>Annotation/parameter values</b> 403 <div id="annotationValues"> 408 409 <div class="absolutefull" style="left: 28em; padding: 8px;" id="annotationValues"> 404 410 </div> 405 </td> 406 </tr> 407 </table> 411 412 </div> 408 413 </form> 409 414 … … 413 418 %> 414 419 </div> 415 <table align="center"> 416 <tr> 417 <td width="50%"><base:button onclick="saveAnnotations()" title="Save" /></td> 418 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 419 </tr> 420 </table> 420 <base:buttongroup subclass="dialogbuttons"> 421 <base:button onclick="saveAnnotations()" title="Save" /> 422 <base:button onclick="window.close()" title="Cancel" /> 423 </base:buttongroup> 421 424 <form name="modified" method="post" action="index.jsp?ID=<%=ID%>"> 422 425 <input type="hidden" name="cmd" value="SaveAnnotations"> -
trunk/www/common/annotations/list_annotations.jsp
r5426 r5913 154 154 url += '&annotationtype_id='+annotationTypeId; 155 155 url += '&standalone=1'; 156 Main.openPopup(url, 'EditAnnotation', 7 00, 460);156 Main.openPopup(url, 'EditAnnotation', 750, 500); 157 157 } 158 158 function editInheritedAnnotation(itemType, itemId, annotationTypeId) … … 163 163 url += '&annotationtype_id='+annotationTypeId; 164 164 url += '&standalone=1'; 165 Main.openPopup(url, 'EditAnnotation', 7 00, 460);165 Main.openPopup(url, 'EditAnnotation', 750, 500); 166 166 } 167 167 </script> -
trunk/www/common/annotations/wait.jsp
r5426 r5913 25 25 --%> 26 26 <%@ page pageEncoding="UTF-8" session="false" 27 28 27 %> 29 28 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> 30 31 29 <base:page type="popup" title="Annotate"> 32 30 <base:head /> 33 <base:body style="background: #E0E0E0;"> 34 35 <h1>Please wait. The annotations are loading...</h1> 36 31 <base:body> 32 <div class="filled absolutefull"> 33 <table style="margin: auto; height: 100%;"><tr><td> 34 <b>Please wait. The annotations are loading...</b> 35 </td></tr></table> 36 </div> 37 37 </base:body> 38 38 </base:page> -
trunk/www/common/plugin/configure.jsp
r5911 r5913 720 720 721 721 <div class="absolutefull topborder" style="top: 4.5em;"> 722 <div class="absolutefull " style="width: 18em;">723 <div class="absolutefull parameterlist" style="bottom: 2em; overflow: auto;">722 <div class="absolutefull filled rightborder" style="width: 18em;"> 723 <div class="absolutefull parameterlist" style="bottom: 2em;"> 724 724 <%=sb.toString()%> 725 725 </div> … … 1003 1003 <input <%=pType.getNotNull() ? requiredClazz : clazz%> 1004 1004 type="text" name="<%=inputName%>" value="" 1005 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)"1005 maxlength="20" onkeypress="return Numbers.integerOnly(event)" 1006 1006 onblur="valueOnBlur(this.value)"> 1007 1007 <% … … 1029 1029 <input <%=pType.getNotNull() ? requiredClazz : clazz%> 1030 1030 type="text" name="<%=inputName%>" value="" 1031 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)"1031 maxlength="20" onkeypress="return Numbers.integerOnly(event)" 1032 1032 onblur="valueOnBlur(this.value)"> 1033 1033 <% … … 1055 1055 <input <%=pType.getNotNull() ? requiredClazz : clazz%> 1056 1056 type="text" name="<%=inputName%>" value="" 1057 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)"1057 maxlength="20" onkeypress="return Numbers.numberOnly(event)" 1058 1058 onblur="valueOnBlur(this.value)"> 1059 1059 <% … … 1081 1081 <input <%=pType.getNotNull() ? requiredClazz : clazz%> 1082 1082 type="text" name="<%=inputName%>" value="" 1083 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)"1083 maxlength="20" onkeypress="return Numbers.numberOnly(event)" 1084 1084 onblur="valueOnBlur(this.value)"> 1085 1085 <% -
trunk/www/include/scripts/main.js
r5911 r5913 555 555 this.controllers['IMAGE'] = { url:'views/scans/images/index.jsp', width:500, height:340 }; 556 556 this.controllers['SESSION'] = { url:'views/sessions/index.jsp', width:450, height:300, popup:true, edit:false }; 557 this.controllers['TAG'] = { url:'biomaterials/tags/index.jsp', width:450, height: 280 };558 this.controllers['EXTRACT'] = { url:'biomaterials/extracts/index.jsp', width: 800, height:500 };559 this.controllers['SAMPLE'] = { url:'biomaterials/samples/index.jsp', width: 800, height:500 };560 this.controllers['BIOMATERIALEVENT'] = { url:'biomaterials/events/index.jsp', width:600, height: 380 };561 this.controllers['BIOSOURCE'] = { url:'biomaterials/biosources/index.jsp', width: 800, height:500 };562 this.controllers['BIOMATERIALLIST'] = { url:'biomaterials/lists/index.jsp', width: 800, height:500 };563 this.controllers['BIOPLATE'] = { url:'biomaterials/bioplates/index.jsp', width: 800, height:500 };557 this.controllers['TAG'] = { url:'biomaterials/tags/index.jsp', width:450, height:300 }; 558 this.controllers['EXTRACT'] = { url:'biomaterials/extracts/index.jsp', width:750, height:500 }; 559 this.controllers['SAMPLE'] = { url:'biomaterials/samples/index.jsp', width:750, height:500 }; 560 this.controllers['BIOMATERIALEVENT'] = { url:'biomaterials/events/index.jsp', width:600, height:400 }; 561 this.controllers['BIOSOURCE'] = { url:'biomaterials/biosources/index.jsp', width:750, height:500 }; 562 this.controllers['BIOMATERIALLIST'] = { url:'biomaterials/lists/index.jsp', width:600, height:400 }; 563 this.controllers['BIOPLATE'] = { url:'biomaterials/bioplates/index.jsp', width:750, height:500 }; 564 564 this.controllers['BIOPLATETYPE'] = { url:'biomaterials/bioplatetypes/index.jsp', width:600, height:400 }; 565 this.controllers['BIOPLATEEVENT'] = { url:'biomaterials/bioplates/events/index.jsp', width:600, height:4 60 };565 this.controllers['BIOPLATEEVENT'] = { url:'biomaterials/bioplates/events/index.jsp', width:600, height:400 }; 566 566 this.controllers['BIOPLATEEVENTTYPE'] = { url:'biomaterials/bioplateeventtypes/index.jsp', width:600, height:400 }; 567 this.controllers['BIOPLATEEVENTDEFINITION'] = { url:'biomaterials/eventdef/index.jsp', width:600, height:500 };568 567 this.controllers['BIOWELL'] = { url:'biomaterials/bioplates/wells/index.jsp', width:480, height:320 }; 569 568 this.controllers['MESSAGE'] = { url:'my_base/messages/index.jsp', width:600, height:400, popup:true, edit:false }; -
trunk/www/include/styles/main.css
r5911 r5913 41 41 padding-left: 8px; 42 42 padding-right: 8px; 43 } 44 45 iframe 46 { 47 border: 0px; 48 margin: 0px; 43 49 } 44 50 … … 237 243 238 244 /* Make a blue-ish border when mouse is over the field */ 239 input[type="text"]:hover, input[type="password"]:hover, input[type="file"]:hover, textarea:hover, select 245 input[type="text"]:hover, input[type="password"]:hover, input[type="file"]:hover, textarea:hover, select:hover 240 246 { 241 247 border: 1px solid #2288AA; … … 296 302 } 297 303 298 .input100 select299 { 300 width: 100%;304 .input100 .selectionlist select 305 { 306 width: 98%; 301 307 } 302 308 … … 319 325 } 320 326 321 /* Add a 1-pixel gray border to the top o man element */327 /* Add a 1-pixel gray border to the top of an element */ 322 328 .topborder 323 329 { 324 330 border-top: 1px solid #A0A0A0; 331 } 332 333 /* Add a 1-pixel gray border to the right of an element */ 334 .rightborder 335 { 336 border-right: 1px solid #A0A0A0; 337 } 338 339 /* Add a 1-pixel gray border to the left of an element */ 340 .leftborder 341 { 342 border-left: 1px solid #A0A0A0; 325 343 } 326 344 -
trunk/www/include/styles/newjoust.css
r5811 r5913 28 28 */ 29 29 30 .joust { 30 .joust 31 { 31 32 white-space: nowrap; 32 33 } 33 34 34 .joust td { 35 .joust td 36 { 35 37 white-space: nowrap; 36 38 } 37 39 38 .joust .menuitem:hover { 39 background: #E0E0E0; 40 cursor: pointer; 40 .joust .menuitem 41 { 42 padding: 0px 2px 0px 2px; 43 margin: 2px 0px 0px 0px; 44 border: 0px; 45 border-radius: 4px; 46 -moz-border-radius: 3px; 41 47 } 42 48 43 .joust .menuitem.selected { 49 .joust .menuitem:hover 50 { 51 cursor: pointer; 52 border: 2px solid #2288AA; 53 padding: 0px; 54 margin: 0px 0px -2px 0px; 55 } 56 57 .joust .menuitem.selected 58 { 44 59 font-weight: bold; 45 60 } 46 61 47 .joust .menuitem.selected .text { 62 .joust .menuitem.selected .text 63 { 48 64 color: #FFFFFF; 49 background: # 445577;65 background: #2288AA; 50 66 } 51 67 -
trunk/www/include/styles/parameters.css
r5911 r5913 31 31 { 32 32 overflow: auto; 33 background: #E8E8E8;34 border-right: 1px solid #A0A0A0;35 33 } 36 34
Note: See TracChangeset
for help on using the changeset viewer.