Changeset 2171
- Timestamp:
- Apr 20, 2006, 4:08:06 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 15 added
- 3 deleted
- 66 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/3rd-party-components.txt
r1928 r2171 165 165 Jar files : jfreechart-1.0.0.jar jcommon-1.0.0.jar 166 166 167 168 Silk icon set 169 ------------- 170 A very nice icon set containing 1000 icons. The entire icon set 171 is available in the "misc" directory. We have converted the icons 172 to GIF format (since we didn't want to scan through all web pages 173 and replace .gif with .png). We have also created some new icons which 174 are merely combinations of other icons, ie. taking an arrow on one icon 175 an putting it on another. 176 177 More info : http://www.famfamfam.com/lab/icons/silk/ 178 Version : 1.3 179 License : Creative Commons Attribution 2.5 License 180 (http://creativecommons.org/licenses/by/2.5/) 181 182 183 184 185 186 -
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/Button.java
r1801 r2171 24 24 */ 25 25 package net.sf.basedb.clients.web.taglib; 26 27 import java.util.HashMap; 28 import java.util.Map; 26 29 27 30 import javax.servlet.jsp.JspException; … … 49 52 title=... 50 53 tooltip=... 54 image=... 51 55 visible=true|false 52 56 disabled=true|false … … 120 124 </tr> 121 125 <tr> 126 <td>image</td> 127 <td></td> 128 <td>no</td> 129 <td> 130 An optional image to display. An image is automatically 131 selected if the title is "Close", "Cancel", "Save", "Ok", "Yes" or "No". 132 </td> 133 </tr> 134 <tr> 122 135 <td>visible</td> 123 136 <td>true</td> … … 144 157 { 145 158 159 private static final Map<String, String> defaultImages = new HashMap<String, String>(); 160 static 161 { 162 defaultImages.put("cancel", "cancel.gif"); 163 defaultImages.put("close", "close.gif"); 164 defaultImages.put("save", "save.gif"); 165 defaultImages.put("ok", "ok.gif"); 166 defaultImages.put("yes", "yes.gif"); 167 defaultImages.put("no", "no.gif"); 168 } 169 146 170 private ButtonGroup buttonGroup; 147 171 … … 181 205 private boolean disabled = false; 182 206 207 /** 208 The image to display. 209 */ 210 private String image = null; 183 211 184 212 /* … … 220 248 return title; 221 249 } 250 251 public void setImage(String image) 252 { 253 this.image = image; 254 } 255 public String getImage() 256 { 257 return image; 258 } 222 259 223 260 public void setTooltip(String tooltip) … … 251 288 throws JspException 252 289 { 290 if (!isVisible()) return SKIP_BODY; 253 291 if ((getParent() instanceof ButtonGroup)) buttonGroup = (ButtonGroup)getParent(); 254 if (!isVisible()) return SKIP_BODY; 292 Page page = (Page)findAncestorWithClass(this, Page.class); 293 294 String theImage = getImage(); 295 if (theImage == null && getTitle() != null) 296 { 297 theImage = defaultImages.get(getTitle().toLowerCase()); 298 } 299 255 300 StringBuilder sb = new StringBuilder(); 256 301 sb.append("<div"); … … 270 315 sb.append("><div"); 271 316 if (getClazz() != null) sb.append(" class=\"").append(getClazz()).append("_inner\""); 272 sb.append(">").append(getTitle()).append("</div></div>"); 317 sb.append(">"); 318 if (theImage != null) 319 { 320 sb.append("<img src=\"").append(page.getRoot()).append("images/").append(theImage).append("\""); 321 sb.append(" border=\"0\"> "); 322 } 323 sb.append(getTitle()).append("</div></div>"); 273 324 try 274 325 { -
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/table/Button.java
r1801 r2171 283 283 throws JspException 284 284 { 285 if (!isVisible()) return SKIP_BODY; 285 286 if (!(getParent() instanceof Toolbar)) throw new JspTagException("Tag <tbl:button> must be inside a <tbl:toolbar> tag"); 286 287 table = ((Toolbar)getParent()).getTable(); 287 288 Page page = table != null ? table.getPage() : (Page)findAncestorWithClass(this, Page.class); 288 if (!isVisible()) return SKIP_BODY;289 289 290 290 StringBuilder sb = new StringBuilder(); … … 306 306 if (getImage() != null) 307 307 { 308 sb.append("<img src=\"").append(page.getRoot()).append("images/").append( image).append("\"");309 sb.append(" align=\"absmiddle\"border=\"0\">");308 sb.append("<img src=\"").append(page.getRoot()).append("images/").append(getImage()).append("\""); 309 sb.append(" border=\"0\">"); 310 310 } 311 311 if (getTitle() != null) sb.append(" ").append(getTitle()).append(" "); -
trunk/www/WEB-INF/base.tld
r2129 r2171 234 234 </attribute> 235 235 <attribute> 236 <name>image</name> 237 <required>false</required> 238 <rtexprvalue>true</rtexprvalue> 239 </attribute> 240 <attribute> 236 241 <name>visible</name> 237 242 <required>false</required> -
trunk/www/filemanager/directories/list_directories.jsp
r2158 r2171 192 192 <tbl:toolbar> 193 193 <tbl:button 194 image=" new.gif"194 image="directory_new.gif" 195 195 onclick="newDirectory()" 196 196 title="New…" … … 227 227 <table align="center"> 228 228 <tr> 229 <td><base:button onclick="refresh()" title="Refresh" /></td>229 <td><base:button onclick="refresh()" title="Refresh" image="refresh.gif" /></td> 230 230 </tr> 231 231 </table> -
trunk/www/filemanager/files/list_files.jsp
r2041 r2171 452 452 <tbl:button 453 453 disabled="<%=createDirectoryPermission ? false : true%>" 454 image="<%=createDirectoryPermission ? " new.gif" : "new_disabled.gif"%>"454 image="<%=createDirectoryPermission ? "directory_new.gif" : "directory_new_disabled.gif"%>" 455 455 onclick="newDirectory()" 456 456 title="New directory…" … … 459 459 <tbl:button 460 460 disabled="<%=createFilePermission ? false : true%>" 461 image="<%=createFilePermission ? " new.gif" : "new_disabled.gif"%>"461 image="<%=createFilePermission ? "upload.gif" : "upload_disabled.gif"%>" 462 462 onclick="uploadFile(0)" 463 463 title="Upload file…" -
trunk/www/include/styles/main.css
r2017 r2171 57 57 } 58 58 59 h3.light { 60 color: #333377; 61 background: #E0E0E0; 62 font-weight: bold; 63 margin-bottom: 0em; 64 padding: 1px 4px 1px 4px; 65 border: 1px solid #999999; 66 } 67 59 68 h3.docked { 60 69 border-bottom: 0px; … … 75 84 76 85 img { 77 vertical-align: baseline;86 vertical-align: middle; 78 87 } 79 88 … … 239 248 padding: 1px 5px 2px 5px; 240 249 text-align: center; 250 white-space: nowrap; 241 251 } 242 252 … … 250 260 } 251 261 262 .buttonclass_inner img 263 { 264 float: left; 265 } 266 252 267 .fixedatbottom { 253 268 position: fixed; -
trunk/www/info/about.jsp
r2142 r2171 458 458 </t:tab> 459 459 <t:tab id="3rdparty" title="3rd-party software"> 460 BASE is using other software developed by:460 BASE is using other software/material developed by: 461 461 <p> 462 462 <table border="0" cellpadding="0" cellspacing="0"> … … 484 484 <td><b>The JDOM(TM) Project</b> </td> 485 485 <td><a href="http://www.jdom.org" target="_new">http://www.jdom.org</a></td> 486 </tr> 487 <tr> 488 <td><b>Singular systems</b> </td> 489 <td><a href="http://www.singularsys.com/jep/" target="_new">http://www.singularsys.com/jep/</a></td> 490 </tr> 491 <tr> 492 <td><b>JFree software projects</b> </td> 493 <td><a href="http://www.jfree.org/" target="_new">http://www.jfree.org/</a></td> 494 </tr> 495 <tr> 496 <td><b>Mark James</b> </td> 497 <td><a href=" http://www.famfamfam.com/lab/icons/silk/" target="_new"> http://www.famfamfam.com/lab/icons/silk/</a></td> 486 498 </tr> 487 499 </table> -
trunk/www/info/news.jsp
r2007 r2171 58 58 59 59 <table border=0 cellspacing=5 cellpadding=0 width="80%" align="center"> 60 <tr><td><base:icon image=" left_arrow.gif" /><a href="<%=root%>/main.jsp?ID=<%=ID%>">Back to login</a></td></tr>60 <tr><td><base:icon image="back.gif" /><a href="<%=root%>/main.jsp?ID=<%=ID%>">Back to login</a></td></tr> 61 61 <tr> 62 62 <td> -
trunk/www/main.jsp
r1957 r2171 165 165 { 166 166 %> 167 < img src="images/bullet.gif" width=9 height=11 alt="*">167 <base:icon image="bullet.gif" /> 168 168 <a href="javascript:Main.openPopup('info/forgot_password.jsp?ID=<%=ID%>', 'ForgotPassword', 500, 300)" title="Click here if you have forgotten your password">Forgot your password?</a> 169 169 <% … … 172 172 { 173 173 %> 174 < img src="images/bullet.gif" width=9 height=11 alt="*">174 <base:icon image="bullet.gif" /> 175 175 <a href="javascript:Main.openPopup('info/get_account.jsp?ID=<%=ID%>', 'GetAccount', 500, 300)" title="Click here if you want to get an account on this server">Get an account!</a> 176 176 <% … … 197 197 </p> 198 198 <base:icon image="bullet.gif" /> 199 <a href="javascript:Main.openPopup('info/about.jsp?ID=<%=ID%>&page=about', 'About', 500, 350)"> more</a>199 <a href="javascript:Main.openPopup('info/about.jsp?ID=<%=ID%>&page=about', 'About', 500, 350)">More about this server</a> 200 200 <% 201 201 } -
trunk/www/my_base/index.jsp
r2077 r2171 137 137 <td width="50%"> 138 138 139 <h3 class=" docked"><base:icon image="message.gif" /> New messages</h3>139 <h3 class="light docked"><base:icon image="message.gif" /> New messages</h3> 140 140 <div id="messages" class="news welcomesection"> 141 141 <% … … 167 167 </div> 168 168 169 <h3 class=" docked"><base:icon image="project.gif" /> Projects</h3>169 <h3 class="light docked"><base:icon image="project.gif" /> Projects</h3> 170 170 <div id="projects" class="welcomesection"> 171 171 <% … … 215 215 </div> 216 216 217 <h3 class=" docked"><base:icon image="diskusage.gif" /> Disk usage</h3>217 <h3 class="light docked"><base:icon image="diskusage.gif" /> Disk usage</h3> 218 218 <div id="quota" class="welcomesection"> 219 219 <% … … 285 285 { 286 286 %> 287 <h3 class=" docked"><base:icon image="help.gif" /> Help</h3>287 <h3 class="light docked"><base:icon image="help.gif" /> Help</h3> 288 288 <div id="help" class="welcomesection"> 289 289 <% … … 291 291 { 292 292 %> 293 <base:icon image=" help.gif" /> <a href="<%=help%>" target="Help">Help…</a><br>293 <base:icon image="bullet.gif" /> <a href="<%=help%>" target="Help">Help…</a><br> 294 294 <% 295 295 } … … 299 299 { 300 300 %> 301 <base:icon image=" help.gif" /> <a href="<%=faq%>" target="FAQ">Frequently asked questions…</a><br>301 <base:icon image="bullet.gif" /> <a href="<%=faq%>" target="FAQ">Frequently asked questions…</a><br> 302 302 <% 303 303 } … … 307 307 { 308 308 %> 309 <base:icon image=" help.gif" /> <a href="<%=reportBug%>" target="ReportBug">Report a bug…</a><br>309 <base:icon image="bullet.gif" /> <a href="<%=reportBug%>" target="ReportBug">Report a bug…</a><br> 310 310 <% 311 311 } … … 319 319 <td width="50%"> 320 320 321 <h3 class=" docked"><base:icon image="news.gif" /> News and announcements</h3>321 <h3 class="light docked"><base:icon image="news.gif" /> News and announcements</h3> 322 322 <div id="news" class="news welcomesection"> 323 323 <%
Note: See TracChangeset
for help on using the changeset viewer.