| 272 | return output |
| 273 | |
| 274 | def RoundEdge(contents, color="green"): |
| 275 | result = """ |
| 276 | <table cellspacing="0" cellpadding="0" border="0"> |
| 277 | <tr> |
| 278 | <td width=8 height=8 style="background:url(<imgfol>edges/<col>_e1.gif)"> |
| 279 | <img src="<imgfol>edges/spacer.gif" width=8 height=8 alt="" /></td> |
| 280 | <td width="100%%" height=8 style="background:url(<imgfol>edges/<col>_e2.gif)"><img src="<imgfol>edges/spacer.gif" width=1 height=8 alt="" /></td> |
| 281 | <td width=8 height=8 style="background:url(<imgfol>edges/<col>_e3.gif)"><img src="<imgfol>edges/spacer.gif" width=8 height=8 alt="" /></td> |
| 282 | </tr> |
| 283 | <tr> |
| 284 | <td width=8 style="background:url(<imgfol>edges/<col>_e4.gif)"><img src="<imgfol>edges/spacer.gif" width=8 height=1 alt="" /></td> |
| 285 | <td>%s</td> |
| 286 | <td width=8 style="background:url(<imgfol>edges/<col>_e5.gif)"><img src="<imgfol>edges/spacer.gif" width=8 height=1 alt="" /></td> |
| 287 | </tr> |
| 288 | <tr> |
| 289 | <td width=8 height=8 style="background:url(<imgfol>edges/<col>_e6.gif)"><img src="<imgfol>edges/spacer.gif" width=8 height=8 alt="" /></td> |
| 290 | <td height=8 style="background:url(<imgfol>edges/<col>_e7.gif)"><img src="<imgfol>edges/spacer.gif" width=1 height=8 alt="" /></td> |
| 291 | <td width=8 height=8 style="background:url(<imgfol>edges/<col>_e8.gif)"><img src="<imgfol>edges/spacer.gif" width=8 height=8 alt="" /></td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | """ |
| 295 | result = result.replace("<imgfol>", imgfol) |
| 296 | result = result.replace("<col>", color) |
| 297 | result = result % contents |
| 298 | return result |