Changeset 5065
- Timestamp:
- Aug 19, 2009, 2:42:25 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/data/FileData.java
r4889 r5065 38 38 public class FileData 39 39 extends CommonData 40 implements DiskConsumableData 40 implements DiskConsumableData, LoggableData 41 41 { 42 42 /* -
trunk/src/core/net/sf/basedb/core/data/FormulaData.java
r4917 r5065 39 39 public class FormulaData 40 40 extends CommonData 41 implements RegisteredData 41 implements RegisteredData, LoggableData 42 42 { 43 43 -
trunk/www/filemanager/files/view_file.jsp
r5045 r5065 44 44 import="net.sf.basedb.core.Project" 45 45 import="net.sf.basedb.clients.web.Base" 46 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 46 47 import="net.sf.basedb.clients.web.PermissionUtil" 47 48 import="net.sf.basedb.clients.web.util.HTML" … … 73 74 final int itemId = cc.getId(); 74 75 final float scale = Base.getScale(sc); 76 final String tab = Values.getString(request.getParameter("tab"), "properties"); 75 77 final DbControl dc = sc.newDbControl(); 76 78 try … … 102 104 %> 103 105 <base:page type="popup" title="<%=title%>"> 104 <base:head scripts="table.js " styles="table.css,toolbar.css">106 <base:head scripts="table.js,tabcontrol.js" styles="table.css,toolbar.css,headertabcontrol.css"> 105 107 <ext:scripts context="<%=jspContext%>" /> 106 108 <ext:stylesheets context="<%=jspContext%>" /> … … 168 170 Main.openPopup('index.jsp?ID=<%=ID%>&cmd=EditFileData&item_id=<%=itemId%>', 'EditFileData', 900, 700); 169 171 } 172 function switchTab(tabControlId, tabId) 173 { 174 if (TabControl.isActive(tabControlId, tabId)) return; 175 if (tabId == 'history' && tabId != '<%=tab%>') 176 { 177 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; 178 } 179 else 180 { 181 TabControl.setActiveTab(tabControlId, tabId); 182 } 183 } 170 184 </script> 171 185 </base:head> 172 186 <base:body> 187 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 188 <t:tab id="properties" title="Properties"> 173 189 <tbl:toolbar 174 190 > … … 528 544 } 529 545 %> 530 531 532 546 </div> 533 547 </form> 534 548 </t:tab> 549 <t:tab id="history" title="Change history" 550 tooltip="Displays a log of all modifications made to this item" 551 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 552 <% 553 if ("history".equals(tab)) 554 { 555 %> 556 <jsp:include page="../../common/history/frameset.jsp"> 557 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 558 <jsp:param name="source_id" value="<%=itemId%>" /> 559 <jsp:param name="ID" value="<%=ID%>" /> 560 </jsp:include> 561 <% 562 } 563 %> 564 </t:tab> 565 </t:tabcontrol> 535 566 </base:body> 536 567 </base:page> -
trunk/www/views/formulas/view_formula.jsp
r5045 r5065 45 45 import="net.sf.basedb.util.Values" 46 46 import="net.sf.basedb.clients.web.Base" 47 import="net.sf.basedb.clients.web.ChangeHistoryUtil" 47 48 import="net.sf.basedb.clients.web.PermissionUtil" 48 49 import="net.sf.basedb.clients.web.util.HTML" … … 74 75 final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null); 75 76 final int itemId = cc.getId(); 77 final String tab = Values.getString(request.getParameter("tab"), "properties"); 76 78 final float scale = Base.getScale(sc); 77 79 final DbControl dc = sc.newDbControl(); … … 139 141 Main.openPopup('index.jsp?ID=<%=ID%>&cmd='+cmd+'&item_id=<%=itemId%>', 'RunPlugin'+cmd, 740, 540); 140 142 } 143 function switchTab(tabControlId, tabId) 144 { 145 if (TabControl.isActive(tabControlId, tabId)) return; 146 if (tabId == 'history' && tabId != '<%=tab%>') 147 { 148 location.href = 'index.jsp?ID=<%=ID%>&cmd=ViewItem&item_id=<%=itemId%>&tab='+tabId; 149 } 150 else 151 { 152 TabControl.setActiveTab(tabControlId, tabId); 153 } 154 } 141 155 </script> 142 156 </base:head> … … 148 162 </p:path> 149 163 150 <t:tabcontrol id="main" active=" properties">164 <t:tabcontrol id="main" active="<%=tab%>" switch="switchTab" remember="false"> 151 165 <t:tab id="properties" title="Properties"> 152 166 <tbl:toolbar … … 427 441 </div> 428 442 </t:tab> 443 <t:tab id="history" title="Change history" 444 tooltip="Displays a log of all modifications made to this item" 445 visible="<%=ChangeHistoryUtil.showChangeHistoryTab(sc)%>"> 446 <% 447 if ("history".equals(tab)) 448 { 449 %> 450 <jsp:include page="../../common/history/frameset.jsp"> 451 <jsp:param name="source_type" value="<%=itemType.name()%>" /> 452 <jsp:param name="source_id" value="<%=itemId%>" /> 453 <jsp:param name="ID" value="<%=ID%>" /> 454 </jsp:include> 455 <% 456 } 457 %> 458 </t:tab> 429 459 </t:tabcontrol> 430 460
Note: See TracChangeset
for help on using the changeset viewer.