Changeset 5069
- Timestamp:
- Aug 20, 2009, 10:53:16 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/data/ExperimentData.java
r4889 r5069 40 40 public class ExperimentData 41 41 extends CommonData 42 implements DiskConsumableData, RegisteredData 42 implements DiskConsumableData, RegisteredData, LoggableData 43 43 { 44 44 -
trunk/www/admin/pluginconfigurations/view_configuration.jsp
r5040 r5069 49 49 import="net.sf.basedb.util.ToStringComparator" 50 50 import="net.sf.basedb.clients.web.Base" 51 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 51 52 import="net.sf.basedb.clients.web.PermissionUtil" 52 53 import="net.sf.basedb.clients.web.util.HTML" … … 82 83 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 83 84 final int itemId = cc.getId(); 85 final String tab = Values.getString(request.getParameter("tab"), "properties"); 84 86 final float scale = Base.getScale(sc); 85 87 final DbControl dc = sc.newDbControl(); … … 170 172 Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id=<%=itemId%>', 'ConfigurePlugin', 800, 600); 171 173 } 174 function switchTab(tabControlId, tabId) 175 { 176 if (TabControl.isActive(tabControlId, tabId)) return; 177 if (tabId == 'history' && tabId != '<%=tab%>') 178 { 179 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; 180 } 181 else 182 { 183 TabControl.setActiveTab(tabControlId, tabId); 184 } 185 } 172 186 </script> 173 187 </base:head> … … 179 193 </p:path> 180 194 181 <t:tabcontrol id="main" active=" properties">195 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 182 196 <t:tab id="properties" title="Properties"> 183 197 <tbl:toolbar … … 523 537 </div> 524 538 </t:tab> 525 539 <t:tab id="history" title="Change history" 540 tooltip="Displays a log of all modifications made to this item" 541 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 542 <% 543 if ("history".equals(tab)) 544 { 545 %> 546 <jsp:include page="../../common/history/frameset.jsp"> 547 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 548 <jsp:param name="source_id" value="<%=itemId%>" /> 549 <jsp:param name="ID" value="<%=ID%>" /> 550 </jsp:include> 551 <% 552 } 553 %> 554 </t:tab> 526 555 </t:tabcontrol> 527 556 -
trunk/www/admin/protocols/view_protocol.jsp
r5042 r5069 49 49 import="net.sf.basedb.core.query.Hql" 50 50 import="net.sf.basedb.clients.web.Base" 51 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 51 52 import="net.sf.basedb.clients.web.PermissionUtil" 52 53 import="net.sf.basedb.clients.web.util.HTML" … … 78 79 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 79 80 final int itemId = cc.getId(); 81 final String tab = Values.getString(request.getParameter("tab"), "properties"); 80 82 final float scale = Base.getScale(sc); 81 83 final DbControl dc = sc.newDbControl(); … … 140 142 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 740, 540); 141 143 } 144 function switchTab(tabControlId, tabId) 145 { 146 if (TabControl.isActive(tabControlId, tabId)) return; 147 if (tabId == 'history' && tabId != '<%=tab%>') 148 { 149 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; 150 } 151 else 152 { 153 TabControl.setActiveTab(tabControlId, tabId); 154 } 155 } 142 156 </script> 143 157 </base:head> … … 149 163 </p:path> 150 164 151 <t:tabcontrol id="main" active=" properties">165 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 152 166 <t:tab id="properties" title="Properties"> 153 167 … … 455 469 </div> 456 470 </t:tab> 457 471 <t:tab id="history" title="Change history" 472 tooltip="Displays a log of all modifications made to this item" 473 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 474 <% 475 if ("history".equals(tab)) 476 { 477 %> 478 <jsp:include page="../../common/history/frameset.jsp"> 479 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 480 <jsp:param name="source_id" value="<%=itemId%>" /> 481 <jsp:param name="ID" value="<%=ID%>" /> 482 </jsp:include> 483 <% 484 } 485 %> 486 </t:tab> 458 487 </t:tabcontrol> 459 488 -
trunk/www/views/experiments/bioassaysets/list_bioassaysets.jsp
r4889 r5069 49 49 import="net.sf.basedb.util.Tree" 50 50 import="net.sf.basedb.clients.web.Base" 51 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 51 52 import="net.sf.basedb.clients.web.ModeInfo" 52 53 import="net.sf.basedb.clients.web.util.HTML" … … 205 206 function switchTab(tabControlId, tabId) 206 207 { 207 if (tabId == 'properties' || tabId == 'overview' )208 if (tabId == 'properties' || tabId == 'overview' || tabId == 'history') 208 209 { 209 210 location.href = '../index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=experimentId%>&tab='+tabId; … … 242 243 <t:tab id="overview" title="Overview" 243 244 tooltip="Display a tree overview of related items" /> 245 <t:tab id="history" title="Change history" 246 tooltip="Displays a log of all modifications made to this item" 247 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>" /> 244 248 </t:tabcontrol> 245 249 -
trunk/www/views/experiments/view_experiment.jsp
r4889 r5069 54 54 import="net.sf.basedb.clients.web.Base" 55 55 import="net.sf.basedb.clients.web.PermissionUtil" 56 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 56 57 import="net.sf.basedb.clients.web.util.HTML" 57 58 import="net.sf.basedb.util.Values" … … 166 167 { 167 168 if (TabControl.isActive(tabControlId, tabId)) return; 168 if ( tabId == 'overview'&& tabId != '<%=tab%>')169 if ((tabId == 'overview' || tabId == 'history') && tabId != '<%=tab%>') 169 170 { 170 171 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; … … 802 803 %> 803 804 </t:tab> 805 <t:tab id="history" title="Change history" 806 tooltip="Displays a log of all modifications made to this item" 807 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 808 <% 809 if ("history".equals(tab)) 810 { 811 %> 812 <jsp:include page="../../common/history/frameset.jsp"> 813 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 814 <jsp:param name="source_id" value="<%=itemId%>" /> 815 <jsp:param name="ID" value="<%=ID%>" /> 816 </jsp:include> 817 <% 818 } 819 %> 820 </t:tab> 804 821 </t:tabcontrol> 805 822
Note: See TracChangeset
for help on using the changeset viewer.