Changeset 5922
- Timestamp:
- Jan 11, 2012, 1:26:02 PM (11 years ago)
- Location:
- trunk/www
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/admin/annotationtypecategories/edit_category.jsp
r5908 r5922 186 186 </base:head> 187 187 <base:body onload="init()"> 188 < p>188 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 189 189 <form action="index.jsp?ID=<%=ID%>" method="post" name="annotationTypeCategory" onsubmit="return false;"> 190 190 <input type="hidden" name="cmd" value="UpdateItem"> 191 191 192 <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3> 193 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>" position="bottom" 192 <t:tabcontrol id="settings" 193 subclass="content dialogtabcontrol" 194 position="bottom" 194 195 extensions="<%=invoker%>"> 195 196 <t:tab id="info" title="Annotation type category" validate="validateAnnotationTypeCategory()" 196 197 helpid="annotationtypecategory.edit"> 197 <table class="f orm" cellspacing=0>198 <table class="fullform input100 smaller"> 198 199 <tr> 199 <t d class="prompt">Name</td>200 <th>Name</th> 200 201 <td><input <%=requiredClazz%> type="text" name="name" 201 202 value="<%=HTML.encodeTags(annotationTypeCategory == null ? Values.getString(cc.getPropertyValue("name"), "New annotation type category") : annotationTypeCategory.getName())%>" 202 size="40" maxlength="<%=AnnotationTypeCategory.MAX_NAME_LENGTH%>"></td> 203 maxlength="<%=AnnotationTypeCategory.MAX_NAME_LENGTH%>"></td> 204 <td></td> 203 205 </tr> 204 <tr >205 <t d class="prompt">Description</td>206 <td nowrap>207 <textarea <%=clazz%> rows=" 4" cols="40" name="description"206 <tr class="dynamic"> 207 <th>Description</th> 208 <td> 209 <textarea <%=clazz%> rows="6" name="description" 208 210 ><%=HTML.encodeTags(annotationTypeCategory == null ? cc.getPropertyValue("description") : annotationTypeCategory.getDescription())%></textarea> 209 <a href="javascript:Main.zoom('Description', 'annotationTypeCategory', 'description')" 210 title="Edit in larger window"><base:icon image="zoom.png" /></a> 211 </td> 212 <td style="width: 20px;"> 213 <base:icon image="zoom.png" 214 onclick="Main.zoom('Description', 'annotationTypeCategory', 'description')" 215 tooltip="Edit in larger window" 216 /> 211 217 </td> 212 218 </tr> 213 219 </table> 214 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>215 220 </t:tab> 216 221 217 222 <t:tab id="members" title="Annotation types" tooltip="Add/remove members of this category" 218 223 validate="validateMembers()" helpid="annotationtypecategory.edit.members"> 219 <table width="100%"> 220 <tr > 221 <td> 222 <b>Annotation types</b><br> 223 <select name="members" size="14" multiple 224 style="width: 100%;"> 225 </select> 226 <input type="hidden" name="removeAnnotationTypes" value=""> 227 <input type="hidden" name="addAnnotationTypes" value=""> 228 </td> 229 <td width="200px"> 230 <br> 231 <table width="150px"> 232 <tr><td><base:button 233 clazz="leftaligned buttonclass" 234 onclick="addAnnotationTypesOnClick()" 235 title="Add annotation types…" 236 tooltip="Add annotation types to this category" 237 /></td></tr> 238 <tr><td><base:button 239 clazz="leftaligned buttonclass" 240 onclick="removeOnClick()" 241 title="Remove" 242 tooltip="Remove the selected items from this category" 243 /></td></tr> 224 <table class="fullform input100"> 225 <tr class="dynamic"> 226 <th>Annotation types</th> 227 <td> 228 <div class="selectionlist"> 229 <table> 230 <tr> 231 <td> 232 <select name="members" size="14" multiple> 233 </select> 234 <input type="hidden" name="removeAnnotationTypes" value=""> 235 <input type="hidden" name="addAnnotationTypes" value=""> 236 </td> 237 <td style="vertical-align: top;"> 238 <base:buttongroup vertical="true"> 239 <base:button 240 subclass="leftaligned" 241 onclick="addAnnotationTypesOnClick()" 242 title="Add annotation types…" 243 tooltip="Add annotation types to this category" 244 /> 245 <base:button 246 subclass="leftaligned" 247 onclick="removeOnClick()" 248 title="Remove" 249 tooltip="Remove the selected items from this category" 250 /> 251 </base:buttongroup> 252 </td> 253 </tr> 254 </table> 255 </div> 256 </td> 257 </tr> 244 258 </table> 245 </td>246 </tr>247 </table>248 259 </t:tab> 249 260 </t:tabcontrol> 250 251 <table align="center">252 <tr>253 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>254 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>255 </tr>256 </table>257 261 </form> 262 263 <div class="legend"> 264 <base:icon image="required.gif" /> = required information 265 </div> 266 267 <base:buttongroup subclass="dialogbuttons"> 268 <base:button onclick="saveSettings()" title="Save" /> 269 <base:button onclick="window.close()" title="Cancel" /> 270 </base:buttongroup> 258 271 </base:body> 259 272 </base:page> -
trunk/www/admin/annotationtypes/edit_annotationtype.jsp
r5908 r5922 405 405 </base:head> 406 406 <base:body onload="init()"> 407 < p>407 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 408 408 <form action="index.jsp?ID=<%=ID%>" method="post" name="annotationType" onsubmit="return false;"> 409 409 <input type="hidden" name="cmd" value="UpdateItem"> 410 410 <input type="hidden" name="value_type" value="<%=valueType.name()%>"> 411 411 412 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>413 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*300)+"px;"%>"412 <t:tabcontrol id="settings" 413 subclass="content dialogtabcontrol" 414 414 position="bottom" remember="<%=annotationType != null%>" 415 415 extensions="<%=invoker%>"> 416 416 <t:tab id="info" title="Annotation type" validate="validateAnnotationType()" helpid="annotationtype.edit"> 417 <table class="f orm" cellspacing=0>417 <table class="fullform input100"> 418 418 <tr> 419 <t d class="prompt">Value type</td>419 <th>Value type</th> 420 420 <td><%=valueType%></td> 421 <td></td> 421 422 </tr> 422 423 <tr> 423 <t d class="prompt">Name</td>424 <th>Name</th> 424 425 <td><input <%=requiredClazz%> type="text" name="name" 425 426 value="<%=HTML.encodeTags(annotationType == null ? 426 427 Values.getString(cc.getPropertyValue("name"), "New "+valueType+" annotation type") : annotationType.getName())%>" 427 size="40" maxlength="<%=AnnotationType.MAX_NAME_LENGTH%>"></td> 428 maxlength="<%=AnnotationType.MAX_NAME_LENGTH%>"></td> 429 <td></td> 428 430 </tr> 429 431 <tr> 430 <t d class="prompt">External ID</td>432 <th>External ID</th> 431 433 <td><input <%=clazz%> type="text" name="external_id" 432 434 value="<%=HTML.encodeTags(annotationType == null ? 433 Values.getString(cc.getPropertyValue("externalId"), "") : annotationType.getExternalId())%>" 434 size="40" maxlength="<%=AnnotationType.MAX_EXTERNAL_ID_LENGTH%>"></td> 435 Values.getString(cc.getPropertyValue("externalId"), "") : annotationType.getExternalId())%>" 436 maxlength="<%=AnnotationType.MAX_EXTERNAL_ID_LENGTH%>"></td> 437 <td></td> 435 438 </tr> 436 439 <tr> 437 <t d class="prompt">Multiplicity</td>440 <th>Multiplicity</td> 438 441 <td><input <%=clazz%> type="text" name="multiplicity" 439 442 value="<%=annotationType == null ? Values.getString(cc.getPropertyValue("multiplicity"), "1") : 440 Integer.toString(annotationType.getMultiplicity())%>"441 size="12"maxlength="10" onkeypress="return Numbers.integerOnly(event)">443 Integer.toString(annotationType.getMultiplicity())%>" style="width: 15em;" 444 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 442 445 0 or empty = unlimited 443 </td> 446 </td> 447 <td></td> 444 448 </tr> 445 <tr >446 <t d class="prompt">Default value</td>449 <tr class="<%=valueType == Type.TEXT ? "big" : ""%>"> 450 <th>Default value</th> 447 451 <td> 448 452 <% 449 453 String defaultValue = annotationType == null ? cc.getPropertyValue("defaultValue") : annotationType.getDefaultValue(); 454 boolean hasZoom = false; 450 455 if (valueType == Type.INT || valueType == Type.LONG) 451 456 { 452 457 %> 453 458 <input <%=clazz%> type="text" name="defaultValue" 454 value="<%=HTML.encodeTags(defaultValue)%>" 455 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)">459 value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;" 460 maxlength="20" onkeypress="return Numbers.integerOnly(event)"> 456 461 <% 457 462 } … … 460 465 %> 461 466 <input <%=clazz%> type="text" name="defaultValue" 462 value="<%=HTML.encodeTags(defaultValue)%>" 463 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)">467 value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;" 468 maxlength="20" onkeypress="return Numbers.numberOnly(event)"> 464 469 <% 465 470 } … … 479 484 { 480 485 %> 481 <table border="0" cellspacing="0" cellpadding="0">486 <table> 482 487 <tr> 483 488 <td> 484 489 <input <%=clazz%> type="text" name="defaultValue" 485 value="<%=HTML.encodeTags(defaultValue)%>" 486 size="20" maxlength="20 "title="Enter date in format: <%=htmlDateFormat%>"> 490 value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;" 491 maxlength="20 "title="Enter date in format: <%=htmlDateFormat%>"> 487 492 </td> 488 493 <td> … … 501 506 { 502 507 %> 503 <table border="0" cellspacing="0" cellpadding="0">508 <table> 504 509 <tr> 505 510 <td> 506 511 <input <%=clazz%> type="text" name="defaultValue" 507 value="<%=HTML.encodeTags(defaultValue)%>" 508 size="30" maxlength="30 "title="Enter date in format: <%=htmlDateTimeFormat%>"> 512 value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;" 513 maxlength="30 "title="Enter date in format: <%=htmlDateTimeFormat%>"> 509 514 </td> 510 515 <td> … … 525 530 <input <%=clazz%> type="text" name="defaultValue" 526 531 value="<%=HTML.encodeTags(defaultValue)%>" 527 size="40"maxlength="<%=AnnotationType.MAX_DEFAULT_VALUE_LENGTH%>">532 maxlength="<%=AnnotationType.MAX_DEFAULT_VALUE_LENGTH%>"> 528 533 <% 529 534 } 530 535 else if (valueType == Type.TEXT) 531 536 { 532 %> 533 <textarea <%=clazz%> rows="4" cols="40" name="defaultValue" 537 hasZoom = true; 538 %> 539 <textarea <%=clazz%> rows="4" name="defaultValue" 534 540 ><%=HTML.encodeTags(defaultValue)%></textarea> 535 <a href="javascript:Main.zoom('Default value', 'annotationType', 'defaultValue')"536 title="Edit in larger window"><base:icon image="zoom.png" /></a>537 541 <% 538 542 } 539 543 %> 540 544 </td> 545 <td> 546 <% 547 if (hasZoom) 548 { 549 %> 550 <base:icon image="zoom.png" 551 onclick="Main.zoom('Default value', 'annotationType', 'defaultValue')" 552 tooltip="Edit in larger window" 553 /> 554 <% 555 } 556 %> 557 </td> 541 558 </tr> 542 559 <tr> 543 <t d class="prompt">Required for MIAME</td>544 <td><input type="checkbox" name="required_for_miame" value="1"560 <th><label for="required_for_miame">Required for MIAME</label></th> 561 <td><input type="checkbox" name="required_for_miame" id="required_for_miame" value="1" 545 562 <%=(annotationType != null && annotationType.isRequiredForMiame()) || 546 563 (annotationType == null && Values.getBoolean(cc.getPropertyValue("requiredForMiame"))) ? "checked" : ""%> 564 </td> 565 <td></td> 547 566 </tr> 548 567 <tr> 549 <t d class="prompt">Protocol parameter</td>550 <td><input type="checkbox" name="is_protocol_parameter" value="1"568 <th><label for="is_protocol_parameter">Protocol parameter</label></th> 569 <td><input type="checkbox" name="is_protocol_parameter" id="is_protocol_parameter" value="1" 551 570 <%=(annotationType != null && annotationType.isProtocolParameter()) || 552 571 (annotationType == null && Values.getBoolean(cc.getPropertyValue("protocolParameter"))) ? "checked" : ""%> 572 </td> 573 <td></td> 553 574 </tr> 554 <tr >555 <t d class="prompt">Description</td>556 <td nowrap>557 <textarea <%=clazz%> rows="4" cols="40"name="description"575 <tr class="dynamic"> 576 <th>Description</th> 577 <td> 578 <textarea <%=clazz%> rows="4" name="description" 558 579 ><%=HTML.encodeTags(annotationType == null ? cc.getPropertyValue("description") : annotationType.getDescription())%></textarea> 559 <a href="javascript:Main.zoom('Description', 'annotationType', 'description')" 560 title="Edit in larger window"><base:icon image="zoom.png" /></a> 580 <td style="width: 20px;"> 581 <base:icon image="zoom.png" 582 onclick="Main.zoom('Description', 'annotationType', 'description')" 583 tooltip="Edit in larger window" 584 /> 585 </td> 561 586 </td> 562 587 </tr> 563 588 </table> 564 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>565 589 </t:tab> 566 590 567 591 <t:tab id="options" title="Options" validate="validateOptions()" helpid="annotationtype.edit.options"> 568 <table class="form" cellspacing=0>569 592 <% 570 593 if (valueType == Type.INT || valueType == Type.LONG) … … 576 599 boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList(); 577 600 %> 578 <tr> 579 <td class="prompt">Interface</td> 601 <table class="fullform input100"> 602 <tr> 603 <th>Interface</th> 580 604 <td> 581 605 <input type="radio" name="interface" id="interfaceBox" value="box" … … 592 616 ><label for="interfaceButtons">radiobuttons/checkboxes</label> 593 617 </td> 594 </tr> 595 <tr> 596 <td class="prompt">Min value</td> 618 <td></td> 619 </tr> 620 <tr> 621 <th>Min value</th> 597 622 <td> 598 623 <input <%=clazz%> type="text" name="minValue" 599 value="<%=minValue == null ? "" : minValue.toString()%>" 600 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)">624 value="<%=minValue == null ? "" : minValue.toString()%>" style="width: 15em;" 625 maxlength="20" onkeypress="return Numbers.integerOnly(event)"> 601 626 empty = no limit 602 627 </td> 603 </tr> 604 <tr> 605 <td class="prompt">Max value</td> 628 <td></td> 629 </tr> 630 <tr> 631 <th>Max value</th> 606 632 <td> 607 633 <input <%=clazz%> type="text" name="maxValue" 608 value="<%=maxValue == null ? "" : maxValue.toString()%>" 609 size="20"maxlength="20" onkeypress="return Numbers.integerOnly(event)">634 value="<%=maxValue == null ? "" : maxValue.toString()%>" style="width: 15em;" 635 maxlength="20" onkeypress="return Numbers.integerOnly(event)"> 610 636 empty = no limit 611 637 </td> 612 </tr> 613 <tr> 614 <td class="prompt">Input box width</td> 615 <td> 616 <input <%=clazz%> type="text" name="width" 638 <td></td> 639 </tr> 640 <tr> 641 <th>Input box width</th> 642 <td> 643 <input <%=clazz%> type="text" name="width" style="width: 15em;" 617 644 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" 618 size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 619 </td> 620 </tr> 621 <tr > 622 <td class="prompt">Values</td> 623 <td nowrap> 645 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 646 </td> 647 <td></td> 648 </tr> 649 <tr class="dynamic"> 650 <th>Values</th> 651 <td> 624 652 <% 625 653 String values = annotationType == null ? "" : Values.getString(annotationType.getValues(), "\n", true); 626 654 %> 627 <textarea <%=clazz%> rows="10" cols="40" name="values" 628 onkeypress="return Numbers.integerOnly(event)"><%=HTML.encodeTags(values)%></textarea> 629 <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')" 630 title="Edit in larger window"><base:icon image="zoom.png" /></a><br> 631 One enumeration value per line 632 </td> 633 </tr> 655 <textarea <%=clazz%> rows="10" name="values" 656 onkeypress="return Numbers.integerOnly(event)"><%=HTML.encodeTags(values)%></textarea><br> 657 </td> 658 <td style="width: 20px;"> 659 <base:icon image="zoom.png" 660 onclick="Main.zoom('Values', 'annotationtype', 'values')" 661 tooltip="Edit in larger window" 662 /> 663 </td> 664 </tr> 665 <tr> 666 <th class="subprompt"></th> 667 <td>One enumeration value per line</td> 668 <td></td> 669 </tr> 670 </table> 634 671 <% 635 672 } … … 642 679 boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList(); 643 680 %> 644 <tr> 645 <td class="prompt">Interface</td> 681 <table class="fullform input100"> 682 <tr> 683 <th>Interface</th> 646 684 <td> 647 685 <input type="radio" name="interface" id="interfaceBox" value="box" … … 658 696 ><label for="interfaceButtons">radiobuttons/checkboxes</label> 659 697 </td> 660 </tr> 661 <tr> 662 <td class="prompt">Min value</td> 698 <td></td> 699 </tr> 700 <tr> 701 <th>Min value</th> 663 702 <td> 664 703 <input <%=clazz%> type="text" name="minValue" 665 value="<%=minValue == null ? "" : minValue.toString()%>" 666 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)">704 value="<%=minValue == null ? "" : minValue.toString()%>" style="width: 15em;" 705 maxlength="20" onkeypress="return Numbers.numberOnly(event)"> 667 706 empty = no limit 668 707 </td> 669 </tr> 670 <tr> 671 <td class="prompt">Max value</td> 708 <td></td> 709 </tr> 710 <tr> 711 <th>Max value</th> 672 712 <td> 673 713 <input <%=clazz%> type="text" name="maxValue" 674 value="<%=maxValue == null ? "" : maxValue.toString()%>" 675 size="20"maxlength="20" onkeypress="return Numbers.numberOnly(event)">714 value="<%=maxValue == null ? "" : maxValue.toString()%>" style="width: 15em;" 715 maxlength="20" onkeypress="return Numbers.numberOnly(event)"> 676 716 empty = no limit 677 717 </td> 678 </tr> 679 <tr> 680 <td class="prompt">Input box width</td> 718 <td></td> 719 </tr> 720 <tr> 721 <th>Input box width</th> 681 722 <td> 682 723 <input <%=clazz%> type="text" name="width" 683 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" 684 size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 685 </td> 686 </tr> 687 <tr > 688 <td class="prompt">Values</td> 689 <td nowrap> 724 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;" 725 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 726 </td> 727 <td></td> 728 </tr> 729 <tr class="dynamic"> 730 <th>Values</th> 731 <td> 690 732 <% 691 733 String values = annotationType == null ? "" : Values.getString(annotationType.getValues(), "\n", true); 692 734 %> 693 <textarea <%=clazz%> rows="10" cols="40"name="values"735 <textarea <%=clazz%> rows="10" name="values" 694 736 onkeypress="return Numbers.numberOnly(event)"><%=HTML.encodeTags(values)%></textarea> 695 <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')" 696 title="Edit in larger window"><base:icon image="zoom.png" /></a><br> 697 One enumeration value per line 698 </td> 699 </tr> 737 </td> 738 <td style="width: 20px;"> 739 <base:icon image="zoom.png" 740 onclick="Main.zoom('Values', 'annotationtype', 'values')" 741 tooltip="Edit in larger window" 742 /> 743 </td> 744 </tr> 745 <tr> 746 <th class="subprompt"></th> 747 <td>One enumeration value per line</td> 748 <td></td> 749 </tr> 750 </table> 700 751 <% 701 752 } … … 703 754 { 704 755 %> 756 <div style="border: 1px solid transparent;"> 757 <div class="messagecontainer help"> 705 758 No options for this type. 759 </div> 760 </div> 706 761 <% 707 762 } … … 712 767 boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList(); 713 768 %> 714 <tr> 715 <td class="prompt">Interface</td> 769 <table class="fullform input100"> 770 <tr> 771 <th>Interface</th> 716 772 <td> 717 773 <input type="radio" name="interface" id="interfaceBox" value="box" … … 728 784 ><label for="interfaceButtons">radiobuttons/checkboxes</label> 729 785 </td> 730 </tr> 731 <tr> 732 <td class="prompt">Input box width</td> 786 <td></td> 787 </tr> 788 <tr> 789 <th>Input box width</th> 733 790 <td> 734 791 <input <%=clazz%> type="text" name="width" 735 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" 736 size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 737 </td> 738 </tr> 739 <tr > 740 <td class="prompt">Values</td> 741 <td nowrap> 792 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;" 793 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 794 </td> 795 <td></td> 796 </tr> 797 <tr class="dynamic"> 798 <th>Values</th> 799 <td> 742 800 <% 743 801 String values = annotationType == null ? "" : 744 802 Values.getString((List<Date>)annotationType.getValues(), "\n", true, dateFormatter); 745 803 %> 746 <textarea <%=clazz%> rows="10" cols="40"name="values"804 <textarea <%=clazz%> rows="10" name="values" 747 805 ><%=HTML.encodeTags(values)%></textarea> 748 <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')" title="Edit in larger window"><base:icon image="zoom.png" /></a><br> 749 One date value (<%=htmlDateFormat%>) per line 750 </td> 751 </tr> 806 </td> 807 <td style="width: 20px;"> 808 <base:icon image="zoom.png" 809 onclick="Main.zoom('Values', 'annotationtype', 'values')" 810 tooltip="Edit in larger window" 811 /> 812 </td> 813 </tr> 814 <tr> 815 <th class="subprompt"></th> 816 <td>One date value (<%=htmlDateFormat%>) per line</td> 817 <td></td> 818 </tr> 819 </table> 752 820 <% 753 821 } … … 755 823 { 756 824 %> 757 <tr> 758 <td class="prompt">Input box width</td> 825 <table class="fullform input100"> 826 <tr> 827 <th>Input box width</th> 759 828 <td> 760 829 <input <%=clazz%> type="text" name="width" 761 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" 762 size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 763 </td> 764 </tr> 830 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;" 831 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 832 </td> 833 </tr> 834 <tr class="dynamic"> 835 <th class="subprompt"></th> 836 <td></td> 837 </tr> 838 </table> 765 839 <% 766 840 } … … 772 846 boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList(); 773 847 %> 774 <tr> 775 <td class="prompt">Interface</td> 848 <table class="fullform input100"> 849 <tr> 850 <th>Interface</th> 776 851 <td> 777 852 <input type="radio" name="interface" id="interfaceBox" value="box" … … 788 863 ><label for="interfaceButtons">radiobuttons/checkboxes</label> 789 864 </td> 790 </tr> 791 <tr> 792 <td class="prompt">Max length</td> 865 <td></td> 866 </tr> 867 <tr> 868 <th>Max length</th> 793 869 <td> 794 870 <input <%=clazz%> type="text" name="maxLength" 795 value="<%=maxLength == null ? "" : maxLength.toString()%>" 796 size="12" maxlength="3" onkeypress="return Numbers.integerOnly(event)"> (1-255) 797 </td> 798 </tr> 799 <tr> 800 <td class="prompt">Input box width</td> 871 value="<%=maxLength == null ? "" : maxLength.toString()%>" style="width: 5em;" 872 maxlength="3" onkeypress="return Numbers.integerOnly(event)"> (1-255) 873 </td> 874 <td></td> 875 </tr> 876 <tr> 877 <th>Input box width</th> 801 878 <td> 802 879 <input <%=clazz%> type="text" name="width" 803 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" 804 size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 805 </td> 806 </tr> 807 <tr > 808 <td class="prompt">Values</td> 809 <td nowrap> 880 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;" 881 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 882 </td> 883 <td></td> 884 </tr> 885 <tr class="dynamic"> 886 <th>Values</th> 887 <td> 810 888 <% 811 889 String values = annotationType == null ? "" : Values.getString(annotationType.getValues(), "\n", true); 812 890 %> 813 <textarea <%=clazz%> rows="10" cols="40" name="values" ><%=HTML.encodeTags(values)%></textarea> 814 <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')" 815 title="Edit in larger window"><base:icon image="zoom.png" /></a><br> 816 One enumeration value per line 817 </td> 818 </tr> 891 <textarea <%=clazz%> rows="10" name="values" ><%=HTML.encodeTags(values)%></textarea> 892 </td> 893 <td style="width: 20px;"> 894 <base:icon image="zoom.png" 895 onclick="Main.zoom('Values', 'annotationtype', 'values')" 896 tooltip="Edit in larger window" 897 /> 898 </td> 899 </tr> 900 <tr> 901 <th class="subprompt"></th> 902 <td>One enumeration value per line</td> 903 <td></td> 904 </tr> 905 </table> 819 906 <% 820 907 } … … 822 909 { 823 910 %> 824 <tr> 825 <td class="prompt">Input box width</td> 911 <table class="fullform input100"> 912 <tr> 913 <th>Input box width</th> 826 914 <td> 827 915 <input <%=clazz%> type="text" name="width" 828 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" 829 size="12"maxlength="10" onkeypress="return Numbers.integerOnly(event)">830 </td> 831 </tr> 832 <tr> 833 <t d class="prompt">Input box height</td>916 value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;" 917 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 918 </td> 919 </tr> 920 <tr> 921 <th>Input box height</th> 834 922 <td> 835 923 <input <%=clazz%> type="text" name="width" 836 value="<%=annotationType == null ? "" : annotationType.getHeight()%>" 837 size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 838 </td> 839 </tr> 924 value="<%=annotationType == null ? "" : annotationType.getHeight()%>" style="width: 15em;" 925 maxlength="10" onkeypress="return Numbers.integerOnly(event)"> 926 </td> 927 </tr> 928 <tr class="dynamic"> 929 <th></th> 930 <td></td> 931 </tr> 932 </table> 840 933 <% 841 934 } 842 935 %> 936 </t:tab> 937 938 <t:tab id="items" title="Item types" validate="validateItemTypes()" helpid="annotationtype.edit.items"> 939 <div style="padding: 2px;"> 940 <table style="width: 100%;"> 941 <tr> 942 <td style="width: 50%;"> 943 <b>Enabled for</b><br> 944 <select name="enabled" multiple size="14" style="width: 99%;" 945 ondblclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)"> 946 </select> 947 </td> 948 <td style="width: 20px; padding: 2px;"> 949 <base:buttongroup vertical="true"> 950 <base:button 951 onclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)" 952 image="move_left.png" 953 tooltip="Enable the annotation type for the selected item(s)" 954 subclass="square" 955 /> 956 <base:button 957 onclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)" 958 image="move_right.png" 959 subclass="square" 960 tooltip="Disable the annotation type for the selected item(s)" 961 /> 962 </base:buttongroup> 963 </td> 964 <td style="width: 50%;"> 965 <b>Disabled for</b><br> 966 <select name="disabled" multiple size="14" style="width: 99%;" 967 ondblclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)"> 968 </select> 969 </td> 970 </tr> 843 971 </table> 844 </t:tab> 845 846 <t:tab id="items" title="Item types" validate="validateItemTypes()" helpid="annotationtype.edit.items"> 847 <table border=0 cellspacing=0 cellpadding=2> 848 <tr> 849 <td> 850 <b>Enabled for</b><br> 851 <select name="enabled" multiple size="14" style="width: 16em;" 852 ondblclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)"> 853 </select> 854 </td> 855 856 <td> 857 <br> 858 <base:button 859 onclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)" 860 title="<img src='../../images/move_left.png' alt='' style='vertical-align: middle;'>" 861 tooltip="Enable the annotation type for the selected item(s)" 862 /><p> 863 <base:button 864 onclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)" 865 title="<img src='../../images/move_right.png' alt='' style='vertical-align: middle;'>" 866 tooltip="Disable the annotation type for the selected item(s)" 867 /> 868 <br> 869 </td> 870 871 <td> 872 <b>Disabled for</b><br> 873 <select name="disabled" multiple size="14" style="width: 16em;" 874 ondblclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)"> 875 </select> 876 </td> 877 </tr> 878 </table> 972 </div> 879 973 </t:tab> 880 974 … … 882 976 visible="<%=valueType.isNumerical()%>" helpid="annotationtype.edit.units"> 883 977 884 <table class="f orm" cellspacing="0">885 <tr 886 <t d class="prompt">Quantity</td>978 <table class="fullform input100"> 979 <tr> 980 <th>Quantity</th> 887 981 <td> 888 982 <select name="quantity_id" onchange="quantityOnChange()" 889 983 <%=!readCurrentQuantity || (annotationType != null && currentQuantityId != 0) ? 890 "disabled readonly class=\"disabled\"" : "class=\"unchangeable \""%>>984 "disabled readonly class=\"disabled\"" : "class=\"unchangeable selectionlist\""%>> 891 985 <option value="">- do not use units - 892 986 </select> 893 987 </td> 894 988 </tr> 895 <tr 896 <t d class="prompt">Default unit</td>989 <tr> 990 <th>Default unit</th> 897 991 <td> 898 992 <select name="unit_id" 899 <%=!readCurrentQuantity ? "disabled readonly class=\"disabled\"" : " "%>>993 <%=!readCurrentQuantity ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>> 900 994 </select> 901 995 </td> 902 996 </tr> 997 <% 998 if (annotationType != null) 999 { 1000 %> 1001 <tr> 1002 <th class="subprompt"></th> 1003 <td> 1004 <div class="messagecontainer help"> 1005 Changing the default unit triggers a conversion of existing annotation values 1006 to the new unit. This may result in loss of precision due to rounding or 1007 truncation. 1008 </div> 1009 </td> 1010 </tr> 1011 <% 1012 } 1013 %> 1014 <tr class="dynamic"> 1015 <th></th> 1016 <td> 1017 <table style="width: 100%;"> 1018 <tr> 1019 <th>Use units</th> 1020 <td></td> 1021 <th>Do not use</th> 1022 </tr> 1023 <tr> 1024 <td style="width: 50%;"> 1025 <select name="usableUnits" size="10" multiple style="width: 100%;" ondblclick="removeFromUsableUnits()" 1026 title="If no unit is selected, all units can be used" 1027 > 1028 </select> 1029 </td> 1030 <td style="width: 20px; padding: 2px;"> 1031 <base:buttongroup vertical="true"> 1032 <base:button 1033 onclick="addToUsableUnits()" 1034 image="move_left.png" 1035 subclass="square" 1036 tooltip="Enable the annotation type for the selected unit(s)" 1037 /> 1038 <base:button 1039 onclick="removeFromUsableUnits()" 1040 image="move_right.png" 1041 subclass="square" 1042 tooltip="Disable the annotation type for the selected unit(s)" 1043 /> 1044 </base:buttongroup> 1045 </td> 1046 <td style="width: 50%;"> 1047 <select name="allUnits" size="10" multiple style="width: 100%;" ondblclick="addToUsableUnits()"> 1048 </select> 1049 <input type="hidden" name="removeUsableUnits" value=""> 1050 <input type="hidden" name="addUsableUnits" value=""> 1051 </td> 1052 </tr> 1053 </table> 1054 </td> 903 1055 </table> 904 905 <base:note type="warning" style="background: #ffffd8;" visible="<%=annotationType != null %>">906 Changing the default unit triggers a conversion of existing annotation values907 to the new unit. This may result in loss of precision due to rounding or908 truncation.909 </base:note>910 911 <table class="form" cellspacing="0">912 <tr >913 <td class="prompt">Use units</td>914 <td></td>915 <td class="prompt">Do not use</td>916 </tr>917 <tr>918 <td>919 <select name="usableUnits" size="10" multiple style="width: 18em;" ondblclick="removeFromUsableUnits()">920 </select>921 </td>922 <td >923 <base:button924 onclick="addToUsableUnits()"925 image="move_left.png"926 title=""927 tooltip="Enable the annotation type for the selected unit(s)"928 /><p>929 <base:button930 onclick="removeFromUsableUnits()"931 image="move_right.png"932 title=""933 tooltip="Disable the annotation type for the selected unit(s)"934 />935 </td>936 <td>937 <select name="allUnits" size="10" multiple style="width: 18em;" ondblclick="addToUsableUnits()">938 </select>939 <input type="hidden" name="removeUsableUnits" value="">940 <input type="hidden" name="addUsableUnits" value="">941 </td>942 </tr>943 </table>944 945 <div align=right>946 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>947 </div>948 949 1056 </t:tab> 950 1057 951 1058 <t:tab id="categories" title="Categories" validate="validateCategories()" 952 1059 helpid="annotationtype.edit.categories"> 953 <table > 954 <tr > 955 <td> 956 <b>Categories</b><br> 957 <select name="categories" size="14" multiple 958 style="width: 15em;"> 959 </select> 960 <input type="hidden" name="removeCategories" value=""> 961 <input type="hidden" name="addCategories" value=""> 962 </td> 963 <td> 964 <br> 965 <table width="150"> 966 <tr><td><base:button 967 clazz="leftaligned buttonclass" 968 onclick="addCategoriesOnClick()" 969 title="Add categories…" 970 tooltip="Add categories to this annotation type" 971 /></td></tr> 972 <tr><td><base:button 973 clazz="leftaligned buttonclass" 974 onclick="removeOnClick()" 975 title="Remove" 976 tooltip="Remove the selected categories from this annotation type" 977 /></td></tr> 978 </table> 979 </td> 1060 <table class="fullform input100"> 1061 <tr class="dynamic"> 1062 <th>Categories</th> 1063 <td> 1064 <div class="selectionlist"> 1065 <table> 1066 <tr> 1067 <td> 1068 <select name="categories" size="14" multiple> 1069 </select> 1070 <input type="hidden" name="removeCategories" value=""> 1071 <input type="hidden" name="addCategories" value=""> 1072 </td> 1073 <td style="vertical-align: top;"> 1074 <base:buttongroup vertical="true"> 1075 <base:button 1076 subclass="leftaligned" 1077 style="width: 14em;" 1078 onclick="addCategoriesOnClick()" 1079 title="Add categories…" 1080 tooltip="Add categories to this annotation type" 1081 /> 1082 <base:button 1083 subclass="leftaligned" 1084 style="width: 14em;" 1085 onclick="removeOnClick()" 1086 title="Remove" 1087 tooltip="Remove the selected categories from this annotation type" 1088 /> 1089 </base:buttongroup> 1090 </td> 1091 </tr> 1092 </table> 1093 </div> 1094 </td> 980 1095 </tr> 981 1096 </table> 982 1097 </t:tab> 983 984 1098 </t:tabcontrol> 985 986 <table align="center">987 <tr>988 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>989 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>990 </tr>991 </table>992 1099 </form> 1100 1101 <div class="legend"> 1102 <base:icon image="required.gif" /> = required information<br> 1103 <base:icon image="unchangeable.gif" /> = can't be changed later 1104 </div> 1105 1106 <base:buttongroup subclass="dialogbuttons"> 1107 <base:button onclick="saveSettings()" title="Save" /> 1108 <base:button onclick="window.close()" title="Cancel" /> 1109 </base:buttongroup> 993 1110 </base:body> 994 1111 </base:page> -
trunk/www/admin/datafiletypes/edit_filetype.jsp
r5908 r5922 153 153 </base:head> 154 154 <base:body onload="init()"> 155 < p>155 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 156 156 <form action="index.jsp?ID=<%=ID%>" method="post" name="fileType" onsubmit="return false;"> 157 157 <input type="hidden" name="cmd" value="UpdateItem"> 158 158 159 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>160 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*340)+"px;"%>"159 <t:tabcontrol id="settings" 160 subclass="content dialogtabcontrol" 161 161 position="bottom" remember="<%=fileType != null%>" 162 162 extensions="<%=invoker%>"> 163 163 <t:tab id="info" title="Data file type" validate="validateDataFileType()" helpid="datafiletype.edit"> 164 <table class="f orm" cellspacing=0>164 <table class="fullform input100 smaller"> 165 165 <tr> 166 <t d class="prompt">Name</td>166 <th>Name</th> 167 167 <td><input <%=requiredClazz%> type="text" name="name" 168 168 value="<%=HTML.encodeTags(fileType == null ? Values.getString(cc.getPropertyValue("name"), "New data file type") : fileType.getName())%>" 169 size="40" maxlength="<%=DataFileType.MAX_NAME_LENGTH%>"></td> 169 maxlength="<%=DataFileType.MAX_NAME_LENGTH%>"></td> 170 <td></td> 170 171 </tr> 171 172 <% … … 177 178 %> 178 179 <tr> 179 <t d class="prompt">External ID</td>180 <th>External ID</th> 180 181 <td><input <%=unchangeableClazz%> type="text" name="externalId" 181 182 value="<%=HTML.encodeTags(cc.getPropertyValue("externalId"))%>" 182 size="40" maxlength="<%=DataFileType.MAX_EXTERNAL_ID_LENGTH%>"></td> 183 maxlength="<%=DataFileType.MAX_EXTERNAL_ID_LENGTH%>"></td> 184 <td></td> 183 185 </tr> 184 186 <tr> 185 <t d class="prompt">Item type</td>187 <th>Item type</th> 186 188 <td> 187 <select name="itemType" class="required unchangeable ">189 <select name="itemType" class="required unchangeable selectionlist"> 188 190 <% 189 191 for (Item item : items) … … 197 199 </select> 198 200 </td> 201 <td></td> 199 202 </tr> 200 203 <% … … 202 205 %> 203 206 <tr> 204 <t d class="prompt">File extension</td>205 <td><input <%=clazz%> type="text" name="extension" 207 <th>File extension</th> 208 <td><input <%=clazz%> type="text" name="extension" style="width: 15em;" 206 209 value="<%=HTML.encodeTags(fileType == null ? Values.getString(cc.getPropertyValue("extension")) : fileType.getExtension())%>" 207 size="40" maxlength="<%=DataFileType.MAX_EXTENSION_LENGTH%>"></td> 208 </tr> 209 <tr > 210 <td class="prompt">Generic file type</td> 211 <td colspan="2"> 212 <select name="generictype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : ""%>> 210 maxlength="<%=DataFileType.MAX_EXTENSION_LENGTH%>"></td> 211 <td></td> 212 </tr> 213 <tr> 214 <th>Generic file type</th> 215 <td> 216 <select name="generictype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>> 213 217 <% 214 218 if (!readCurrentFileType) … … 238 242 </select> 239 243 </td> 240 </tr> 241 <tr > 242 <td class="prompt">Description</td> 243 <td nowrap> 244 <textarea <%=clazz%> rows="4" cols="40" name="description" 244 <td></td> 245 </tr> 246 <tr class="dynamic"> 247 <th>Description</th> 248 <td> 249 <textarea <%=clazz%> rows="6" name="description" 245 250 ><%=HTML.encodeTags(fileType == null ? cc.getPropertyValue("description") : fileType.getDescription())%></textarea> 246 <a href="javascript:Main.zoom('Description', 'fileType', 'description')"247 title="Edit in larger window"><base:icon image="zoom.png" /></a>248 251 </td> 252 <td style="width: 20px;"> 253 <base:icon image="zoom.png" 254 onclick="Main.zoom('Description', 'fileType', 'description')" 255 tooltip="Edit in larger window" 256 /> 257 </td> 249 258 </tr> 250 259 </table> 251 <div align=right>252 <i><base:icon image="required.gif" /> = required information</i>253 <%if (fileType == null) {%><br>254 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>255 <%}%>256 </div>257 260 </t:tab> 258 261 </t:tabcontrol> 259 260 <table align="center">261 <tr>262 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>263 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>264 </tr>265 </table>266 262 </form> 263 264 <div class="legend"> 265 <base:icon image="required.gif" /> = required information 266 <%if (fileType == null) {%><br> 267 <base:icon image="unchangeable.gif" /> = can't be changed later 268 <%}%> 269 </div> 270 271 <base:buttongroup subclass="dialogbuttons"> 272 <base:button onclick="saveSettings()" title="Save" /> 273 <base:button onclick="window.close()" title="Cancel" /> 274 </base:buttongroup> 267 275 </base:body> 268 276 </base:page> -
trunk/www/admin/extravaluetypes/edit_extravaluetype.jsp
r5908 r5922 205 205 </base:head> 206 206 <base:body onload="init()"> 207 < p>207 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 208 208 <form action="index.jsp?ID=<%=ID%>" method="post" name="extraValueType" onsubmit="return false;"> 209 209 <input type="hidden" name="cmd" value="UpdateItem"> 210 210 211 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>212 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>"211 <t:tabcontrol id="settings" 212 subclass="content dialogtabcontrol" 213 213 position="bottom" remember="<%=extraValueType != null%>" 214 214 extensions="<%=invoker%>"> 215 215 <t:tab id="info" title="Extra value type" validate="validateExtraValueType()" 216 216 helpid="extravaluetype.edit"> 217 <table class="f orm" cellspacing=0>217 <table class="fullform input100 smaller"> 218 218 <tr> 219 <t d class="prompt">Name</td>219 <th>Name</th> 220 220 <td><input <%=requiredClazz%> type="text" name="name" 221 221 value="<%=HTML.encodeTags(extraValueType == null ? Values.getString(cc.getPropertyValue("name"), "New extra value type") : extraValueType.getName())%>" 222 size="40" maxlength="<%=ExtraValueType.MAX_NAME_LENGTH%>"></td> 222 maxlength="<%=ExtraValueType.MAX_NAME_LENGTH%>"></td> 223 <td></td> 223 224 </tr> 224 225 <tr> 225 <t d class="prompt">External ID</td>226 <th>External ID</th> 226 227 <td><input <%=requiredClazz%> type="text" name="external_id" 227 228 value="<%=HTML.encodeTags(extraValueType == null ? Values.getString(cc.getPropertyValue("externalId")) : extraValueType.getExternalId())%>" 228 size="40" maxlength="<%=ExtraValueType.MAX_EXTERNAL_ID_LENGTH%>"></td> 229 maxlength="<%=ExtraValueType.MAX_EXTERNAL_ID_LENGTH%>"></td> 230 <td></td> 229 231 </tr> 230 232 <tr> 231 <t d class="prompt">Value type</td>233 <th>Value type</th> 232 234 <td> 233 235 <% … … 242 244 int currentValueType = Values.getInt(cc.getPropertyValue("valueType")); 243 245 %> 244 <select name="value_type" class="required " onchange="valueTypeOnChange()">246 <select name="value_type" class="required unchangeable selectionlist" onchange="valueTypeOnChange()"> 245 247 <option value="<%=Type.INT.name()%>" 246 248 <%=Type.INT.getValue() == currentValueType ? "selected" : "" %>><%=Type.INT%> … … 250 252 <%=Type.STRING.getValue() == currentValueType ? "selected" : "" %>><%=Type.STRING%> 251 253 </select> 252 (can't be changed later)253 254 <% 254 255 } 255 256 %> 256 257 </td> 258 <td></td> 257 259 </tr> 258 260 <tr> 259 <t d class="prompt">Avg. method</td>261 <th>Avg. method</th> 260 262 <td> 261 <select name="averageMethod" class="required ">263 <select name="averageMethod" class="required selectionlist"> 262 264 <% 263 265 for (Formula.AverageMethod method : Formula.AverageMethod.values()) … … 271 273 </select> 272 274 </td> 275 <td></td> 273 276 </tr> 274 277 <% … … 277 280 %> 278 281 <tr> 279 <t d class="prompt">Use colors</td>282 <th><label for="use_colors">Use colors</label></th> 280 283 <td> 281 <input type="checkbox" name="use_colors" value="1" 284 <input type="checkbox" name="use_colors" value="1" id="use_colors" 282 285 <%=coloring.isUsingColors() ? "checked" : "" %> 283 286 onclick="useColorsOnClick()"> 284 285 <b>Min value</b> 287 </td> 288 <td></td> 289 </tr> 290 <tr> 291 <th class="subprompt">Min value</th> 292 <td> 286 293 <input type="text" class="text" name="min_value" 287 294 value="<%=Values.formatNumber(coloring.getMinValue(), -1)%>" 288 size="6" maxlength="6"295 maxlength="6" style="width: 6em;" 289 296 onkeypress="return Numbers.numberOnly(event)" 290 297 > 291 <b>Mid value</b>298 Mid value 292 299 <input type="text" class="text" name="mid_value" 293 300 value="<%=Values.formatNumber(coloring.getMidValue(), -1)%>" 294 size="6" maxlength="6"301 maxlength="6" style="width: 6em;" 295 302 onkeypress="return Numbers.numberOnly(event)" 296 303 > 297 <b>Max value</b>304 Max value 298 305 <input type="text" class="text" name="max_value" 299 306 value="<%=Values.formatNumber(coloring.getMaxValue(), -1)%>" 300 size="6" maxlength="6"307 maxlength="6" style="width: 6em;" 301 308 onkeypress="return Numbers.numberOnly(event)" 302 309 > 303 <br> 304 <input type="checkbox" name="logarithmic" value="1" 310 </td> 311 <td></td> 312 </tr> 313 <tr> 314 <th class="subprompt"><label for="logarithmic">Logarithmic</label></th> 315 <td> 316 <input type="checkbox" name="logarithmic" value="1" id="logarithmic" 305 317 <%=coloring.isLogarithmic() ? "checked" : "" %>> 306 <b>Logarithmic</b>307 318 </td> 319 <td></td> 308 320 </tr> 309 321 <% 310 322 } 311 323 %> 312 <tr >313 <t d class="prompt">Description</td>314 <td nowrap>315 <textarea <%=clazz%> rows=" 4" cols="40" name="description"324 <tr class="dynamic"> 325 <th>Description</th> 326 <td> 327 <textarea <%=clazz%> rows="6" name="description" 316 328 ><%=HTML.encodeTags(extraValueType == null ? cc.getPropertyValue("description") : extraValueType.getDescription())%></textarea> 317 <a href="javascript:Main.zoom('Description', 'extraValueType', 'description')"318 title="Edit in larger window"><base:icon image="zoom.png" /></a>319 329 </td> 330 <td style="width: 20px;"> 331 <base:icon image="zoom.png" 332 onclick="Main.zoom('Description', 'extraValueType', 'description')" 333 tooltip="Edit in larger window" 334 /> 335 </td> 320 336 </tr> 321 337 </table> 322 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>323 338 </t:tab> 324 339 </t:tabcontrol> 325 326 <table align="center">327 <tr>328 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>329 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>330 </tr>331 </table>332 340 </form> 341 342 <div class="legend"> 343 <base:icon image="required.gif" /> = required information 344 <%if (extraValueType == null) {%><br> 345 <base:icon image="unchangeable.gif" /> = can't be changed later 346 <%}%> 347 </div> 348 349 <base:buttongroup subclass="dialogbuttons"> 350 <base:button onclick="saveSettings()" title="Save" /> 351 <base:button onclick="window.close()" title="Cancel" /> 352 </base:buttongroup> 333 353 </base:body> 334 354 </base:page> -
trunk/www/admin/groups/edit_group.jsp
r5921 r5922 351 351 <t:tab id="members" title="Members" tooltip="Add/remove members of this group" 352 352 validate="validateMembers()" helpid="group.edit.membership"> 353 <table class="fullform smaller">353 <table class="fullform input100 smaller"> 354 354 <tr class="dynamic"> 355 355 <th>Members</th> -
trunk/www/admin/itemsubtypes/edit_subtype.jsp
r5908 r5922 215 215 else 216 216 { 217 Main.hide('filetypes.enabled'); 217 218 Main.show('filetypes.disabled'); 218 Main.hide('filetypes.enabled'); 219 document.getElementById('filetypes.disabled').innerHTML = 'The selected main item type (' + mainType + ') has not support for attaching data files.'; 219 document.getElementById('filetypes.disabled').innerHTML = '<div class="messagecontainer error">The selected main item type (' + mainType + ') has not support for attaching data files.</div>'; 220 220 } 221 221 } … … 319 319 </base:head> 320 320 <base:body onload="init()"> 321 < p>321 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 322 322 <form action="index.jsp?ID=<%=ID%>" method="post" name="subtype" onsubmit="return false;"> 323 323 <input type="hidden" name="cmd" value="UpdateItem"> 324 324 325 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>326 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*320)+"px;"%>"325 <t:tabcontrol id="settings" 326 subclass="content dialogtabcontrol" 327 327 position="bottom" remember="<%=subtype != null%>" 328 328 extensions="<%=invoker%>"> 329 329 <t:tab id="info" title="Item subtype" validate="validateItemSubtype()" helpid="itemsubtype.edit"> 330 <table class="f orm" cellspacing=0>330 <table class="fullform input100"> 331 331 <tr> 332 <t d class="prompt">Name</td>332 <th>Name</th> 333 333 <td><input <%=requiredClazz%> type="text" name="name" 334 334 value="<%=HTML.encodeTags(subtype == null ? Values.getString(cc.getPropertyValue("name"), "New item subtype") : subtype.getName())%>" 335 size="40" maxlength="<%=ItemSubtype.MAX_NAME_LENGTH%>"></td> 335 maxlength="<%=ItemSubtype.MAX_NAME_LENGTH%>"></td> 336 <td></td> 336 337 </tr> 337 338 <tr> 338 <t d class="prompt">Main item type</td>339 <th>Main item type</th> 339 340 <td> 340 341 <% … … 364 365 %> 365 366 </td> 367 <td></td> 366 368 </tr> 367 <tr >368 <t d class="prompt">Description</td>369 <td nowrap>370 <textarea <%=clazz%> rows="4" cols="40"name="description"369 <tr class="big"> 370 <th>Description</th> 371 <td> 372 <textarea <%=clazz%> rows="4" name="description" 371 373 ><%=HTML.encodeTags(subtype == null ? cc.getPropertyValue("description") : subtype.getDescription())%></textarea> 372 <a href="javascript:Main.zoom('Description', 'subtype', 'description')" 373 title="Edit in larger window"><base:icon image="zoom.png" /></a> 374 </td> 375 <td style="width: 20px;"> 376 <base:icon image="zoom.png" 377 onclick="Main.zoom('Description', 'subtype', 'description')" 378 tooltip="Edit in larger window" 379 /> 374 380 </td> 375 381 </tr> 376 382 <tr> 377 <t d class="prompt">Related subtypes</td>383 <th>Related subtypes</td> 378 384 <td><div id="section.none" style="display: none;"><i>- none -</i></div></td> 385 <td></td> 379 386 </tr> 380 387 <% … … 383 390 %> 384 391 <tr id="section.<%=item.name()%>" style="display: none;"> 385 <t d class="subprompt"><%=item%></td>392 <th class="subprompt"><%=item%></th> 386 393 <td> 387 394 <base:select … … 393 400 /> 394 401 </td> 402 <td></td> 395 403 </tr> 396 404 <% 397 405 } 398 406 %> 407 <tr class="dynamic"> 408 <th></th> 409 <td colspan="2"></td> 410 </tr> 399 411 </table> 400 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>401 412 </t:tab> 402 413 <t:tab … … 404 415 title="File types" 405 416 helpid="itemsubtype.filetypes"> 406 <div id="filetypes.enabled"> 407 <table class="form" cellspacing=0> 408 <tr > 409 <td class="prompt">File types</td> 410 <td> 411 <table border="0" cellspacing="0" cellpadding="0"> 412 <tr > 417 <div id="filetypes.enabled" style="height: 100%; display: none;"> 418 <table class="fullform input100"> 419 <tr class="dynamic"> 420 <th>File types</th> 413 421 <td> 414 <select name="fileTypes" size="10" multiple style="width: 20em;" 415 onchange="fileTypesOnChange()"> 416 </select> 417 <input type="hidden" name="modifiedFileTypes" value=""> 418 <input type="hidden" name="removedFileTypes" value=""> 422 <div class="selectionlist"> 423 <table> 424 <tr> 425 <td> 426 <select name="fileTypes" size="10" multiple onchange="fileTypesOnChange()"> 427 </select> 428 <input type="hidden" name="modifiedFileTypes" value=""> 429 <input type="hidden" name="removedFileTypes" value=""> 430 </td> 431 <td style="vertical-align: top;"> 432 <base:buttongroup vertical="true"> 433 <base:button 434 subclass="leftaligned" 435 style="width: 14em;" 436 onclick="addFileTypesOnClick()" 437 title="Add file types…" 438 tooltip="Add file types" 439 /> 440 <base:button 441 subclass="leftaligned" 442 style="width: 14em;" 443 onclick="removeFileTypesOnClick()" 444 title="Remove" 445 tooltip="Remove the selected file types" 446 /> 447 </base:buttongroup> 448 <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()"> 449 <label for="required">Required</label><br> 450 <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()"> 451 <label for="multiple">Allow multiple files</label> 452 </td> 453 </tr> 454 </table> 455 </div> 419 456 </td> 420 <td> 421 <table border="0"> 422 <tr><td width="150"><base:button 423 clazz="leftaligned buttonclass" 424 onclick="addFileTypesOnClick()" 425 title="Add file types…" 426 tooltip="Add file types" 427 /></td></tr> 428 <tr><td width="150"><base:button 429 clazz="leftaligned buttonclass" 430 onclick="removeFileTypesOnClick()" 431 title="Remove" 432 tooltip="Remove the selected file types" 433 /></td></tr> 434 </table> 435 <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()"> 436 <label for="required">Required</label><br> 437 <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()"> 438 <label for="multiple">Allow multiple files</label> 439 </td> 440 </tr> 441 </table> 442 </td> 443 </tr> 444 </table> 457 </tr> 458 </table> 445 459 </div> 446 <div id="filetypes.disabled" style="display: none; ">447 460 <div id="filetypes.disabled" style="display: none; border: 1px solid transparent;"> 461 <div class="messagecontainer error"></div> 448 462 </div> 449 463 </t:tab> 450 464 </t:tabcontrol> 451 452 <table align="center">453 <tr>454 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>455 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>456 </tr>457 </table>458 465 </form> 466 467 <div class="legend"> 468 <base:icon image="required.gif" /> = required information 469 </div> 470 471 <base:buttongroup subclass="dialogbuttons"> 472 <base:button onclick="saveSettings()" title="Save" /> 473 <base:button onclick="window.close()" title="Cancel" /> 474 </base:buttongroup> 459 475 </base:body> 460 476 </base:page> -
trunk/www/admin/jobagents/edit_agent.jsp
r5908 r5922 361 361 </base:head> 362 362 <base:body onload="init()"> 363 < p>363 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 364 364 <form action="index.jsp?ID=<%=ID%>" method="post" name="agent" onsubmit="return false;"> 365 365 <input type="hidden" name="cmd" value="UpdateItem"> 366 366 367 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>368 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>"367 <t:tabcontrol id="settings" 368 subclass="content dialogtabcontrol" 369 369 position="bottom" remember="<%=agent != null%>" active="<%=selectedPluginId == -1 ? null : "plugins" %>" 370 370 extensions="<%=invoker%>"> 371 371 <t:tab id="info" title="Job agent" validate="validateJobAgent()" helpid="jobagent.edit"> 372 <table class="f orm" cellspacing=0>372 <table class="fullform input100 smaller"> 373 373 <tr> 374 <t d class="prompt">Name</td>374 <th>Name</th> 375 375 <td><input <%=requiredClazz%> type="text" name="name" 376 376 value="<%=HTML.encodeTags(agent == null ? Values.getString(cc.getPropertyValue("name"), "New job agent") : agent.getName())%>" 377 size="40" maxlength="<%=JobAgent.MAX_NAME_LENGTH%>"></td> 377 maxlength="<%=JobAgent.MAX_NAME_LENGTH%>"></td> 378 <td></td> 378 379 </tr> 379 380 <tr> 380 <t d class="prompt">External Id</td>381 <th>External Id</th> 381 382 <td><input <%=requiredClazz%> type="text" name="external_id" 382 383 value="<%=HTML.encodeTags(agent == null ? cc.getPropertyValue("externalId") : agent.getExternalId())%>" 383 size="40" maxlength="<%=JobAgent.MAX_EXTERNAL_ID_LENGTH%>"></td> 384 maxlength="<%=JobAgent.MAX_EXTERNAL_ID_LENGTH%>"></td> 385 <td></td> 384 386 </tr> 385 387 <tr> 386 <t d class="prompt">Server</td>388 <th>Server</th> 387 389 <td><input <%=clazz%> type="text" name="server" 388 390 value="<%=HTML.encodeTags(agent == null ? cc.getPropertyValue("server") : agent.getServer())%>" 389 size="40" maxlength="<%=JobAgent.MAX_SERVER_LENGTH%>"></td> 391 maxlength="<%=JobAgent.MAX_SERVER_LENGTH%>"></td> 392 <td></td> 390 393 </tr> 391 394 <tr> 392 <t d class="prompt">Port</td>395 <th>Port</th> 393 396 <td><input <%=clazz%> type="text" name="port" 394 397 value="<%=port == null ? "" : port.toString() %>" 395 size="12" maxlength="10"398 maxlength="10" style="width: 15em;" 396 399 onkeypress="return Numbers.integerOnly(event)"> 397 400 <span class="link" onclick="document.forms['agent'].port.value = '<%=JobAgent.DEFAULT_PORT%>'" 398 401 >Use default (<%=JobAgent.DEFAULT_PORT%>)</span> 399 402 </td> 400 </tr> 401 <tr > 402 <td class="prompt">Description</td> 403 <td nowrap> 404 <textarea <%=clazz%> rows="4" cols="40" name="description" 403 <td></td> 404 </tr> 405 <tr class="dynamic"> 406 <th>Description</th> 407 <td> 408 <textarea <%=clazz%> rows="6" name="description" 405 409 ><%=HTML.encodeTags(agent == null ? cc.getPropertyValue("description") : agent.getDescription())%></textarea> 406 <a href="javascript:Main.zoom('Description', 'agent', 'description')"407 title="Edit in larger window"><base:icon image="zoom.png" /></a>408 410 </td> 411 <td style="width: 20px;"> 412 <base:icon image="zoom.png" 413 onclick="Main.zoom('Description', 'agent', 'description')" 414 tooltip="Edit in larger window" 415 /> 416 </td> 409 417 </tr> 410 418 </table> 411 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>412 419 </t:tab> 413 420 414 421 <t:tab id="plugins" title="Plugins" helpid="jobagent.plugins"> 415 416 <table > 417 <tr > 418 <td> 419 <b>Installed plugins</b><br> 420 <select name="plugins" size="14" multiple style="width: 15em;" 421 onclick="pluginsOnClick()"> 422 </select> 423 <input type="hidden" name="removePlugins" value=""> 424 <input type="hidden" name="allPlugins" value=""> 425 </td> 426 <td> 427 <br> 428 <table width="150"> 429 <tr><td><base:button 430 clazz="leftaligned buttonclass" 431 onclick="addPluginsOnClick()" 432 title="Add plugins…" 433 tooltip="Add plugins to this job agent" 434 /></td></tr> 435 <tr><td><base:button 436 clazz="leftaligned buttonclass" 437 onclick="removeOnClick()" 438 title="Remove" 439 tooltip="Remove the selected plugins" 440 /></td></tr> 441 </table> 442 443 <br> 444 <div id="pluginsettings" style="display: none;"> 445 <table border="0" cellspacing="0" class="form"> 422 <table class="fullform input100 smaller"> 423 <tr class="big"> 424 <th>Installed plugins</th> 425 <td> 426 <div class="selectionlist"> 427 <table> 428 <tr> 429 <td> 430 <select name="plugins" size="12" multiple onclick="pluginsOnClick()"> 431 </select> 432 <input type="hidden" name="removePlugins" value=""> 433 <input type="hidden" name="allPlugins" value=""> 434 </td> 435 <td style="vertical-align: top;"> 436 <base:buttongroup vertical="true"> 437 <base:button 438 subclass="leftaligned" 439 onclick="addPluginsOnClick()" 440 title="Add plugins…" 441 tooltip="Add plugins to this job agent" 442 /> 443 <base:button 444 subclass="leftaligned" 445 onclick="removeOnClick()" 446 title="Remove" 447 tooltip="Remove the selected plugins" 448 /> 449 </base:buttongroup> 450 </td> 451 </tr> 452 </table> 453 </div> 454 </td> 455 </tr> 456 <tbody id="pluginsettings" style="display: none;"> 446 457 <tr> 447 <td class="prompt">Max memory</td> 458 <th colspan="2" class="bottomborder" style="border-top: 1px solid #A0A0A0;">Settings for the selected plug-in</th> 459 </tr> 460 <tr> 461 <th class="subprompt">Max memory</th> 448 462 <td> 449 <input type="text" name="maxMemory" class="text" size="16" 450 maxlength="16" 451 onblur="maxMemoryOnBlur()"> 463 <input type="text" name="maxMemory" class="text" style="width: 15em;" 464 maxlength="16" onblur="maxMemoryOnBlur()"> 452 465 (Use KB, MB or GB to specify memory) 453 466 </td> 454 467 </tr> 455 468 <tr> 456 <t d style="padding-left: 10px;">-use default</td>469 <th class="subprompt"></th> 457 470 <td> 458 <input type="checkbox" name="useDefaultMaxMemory" 471 <input type="checkbox" name="useDefaultMaxMemory" id="useDefaultMaxMemory" 459 472 onclick="useDefaultMaxMemoryOnClick()"> 460 (<span id="defaultMaxMemory"></span>)473 <label for="useDefaultMaxMemory">Use default</label> (<span id="defaultMaxMemory"></span>) 461 474 </td> 462 475 </tr> 463 476 <tr> 464 <t d class="prompt">Trusted</td>477 <th class="subprompt">Trusted</th> 465 478 <td> 466 479 <input type="radio" name="trusted" id="trustedDefault" value="" … … 473 486 </tr> 474 487 <tr> 475 <t d class="prompt">Priority boost</td>488 <th class="subprompt">Priority boost</th> 476 489 <td> 477 <input type="text" name="priorityBoost" class="text" s ize="12"490 <input type="text" name="priorityBoost" class="text" style="width: 15em;" 478 491 maxlength="10" onkeypress="return Numbers.integerOnly(event)" 479 492 onblur="priorityBoostOnBlur()"> 480 493 </td> 481 494 </tr> 482 </table> 483 </div> 484 </td> 495 </tbody> 496 <tr class="dynamic"> 497 <th></th> 498 <td></td> 485 499 </tr> 486 500 </table> 487 488 489 501 </t:tab> 490 491 502 </t:tabcontrol> 492 493 <table align="center">494 <tr>495 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>496 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>497 </tr>498 </table>499 503 </form> 504 505 <div class="legend"> 506 <base:icon image="required.gif" /> = required information 507 </div> 508 509 <base:buttongroup subclass="dialogbuttons"> 510 <base:button onclick="saveSettings()" title="Save" /> 511 <base:button onclick="window.close()" title="Cancel" /> 512 </base:buttongroup> 500 513 </base:body> 501 514 </base:page> -
trunk/www/admin/mimetypes/edit_mimetype.jsp
r5908 r5922 155 155 </base:head> 156 156 <base:body onload="init()"> 157 < p>157 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 158 158 <form action="index.jsp?ID=<%=ID%>" method="post" name="mimeType" onsubmit="return false;"> 159 159 <input type="hidden" name="cmd" value="UpdateItem"> 160 160 161 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>162 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*240)+"px;"%>"161 <t:tabcontrol id="settings" 162 subclass="content dialogtabcontrol" 163 163 position="bottom" remember="<%=mimeType != null%>" 164 164 extensions="<%=invoker%>"> 165 165 <t:tab id="info" title="MIME type" validate="validateMimeType()" helpid="mimetype.edit"> 166 <table class="f orm" cellspacing=0>167 <tr> 168 <t d class="prompt">File extension</td>169 <td><input <%=requiredClazz%> type="text" name="extension" 166 <table class="fullform input100 smaller"> 167 <tr> 168 <th>File extension</th> 169 <td><input <%=requiredClazz%> type="text" name="extension" style="width: 10em;" 170 170 value="<%=HTML.encodeTags(mimeType == null ? cc.getPropertyValue("extension") : mimeType.getExtension())%>" 171 size="40" maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td> 172 </tr> 173 <tr> 174 <td class="prompt">MIME type</td> 171 maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td> 172 <td></td> 173 </tr> 174 <tr> 175 <th>MIME type</th> 175 176 <td><input <%=requiredClazz%> type="text" name="name" 176 177 value="<%=HTML.encodeTags(mimeType == null ? Values.getString(cc.getPropertyValue("name"), "New MIME type") : mimeType.getName())%>" 177 size="40" maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td> 178 </tr> 179 <tr > 180 <td class="prompt">File type</td> 181 <td colspan="2"> 182 <select name="filetype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : ""%>> 178 maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td> 179 <td></td> 180 </tr> 181 <tr> 182 <th>File type</th> 183 <td> 184 <select name="filetype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>> 183 185 <% 184 186 if (!readCurrentFileType) … … 208 210 </select> 209 211 </td> 210 </tr> 211 <tr> 212 <td class="prompt">Auto compress</td> 212 <td></td> 213 </tr> 214 <tr> 215 <th>Auto compress</th> 213 216 <td> 214 217 <input type="radio" name="autoCompress" id="autoCompressNo" value="0" … … 216 219 <input type="radio" name="autoCompress" id="autoCompressYes" value="1" 217 220 <%=autoCompress ? "checked" : ""%>><label for="autoCompressYes">yes</label> 218 219 <% 220 if (!Application.autoCompressionEnabled()) 221 { 222 %> 223 <base:note type="info" style="background: #ffffcc;"> 221 <td></td> 222 </tr> 223 <% 224 if (!Application.autoCompressionEnabled()) 225 { 226 %> 227 <tr> 228 <th class="subprompt"></th> 229 <td> 230 <div class="messagecontainer help" style="margin: 0.5em;"> 224 231 Auto-compression has been disabled in <code>base.config</code> 225 </base:note> 226 <% 227 } 228 %> 232 </div> 233 </td> 234 <td></td> 235 </tr> 236 <% 237 } 238 %> 239 <tr class="dynamic"> 240 <th>Description</th> 241 <td> 242 <textarea <%=clazz%> rows="6" name="description" 243 ><%=HTML.encodeTags(mimeType == null ? cc.getPropertyValue("description") : mimeType.getDescription())%></textarea> 229 244 </td> 230 </tr> 231 <tr > 232 <td class="prompt">Description</td> 233 <td nowrap> 234 <textarea <%=clazz%> rows="4" cols="40" name="description" 235 ><%=HTML.encodeTags(mimeType == null ? cc.getPropertyValue("description") : mimeType.getDescription())%></textarea> 236 <a href="javascript:Main.zoom('Description', 'mimeType', 'description')" 237 title="Edit in larger window"><base:icon image="zoom.png" /></a> 245 <td style="width: 20px;"> 246 <base:icon image="zoom.png" 247 onclick="Main.zoom('Description', 'mimeType', 'description')" 248 tooltip="Edit in larger window" 249 /> 238 250 </td> 239 251 </tr> 240 252 </table> 241 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>242 253 </t:tab> 243 254 </t:tabcontrol> 244 245 <table align="center">246 <tr>247 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>248 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>249 </tr>250 </table>251 255 </form> 256 257 <div class="legend"> 258 <base:icon image="required.gif" /> = required information 259 </div> 260 261 <base:buttongroup subclass="dialogbuttons"> 262 <base:button onclick="saveSettings()" title="Save" /> 263 <base:button onclick="window.close()" title="Cancel" /> 264 </base:buttongroup> 252 265 </base:body> 253 266 </base:page> -
trunk/www/admin/platforms/edit_platform.jsp
r5908 r5922 255 255 </base:head> 256 256 <base:body onload="init()"> 257 < p>257 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 258 258 <form action="index.jsp?ID=<%=ID%>" method="post" name="platform" onsubmit="return false;"> 259 259 <input type="hidden" name="cmd" value="UpdateItem"> 260 260 261 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>262 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*260)+"px;"%>"261 <t:tabcontrol id="settings" 262 subclass="content dialogtabcontrol" 263 263 position="bottom" active="<%=tabId%>" remember="<%=tabId == null && platform != null%>" 264 264 extensions="<%=invoker%>"> 265 265 <t:tab id="info" title="Platform" validate="validatePlatform()" helpid="platform.edit"> 266 <table class="f orm" cellspacing=0>266 <table class="fullform input100 smaller"> 267 267 <tr> 268 <t d class="prompt">Name</td>268 <th>Name</th> 269 269 <td><input <%=requiredClazz%> type="text" name="name" 270 270 value="<%=HTML.encodeTags(platform == null ? Values.getString(cc.getPropertyValue("name"), "New platform") : platform.getName())%>" 271 size="40" maxlength="<%=Platform.MAX_NAME_LENGTH%>"></td> 271 maxlength="<%=Platform.MAX_NAME_LENGTH%>"></td> 272 <td></td> 272 273 </tr> 273 274 <% … … 281 282 currentRawDataType = RawDataTypes.getRawDataType(cc.getRecent("RawDataType", 0)); 282 283 } 283 284 284 %> 285 285 <tr> 286 <t d class="prompt">External ID</td>286 <th>External ID</th> 287 287 <td><input <%=unchangeableClazz%> type="text" name="externalId" 288 288 value="<%=HTML.encodeTags(cc.getPropertyValue("externalId"))%>" 289 size="40" maxlength="<%=Platform.MAX_EXTERNAL_ID_LENGTH%>"></td> 289 maxlength="<%=Platform.MAX_EXTERNAL_ID_LENGTH%>"></td> 290 <td></td> 290 291 </tr> 291 292 <tr> 292 <t d class="prompt">File-only</td>293 <th>File-only</th> 293 294 <td> 294 295 <input <%=unchangeableClazz%> type="radio" name="fileOnly" id="fileOnlyNo" value="0" … … 297 298 <%=isFileOnly ? "checked" : ""%> onclick="fileOnlyOnClick()"><label for="fileOnlyYes">yes</label> 298 299 </td> 300 <td></td> 299 301 </tr> 300 301 302 <tr> 302 <t d class="prompt">Raw data type</td>303 <th>Raw data type</th> 303 304 <td> 304 305 <select name="rawdatatype" <%=unchangeableClazz%>> … … 318 319 </select> 319 320 </td> 321 <td></td> 320 322 </tr> 321 323 <tr> 322 <t d class="prompt">Channels</td>324 <th>Channels</th> 323 325 <td><input <%=unchangeableClazz%> type="text" name="channels" 324 326 value="<%=Values.getInt(cc.getPropertyValue("channels"), 1)%>" 325 size="12" maxlength="10"327 maxlength="10" style="width: 15em;" 326 328 onkeypress="return Numbers.integerOnly(event)"></td> 329 <td></td> 327 330 </tr> 328 331 <% 329 332 } 330 333 %> 331 <tr >332 <t d class="prompt">Description</td>334 <tr class="dynamic"> 335 <th>Description</th> 333 336 <td nowrap> 334 <textarea <%=clazz%> rows=" 4" cols="40" name="description"337 <textarea <%=clazz%> rows="6" name="description" 335 338 ><%=HTML.encodeTags(platform == null ? cc.getPropertyValue("description") : platform.getDescription())%></textarea> 336 <a href="javascript:Main.zoom('Description', 'platform', 'description')" 337 title="Edit in larger window"><base:icon image="zoom.png" /></a> 339 </td> 340 <td style="width: 20px;"> 341 <base:icon image="zoom.png" 342 onclick="Main.zoom('Description', 'platform', 'description')" 343 tooltip="Edit in larger window" 344 /> 338 345 </td> 339 346 </tr> 340 347 </table> 341 <div align=right>342 <i><base:icon image="required.gif" /> = required information</i>343 <%if (platform == null) {%><br>344 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>345 <%}%>346 </div>347 348 </t:tab> 348 349 … … 351 352 helpid="platform.edit.filetypes" 352 353 > 353 <table > 354 <tr > 355 <td> 356 <b>Data file types</b><br> 357 <select name="fileTypes" size="10" multiple style="width: 20em;" 358 onchange="fileTypesOnChange()"> 359 </select> <br> 360 <input type="hidden" name="modifiedFileTypes" value=""> 361 <input type="hidden" name="removedFileTypes" value=""> 362 </td> 363 <td> 364 <br> 365 <table width="150"> 366 <tr><td width="150"><base:button 367 clazz="leftaligned buttonclass" 368 onclick="addFileTypesOnClick()" 369 title="Add data file types…" 370 tooltip="Add more data file types to this platform" 371 /></td></tr> 372 <tr><td width="150"><base:button 373 clazz="leftaligned buttonclass" 374 onclick="removeOnClick()" 375 title="Remove" 376 tooltip="Remove the selected data file types" 377 /></td></tr> 378 </table> 379 <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()"> 380 <label for="required">Required</label><br> 381 <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()"> 382 <label for="multiple">Allow multiple files</label> 383 </td> 384 </tr> 354 <table class="fullform input100 smaller"> 355 <tr class="dynamic"> 356 <th>Data file types</th> 357 <td> 358 <div class="selectionlist"> 359 <table> 360 <tr> 361 <td> 362 <select name="fileTypes" size="15" multiple onchange="fileTypesOnChange()"> 363 </select> 364 <input type="hidden" name="modifiedFileTypes" value=""> 365 <input type="hidden" name="removedFileTypes" value=""> 366 </td> 367 <td style="vertical-align: top;"> 368 <base:buttongroup vertical="true"> 369 <base:button 370 subclass="leftaligned" 371 style="width: 14em;" 372 onclick="addFileTypesOnClick()" 373 title="Add data file types…" 374 tooltip="Add more data file types to this platform" 375 /> 376 <base:button 377 subclass="leftaligned" 378 style="width: 14em;" 379 onclick="removeOnClick()" 380 title="Remove" 381 tooltip="Remove the selected data file types" 382 /> 383 </base:buttongroup> 384 <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()"> 385 <label for="required">Required</label><br> 386 <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()"> 387 <label for="multiple">Allow multiple files</label> 388 </td> 389 </tr> 390 </table> 391 </div> 392 </td> 393 </tr> 385 394 </table> 386 395 </t:tab> 396 </t:tabcontrol> 397 </form> 387 398 388 </t:tabcontrol> 389 390 <table align="center"> 391 <tr> 392 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 393 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 394 </tr> 395 </table> 396 </form> 399 <div class="legend"> 400 <base:icon image="required.gif" /> = required information 401 <%if (platform == null) {%><br> 402 <base:icon image="unchangeable.gif" /> = can't be changed later 403 <%}%> 404 </div> 405 406 <base:buttongroup subclass="dialogbuttons"> 407 <base:button onclick="saveSettings()" title="Save" /> 408 <base:button onclick="window.close()" title="Cancel" /> 409 </base:buttongroup> 397 410 </base:body> 398 411 </base:page> -
trunk/www/admin/platforms/variants/edit_variant.jsp
r5908 r5922 262 262 </base:head> 263 263 <base:body onload="init()"> 264 < p>264 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 265 265 <form action="index.jsp?ID=<%=ID%>" method="post" name="variant" onsubmit="return false;"> 266 266 <input type="hidden" name="cmd" value="UpdateItem"> 267 267 <input type="hidden" name="platform_id" value="<%=platformId%>"> 268 268 269 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>270 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*260)+"px;"%>"269 <t:tabcontrol id="settings" 270 subclass="content dialogtabcontrol" 271 271 position="bottom" active="<%=tabId%>" remember="<%=tabId == null && variant != null%>" 272 272 extensions="<%=invoker%>"> 273 273 <t:tab id="info" title="Variant" validate="validateVariant()" helpid="platformvariant.edit"> 274 <table class="f orm" cellspacing="0">274 <table class="fullform input100 smaller"> 275 275 <tr> 276 <t d class="prompt">Name</td>276 <th>Name</th> 277 277 <td><input <%=requiredClazz%> type="text" name="name" 278 278 value="<%=HTML.encodeTags(variant == null ? 279 279 Values.getString(cc.getPropertyValue("name"), "New " + platform.getName() + " variant") : 280 280 variant.getName())%>" 281 size="40" maxlength="<%=PlatformVariant.MAX_NAME_LENGTH%>"></td> 281 maxlength="<%=PlatformVariant.MAX_NAME_LENGTH%>"></td> 282 <td></td> 282 283 </tr> 283 284 <% … … 293 294 %> 294 295 <tr> 295 <t d class="prompt">External ID</td>296 <th>External ID</th> 296 297 <td><input <%=unchangeableClazz%> type="text" name="externalId" 297 298 value="<%=HTML.encodeTags(Values.getString(cc.getPropertyValue("externalId"), platform.getExternalId() + ".new"))%>" 298 size="40" maxlength="<%=PlatformVariant.MAX_EXTERNAL_ID_LENGTH%>"></td> 299 maxlength="<%=PlatformVariant.MAX_EXTERNAL_ID_LENGTH%>"></td> 300 <td></td> 299 301 </tr> 300 302 <tr> 301 <t d class="prompt">File-only</td>303 <th>File-only</th> 302 304 <td> 303 305 <input <%=unchangeableClazz%> type="radio" name="fileOnly" id="fileOnlyNo" value="0" … … 306 308 <%=isFileOnly ? "checked" : ""%> onclick="fileOnlyOnClick()"><label for="fileOnlyYes">yes</label> 307 309 </td> 310 <td></td> 308 311 </tr> 309 310 312 <tr> 311 <t d class="prompt">Raw data type</td>313 <th>Raw data type</th> 312 314 <td> 313 315 <select name="rawdatatype" <%=unchangeableClazz%>> … … 327 329 </select> 328 330 </td> 331 <td></td> 329 332 </tr> 330 333 <tr> 331 <t d class="prompt">Channels</td>334 <th>Channels</th> 332 335 <td><input <%=unchangeableClazz%> type="text" name="channels" 333 336 value="<%=Values.getInt(cc.getPropertyValue("channels"), currentRawDataType == null ? 1 : currentRawDataType.getChannels())%>" 334 size="12" maxlength="10"337 maxlength="10" style="width: 15em;" 335 338 onkeypress="return Numbers.integerOnly(event)"></td> 339 <td></td> 336 340 </tr> 337 341 <% 338 342 } 339 343 %> 340 <tr >341 <t d class="prompt">Description</td>342 <td nowrap>343 <textarea <%=clazz%> rows=" 4" cols="40" name="description"344 <tr class="dynamic"> 345 <th>Description</th> 346 <td> 347 <textarea <%=clazz%> rows="6" name="description" 344 348 ><%=HTML.encodeTags(variant == null ? cc.getPropertyValue("description") : variant.getDescription())%></textarea> 345 <a href="javascript:Main.zoom('Description', 'variant', 'description')" 346 title="Edit in larger window"><base:icon image="zoom.png" /></a> 349 </td> 350 <td style="width: 20px;"> 351 <base:icon image="zoom.png" 352 onclick="Main.zoom('Description', 'variant', 'description')" 353 tooltip="Edit in larger window" 354 /> 347 355 </td> 348 356 </tr> 349 357 </table> 350 <div align=right>351 <i><base:icon image="required.gif" /> = required information</i>352 <%if (variant == null) {%><br>353 <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>354 <%}%>355 </div>356 358 </t:tab> 357 359 <t:tab id="fileTypes" title="Data file types" … … 359 361 helpid="platformvariant.edit.filetypes" 360 362 > 361 <table > 362 <tr > 363 <td> 364 <b>Data file types</b><br> 365 <select name="fileTypes" size="10" multiple style="width: 20em;" 366 onchange="fileTypesOnChange()"> 367 </select> 368 <input type="hidden" name="modifiedFileTypes" value=""> 369 <input type="hidden" name="removedFileTypes" value=""> 370 </td> 371 <td> 372 <br> 373 <table width="150"> 374 <tr><td width="150"><base:button 375 clazz="leftaligned buttonclass" 376 onclick="addFileTypesOnClick()" 377 title="Add data file types…" 378 tooltip="Add more data file types to this platform variant" 379 /></td></tr> 380 <tr><td width="150"><base:button 381 clazz="leftaligned buttonclass" 382 onclick="removeOnClick()" 383 title="Remove" 384 tooltip="Remove the selected data file types" 385 /></td></tr> 386 </table> 387 <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()"> 388 <label for="required">Required</label><br> 389 <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()"> 390 <label for="multiple">Allow multiple files</label> 391 </td> 392 </tr> 363 <table class="fullform input100 smaller"> 364 <tr class="dynamic"> 365 <th>Data file types</th> 366 <td> 367 <div class="selectionlist"> 368 <table> 369 <tr> 370 <td> 371 <select name="fileTypes" size="15" multiple onchange="fileTypesOnChange()"> 372 </select> 373 <input type="hidden" name="modifiedFileTypes" value=""> 374 <input type="hidden" name="removedFileTypes" value=""> 375 </td> 376 <td style="vertical-align: top;"> 377 <base:buttongroup vertical="true"> 378 <base:button 379 subclass="leftaligned" 380 style="width: 14em;" 381 onclick="addFileTypesOnClick()" 382 title="Add data file types…" 383 tooltip="Add more data file types to this platform" 384 /> 385 <base:button 386 subclass="leftaligned" 387 style="width: 14em;" 388 onclick="removeOnClick()" 389 title="Remove" 390 tooltip="Remove the selected data file types" 391 /> 392 </base:buttongroup> 393 <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()"> 394 <label for="required">Required</label><br> 395 <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()"> 396 <label for="multiple">Allow multiple files</label> 397 </td> 398 </tr> 399 </table> 400 </div> 401 </td> 402 </tr> 393 403 </table> 394 404 </t:tab> 395 405 </t:tabcontrol> 396 397 <table align="center">398 <tr>399 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>400 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>401 </tr>402 </table>403 406 </form> 407 408 <div class="legend"> 409 <base:icon image="required.gif" /> = required information 410 <%if (variant == null) {%><br> 411 <base:icon image="unchangeable.gif" /> = can't be changed later 412 <%}%> 413 </div> 414 415 <base:buttongroup subclass="dialogbuttons"> 416 <base:button onclick="saveSettings()" title="Save" /> 417 <base:button onclick="window.close()" title="Cancel" /> 418 </base:buttongroup> 404 419 </base:body> 405 420 </base:page> -
trunk/www/admin/platforms/variants/list_variants.jsp
r5910 r5922 193 193 %> 194 194 195 <t:tabcontrol id="main" active="variant" switch="switchTab" notabs="<%=platform == null %>">195 <t:tabcontrol id="main" active="variant" switch="switchTab" > 196 196 <t:tab id="properties" title="Properties" visible="<%=platform != null %>"/> 197 197 -
trunk/www/admin/pluginconfigurations/edit_configuration.jsp
r5908 r5922 241 241 </base:head> 242 242 <base:body onload="init()"> 243 < p>243 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 244 244 <form action="index.jsp?ID=<%=ID%>" method="post" name="configuration" onsubmit="return false;"> 245 245 <input type="hidden" name="cmd" value="UpdateItem"> … … 247 247 <input type="hidden" name="copyfrom" value="<%=originalConfiguration != null ? originalConfiguration.getId() : 0%>"> 248 248 249 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>250 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"249 <t:tabcontrol id="settings" 250 subclass="content dialogtabcontrol" 251 251 position="bottom" remember="<%=configuration != null%>" switch="switchTab" 252 252 extensions="<%=invoker%>"> 253 253 <t:tab id="info" title="Configuration" validate="validateConfiguration()" helpid="pluginconfiguration.edit"> 254 <table class="f orm" cellspacing=0>255 <tr 256 <t d class="prompt">Plugin</td>254 <table class="fullform input100 smaller"> 255 <tr> 256 <th>Plugin</th> 257 257 <td> 258 258 <% … … 279 279 %> 280 280 </td> 281 <td></td> 281 282 </tr> 282 283 <tr> 283 <t d class="prompt">Name</td>284 <th>Name</th> 284 285 <td><input <%=requiredClazz%> type="text" name="name" 285 286 value="<%=HTML.encodeTags(name)%>" 286 size="40" maxlength="<%=PluginConfiguration.MAX_NAME_LENGTH%>"></td> 287 maxlength="<%=PluginConfiguration.MAX_NAME_LENGTH%>"></td> 288 <td></td> 287 289 </tr> 288 289 <tr > 290 <td class="prompt">Description</td> 291 <td nowrap> 292 <textarea <%=clazz%> rows="4" cols="40" name="description" 290 <tr class="dynamic"> 291 <th>Description</th> 292 <td> 293 <textarea <%=clazz%> rows="6" name="description" 293 294 ><%=HTML.encodeTags(description)%></textarea> 294 <a href="javascript:Main.zoom('Description', 'configuration', 'description')" 295 title="Edit in larger window"><base:icon image="zoom.png" /></a> 295 </td> 296 <td style="width: 20px;"> 297 <base:icon image="zoom.png" 298 onclick="Main.zoom('Description', 'configuration', 'description')" 299 tooltip="Edit in larger window" 300 /> 296 301 </td> 297 302 </tr> 298 303 </table> 299 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>300 304 </t:tab> 301 305 302 306 <t:tab id="annotations" title="Annotations" 303 307 helpid="annotations.edit" tooltip="Enter values for annotations" 304 visible="<%=currentPlugin != null && currentPlugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>"> 305 <iframename="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp"306 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0307 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe>308 </ t:tab>308 visible="<%=currentPlugin != null && currentPlugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>"><iframe 309 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 310 style="width: 100%; height: 100%;"></iframe></t:tab> 311 </t:tabcontrol> 312 </form> 309 313 310 </t:tabcontrol> 311 312 <table align="center"> 313 <tr> 314 <td><base:button onclick="saveSettings(0)" title="Save" /></td> 315 <td><base:button onclick="saveSettings(1)" 314 <div class="legend"> 315 <base:icon image="required.gif" /> = required information 316 </div> 317 318 <base:buttongroup subclass="dialogbuttons"> 319 <base:button onclick="saveSettings()" title="Save" /> 320 <base:button onclick="saveSettings(1)" 316 321 image="runplugin.gif" title="Save and configure" 317 visible="<%=currentPlugin == null || currentPlugin.supportsConfigurations()%>" /></td> 318 <td><base:button onclick="window.close()" title="Cancel" /></td> 319 </tr> 320 </table> 321 </form> 322 visible="<%=currentPlugin == null || currentPlugin.supportsConfigurations()%>" /> 323 <base:button onclick="window.close()" title="Cancel" /> 324 </base:buttongroup> 322 325 </base:body> 323 326 </base:page> -
trunk/www/admin/pluginconfigurations/list_configurations.jsp
r5910 r5922 220 220 function configurePlugin(itemId) 221 221 { 222 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 800, 600);222 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 750, 500); 223 223 } 224 224 </script> -
trunk/www/admin/pluginconfigurations/view_configuration.jsp
r5910 r5922 170 170 function configure() 171 171 { 172 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id=<%=itemId%>', 'ConfigurePlugin', 800, 600);172 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id=<%=itemId%>', 'ConfigurePlugin', 750, 500); 173 173 } 174 174 function switchTab(tabControlId, tabId) -
trunk/www/admin/plugindefinitions/edit_plugin.jsp
r5905 r5922 698 698 </base:head> 699 699 <base:body onload="init()"> 700 < p>700 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 701 701 <form action="index.jsp?ID=<%=ID%>" method="post" name="plugin" onsubmit="return false;"> 702 702 <input type="hidden" name="cmd" value="UpdateItem"> 703 703 704 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>705 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"704 <t:tabcontrol id="settings" 705 subclass="content dialogtabcontrol" 706 706 position="bottom" remember="<%=plugin != null%>" 707 707 active="<%=selectedAgentId == -1 ? null : "agents" %>" switch="switchTab" 708 708 extensions="<%=invoker%>"> 709 709 <t:tab id="info" title="Plugin" validate="validatePlugin()" helpid="plugindefinition.edit"> 710 <table class="f orm" cellspacing=0>710 <table class="fullform input100"> 711 711 <tr> 712 <t d class="prompt">Name</td>712 <th>Name</th> 713 713 <td><%=HTML.encodeTags(plugin == null ? Values.getString(cc.getPropertyValue("name"), "New plugin") : plugin.getName())%></td> 714 <td></td> 714 715 </tr> 715 716 <tr> 716 <t d class="prompt">Class</td>717 <th>Class</th> 717 718 <td><input <%=requiredClazz%> type="text" name="className" 718 719 value="<%=HTML.encodeTags(plugin == null ? cc.getPropertyValue("className") : plugin.getClassName())%>" 719 size="50" maxlength="<%=PluginDefinition.MAX_CLASSNAME_LENGTH%>"></td> 720 maxlength="<%=PluginDefinition.MAX_CLASSNAME_LENGTH%>"></td> 721 <td></td> 720 722 </tr> 721 723 722 724 <tr> 723 <t d class="prompt">JAR file</td>725 <th>JAR file</th> 724 726 <td><input <%=clazz%> type="text" name="jarFile" 725 727 value="<%=HTML.encodeTags(plugin == null ? cc.getPropertyValue("jarFile") : plugin.getJarFile())%>" 726 size="50"maxlength="<%=PluginDefinition.MAX_JARFILE_LENGTH%>">728 maxlength="<%=PluginDefinition.MAX_JARFILE_LENGTH%>"> 727 729 </td> 730 <td></td> 728 731 </tr> 729 732 <tr> 730 <t d class="prompt">Max memory</td>731 <td><input <%=clazz%> type="text" name="maxMemory" 733 <th>Max memory</th> 734 <td><input <%=clazz%> type="text" name="maxMemory" style="width: 15em;" 732 735 value="<%=Values.formatBytes(plugin == null ? Values.parseBytes(cc.getPropertyValue("maxMemory"), null) : plugin.getMaxMemory())%>" 733 size="16" maxlength="16"> (Use KB, MB or GB to specify units)</td> 736 maxlength="16"> (Use KB, MB or GB to specify units)</td> 737 <td></td> 734 738 </tr> 735 736 739 <tr> 737 <t d class="prompt">Trusted</td>740 <th>Trusted</th> 738 741 <td> 739 742 <input type="radio" name="trusted" id="trustedNo" value="0" … … 742 745 <%=isTrusted ? "checked" : ""%>><label for="trustedYes">yes</label> 743 746 </td> 747 <td></td> 744 748 </tr> 745 746 749 <tr> 747 <t d class="prompt">Allow immediate exection</td>750 <th>Allow immediate<br>exection</th> 748 751 <td> 749 752 <input type="radio" name="allow_immediate_execution" id="immediateNo" value="0" … … 761 764 %> 762 765 </td> 763 </tr> 764 </table> 765 <% 766 if (warning != null) 767 { 768 %> 769 <div class="error"><%=warning%></div> 770 <% 771 } 772 %> 773 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div> 774 </t:tab> 775 776 <t:tab id="permissions" title="Permissions" 777 tooltip="Set permissions for this plugindefintion" helpid="plugindefinition.edit.permissions"> 778 <table class="form"> 779 <tr> 780 <td class="prompt">Use permissions</td> 766 <td></td> 767 </tr> 768 <tr class="dynamic"> 769 <th></th> 781 770 <td> 782 <input type="radio" name="use_permissions" id="permissionsYes" value="1"783 <%=usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsYes">yes</label>784 <input type="radio" name="use_permissions" id="permissionsNo" value="0"785 <%=!usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsNo">no</label>786 771 <% 787 if ( plugin == null)772 if (warning != null) 788 773 { 789 774 %> 790 <input type="radio" name="use_permissions" id="permissionsAuto" value="2" 791 onclick="usePermissionsOnClick()"><label for="permissionsAuto">if requested by plugin</label> 775 <div class="messagecontainer error"><%=warning%></div> 792 776 <% 793 777 } 794 778 %> 795 779 </td> 796 </tr> 797 </table> 798 799 <table> 800 <tr > 801 <td> 802 <b>Item types</b><br> 803 <select name="items" size="14" onChange="itemsOnClick()" multiple> 804 <% 805 Map<String, List<Item>> permissionGroups = PermissionUtil.getPermissionGroups(); 806 for (Map.Entry<String, List<Item>> entry : permissionGroups.entrySet()) 807 { 808 String name = entry.getKey(); 809 List<Item> items = entry.getValue(); 810 %> 811 <option class="selectoptionheader" value="">-- <%=name%> 812 <% 813 for (Item item : items) 814 { 815 %> 816 <%=getOption(dc, plugin, item)%> 817 <% 818 } 819 } 820 %> 821 </select> 822 </td> 823 <td> 824 <table> 825 <tr ><td> 826 <b>Always grant</b><br> 827 <input type="checkbox" name="grant_create" onClick="permissionOnClick(this)">Create<br> 828 <input type="checkbox" name="grant_read" onClick="permissionOnClick(this)">Read<br> 829 <input type="checkbox" name="grant_use" onClick="permissionOnClick(this)">Use<br> 830 <input type="checkbox" name="grant_write" onClick="permissionOnClick(this)">Write<br> 831 <input type="checkbox" name="grant_delete" onClick="permissionOnClick(this)">Delete<br> 832 <input type="checkbox" name="grant_set_owner" onClick="permissionOnClick(this)">Set owner<br> 833 <input type="checkbox" name="grant_set_permission" onClick="permissionOnClick(this)">Set permission 834 </td> 835 <td> 836 <b>Always deny</b><br> 837 <input type="checkbox" name="deny_create" onClick="permissionOnClick(this)">Create<br> 838 <input type="checkbox" name="deny_read" onClick="permissionOnClick(this)">Read<br> 839 <input type="checkbox" name="deny_use" onClick="permissionOnClick(this)">Use<br> 840 <input type="checkbox" name="deny_write" onClick="permissionOnClick(this)">Write<br> 841 <input type="checkbox" name="deny_delete" onClick="permissionOnClick(this)">Delete<br> 842 <input type="checkbox" name="deny_set_owner" onClick="permissionOnClick(this)">Set owner<br> 843 <input type="checkbox" name="deny_set_permission" onClick="permissionOnClick(this)">Set permission 844 </td> 845 <% 846 if (requestedPermissions != null && requestedPermissions.size() > 0) 847 { 848 %> 849 <td style="background: #f8f8e0; border: 1px solid gray;"> 850 <b>Requested by plugin</b><br> 851 <table> 852 <% 853 for (Permissions pp : requestedPermissions) 854 { 855 Item ppType = pp.getItemType(); 856 Set<Permission> always = Permission.expand(pp.getAlwaysGranted()); 857 Set<Permission> maybe = Permission.expand(pp.getMaybeGranted()); 858 Set<Permission> defined = ppType.getDefinedPermissions(); 859 if (defined != null) 860 { 861 StringBuilder sb = new StringBuilder(); 862 sb.append("["); 863 appendPermissionLetter(sb, Permission.CREATE, "C", defined, always, maybe); 864 appendPermissionLetter(sb, Permission.READ, "R", defined, always, maybe); 865 appendPermissionLetter(sb, Permission.USE, "U", defined, always, maybe); 866 appendPermissionLetter(sb, Permission.WRITE, "W", defined, always, maybe); 867 appendPermissionLetter(sb, Permission.DELETE, "D", defined, always, maybe); 868 appendPermissionLetter(sb, Permission.SET_OWNER, "O", defined, always, maybe); 869 appendPermissionLetter(sb, Permission.SET_PERMISSION, "P", defined, always, maybe); 870 sb.append("]"); 871 %> 872 <tr> 873 <td><%=ppType%></td> 874 <td><%=sb.toString()%></td> 875 </tr> 876 <% 877 } 878 } 879 %> 880 </table> 881 <table><tr><td> 882 <base:button title="Use requested permissions" onclick="setRequestedPermissions()" 883 tooltip="Use the permissions requested by the plugin." /> 884 </td></tr></table> 885 </td> 886 <% 887 } 888 %> 780 <td></td> 889 781 </tr> 890 782 </table> 891 <b>Capital letters</b> = Permission is always granted<br> 892 <b>Small letters</b> = Permission is only granted if logged in user 893 has that permission 894 783 </t:tab> 784 785 <t:tab id="permissions" title="Permissions" 786 tooltip="Set permissions for this plugindefintion" helpid="plugindefinition.edit.permissions"> 787 <table class="fullform input100"> 788 <tr> 789 <th>Use permissions</th> 790 <td> 791 <input type="radio" name="use_permissions" id="permissionsYes" value="1" 792 <%=usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsYes">yes</label> 793 <input type="radio" name="use_permissions" id="permissionsNo" value="0" 794 <%=!usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsNo">no</label> 795 <% 796 if (plugin == null) 797 { 798 %> 799 <input type="radio" name="use_permissions" id="permissionsAuto" value="2" 800 onclick="usePermissionsOnClick()"><label for="permissionsAuto">if requested by plugin</label> 801 <% 802 } 803 %> 804 </td> 805 </tr> 806 <tr class="dynamic"> 807 <th>Item types</th> 808 <td> 809 <div class="selectionlist"> 810 <table> 811 <tr> 812 <td> 813 <select name="items" size="20" onChange="itemsOnClick()" multiple> 814 <% 815 Map<String, List<Item>> permissionGroups = PermissionUtil.getPermissionGroups(); 816 for (Map.Entry<String, List<Item>> entry : permissionGroups.entrySet()) 817 { 818 String name = entry.getKey(); 819 List<Item> items = entry.getValue(); 820 %> 821 <option class="selectoptionheader" value="">-- <%=name%> 822 <% 823 for (Item item : items) 824 { 825 %> 826 <%=getOption(dc, plugin, item)%> 827 <% 828 } 829 } 830 %> 831 </select> 832 <b>Capital letters</b> = Permission is always granted<br> 833 <b>Small letters</b> = Permission is only granted if logged in user 834 has that permission 835 </td> 836 <td style="vertical-align: top;"> 837 <table style="width: 20em;"> 838 <tr> 839 <td> 840 <b>Always grant</b><br> 841 <input type="checkbox" name="grant_create" id="grant_create" onClick="permissionOnClick(this)"><label for="grant_create">Create</label><br> 842 <input type="checkbox" name="grant_read" id="grant_read" onClick="permissionOnClick(this)"><label for="grant_read">Read</label><br> 843 <input type="checkbox" name="grant_use" id="grant_use" onClick="permissionOnClick(this)"><label for="grant_use">Use</label><br> 844 <input type="checkbox" name="grant_write" id="grant_write" onClick="permissionOnClick(this)"><label for="grant_write">Write</label><br> 845 <input type="checkbox" name="grant_delete" id="grant_delete" onClick="permissionOnClick(this)"><label for="grant_delete">Delete</label><br> 846 <input type="checkbox" name="grant_set_owner" id="grant_set_owner" onClick="permissionOnClick(this)"><label for="grant_set_owner">Set owner</label><br> 847 <input type="checkbox" name="grant_set_permission" id="grant_set_permission" onClick="permissionOnClick(this)"><label for="grant_set_permission">Set permission</label> 848 </td> 849 <td> 850 <b>Always deny</b><br> 851 <input type="checkbox" name="deny_create" id="deny_create" onClick="permissionOnClick(this)"><label for="deny_create">Create</label><br> 852 <input type="checkbox" name="deny_read" id="deny_read" onClick="permissionOnClick(this)"><label for="deny_read">Read</label><br> 853 <input type="checkbox" name="deny_use" id="deny_use" onClick="permissionOnClick(this)"><label for="deny_use">Use</label><br> 854 <input type="checkbox" name="deny_write" id="deny_write" onClick="permissionOnClick(this)"><label for="deny_write">Write</label><br> 855 <input type="checkbox" name="deny_delete" id="deny_delete" onClick="permissionOnClick(this)"><label for="deny_delete">Delete</label><br> 856 <input type="checkbox" name="deny_set_owner" id="deny_set_owner" onClick="permissionOnClick(this)"><label for="deny_set_owner">Set owner</label><br> 857 <input type="checkbox" name="deny_set_permission" id="deny_set_permission" onClick="permissionOnClick(this)"><label for="deny_set_permission">Set permission</label> 858 </td> 859 </tr> 860 <tr> 861 <td colspan="2"> 862 <div class="messagecontainer help" style="margin: 0.5em 0px 0px 0px; height: 12em; overflow: auto;"> 863 <b>Requested by plugin</b><br> 864 <% 865 if (requestedPermissions != null && requestedPermissions.size() > 0) 866 { 867 %> 868 <table> 869 <% 870 for (Permissions pp : requestedPermissions) 871 { 872 Item ppType = pp.getItemType(); 873 Set<Permission> always = Permission.expand(pp.getAlwaysGranted()); 874 Set<Permission> maybe = Permission.expand(pp.getMaybeGranted()); 875 Set<Permission> defined = ppType.getDefinedPermissions(); 876 if (defined != null) 877 { 878 StringBuilder sb = new StringBuilder(); 879 sb.append("["); 880 appendPermissionLetter(sb, Permission.CREATE, "C", defined, always, maybe); 881 appendPermissionLetter(sb, Permission.READ, "R", defined, always, maybe); 882 appendPermissionLetter(sb, Permission.USE, "U", defined, always, maybe); 883 appendPermissionLetter(sb, Permission.WRITE, "W", defined, always, maybe); 884 appendPermissionLetter(sb, Permission.DELETE, "D", defined, always, maybe); 885 appendPermissionLetter(sb, Permission.SET_OWNER, "O", defined, always, maybe); 886 appendPermissionLetter(sb, Permission.SET_PERMISSION, "P", defined, always, maybe); 887 sb.append("]"); 888 %> 889 <tr> 890 <td><%=ppType%> </td> 891 <td><%=sb.toString()%></td> 892 </tr> 893 <% 894 } 895 } 896 %> 897 </table> 898 <% 899 } 900 else 901 { 902 %> 903 This plug-in doesn't request any permissions. 904 <% 905 } 906 %> 907 </div> 908 <base:buttongroup> 909 <base:button title="Use requested permissions" onclick="setRequestedPermissions()" 910 tooltip="Use the permissions requested by the plugin." 911 visible="<%=requestedPermissions != null && requestedPermissions.size() > 0%>"/> 912 </base:buttongroup> 913 </td> 914 </tr> 915 </tr> 916 </table> 917 </div> 918 </td> 919 </tr> 920 </table> 895 921 </td> 896 922 </tr> 897 923 </table> 898 899 900 924 </t:tab> 901 902 903 925 <t:tab id="agents" title="Job agents" helpid="plugindefinition.jobagents"> 904 <table class="form"> 905 <tr > 906 <td class="prompt">Run this plugin on</td> 907 <td> 908 <input type="checkbox" name="use_internal_jobqueue" value="1" 909 <%=plugin == null || plugin.getUseInternalJobQueue() ? "checked" : "" %>> 910 internal job queue 911 </td> 926 <table class="fullform input100"> 927 <tr> 928 <th><label for="use_internal_jobqueue">Use internal job queue</label></td> 929 <td> 930 <input type="checkbox" name="use_internal_jobqueue" id="use_internal_jobqueue" value="1" 931 <%=plugin == null || plugin.getUseInternalJobQueue() ? "checked" : "" %>> 932 </td> 912 933 </tr> 913 <tr> 914 <td> 915 <select name="agents" size="12" multiple style="width: 15em;" 916 onclick="agentsOnClick()"> 917 </select> 918 <input type="hidden" name="removeAgents" value=""> 919 <input type="hidden" name="allAgents" value=""> 920 </td> 921 <td> 922 <table width="150"> 923 <tr><td><base:button 924 clazz="leftaligned buttonclass" 925 onclick="addAgentsOnClick()" 926 title="Add job agents…" 927 tooltip="Add job agents to this plugin" 928 /></td></tr> 929 <tr><td><base:button 930 clazz="leftaligned buttonclass" 931 onclick="removeOnClick()" 932 title="Remove" 933 tooltip="Remove the selected job agents" 934 /></td></tr> 935 </table> 936 937 <br> 938 <div id="agentsettings" style="display: none;"> 939 <b>Settings for the selected job agent</b> 940 <table border="0" cellspacing="0" class="form"> 934 <tr class="big"> 935 <th>Job agents</th> 936 <td> 937 <div class="selectionlist"> 938 <table> 939 <tr> 940 <td> 941 <select name="agents" size="15" multiple onclick="agentsOnClick()"> 942 </select> 943 <input type="hidden" name="removeAgents" value=""> 944 <input type="hidden" name="allAgents" value=""> 945 </td> 946 <td style="vertical-align: top;"> 947 <base:buttongroup vertical="true"> 948 <base:button 949 subclass="leftaligned" 950 style="width: 14em;" 951 onclick="addAgentsOnClick()" 952 title="Add job agents…" 953 tooltip="Add job agents to this plugin" 954 /> 955 <base:button 956 subclass="leftaligned" 957 style="width: 14em;" 958 onclick="removeOnClick()" 959 title="Remove" 960 tooltip="Remove the selected job agents" 961 /> 962 </base:buttongroup> 963 </td> 964 </tr> 965 </table> 966 </div> 967 </td> 968 </tr> 969 <tbody id="agentsettings" style="display: none;"> 941 970 <tr> 942 <td class="prompt">Max memory</td> 971 <th colspan="2" class="bottomborder" style="border-top: 1px solid #A0A0A0;">Settings for the selected job agent</th> 972 </tr> 973 <tr> 974 <th class="subprompt">Max memory</th> 943 975 <td> 944 <input type="text" name="agentMaxMemory" class="text" s ize="16"976 <input type="text" name="agentMaxMemory" class="text" style="width: 15em;" 945 977 maxlength="16" 946 978 onblur="maxMemoryOnBlur()"> … … 949 981 </tr> 950 982 <tr> 951 <t d style="padding-left: 10px;">-use default</td>983 <th class="subprompt"></th> 952 984 <td> 953 <input type="checkbox" name="useDefaultMaxMemory" 985 <input type="checkbox" name="useDefaultMaxMemory" id="useDefaultMaxMemory" 954 986 onclick="useDefaultMaxMemoryOnClick()"> 955 (<span id="defaultMaxMemory"></span>)987 <label for="useDefaultMaxMemory">Use default</label> (<span id="defaultMaxMemory"></span>) 956 988 </td> 957 989 </tr> 958 990 <tr> 959 <t d class="prompt">Trusted</td>991 <th class="subprompt">Trusted</th> 960 992 <td> 961 993 <input type="radio" name="agentTrusted" id="agentTrustedDefault" value="" … … 968 1000 </tr> 969 1001 <tr> 970 <t d class="prompt">Priority boost</td>1002 <th class="subprompt">Priority boost</th> 971 1003 <td> 972 <input type="text" name="agentPriorityBoost" class="text" s ize="12"1004 <input type="text" name="agentPriorityBoost" class="text" style="width: 15em;" 973 1005 maxlength="10" onkeypress="return Numbers.integerOnly(event)" 974 1006 onblur="priorityBoostOnBlur()"> 975 1007 </td> 976 1008 </tr> 977 </table> 978 </div> 979 </td> 1009 </tbody> 1010 <tr class="dynamic"> 1011 <th></th> 1012 <td></td> 980 1013 </tr> 981 1014 </table> … … 984 1017 <t:tab id="annotations" title="Annotations" 985 1018 helpid="annotations.edit" tooltip="Enter values for annotations" 986 visible="<%=plugin != null && !plugin.requiresConfiguration() && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>"> 987 <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 988 width="100%" height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0 989 marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe> 990 </t:tab> 991 1019 visible="<%=plugin != null && !plugin.requiresConfiguration() && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>"><iframe 1020 name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp" 1021 style="width: 100%; height: 100%;"></iframe></t:tab> 992 1022 </t:tabcontrol> 993 994 <table align="center">995 <tr>996 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>997 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>998 </tr>999 </table>1000 1023 <% 1001 1024 ItemResultList<RoleKey> roleKeys = roleKeyQuery.list(dc); … … 1014 1037 %> 1015 1038 </form> 1039 1040 <div class="legend"> 1041 <base:icon image="required.gif" /> = required information 1042 </div> 1043 1044 <base:buttongroup subclass="dialogbuttons"> 1045 <base:button onclick="saveSettings()" title="Save" /> 1046 <base:button onclick="window.close()" title="Cancel" /> 1047 </base:buttongroup> 1048 1016 1049 </base:body> 1017 1050 </base:page> -
trunk/www/admin/plugindefinitions/view_plugin.jsp
r5918 r5922 195 195 function configurePlugin(itemId) 196 196 { 197 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 800, 600);197 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 750, 500); 198 198 } 199 199 function configureAgent(agentId) -
trunk/www/admin/plugintypes/edit_plugintype.jsp
r5908 r5922 128 128 </base:head> 129 129 <base:body onload="init()"> 130 < p>130 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 131 131 <form action="index.jsp?ID=<%=ID%>" method="post" name="pluginType" onsubmit="return false;"> 132 132 <input type="hidden" name="cmd" value="UpdateItem"> 133 133 134 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>135 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*220)+"px;"%>"134 <t:tabcontrol id="settings" 135 subclass="content dialogtabcontrol" 136 136 position="bottom" remember="<%=pluginType != null%>" 137 137 extensions="<%=invoker%>"> 138 138 <t:tab id="info" title="Plugin type" validate="validatePluginType()" helpid="plugintype.edit"> 139 <table class="f orm" cellspacing=0>139 <table class="fullform input100 smaller"> 140 140 <tr> 141 <t d class="prompt">Name</td>141 <th>Name</th> 142 142 <td><input <%=requiredClazz%> type="text" name="name" 143 143 value="<%=HTML.encodeTags(pluginType == null ? 144 144 Values.getString(cc.getPropertyValue("name"), "New plugin type") : pluginType.getName())%>" 145 size="60" maxlength="<%=PluginType.MAX_NAME_LENGTH%>"></td> 145 maxlength="<%=PluginType.MAX_NAME_LENGTH%>"></td> 146 <td></td> 146 147 </tr> 147 148 <tr> 148 <t d class="prompt">Interface</td>149 <th>Interface</th> 149 150 <td><input <%=requiredClazz%> type="text" name="interfaceName" 150 151 value="<%=HTML.encodeTags(pluginType == null ? cc.getPropertyValue("interfaceName") : pluginType.getInterfaceName())%>" 151 size="60" maxlength="<%=PluginType.MAX_INTERFACENAME_LENGTH%>"></td> 152 maxlength="<%=PluginType.MAX_INTERFACENAME_LENGTH%>"></td> 153 <td></td> 152 154 </tr> 153 155 <tr> 154 <t d class="prompt">Jar file</td>156 <th>Jar file</th> 155 157 <td><input <%=clazz%> type="text" name="jarFile" 156 158 value="<%=HTML.encodeTags(pluginType == null ? cc.getPropertyValue("jarFile") : pluginType.getJarFile())%>" 157 size="60" maxlength="<%=PluginType.MAX_JARFILE_LENGTH%>"></td> 159 maxlength="<%=PluginType.MAX_JARFILE_LENGTH%>"></td> 160 <td></td> 158 161 </tr> 159 <tr >160 <t d class="prompt">Description</td>161 <td nowrap>162 <textarea <%=clazz%> rows=" 4" cols="50" name="description"162 <tr class="dynamic"> 163 <th>Description</th> 164 <td> 165 <textarea <%=clazz%> rows="6" name="description" 163 166 ><%=HTML.encodeTags(pluginType == null ? cc.getPropertyValue("description") : pluginType.getDescription())%></textarea> 164 <a href="javascript:Main.zoom('Description', 'pluginType', 'description')" 165 title="Edit in larger window"><base:icon image="zoom.png" /></a> 167 </td> 168 <td style="width: 20px;"> 169 <base:icon image="zoom.png" 170 onclick="Main.zoom('Description', 'pluginType', 'description')" 171 tooltip="Edit in larger window" 172 /> 166 173 </td> 167 174 </tr> 168 175 </table> 169 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>170 176 </t:tab> 171 177 </t:tabcontrol> 178 </form> 179 180 <div class="legend"> 181 <base:icon image="required.gif" /> = required information 182 </div> 172 183 173 <table align="center"> 174 <tr> 175 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 176 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 177 </tr> 178 </table> 179 </form> 184 <base:buttongroup subclass="dialogbuttons"> 185 <base:button onclick="saveSettings()" title="Save" /> 186 <base:button onclick="window.close()" title="Cancel" /> 187 </base:buttongroup> 180 188 </base:body> 181 189 </base:page> -
trunk/www/admin/quantities/edit_quantity.jsp
r5908 r5922 130 130 </base:head> 131 131 <base:body onload="init()"> 132 < p>132 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 133 133 <form action="index.jsp?ID=<%=ID%>" method="post" name="quantity" onsubmit="return false;"> 134 134 <input type="hidden" name="cmd" value="UpdateItem"> 135 135 136 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>137 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*240)+"px;"%>"136 <t:tabcontrol id="settings" 137 subclass="content dialogtabcontrol" 138 138 position="bottom" remember="<%=quantity != null%>" 139 139 extensions="<%=invoker%>"> 140 140 <t:tab id="info" title="Quantity" validate="validateQuantity()" helpid="quantity.edit"> 141 <table class="f orm" cellspacing=0>141 <table class="fullform input100 smaller"> 142 142 <tr> 143 <t d class="prompt">Quantity</td>143 <th>Quantity</th> 144 144 <td><input <%=requiredClazz%> type="text" name="name" 145 145 value="<%=HTML.encodeTags(quantity == null ? Values.getString(cc.getPropertyValue("name"), "New quantity") : quantity.getName())%>" 146 size="40" maxlength="<%=Quantity.MAX_NAME_LENGTH%>"></td> 146 maxlength="<%=Quantity.MAX_NAME_LENGTH%>"></td> 147 <td></td> 147 148 </tr> 148 149 <tr> 149 <t d class="prompt">Reference unit</td>150 <th>Reference unit</th> 150 151 <td><input <%=requiredClazz%> type="text" name="referenceUnit" 151 152 value="<%=HTML.encodeTags(quantity == null ? Values.getString(cc.getPropertyValue("referenceUnit"), "") : quantity.getReferenceUnit())%>" 152 size="40" maxlength="<%=Quantity.MAX_REFERENCE_UNIT_LENGTH%>"></td> 153 maxlength="<%=Quantity.MAX_REFERENCE_UNIT_LENGTH%>"></td> 154 <td></td> 153 155 </tr> 154 <tr >155 <t d class="prompt">Description</td>156 <td nowrap>157 <textarea <%=clazz%> rows=" 4" cols="40" name="description"156 <tr class="dynamic"> 157 <th>Description</th> 158 <td> 159 <textarea <%=clazz%> rows="6" name="description" 158 160 ><%=HTML.encodeTags(quantity == null ? cc.getPropertyValue("description") : quantity.getDescription())%></textarea> 159 <a href="javascript:Main.zoom('Description', 'quantity', 'description')" 160 title="Edit in larger window"><base:icon image="zoom.png" /></a> 161 </td> 162 <td style="width: 20px;"> 163 <base:icon image="zoom.png" 164 onclick="Main.zoom('Description', 'quantity', 'description')" 165 tooltip="Edit in larger window" 166 /> 161 167 </td> 162 168 </tr> 163 169 </table> 164 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>165 170 </t:tab> 166 171 </t:tabcontrol> 172 </form> 173 174 <div class="legend"> 175 <base:icon image="required.gif" /> = required information 176 </div> 167 177 168 <table align="center"> 169 <tr> 170 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 171 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 172 </tr> 173 </table> 174 </form> 178 <base:buttongroup subclass="dialogbuttons"> 179 <base:button onclick="saveSettings()" title="Save" /> 180 <base:button onclick="window.close()" title="Cancel" /> 181 </base:buttongroup> 175 182 </base:body> 176 183 </base:page> -
trunk/www/admin/quantities/units/edit_unit.jsp
r5908 r5922 167 167 </base:head> 168 168 <base:body onload="init()"> 169 < p>169 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 170 170 <form action="index.jsp?ID=<%=ID%>" method="post" name="unit" onsubmit="return false;"> 171 171 <input type="hidden" name="cmd" value="UpdateItem"> 172 172 <input type="hidden" name="quantity_id" value="<%=quantityId%>"> 173 173 174 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>175 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*360)+"px;"%>"174 <t:tabcontrol id="settings" 175 subclass="content dialogtabcontrol" 176 176 position="bottom" remember="<%=unit != null%>" 177 177 extensions="<%=invoker%>"> 178 178 <t:tab id="info" title="Unit" validate="validateUnit()" helpid="unit.edit"> 179 <table class="f orm" cellspacing=0>179 <table class="fullform input100"> 180 180 <tr> 181 <t d class="prompt">Title</td>181 <th>Title</th> 182 182 <td><input <%=requiredClazz%> type="text" name="name" 183 183 value="<%=HTML.encodeTags(unit == null ? Values.getString(cc.getPropertyValue("name"), "New unit") : unit.getName())%>" 184 size="40" maxlength="<%=Unit.MAX_NAME_LENGTH%>"></td> 185 </tr> 186 <tr> 187 <td class="prompt">Symbols</td> 184 maxlength="<%=Unit.MAX_NAME_LENGTH%>"></td> 185 <td></td> 186 </tr> 187 <tr class="big"> 188 <th>Symbols</th> 188 189 <td> 189 <textarea <%=requiredClazz%> name="symbols" cols="40"rows="4"190 <textarea <%=requiredClazz%> name="symbols" rows="4" 190 191 onchange="symbolsOnChange()" 191 192 ><%=Values.getString(symbols, "\n", true)%></textarea> 192 193 </td> 194 <td></td> 193 195 </tr> 194 196 <tr> 195 <t d class="prompt">Conversion formula</td>197 <th>Conversion formula</th> 196 198 <td> 197 <table border="0" cellspacing="2" cellpadding="0"> 198 <tr> 199 <td> 200 1 <span id="symbol"><%=unit == null ? "<i>unit</i>" : HTML.encodeTags(unit.getDisplaySymbol())%></span> 201 = 202 </td> 203 <td> 199 1 <span id="symbol"><%=unit == null ? "<i>unit</i>" : HTML.encodeTags(unit.getDisplaySymbol())%></span> 200 = 204 201 <%=HTML.encodeTags(quantity.getReferenceUnit())%> 205 </td> 206 </tr> 207 <tr> 208 <td></td> 209 <td>× <input <%=requiredClazz%> type="text" name="referenceFactor" 202 × <input <%=requiredClazz%> type="text" name="referenceFactor" 210 203 value="<%=unit == null ? 1.0 : unit.getReferenceFactor()%>" 211 204 onkeypress="return Numbers.numberOnly(event)" 212 onchange="updateTestResult()" size="10" maxlength="12"> 213 </td> 214 </tr> 215 <tr> 216 <td></td> 217 <td>+ <input <%=requiredClazz%> type="text" name="referenceOffset" 205 onchange="updateTestResult()" maxlength="12" style="width: 10em;"> 206 + <input <%=requiredClazz%> type="text" name="referenceOffset" 218 207 value="<%=unit == null ? 0.0 : unit.getReferenceOffset()%>" 219 208 onkeypress="return Numbers.numberOnly(event)" 220 onchange="updateTestResult()" size="10" maxlength="12"> 209 onchange="updateTestResult()" maxlength="12" style="width: 10em;"> 210 </td> 211 <td></td> 212 </tr> 213 <% 214 if (unit != null) 215 { 216 %> 217 <tr> 218 <th class="subprompt"></th> 219 <td> 220 <div class="messagecontainer help" style="margin: 0.5em;"> 221 Changing the conversion formula triggers a conversion of existing annotation values 222 to the new settings. This may result in loss of precision due to rounding or 223 truncation. 224 </div> 221 225 </td> 222 </tr> 223 </table> 224 <base:note type="warning" style="background: #ffffd8;" visible="<%=unit != null %>"> 225 Changing the conversion formula triggers a conversion of existing annotation values 226 to the new settings. This may result in loss of precision due to rounding or 227 truncation. 228 </base:note> 229 </td> 230 </tr> 231 <tr > 232 <td class="prompt">Description</td> 226 <td></td> 227 </tr> 228 <% 229 } 230 %> 231 <tr class="dynamic"> 232 <th>Description</th> 233 233 <td> 234 <textarea <%=clazz%> rows=" 4" cols="40" name="description"234 <textarea <%=clazz%> rows="6" name="description" 235 235 ><%=HTML.encodeTags(unit == null ? cc.getPropertyValue("description") : unit.getDescription())%></textarea> 236 <a href="javascript:Main.zoom('Description', 'unit', 'description')" 237 title="Edit in larger window"><base:icon image="zoom.png" /></a> 236 </td> 237 <td style="width: 20px;"> 238 <base:icon image="zoom.png" 239 onclick="Main.zoom('Description', 'unit', 'description')" 240 tooltip="Edit in larger window" 241 /> 238 242 </td> 239 243 </tr> 240 244 </table> 241 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>242 245 </t:tab> 243 246 </t:tabcontrol> 244 245 <table align="center">246 <tr>247 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>248 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>249 </tr>250 </table>251 247 </form> 248 249 <div class="legend"> 250 <base:icon image="required.gif" /> = required information 251 </div> 252 253 <base:buttongroup subclass="dialogbuttons"> 254 <base:button onclick="saveSettings()" title="Save" /> 255 <base:button onclick="window.close()" title="Cancel" /> 256 </base:buttongroup> 252 257 </base:body> 253 258 </base:page> -
trunk/www/admin/quotatypes/edit_quotatype.jsp
r5908 r5922 121 121 </base:head> 122 122 <base:body onload="init()"> 123 < p>123 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 124 124 <form action="index.jsp?ID=<%=ID%>" method="post" name="quotaType" onsubmit="return false;"> 125 125 <input type="hidden" name="cmd" value="UpdateItem"> 126 126 127 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>128 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>"127 <t:tabcontrol id="settings" 128 subclass="content dialogtabcontrol" 129 129 position="bottom" remember="<%=quotaType != null%>" 130 130 extensions="<%=invoker%>"> 131 131 <t:tab id="info" title="Quota type" validate="validateQuotaType()" helpid="quotatype.edit"> 132 <table class="f orm" cellspacing=0>132 <table class="fullform input100 smaller"> 133 133 <tr> 134 <t d class="prompt">Name</td>134 <th>Name</th> 135 135 <td><input <%=requiredClazz%> type="text" name="name" 136 136 value="<%=HTML.encodeTags(quotaType == null ? Values.getString(cc.getPropertyValue("name"), "New quota type") : quotaType.getName())%>" 137 size="40" maxlength="<%=QuotaType.MAX_NAME_LENGTH%>"></td> 137 maxlength="<%=QuotaType.MAX_NAME_LENGTH%>"></td> 138 <td></td> 138 139 </tr> 139 <tr >140 <t d class="prompt">Description</td>141 <td nowrap>142 <textarea <%=clazz%> rows=" 4" cols="40" name="description"140 <tr class="dynamic"> 141 <th>Description</th> 142 <td> 143 <textarea <%=clazz%> rows="6" name="description" 143 144 ><%=HTML.encodeTags(quotaType == null ? cc.getPropertyValue("description") : quotaType.getDescription())%></textarea> 144 <a href="javascript:Main.zoom('Description', 'quotaType', 'description')" 145 title="Edit in larger window"><base:icon image="zoom.png" /></a> 145 </td> 146 <td style="width: 20px;"> 147 <base:icon image="zoom.png" 148 onclick="Main.zoom('Description', 'quotaType', 'description')" 149 tooltip="Edit in larger window" 150 /> 146 151 </td> 147 152 </tr> 148 153 </table> 149 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>150 154 </t:tab> 151 155 </t:tabcontrol> 156 </form> 157 158 <div class="legend"> 159 <base:icon image="required.gif" /> = required information 160 </div> 152 161 153 <table align="center"> 154 <tr> 155 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 156 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 157 </tr> 158 </table> 159 </form> 162 <base:buttongroup subclass="dialogbuttons"> 163 <base:button onclick="saveSettings()" title="Save" /> 164 <base:button onclick="window.close()" title="Cancel" /> 165 </base:buttongroup> 160 166 </base:body> 161 167 </base:page> -
trunk/www/admin/reportertypes/edit_reportertype.jsp
r5908 r5922 122 122 </base:head> 123 123 <base:body onload="init()"> 124 < p>124 <h1><%=title%> <base:help tabcontrol="settings" /></h1> 125 125 <form action="index.jsp?ID=<%=ID%>" method="post" name="reporterType" onsubmit="return false;"> 126 126 <input type="hidden" name="cmd" value="UpdateItem"> 127 127 128 < h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>129 <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>"128 <t:tabcontrol id="settings" 129 subclass="content dialogtabcontrol" 130 130 position="bottom" remember="<%=reporterType != null%>" 131 131 extensions="<%=invoker%>"> 132 132 <t:tab id="info" title="Reporter type" validate="validateReporterType()" helpid="reportertype.edit"> 133 <table class="f orm" cellspacing=0>133 <table class="fullform input100 smaller"> 134 134 <tr> 135 <t d class="prompt">Name</td>135 <th>Name</th> 136 136 <td><input <%=requiredClazz%> type="text" name="name" 137 137 value="<%=HTML.encodeTags(reporterType == null ? Values.getString(cc.getPropertyValue("name"), "New reporter type") : reporterType.getName())%>" 138 size="40" maxlength="<%=ReporterType.MAX_NAME_LENGTH%>"></td> 138 maxlength="<%=ReporterType.MAX_NAME_LENGTH%>"></td> 139 <td></td> 139 140 </tr> 140 <tr >141 <t d class="prompt">Description</td>142 <td nowrap>143 <textarea <%=clazz%> rows=" 4" cols="40" name="description"141 <tr class="dynamic"> 142 <th>Description</th> 143 <td> 144 <textarea <%=clazz%> rows="6" name="description" 144 145 ><%=HTML.encodeTags(reporterType == null ? cc.getPropertyValue("description") : reporterType.getDescription())%></textarea> 145 <a href="javascript:Main.zoom('Description', 'reporterType', 'description')" 146 title="Edit in larger window"><base:icon image="zoom.png" /></a> 146 </td> 147 <td style="width: 20px;"> 148 <base:icon image="zoom.png" 149 onclick="Main.zoom('Description', 'reporterType', 'description')" 150 tooltip="Edit in larger window" 151 /> 147 152 </td> 148 153 </tr> 149 154 </table> 150 <div align=right> <i><base:icon image="required.gif" /> = required information</i></div>151 155 </t:tab> 152 156 </t:tabcontrol> 157 </form> 158 159 <div class="legend"> 160 <base:icon image="required.gif" /> = required information 161 </div> 153 162 154 <table align="center"> 155 <tr> 156 <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td> 157 <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td> 158 </tr> 159 </table> 160 </form> 163 <base:buttongroup subclass="dialogbuttons"> 164 <base:button onclick="saveSettings()" title="Save" /> 165 <base:button onclick="window.close()" title="Cancel" /> 166 </base:buttongroup> 161 167 </base:body> 162 168 </base:page> -
trunk/www/admin/roles/edit_role.jsp
r5921 r5922 412 412 <t:tab id="permissions" title="Permissions" 413 413 tooltip="Set permissions for this role" helpid="role.edit.permissions"> 414 <table class="fullform ">414 <table class="fullform input100"> 415 415 <tr class="dynamic"> 416 416 <th>Item types</th> 417 417 <td> 418 <div class="selectionlist"> 418 419 <table> 419 420 <tr> … … 439 440 </select> 440 441 </td> 441 <td style="vertical-align: top; padding-left: 2px;"> 442 <td style="vertical-align: top;"> 443 <div style="width: 15em;"> 442 444 <b>Permissions</b><br> 443 445 <input type="checkbox" name="deny" id="deny" onClick="setPermissions(this.checked, true)"><label for="deny">Deny</label><br> … … 449 451 <input type="checkbox" name="set_owner" id="set_owner" onClick="setPermissions(this.checked)"><label for="set_owner">Set owner</label><br> 450 452 <input type="checkbox" name="set_permission" id="set_permission" onClick="setPermissions(this.checked)"><label for="set_permission">Set permission</label><br> 451 </td> 453 </div> 454 </td> 452 455 </tr> 453 456 </table> 457 </div> 454 458 </td> 455 459 </tr> … … 459 463 <t:tab id="members" title="Members" tooltip="Add/remove members of this role" 460 464 validate="validateMembers()" helpid="role.edit.members"> 461 <table class="fullform ">465 <table class="fullform input100"> 462 466 <tr class="dynamic"> 463 467 <th>Members</th> -
trunk/www/admin/users/edit_default_membership.jsp
r5921 r5922 194 194 <div class="content filled"> 195 195 <div> 196 <table class="fullform smaller bottomborder">196 <table class="fullform input100 smaller bottomborder"> 197 197 <tr class="dynamic"> 198 198 <th>Member in</th> … … 202 202 <tr> 203 203 <td> 204 <select name="membership" size="12" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;">204 <select name="membership" size="12" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%>> 205 205 </select> 206 206 <input type="hidden" name="removeGroups" value=""> -
trunk/www/admin/users/edit_user.jsp
r5921 r5922 841 841 <t:tab id="members" title="Membership" tooltip="Manage group and role membership" 842 842 validate="validateMembership()" helpid="user.edit.membership"> 843 <table class="fullform ">843 <table class="fullform input100"> 844 844 <tr class="dynamic"> 845 845 <th>Member in</th> -
trunk/www/include/scripts/main.js
r5921 r5922 539 539 { 540 540 this.controllers = new Array(); 541 this.controllers['EXPERIMENT'] = { url:'views/experiments/index.jsp', width:750, height:500 }; 541 this.controllers['ANNOTATION'] = { url:'common/annotations/index.jsp', width:750, height:500, edit:true, popup:true }; 542 this.controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:600, height:400 }; 543 this.controllers['ANNOTATIONTYPECATEGORY'] = { url:'admin/annotationtypecategories/index.jsp', width:600, height:400 }; 544 this.controllers['ANYTOANY'] = { url:'common/anytoany/index.jsp', width:500, height:340, popup:true }; 545 this.controllers['ARRAYBATCH'] = { url:'lims/arraybatches/index.jsp', width:750, height:500 }; 546 this.controllers['ARRAYDESIGN'] = { url:'lims/arraydesigns/index.jsp', width:750, height:500 }; 547 this.controllers['ARRAYSLIDE'] = { url:'lims/arrayslides/index.jsp', width:750, height:500 }; 542 548 this.controllers['BIOASSAY'] = { url:'views/experiments/bioassays/index.jsp', width:800, height:500 }; 543 549 this.controllers['BIOASSAYSET'] = { url:'views/experiments/bioassaysets/index.jsp', width:800, height:500 }; 544 this.controllers['TRANSFORMATION'] = { url:'views/experiments/transformations/index.jsp', width:500, height:300 }; 550 this.controllers['BIOMATERIALEVENT'] = { url:'biomaterials/events/index.jsp', width:600, height:400 }; 551 this.controllers['BIOMATERIALLIST'] = { url:'biomaterials/lists/index.jsp', width:600, height:400 }; 552 this.controllers['BIOPLATE'] = { url:'biomaterials/bioplates/index.jsp', width:750, height:500 }; 553 this.controllers['BIOPLATEEVENT'] = { url:'biomaterials/bioplates/events/index.jsp', width:600, height:400 }; 554 this.controllers['BIOPLATEEVENTTYPE'] = { url:'biomaterials/bioplateeventtypes/index.jsp', width:600, height:400 }; 555 this.controllers['BIOPLATETYPE'] = { url:'biomaterials/bioplatetypes/index.jsp', width:600, height:400 }; 556 this.controllers['BIOSOURCE'] = { url:'biomaterials/biosources/index.jsp', width:750, height:500 }; 557 this.controllers['BIOWELL'] = { url:'biomaterials/bioplates/wells/index.jsp', width:480, height:320 }; 558 this.controllers['CLIENT'] = { url:'admin/clients/index.jsp', width:450, height:300 }; 559 this.controllers['CHANGEHISTORY'] = { url:'common/history/index.jsp', width:600, height:480, edit:false, popup:true }; 560 this.controllers['DATAFILETYPE'] = { url:'admin/datafiletypes/index.jsp', width:600, height:400 }; 561 this.controllers['DERIVEDBIOASSAY'] = { url:'views/derivedbioassays/index.jsp', width:750, height:500 }; 562 this.controllers['DIRECTORY'] = { url:'filemanager/directories/index.jsp', width:600, height:400, popup:true }; 563 this.controllers['EXPERIMENT'] = { url:'views/experiments/index.jsp', width:750, height:500 }; 564 this.controllers['EXTRACT'] = { url:'biomaterials/extracts/index.jsp', width:750, height:500 }; 565 this.controllers['EXTRAVALUE'] = { url:'views/experiments/extravalues/index.jsp', width:500, height:340, edit:false }; 566 this.controllers['EXTRAVALUETYPE'] = { url:'admin/extravaluetypes/index.jsp', width:600, height:400 }; 567 this.controllers['FEATURE'] = { url:'lims/arraydesigns/features/index.jsp', width:750, height:500, popup:true, edit:false }; 568 this.controllers['FILE'] = { url:'filemanager/index.jsp', width:600, height:400 }; 569 this.controllers['FILESERVER'] = { url:'filemanager/fileservers/index.jsp', width:600, height:400 }; 570 this.controllers['FORMULA'] = { url:'views/formulas/index.jsp', width:750, height:500 }; 571 this.controllers['GROUP'] = { url:'admin/groups/index.jsp', width:600, height:400 }; 572 this.controllers['HARDWARE'] = { url:'admin/hardware/index.jsp', width:450, height:300 }; 573 this.controllers['HELP'] = { url:'admin/clients/help/index.jsp', width:600, height:400 }; 574 this.controllers['ITEMSUBTYPE'] = { url:'admin/itemsubtypes/index.jsp', width:600, height:400 }; 545 575 this.controllers['JOB'] = { url:'views/jobs/index.jsp', width:750, height:500, popup:true, edit:false }; 546 this.controllers['FORMULA'] = { url:'views/formulas/index.jsp', width:750, height:500 }; 576 this.controllers['JOBAGENT'] = { url:'admin/jobagents/index.jsp', width:600, height:400 }; 577 this.controllers['MESSAGE'] = { url:'my_base/messages/index.jsp', width:600, height:400, popup:true, edit:false }; 578 this.controllers['MIMETYPE'] = { url:'admin/mimetypes/index.jsp', width:600, height:400 }; 579 this.controllers['NEWS'] = { url:'admin/news/index.jsp', width:600, height:400 }; 580 this.controllers['PERMISSIONTEMPLATE'] = { url:'views/permissiontemplates/index.jsp', width:450, height:300 }; 547 581 this.controllers['PHYSICALBIOASSAY'] = { url:'views/physicalbioassays/index.jsp', width:750, height:500 }; 548 this.controllers['DERIVEDBIOASSAY'] = { url:'views/derivedbioassays/index.jsp', width:750, height:500 }; 582 this.controllers['PLATE'] = { url:'lims/plates/index.jsp', width:750, height:500 }; 583 this.controllers['PLATEEVENT'] = { url:'lims/plates/events/index.jsp', width:600, height:400 }; 584 this.controllers['PLATEEVENTTYPE'] = { url:'lims/platetypes/eventtypes/index.jsp', width:450, height:300 }; 585 this.controllers['PLATEGEOMETRY'] = { url:'lims/geometries/index.jsp', width:450, height:300 }; 586 this.controllers['PLATEMAPPING'] = { url:'lims/platemappings/index.jsp', width:600, height:400 }; 587 this.controllers['PLATETYPE'] = { url:'lims/platetypes/index.jsp', width:450, height:300 }; 588 this.controllers['PLATFORM'] = { url:'admin/platforms/index.jsp', width:600, height:400 }; 589 this.controllers['PLATFORMVARIANT'] = { url:'admin/platforms/variants/index.jsp', width:600, height:400 }; 590 this.controllers['PLUGINCONFIGURATION'] = { url:'admin/pluginconfigurations/index.jsp', width:600, height:400 }; 591 this.controllers['PLUGINDEFINITION'] = { url:'admin/plugindefinitions/index.jsp', width:750, height:500 }; 592 this.controllers['PLUGINTYPE'] = { url:'admin/plugintypes/index.jsp', width:600, height:400 }; 593 this.controllers['PROJECT'] = { url:'my_base/projects/index.jsp', width:600, height:400 }; 594 this.controllers['PROTOCOL'] = { url:'admin/protocols/index.jsp', width:750, height:500 }; 595 this.controllers['QUANTITY'] = { url:'admin/quantities/index.jsp', width:450, height:300 }; 596 this.controllers['QUOTA'] = { url:'admin/quota/index.jsp', width:750, height:500 }; 597 this.controllers['QUOTATYPE'] = { url:'admin/quotatypes/index.jsp', width:450, height:300 }; 549 598 this.controllers['RAWBIOASSAY'] = { url:'views/rawbioassays/index.jsp', width:750, height:500 }; 550 599 this.controllers['RAWDATA'] = { url:'views/rawbioassays/rawdata/index.jsp', width:750, height:500, popup: true, edit:false }; 600 this.controllers['REPORTER'] = { url:'views/reporters/index.jsp', width:600, height:400 }; 601 this.controllers['REPORTERCLONETEMPLATE'] = { url:'admin/reporterclonetemplates/index.jsp', width:750, height:500 }; 551 602 this.controllers['REPORTERLIST'] = { url:'views/reporterlists/index.jsp', width:600, height:400 }; 552 this.controllers['REPORTER'] = { url:'views/reporters/index.jsp', width:600, height:400 };553 603 this.controllers['REPORTERSCORE'] = this.controllers['REPORTER']; 554 this.controllers['SCAN'] = { url:'views/scans/index.jsp', width:800, height:500 }; 555 this.controllers['IMAGE'] = { url:'views/scans/images/index.jsp', width:500, height:340 }; 604 this.controllers['REPORTERTYPE'] = { url:'admin/reportertypes/index.jsp', width:450, height:300 }; 605 this.controllers['ROLE'] = { url:'admin/roles/index.jsp', width:600, height:400 }; 606 this.controllers['SAMPLE'] = { url:'biomaterials/samples/index.jsp', width:750, height:500 }; 556 607 this.controllers['SESSION'] = { url:'views/sessions/index.jsp', width:450, height:300, popup:true, edit:false }; 608 this.controllers['SOFTWARE'] = { url:'admin/software/index.jsp', width:450, height:300 }; 557 609 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 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:400 }; 566 this.controllers['BIOPLATEEVENTTYPE'] = { url:'biomaterials/bioplateeventtypes/index.jsp', width:600, height:400 }; 567 this.controllers['BIOWELL'] = { url:'biomaterials/bioplates/wells/index.jsp', width:480, height:320 }; 568 this.controllers['MESSAGE'] = { url:'my_base/messages/index.jsp', width:600, height:400, popup:true, edit:false }; 569 this.controllers['PROJECT'] = { url:'my_base/projects/index.jsp', width:600, height:400 }; 570 this.controllers['PERMISSIONTEMPLATE'] = { url:'views/permissiontemplates/index.jsp', width:450, height:300 }; 571 this.controllers['FILE'] = { url:'filemanager/index.jsp', width:600, height:400 }; 572 this.controllers['FILESERVER'] = { url:'filemanager/fileservers/index.jsp', width:600, height:400 }; 573 this.controllers['DIRECTORY'] = { url:'filemanager/directories/index.jsp', width:600, height:400, popup:true }; 574 this.controllers['ARRAYBATCH'] = { url:'lims/arraybatches/index.jsp', width:750, height:500 }; 575 this.controllers['ARRAYDESIGN'] = { url:'lims/arraydesigns/index.jsp', width:750, height:500 }; 576 this.controllers['FEATURE'] = { url:'lims/arraydesigns/features/index.jsp', width:750, height:500, popup:true, edit:false }; 577 this.controllers['ARRAYSLIDE'] = { url:'lims/arrayslides/index.jsp', width:750, height:500 }; 578 this.controllers['PLATEGEOMETRY'] = { url:'lims/geometries/index.jsp', width:450, height:300 }; 579 this.controllers['PLATEMAPPING'] = { url:'lims/platemappings/index.jsp', width:600, height:400 }; 580 this.controllers['PLATE'] = { url:'lims/plates/index.jsp', width:750, height:500 }; 610 this.controllers['TRANSFORMATION'] = { url:'views/experiments/transformations/index.jsp', width:500, height:300 }; 611 this.controllers['UNIT'] = { url:'admin/quantities/units/index.jsp', width:600, height:400 }; 612 this.controllers['USER'] = { url:'admin/users/index.jsp', width:750, height:500 }; 581 613 this.controllers['WELL'] = { url:'lims/plates/wells/index.jsp', width:750, height:500 }; 582 this.controllers['PLATEEVENT'] = { url:'lims/plates/events/index.jsp', width:600, height:400 };583 this.controllers['PLATETYPE'] = { url:'lims/platetypes/index.jsp', width:450, height:300 };584 this.controllers['PLATEEVENTTYPE'] = { url:'lims/platetypes/eventtypes/index.jsp', width:450, height:300 };585 this.controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:540, height:420 };586 this.controllers['ANNOTATIONTYPECATEGORY'] = { url:'admin/annotationtypecategories/index.jsp', width:540, height:400 };587 this.controllers['CLIENT'] = { url:'admin/clients/index.jsp', width:450, height:300 };588 this.controllers['HELP'] = { url:'admin/clients/help/index.jsp', width:600, height:400 };589 this.controllers['GROUP'] = { url:'admin/groups/index.jsp', width:600, height:400 };590 this.controllers['HARDWARE'] = { url:'admin/hardware/index.jsp', width:450, height:300 };591 this.controllers['MIMETYPE'] = { url:'admin/mimetypes/index.jsp', width:540, height:400 };592 this.controllers['NEWS'] = { url:'admin/news/index.jsp', width:600, height:400 };593 this.controllers['PLUGINCONFIGURATION'] = { url:'admin/pluginconfigurations/index.jsp', width:800, height:500 };594 this.controllers['PLUGINDEFINITION'] = { url:'admin/plugindefinitions/index.jsp', width:800, height:500 };595 this.controllers['PLUGINTYPE'] = { url:'admin/plugintypes/index.jsp', width:700, height:400 };596 this.controllers['JOBAGENT'] = { url:'admin/jobagents/index.jsp', width:700, height:400 };597 this.controllers['PROTOCOL'] = { url:'admin/protocols/index.jsp', width:750, height:500 };598 this.controllers['QUOTA'] = { url:'admin/quota/index.jsp', width:750, height:500 };599 this.controllers['QUOTATYPE'] = { url:'admin/quotatypes/index.jsp', width:500, height:340 };600 this.controllers['REPORTERTYPE'] = { url:'admin/reportertypes/index.jsp', width:500, height:340 };601 this.controllers['ROLE'] = { url:'admin/roles/index.jsp', width:600, height:400 };602 this.controllers['SOFTWARE'] = { url:'admin/software/index.jsp', width:450, height:300 };603 this.controllers['USER'] = { url:'admin/users/index.jsp', width:750, height:500 };604 this.controllers['ANYTOANY'] = { url:'common/anytoany/index.jsp', width:500, height:340, popup:true };605 this.controllers['EXTRAVALUETYPE'] = { url:'admin/extravaluetypes/index.jsp', width:500, height:400 };606 this.controllers['EXTRAVALUE'] = { url:'views/experiments/extravalues/index.jsp', width:500, height:340, edit:false };607 this.controllers['PLATFORM'] = { url:'admin/platforms/index.jsp', width:540, height:400 };608 this.controllers['PLATFORMVARIANT'] = { url:'admin/platforms/variants/index.jsp', width:540, height:400 };609 this.controllers['DATAFILETYPE'] = { url:'admin/datafiletypes/index.jsp', width:600, height:480 };610 this.controllers['QUANTITY'] = { url:'admin/quantities/index.jsp', width:600, height:480 };611 this.controllers['UNIT'] = { url:'admin/quantities/units/index.jsp', width:600, height:480 };612 this.controllers['CHANGEHISTORY'] = { url:'common/history/index.jsp', width:600, height:480, edit:false, popup:true };613 this.controllers['ANNOTATION'] = { url:'common/annotations/index.jsp', width:700, height:480, edit:true, popup:true };614 this.controllers['ITEMSUBTYPE'] = { url:'admin/itemsubtypes/index.jsp', width:640, height:440 };615 this.controllers['REPORTERCLONETEMPLATE'] = { url:'admin/reporterclonetemplates/index.jsp', width:750, height:500 };616 614 } 617 615
Note: See TracChangeset
for help on using the changeset viewer.