Changeset 5961


Ignore:
Timestamp:
Feb 15, 2012, 11:07:54 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1655: GUI improvements

Add biomaterial to list dialog.

Location:
trunk/www/biomaterials/lists/members
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/biomaterials/lists/members/add_members_frameset.jsp

    r5641 r5961  
    6262}
    6363%>
    64   <base:page type="frameset" title="">
    65   <base:head />
    66   <frameset rows="*,45" frameborder="no" border="0" >
    67     <frame name="members" src="../../<%=urlToController%>/index.jsp?ID=<%=ID%>&mode=selectmultiplenobuttons"
    68       scrolling="auto" marginwidth="0" marginheight="0" frameborder="0">
    69     <frame name="control" src="add_members_control.jsp?ID=<%=ID%>&list_id=<%=bioMaterialListId%>"
    70       scrolling="no" marginwidth="0" marginheight="0" frameborder="0">
    71   </frameset>
     64  <base:page type="popup" title="Select biomaterial">
     65  <base:head>
     66  <script language="JavaScript">
     67  function addSelected()
     68  {
     69    var selected = top['members'].Table.getSelected(0);
     70    if (selected.length == 0)
     71    {
     72      alert('Please select at least one item in the list');
     73      return;
     74    }
     75    var frm = document.forms['addMembers'];
     76    frm.which.value = 'selected';
     77    Forms.createHidden(frm, 'items', selected.join(','));
     78    frm.submit();
     79  }
     80  function addCurrentPage()
     81  {
     82    var frm = document.forms['addMembers'];
     83    frm.which.value = 'page';
     84    frm.submit();
     85  }
     86  function addAll()
     87  {
     88    var frm = document.forms['addMembers'];
     89    frm.which.value = 'all';
     90    frm.submit();
     91  }
     92  </script>
     93  </base:head>
     94  <base:body>
     95    <h1>Select biomaterial</h1>
     96   
     97    <div id="f1" class="content"><iframe name="members"
     98      src="../../<%=urlToController%>/index.jsp?ID=<%=ID%>&mode=selectmultiplenobuttons"
     99      style="width: 100%; height: 100%;"></iframe></div>
     100     
     101    <base:buttongroup subclass="dialogbuttons topborder">
     102      <base:button title="Add selected" onclick="addSelected()" />
     103      <base:button title="Add current page" onclick="addCurrentPage()" />
     104      <base:button title="Add all" onclick="addAll()" />
     105      <base:button title="Close" onclick="window.top.close()" />
     106    </base:buttongroup>
     107     
     108    <form name="addMembers" action="index.jsp?ID=<%=ID%>" method="post" target="_top">
     109    <input type="hidden" name="cmd" value="AddMembers">
     110    <input type="hidden" name="list_id" value="<%=bioMaterialListId%>">
     111    <input type="hidden" name="which" value="">
     112    </form>
     113  </base:body>
    72114</base:page>
    73115
Note: See TracChangeset for help on using the changeset viewer.