openfirst-cvscommit Mailing List for openFIRST (Page 12)
Brought to you by:
xtimg
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(41) |
Jun
(210) |
Jul
(39) |
Aug
(153) |
Sep
(147) |
Oct
(173) |
Nov
(81) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(33) |
Feb
(18) |
Mar
|
Apr
(62) |
May
|
Jun
(100) |
Jul
(38) |
Aug
(58) |
Sep
(1) |
Oct
|
Nov
(25) |
Dec
(172) |
2005 |
Jan
(31) |
Feb
(12) |
Mar
(67) |
Apr
(92) |
May
(247) |
Jun
(34) |
Jul
(36) |
Aug
(192) |
Sep
(15) |
Oct
(42) |
Nov
(92) |
Dec
(4) |
2006 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
(53) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(4) |
Apr
(4) |
May
|
Jun
(15) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jamie <ast...@us...> - 2005-08-24 21:56:37
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15593/includes/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien Added Files: Tag: REL1_1_BRANCH persistent-style.css Log Message: directory restructuring --- NEW FILE: persistent-style.css --- .bannercell { BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-TOP: 0px; BORDER-BOTTOM: 0px; BACKGROUND-COLOR: #000 } .bannerlink { DISPLAY: block; COLOR: #000; BACKGROUND-COLOR: #000 } .bordercell { BACKGROUND-COLOR: #000 } .titlecell { BACKGROUND-COLOR: #ccc } .contentcell { BACKGROUND-COLOR: #fff } BODY { BACKGROUND: #fff; MARGIN: 0px; COLOR: #000 } HTML { BACKGROUND: #fff; MARGIN: 0px; COLOR: #000 } .mozillaorgbanner { BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; PADDING-TOP: 0px; BORDER-BOTTOM: 0px } .spacercell { HEIGHT: 3px } .linkcell { WHITE-SPACE: nowrap } .documentinfo { FONT-SIZE: 80% } .listbullet { MARGIN: 0px } .horizbanner { FONT-SIZE: 80% } .document-body { MARGIN: 10px } .horizontal-menu { MARGIN: 1px 3px } A:link { COLOR: #00e } A:visited { COLOR: #551a8b } A:active { COLOR: #f00 } DT { FONT-WEIGHT: bold } .toc DT { FONT-SIZE: 120% } .tasklist DT { FONT-SIZE: 120% } H1 { TEXT-ALIGN: center } .horiz-category-list { TEXT-ALIGN: center } .author { TEXT-ALIGN: center } .important { BORDER-RIGHT: #f00 1px solid; PADDING-RIGHT: 1em; BORDER-TOP: #f00 1px solid; PADDING-LEFT: 1em; PADDING-BOTTOM: 1em; BORDER-LEFT: #f00 1px solid; PADDING-TOP: 1em; BORDER-BOTTOM: #f00 1px solid; BACKGROUND-COLOR: #ff9 } STRONG.stronger { FONT-WEIGHT: bold; FONT-STYLE: italic } STRONG.very-strong { FONT-WEIGHT: bold; COLOR: #f00; FONT-STYLE: italic } .shaded { COLOR: #000; BACKGROUND-COLOR: #eee } |
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15593/includes/functions/wysiwyg/gecko/dev/Midas Demo-Dateien Added Files: Tag: REL1_1_BRANCH backcolor.gif bold.gif colors.htm copy.gif cut.gif forecolor.gif indent.gif italic.gif justifycenter.gif justifyleft.gif justifyright.gif link.gif orderedlist.gif outdent.gif paste.gif redo.gif table.gif underline.gif undo.gif unorderedlist.gif Log Message: directory restructuring --- NEW FILE: unorderedlist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: backcolor.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: underline.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: outdent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: undo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cut.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: redo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: colors.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0051)http://www.mozilla.org/editor/midasdemo/colors.html --> <HTML><HEAD><TITLE>Text Color</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <SCRIPT> function selectColor(color) { parent.document.getElementById("edit").contentDocument.execCommand(parent.command, false, color); parent.document.getElementById("colorpalette").style.visibility="hidden"; parent.document.getElementById("edit").contentWindow.focus(); } function InitColorPalette() { if (document.getElementsByTagName) var x = document.getElementsByTagName('TD'); else if (document.all) var x = document.all.tags('TD'); for (var i=0;i<x.length;i++) { x[i].onmouseover = over; x[i].onmouseout = out; x[i].onclick = click; } } function over() { this.style.border='2px dotted white'; } function out() { this.style.border='1px solid gray'; } function click() { selectColor(this.id); } </SCRIPT> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY bgColor=white onload=InitColorPalette()> <TABLE cellSpacing=1 cellPadding=1 border=1> <TBODY> <TR> <TD id=#FFFFFF width=20 bgColor=#ffffff height=20><IMG height=1 width=1></TD> <TD id=#FFCCCC width=20 bgColor=#ffcccc height=20><IMG height=1 width=1></TD> <TD id=#FFCC99 width=20 bgColor=#ffcc99 height=20><IMG height=1 width=1></TD> <TD id=#FFFF99 width=20 bgColor=#ffff99 height=20><IMG height=1 width=1></TD> <TD id=#FFFFCC width=20 bgColor=#ffffcc height=20><IMG height=1 width=1></TD> <TD id=#99FF99 width=20 bgColor=#99ff99 height=20><IMG height=1 width=1></TD> <TD id=#99FFFF width=20 bgColor=#99ffff height=20><IMG height=1 width=1></TD> <TD id=#CCFFFF width=20 bgColor=#ccffff height=20><IMG height=1 width=1></TD> <TD id=#CCCCFF width=20 bgColor=#ccccff height=20><IMG height=1 width=1></TD> <TD id=#FFCCFF width=20 bgColor=#ffccff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#CCCCCC width=20 bgColor=#cccccc height=20><IMG height=1 width=1></TD> <TD id=#FF6666 width=20 bgColor=#ff6666 height=20><IMG height=1 width=1></TD> <TD id=#FF9966 width=20 bgColor=#ff9966 height=20><IMG height=1 width=1></TD> <TD id=#FFFF66 width=20 bgColor=#ffff66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF33 width=20 bgColor=#ffff33 height=20><IMG height=1 width=1></TD> <TD id=#66FF99 width=20 bgColor=#66ff99 height=20><IMG height=1 width=1></TD> <TD id=#33FFFF width=20 bgColor=#33ffff height=20><IMG height=1 width=1></TD> <TD id=#66FFFF width=20 bgColor=#66ffff height=20><IMG height=1 width=1></TD> <TD id=#9999FF width=20 bgColor=#9999ff height=20><IMG height=1 width=1></TD> <TD id=#FF99FF width=20 bgColor=#ff99ff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#C0C0C0 width=20 bgColor=#c0c0c0 height=20><IMG height=1 width=1></TD> <TD id=#FF0000 width=20 bgColor=#ff0000 height=20><IMG height=1 width=1></TD> <TD id=#FF9900 width=20 bgColor=#ff9900 height=20><IMG height=1 width=1></TD> <TD id=#FFCC66 width=20 bgColor=#ffcc66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF00 width=20 bgColor=#ffff00 height=20><IMG height=1 width=1></TD> <TD id=#33FF33 width=20 bgColor=#33ff33 height=20><IMG height=1 width=1></TD> <TD id=#66CCCC width=20 bgColor=#66cccc height=20><IMG height=1 width=1></TD> <TD id=#33CCFF width=20 bgColor=#33ccff height=20><IMG height=1 width=1></TD> <TD id=#6666CC width=20 bgColor=#6666cc height=20><IMG height=1 width=1></TD> <TD id=#CC66CC width=20 bgColor=#cc66cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#999999 width=20 bgColor=#999999 height=20><IMG height=1 width=1></TD> <TD id=#CC0000 width=20 bgColor=#cc0000 height=20><IMG height=1 width=1></TD> <TD id=#FF6600 width=20 bgColor=#ff6600 height=20><IMG height=1 width=1></TD> <TD id=#FFCC33 width=20 bgColor=#ffcc33 height=20><IMG height=1 width=1></TD> <TD id=#FFCC00 width=20 bgColor=#ffcc00 height=20><IMG height=1 width=1></TD> <TD id=#33CC00 width=20 bgColor=#33cc00 height=20><IMG height=1 width=1></TD> <TD id=#00CCCC width=20 bgColor=#00cccc height=20><IMG height=1 width=1></TD> <TD id=#3366FF width=20 bgColor=#3366ff height=20><IMG height=1 width=1></TD> <TD id=#6633FF width=20 bgColor=#6633ff height=20><IMG height=1 width=1></TD> <TD id=#CC33CC width=20 bgColor=#cc33cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#666666 width=20 bgColor=#666666 height=20><IMG height=1 width=1></TD> <TD id=#990000 width=20 bgColor=#990000 height=20><IMG height=1 width=1></TD> <TD id=#CC6600 width=20 bgColor=#cc6600 height=20><IMG height=1 width=1></TD> <TD id=#CC9933 width=20 bgColor=#cc9933 height=20><IMG height=1 width=1></TD> <TD id=#999900 width=20 bgColor=#999900 height=20><IMG height=1 width=1></TD> <TD id=#009900 width=20 bgColor=#009900 height=20><IMG height=1 width=1></TD> <TD id=#339999 width=20 bgColor=#339999 height=20><IMG height=1 width=1></TD> <TD id=#3333FF width=20 bgColor=#3333ff height=20><IMG height=1 width=1></TD> <TD id=#6600CC width=20 bgColor=#6600cc height=20><IMG height=1 width=1></TD> <TD id=#993399 width=20 bgColor=#993399 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#333333 width=20 bgColor=#333333 height=20><IMG height=1 width=1></TD> <TD id=#660000 width=20 bgColor=#660000 height=20><IMG height=1 width=1></TD> <TD id=#993300 width=20 bgColor=#993300 height=20><IMG height=1 width=1></TD> <TD id=#996633 width=20 bgColor=#996633 height=20><IMG height=1 width=1></TD> <TD id=#666600 width=20 bgColor=#666600 height=20><IMG height=1 width=1></TD> <TD id=#006600 width=20 bgColor=#006600 height=20><IMG height=1 width=1></TD> <TD id=#336666 width=20 bgColor=#336666 height=20><IMG height=1 width=1></TD> <TD id=#000099 width=20 bgColor=#000099 height=20><IMG height=1 width=1></TD> <TD id=#333399 width=20 bgColor=#333399 height=20><IMG height=1 width=1></TD> <TD id=#663366 width=20 bgColor=#663366 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#000000 width=20 bgColor=#000000 height=20><IMG height=1 width=1></TD> <TD id=#330000 width=20 bgColor=#330000 height=20><IMG height=1 width=1></TD> <TD id=#663300 width=20 bgColor=#663300 height=20><IMG height=1 width=1></TD> <TD id=#663333 width=20 bgColor=#663333 height=20><IMG height=1 width=1></TD> <TD id=#333300 width=20 bgColor=#333300 height=20><IMG height=1 width=1></TD> <TD id=#003300 width=20 bgColor=#003300 height=20><IMG height=1 width=1></TD> <TD id=#003333 width=20 bgColor=#003333 height=20><IMG height=1 width=1></TD> <TD id=#000066 width=20 bgColor=#000066 height=20><IMG height=1 width=1></TD> <TD id=#330099 width=20 bgColor=#330099 height=20><IMG height=1 width=1></TD> <TD id=#330033 width=20 bgColor=#330033 height=20><IMG height=1 width=1></TD></TR></TBODY></TABLE></BODY></HTML> --- NEW FILE: justifyright.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: indent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: justifycenter.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: link.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: bold.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: italic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: copy.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: orderedlist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: table.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: justifyleft.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: paste.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: forecolor.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko/gfx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15496/includes/functions/wysiwyg/gecko/gfx Added Files: Tag: REL1_1_BRANCH .DS_Store backcolor.gif bold.gif colors.htm copy.gif cut.gif forecolor.gif indent.gif italic.gif justifycenter.gif justifyleft.gif justifyright.gif link.gif orderedlist.gif outdent.gif paste.gif redo.gif source.gif table.gif underline.gif undo.gif unorderedlist.gif Log Message: directory restructuring --- NEW FILE: indent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: justifycenter.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: justifyleft.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: copy.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: source.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: colors.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0051)http://www.mozilla.org/editor/midasdemo/colors.html --> <HTML><HEAD><TITLE>Text Color</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <SCRIPT> function selectColor(color) { parent.document.getElementById("edit").contentDocument.execCommand(parent.command, false, color); parent.document.getElementById("colorpalette").style.visibility="hidden"; parent.document.getElementById("edit").contentWindow.focus(); } function InitColorPalette() { if (document.getElementsByTagName) var x = document.getElementsByTagName('TD'); else if (document.all) var x = document.all.tags('TD'); for (var i=0;i<x.length;i++) { x[i].onmouseover = over; x[i].onmouseout = out; x[i].onclick = click; } } function over() { this.style.border='2px dotted white'; } function out() { this.style.border='1px solid gray'; } function click() { selectColor(this.id); } </SCRIPT> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY bgColor=white onload=InitColorPalette()> <TABLE cellSpacing=1 cellPadding=1 border=1> <TBODY> <TR> <TD id=#FFFFFF width=20 bgColor=#ffffff height=20><IMG height=1 width=1></TD> <TD id=#FFCCCC width=20 bgColor=#ffcccc height=20><IMG height=1 width=1></TD> <TD id=#FFCC99 width=20 bgColor=#ffcc99 height=20><IMG height=1 width=1></TD> <TD id=#FFFF99 width=20 bgColor=#ffff99 height=20><IMG height=1 width=1></TD> <TD id=#FFFFCC width=20 bgColor=#ffffcc height=20><IMG height=1 width=1></TD> <TD id=#99FF99 width=20 bgColor=#99ff99 height=20><IMG height=1 width=1></TD> <TD id=#99FFFF width=20 bgColor=#99ffff height=20><IMG height=1 width=1></TD> <TD id=#CCFFFF width=20 bgColor=#ccffff height=20><IMG height=1 width=1></TD> <TD id=#CCCCFF width=20 bgColor=#ccccff height=20><IMG height=1 width=1></TD> <TD id=#FFCCFF width=20 bgColor=#ffccff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#CCCCCC width=20 bgColor=#cccccc height=20><IMG height=1 width=1></TD> <TD id=#FF6666 width=20 bgColor=#ff6666 height=20><IMG height=1 width=1></TD> <TD id=#FF9966 width=20 bgColor=#ff9966 height=20><IMG height=1 width=1></TD> <TD id=#FFFF66 width=20 bgColor=#ffff66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF33 width=20 bgColor=#ffff33 height=20><IMG height=1 width=1></TD> <TD id=#66FF99 width=20 bgColor=#66ff99 height=20><IMG height=1 width=1></TD> <TD id=#33FFFF width=20 bgColor=#33ffff height=20><IMG height=1 width=1></TD> <TD id=#66FFFF width=20 bgColor=#66ffff height=20><IMG height=1 width=1></TD> <TD id=#9999FF width=20 bgColor=#9999ff height=20><IMG height=1 width=1></TD> <TD id=#FF99FF width=20 bgColor=#ff99ff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#C0C0C0 width=20 bgColor=#c0c0c0 height=20><IMG height=1 width=1></TD> <TD id=#FF0000 width=20 bgColor=#ff0000 height=20><IMG height=1 width=1></TD> <TD id=#FF9900 width=20 bgColor=#ff9900 height=20><IMG height=1 width=1></TD> <TD id=#FFCC66 width=20 bgColor=#ffcc66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF00 width=20 bgColor=#ffff00 height=20><IMG height=1 width=1></TD> <TD id=#33FF33 width=20 bgColor=#33ff33 height=20><IMG height=1 width=1></TD> <TD id=#66CCCC width=20 bgColor=#66cccc height=20><IMG height=1 width=1></TD> <TD id=#33CCFF width=20 bgColor=#33ccff height=20><IMG height=1 width=1></TD> <TD id=#6666CC width=20 bgColor=#6666cc height=20><IMG height=1 width=1></TD> <TD id=#CC66CC width=20 bgColor=#cc66cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#999999 width=20 bgColor=#999999 height=20><IMG height=1 width=1></TD> <TD id=#CC0000 width=20 bgColor=#cc0000 height=20><IMG height=1 width=1></TD> <TD id=#FF6600 width=20 bgColor=#ff6600 height=20><IMG height=1 width=1></TD> <TD id=#FFCC33 width=20 bgColor=#ffcc33 height=20><IMG height=1 width=1></TD> <TD id=#FFCC00 width=20 bgColor=#ffcc00 height=20><IMG height=1 width=1></TD> <TD id=#33CC00 width=20 bgColor=#33cc00 height=20><IMG height=1 width=1></TD> <TD id=#00CCCC width=20 bgColor=#00cccc height=20><IMG height=1 width=1></TD> <TD id=#3366FF width=20 bgColor=#3366ff height=20><IMG height=1 width=1></TD> <TD id=#6633FF width=20 bgColor=#6633ff height=20><IMG height=1 width=1></TD> <TD id=#CC33CC width=20 bgColor=#cc33cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#666666 width=20 bgColor=#666666 height=20><IMG height=1 width=1></TD> <TD id=#990000 width=20 bgColor=#990000 height=20><IMG height=1 width=1></TD> <TD id=#CC6600 width=20 bgColor=#cc6600 height=20><IMG height=1 width=1></TD> <TD id=#CC9933 width=20 bgColor=#cc9933 height=20><IMG height=1 width=1></TD> <TD id=#999900 width=20 bgColor=#999900 height=20><IMG height=1 width=1></TD> <TD id=#009900 width=20 bgColor=#009900 height=20><IMG height=1 width=1></TD> <TD id=#339999 width=20 bgColor=#339999 height=20><IMG height=1 width=1></TD> <TD id=#3333FF width=20 bgColor=#3333ff height=20><IMG height=1 width=1></TD> <TD id=#6600CC width=20 bgColor=#6600cc height=20><IMG height=1 width=1></TD> <TD id=#993399 width=20 bgColor=#993399 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#333333 width=20 bgColor=#333333 height=20><IMG height=1 width=1></TD> <TD id=#660000 width=20 bgColor=#660000 height=20><IMG height=1 width=1></TD> <TD id=#993300 width=20 bgColor=#993300 height=20><IMG height=1 width=1></TD> <TD id=#996633 width=20 bgColor=#996633 height=20><IMG height=1 width=1></TD> <TD id=#666600 width=20 bgColor=#666600 height=20><IMG height=1 width=1></TD> <TD id=#006600 width=20 bgColor=#006600 height=20><IMG height=1 width=1></TD> <TD id=#336666 width=20 bgColor=#336666 height=20><IMG height=1 width=1></TD> <TD id=#000099 width=20 bgColor=#000099 height=20><IMG height=1 width=1></TD> <TD id=#333399 width=20 bgColor=#333399 height=20><IMG height=1 width=1></TD> <TD id=#663366 width=20 bgColor=#663366 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#000000 width=20 bgColor=#000000 height=20><IMG height=1 width=1></TD> <TD id=#330000 width=20 bgColor=#330000 height=20><IMG height=1 width=1></TD> <TD id=#663300 width=20 bgColor=#663300 height=20><IMG height=1 width=1></TD> <TD id=#663333 width=20 bgColor=#663333 height=20><IMG height=1 width=1></TD> <TD id=#333300 width=20 bgColor=#333300 height=20><IMG height=1 width=1></TD> <TD id=#003300 width=20 bgColor=#003300 height=20><IMG height=1 width=1></TD> <TD id=#003333 width=20 bgColor=#003333 height=20><IMG height=1 width=1></TD> <TD id=#000066 width=20 bgColor=#000066 height=20><IMG height=1 width=1></TD> <TD id=#330099 width=20 bgColor=#330099 height=20><IMG height=1 width=1></TD> <TD id=#330033 width=20 bgColor=#330033 height=20><IMG height=1 width=1></TD></TR></TBODY></TABLE></BODY></HTML> --- NEW FILE: bold.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: .DS_Store --- (This appears to be a binary file; contents omitted.) --- NEW FILE: orderedlist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: backcolor.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: undo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cut.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: outdent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: italic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: unorderedlist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: underline.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: redo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: justifyright.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: link.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: table.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: paste.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: forecolor.gif --- (This appears to be a binary file; contents omitted.) |
From: Jamie <ast...@us...> - 2005-08-24 21:56:13
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko/uti In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15496/includes/functions/wysiwyg/gecko/uti Added Files: Tag: REL1_1_BRANCH colors.htm Log Message: directory restructuring --- NEW FILE: colors.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Text Color</TITLE> <SCRIPT> function selectColor(color) { parent.document.getElementById(parent.dhtmlEditorGecko.myEditObjId).contentDocument.execCommand(parent.dhtmlEditorGecko._command, false, color); parent.document.getElementById(parent.dhtmlEditorGecko.myEditObjId+"colorpalette").style.visibility="hidden"; parent.document.getElementById(parent.dhtmlEditorGecko.myEditObjId).contentWindow.focus(); } function InitColorPalette() { if (document.getElementsByTagName) var x = document.getElementsByTagName('TD'); else if (document.all) var x = document.all.tags('TD'); for (var i=0;i<x.length;i++) { x[i].onmouseover = over; x[i].onmouseout = out; x[i].onclick = click; } } function over() { this.style.border='2px dotted white'; } function out() { this.style.border='1px solid gray'; } function click() { selectColor(this.id); } </SCRIPT> </HEAD> <BODY bgColor=white onload=InitColorPalette()> <TABLE cellSpacing=1 cellPadding=1 border=1> <TBODY> <TR> <TD id=#FFFFFF width=20 bgColor=#ffffff height=20><IMG height=1 width=1></TD> <TD id=#FFCCCC width=20 bgColor=#ffcccc height=20><IMG height=1 width=1></TD> <TD id=#FFCC99 width=20 bgColor=#ffcc99 height=20><IMG height=1 width=1></TD> <TD id=#FFFF99 width=20 bgColor=#ffff99 height=20><IMG height=1 width=1></TD> <TD id=#FFFFCC width=20 bgColor=#ffffcc height=20><IMG height=1 width=1></TD> <TD id=#99FF99 width=20 bgColor=#99ff99 height=20><IMG height=1 width=1></TD> <TD id=#99FFFF width=20 bgColor=#99ffff height=20><IMG height=1 width=1></TD> <TD id=#CCFFFF width=20 bgColor=#ccffff height=20><IMG height=1 width=1></TD> <TD id=#CCCCFF width=20 bgColor=#ccccff height=20><IMG height=1 width=1></TD> <TD id=#FFCCFF width=20 bgColor=#ffccff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#CCCCCC width=20 bgColor=#cccccc height=20><IMG height=1 width=1></TD> <TD id=#FF6666 width=20 bgColor=#ff6666 height=20><IMG height=1 width=1></TD> <TD id=#FF9966 width=20 bgColor=#ff9966 height=20><IMG height=1 width=1></TD> <TD id=#FFFF66 width=20 bgColor=#ffff66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF33 width=20 bgColor=#ffff33 height=20><IMG height=1 width=1></TD> <TD id=#66FF99 width=20 bgColor=#66ff99 height=20><IMG height=1 width=1></TD> <TD id=#33FFFF width=20 bgColor=#33ffff height=20><IMG height=1 width=1></TD> <TD id=#66FFFF width=20 bgColor=#66ffff height=20><IMG height=1 width=1></TD> <TD id=#9999FF width=20 bgColor=#9999ff height=20><IMG height=1 width=1></TD> <TD id=#FF99FF width=20 bgColor=#ff99ff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#C0C0C0 width=20 bgColor=#c0c0c0 height=20><IMG height=1 width=1></TD> <TD id=#FF0000 width=20 bgColor=#ff0000 height=20><IMG height=1 width=1></TD> <TD id=#FF9900 width=20 bgColor=#ff9900 height=20><IMG height=1 width=1></TD> <TD id=#FFCC66 width=20 bgColor=#ffcc66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF00 width=20 bgColor=#ffff00 height=20><IMG height=1 width=1></TD> <TD id=#33FF33 width=20 bgColor=#33ff33 height=20><IMG height=1 width=1></TD> <TD id=#66CCCC width=20 bgColor=#66cccc height=20><IMG height=1 width=1></TD> <TD id=#33CCFF width=20 bgColor=#33ccff height=20><IMG height=1 width=1></TD> <TD id=#6666CC width=20 bgColor=#6666cc height=20><IMG height=1 width=1></TD> <TD id=#CC66CC width=20 bgColor=#cc66cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#999999 width=20 bgColor=#999999 height=20><IMG height=1 width=1></TD> <TD id=#CC0000 width=20 bgColor=#cc0000 height=20><IMG height=1 width=1></TD> <TD id=#FF6600 width=20 bgColor=#ff6600 height=20><IMG height=1 width=1></TD> <TD id=#FFCC33 width=20 bgColor=#ffcc33 height=20><IMG height=1 width=1></TD> <TD id=#FFCC00 width=20 bgColor=#ffcc00 height=20><IMG height=1 width=1></TD> <TD id=#33CC00 width=20 bgColor=#33cc00 height=20><IMG height=1 width=1></TD> <TD id=#00CCCC width=20 bgColor=#00cccc height=20><IMG height=1 width=1></TD> <TD id=#3366FF width=20 bgColor=#3366ff height=20><IMG height=1 width=1></TD> <TD id=#6633FF width=20 bgColor=#6633ff height=20><IMG height=1 width=1></TD> <TD id=#CC33CC width=20 bgColor=#cc33cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#666666 width=20 bgColor=#666666 height=20><IMG height=1 width=1></TD> <TD id=#990000 width=20 bgColor=#990000 height=20><IMG height=1 width=1></TD> <TD id=#CC6600 width=20 bgColor=#cc6600 height=20><IMG height=1 width=1></TD> <TD id=#CC9933 width=20 bgColor=#cc9933 height=20><IMG height=1 width=1></TD> <TD id=#999900 width=20 bgColor=#999900 height=20><IMG height=1 width=1></TD> <TD id=#009900 width=20 bgColor=#009900 height=20><IMG height=1 width=1></TD> <TD id=#339999 width=20 bgColor=#339999 height=20><IMG height=1 width=1></TD> <TD id=#3333FF width=20 bgColor=#3333ff height=20><IMG height=1 width=1></TD> <TD id=#6600CC width=20 bgColor=#6600cc height=20><IMG height=1 width=1></TD> <TD id=#993399 width=20 bgColor=#993399 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#333333 width=20 bgColor=#333333 height=20><IMG height=1 width=1></TD> <TD id=#660000 width=20 bgColor=#660000 height=20><IMG height=1 width=1></TD> <TD id=#993300 width=20 bgColor=#993300 height=20><IMG height=1 width=1></TD> <TD id=#996633 width=20 bgColor=#996633 height=20><IMG height=1 width=1></TD> <TD id=#666600 width=20 bgColor=#666600 height=20><IMG height=1 width=1></TD> <TD id=#006600 width=20 bgColor=#006600 height=20><IMG height=1 width=1></TD> <TD id=#336666 width=20 bgColor=#336666 height=20><IMG height=1 width=1></TD> <TD id=#000099 width=20 bgColor=#000099 height=20><IMG height=1 width=1></TD> <TD id=#333399 width=20 bgColor=#333399 height=20><IMG height=1 width=1></TD> <TD id=#663366 width=20 bgColor=#663366 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#000000 width=20 bgColor=#000000 height=20><IMG height=1 width=1></TD> <TD id=#330000 width=20 bgColor=#330000 height=20><IMG height=1 width=1></TD> <TD id=#663300 width=20 bgColor=#663300 height=20><IMG height=1 width=1></TD> <TD id=#663333 width=20 bgColor=#663333 height=20><IMG height=1 width=1></TD> <TD id=#333300 width=20 bgColor=#333300 height=20><IMG height=1 width=1></TD> <TD id=#003300 width=20 bgColor=#003300 height=20><IMG height=1 width=1></TD> <TD id=#003333 width=20 bgColor=#003333 height=20><IMG height=1 width=1></TD> <TD id=#000066 width=20 bgColor=#000066 height=20><IMG height=1 width=1></TD> <TD id=#330099 width=20 bgColor=#330099 height=20><IMG height=1 width=1></TD> <TD id=#330033 width=20 bgColor=#330033 height=20><IMG height=1 width=1></TD></TR></TBODY></TABLE></BODY></HTML> |
From: Jamie <ast...@us...> - 2005-08-24 21:56:13
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15496/includes/functions/wysiwyg/gecko/js Added Files: Tag: REL1_1_BRANCH .DS_Store .dhtmleditorgecko.js.swp lib.js Log Message: directory restructuring --- NEW FILE: .DS_Store --- (This appears to be a binary file; contents omitted.) --- NEW FILE: .dhtmleditorgecko.js.swp --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lib.js --- /* License, Copyrights, Author: Hans-Juergen Petrich Berlin 22.04.2003 All Copyrights by Hans-Juergen Petrich For private and non profit usage you can use it for free if you not remove or change the Copyrights For all other usage this script requires a license - please contact <pe...@tr...> for fair pricing and license slots */ //pre-init document.dhtmlEditorsGecko_home = document.dhtmlEditors_home + 'gecko/'; function dhtmlEditorGecko(pWidth,pHeight) { //class vars /*{{{*/ //Methods Decl. //Public this.make = ____make; [...1672 lines suppressed...] } head.removeChild(dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(ObjectId)._psaved__showdetails_styleNode); return; } catch(e) {;}; }/*}}}*/ function ____showdetails_onexec(api_info) {/*{{{*/ return dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId'])._psaved__showdetails_mode; }/*}}}*/ } function dhtmlEditorPrepareSubmit() {/*{{{*/ //maps to COLLECT_CONTENT dhtmlEditorGecko.COLLECT_CONTENT(); }/*}}}*/ //Wrap - dont remove!!! dhtmlEditor = dhtmlEditorGecko; |
From: Jamie <ast...@us...> - 2005-08-24 21:56:13
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko/dev In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15496/includes/functions/wysiwyg/gecko/dev Added Files: Tag: REL1_1_BRANCH .DS_Store Converting an app using document_designMode from IE to Midas.htm Midas Demo.htm Midas Specification.htm Text Color.htm Log Message: directory restructuring --- NEW FILE: Midas Specification.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0045)http://www.mozilla.org/editor/midas-spec.html --> <HTML><HEAD><TITLE>Midas Specification</TITLE> <META http-equiv=content-type content="text/html; charset=ISO-8859-1"> <META content="Kathleen Brade" name=author><LINK href="Midas Specification-Dateien/persistent-style.css" type=text/css rel=stylesheet><LINK href="../images/mozilla-16.png" type=image/png rel=icon> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=bannercell vAlign=top><A class=bannerlink href="http://www.mozilla.org/"><IMG class=mozillaorgbanner height=58 alt="" src="Midas Specification-Dateien/mozilla-banner.gif" width=600> </A></TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0> <TBODY> <TR> <TD vAlign=top> <TABLE class=outersidebar border=0> <TBODY> <TR> <TD class=bordercell vAlign=top> <TABLE class=middlesidebar cellSpacing=3 border=0> <TBODY> <TR> <TD class=titlecell vAlign=top> <TABLE class=innersidebar cellSpacing=3 cellPadding=0 border=0> <TBODY> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/"><B>The Mozilla<BR>Organization</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/mozorg.html">At A Glance</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/feedback.html">Feedback</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/get-involved.html">Get Involved</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/community.html">Newsgroups</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/MPL/">License Terms</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/catalog/"><B>Developer Docs</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/roadmap.html">Roadmap</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/projects/">Projects</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/ports/">Ports</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/owners.html">Module Owners</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/hacking/">Hacking</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/source.html">Get the Source</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/build/">Build It</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/quality/"><B>Testing</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/releases/">Download</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://bugzilla.mozilla.org/enter_bug.cgi?format=guided">Report A Bug</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/bugs/">Bugzilla</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/quality/bug-writing-guidelines.html">Bug Writing</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/tools.html"><B>Tools</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://lxr.mozilla.org/seamonkey/">View Source</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey">Tree Status</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=SeaMonkeyAll&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=day&mindate=&maxdate=&cvsroot=%2Fcvsroot">New Checkins</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://bugzilla.mozilla.org/">Submit A Bug</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/faq.html"><B>FAQ</B></A></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/search.html"><B>Search</B></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD> <TD vAlign=top>Last revised: November 15, 2002<BR><BR>Midas is rich text editing controls for a document.<BR><BR> <H1>Enabling Midas:</H1> <DIV style="MARGIN-LEFT: 40px">Given a document, you can add the attribute "designMode" and set it to "on" to get an editable document. For example, in JavaScript, if you have an iframe with an id of 'edit', you can get its contentDocument and set designMode to "on" like this:<BR> <DIV style="MARGIN-LEFT: 40px"><CODE>document.getElementById("edit").contentDocument.designMode="on";</CODE> </DIV><BR>Right now, you can't completely turn off editing by setting designMode to "off." Setting designMode to "off" will prevent certain operations from being handled but typing and other actions are still possible.<BR></DIV><BR> <H1>Invoking Commands:</H1> <H2>execCommand<BR></H2> <DIV style="MARGIN-LEFT: 40px">Given a document that has Midas enabled, you can invoke specific commands on the document by calling execCommand with 3 parameters. For example, in JavaScript, if you have an editable document, you can invoke the bold command by calling this:<BR> <DIV style="MARGIN-LEFT: 40px"><CODE>editableDocument.execCommand("Bold", false, null); </CODE></DIV>Notes: If you haven't set designMode to "On", you will get an error. This could also happen if you call execCommand with the wrong document.<BR><BR>There are 3 required parameters for execCommand:<BR> <OL> <LI>command string <LI>boolean flag for showing UI <LI>value string </LI></OL>The first parameter is a string which contains the command. The second parameter is a boolean flag. If it is set to true, you will get an error (NS_ERROR_NOT_IMPLEMENTED). The third parameter is a string which is the value. Some commands will require details such as the particular size you want to set when setting a font size.<BR><BR>The section on Supported Commands will document each command and any corresponding values needed.<BR></DIV> <DIV style="MARGIN-LEFT: 40px"></DIV><BR> <H2>queryCommandEnabled</H2> <BLOCKQUOTE>This command operates on the editable document. There is one required parameter (the command string). The result is a boolean which is true if the command is can be done given the current selection and/or caret position. The result is false if the command should not be invoked (execCommand) given the current selection and/or caret position. <BR></BLOCKQUOTE><BR> <H2>queryCommandState</H2> <BLOCKQUOTE>xxx<BR></BLOCKQUOTE><BR> <H2>queryCommandValue</H2> <BLOCKQUOTE>xxx<BR></BLOCKQUOTE><BR> <H1>Supported Commands:</H1> <DIV style="MARGIN-LEFT: 40px">The following list of commands is presented in alphabetical order. The commands may be mixed case or whatever makes your code more readable.<BR><BR> <TABLE style="WIDTH: 100%; TEXT-ALIGN: left" cellSpacing=2 cellPadding=2 border=1> <TBODY> <TR> <TD style="VERTICAL-ALIGN: top">command<BR></TD> <TD style="VERTICAL-ALIGN: top">value<BR></TD> <TD style="VERTICAL-ALIGN: top">explanation / behavior<BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">backcolor<BR></TD> <TD style="VERTICAL-ALIGN: top">????<BR></TD> <TD style="VERTICAL-ALIGN: top">This command is untested right now.<BR>This command will set the background color of the document.</TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">bold<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">If there is no selection, the insertion point will set bold for subsequently typed characters. <BR><BR>If there is a selection and all of the characters are already bold, the bold will be removed. Otherwise, all selected characters will become bold.<BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">copy<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">If there is a selection, this command will copy the selection to the clipboard. If there isn't a selection, nothing will happen.<BR><BR>note: the shortcut key will automatically trigger this command (typically accel-C)<BR></TD></TR> <TR> <TD vAlign=top>createlink<BR></TD> <TD vAlign=top>url (href)<BR></TD> <TD vAlign=top>This command will not do anything if no selection is made. If there is a selection, a link will be inserted around the selection with the url parameter as the href of the link.<BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">cut<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">If there is a selection, this command will copy the selection to the clipboard and remove the selection from the edit control. If there isn't a selection, nothing will happen.<BR><BR>note: the shortcut key will automatically trigger this command (typically accel-X)<BR></TD></TR> <TR> <TD vAlign=top>delete<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top>This command will delete all text and objects that are selected.<BR></TD></TR> <TR> <TD vAlign=top>fontname<BR></TD> <TD vAlign=top>????<BR></TD> <TD vAlign=top>This command will set the fontface for a selection or at the insertion point if there is no selection.<BR></TD></TR> <TR> <TD vAlign=top>fontsize<BR></TD> <TD vAlign=top>????<BR></TD> <TD vAlign=top>This command will set the fontsize for a selection or at the insertion point if there is no selection.<BR></TD></TR> <TR> <TD vAlign=top>forecolor<BR></TD> <TD vAlign=top>????<BR></TD> <TD vAlign=top>This command is untested right now.<BR>This command will set the text color of the selection or at the insertion point.<BR></TD></TR> <TR> <TD vAlign=top>formatblock<BR></TD> <TD vAlign=top>????<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD vAlign=top>heading<BR></TD> <TD vAlign=top>????<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">indent<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">Indent the block where the caret is located.<BR></TD></TR> <TR> <TD vAlign=top>inserthorizontalrule<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top>This command will insert a horizontal rule (line) at the insertion point.<BR><BR>Does it delete the selection?<BR></TD></TR> <TR> <TD vAlign=top>insertimage<BR></TD> <TD vAlign=top>url (src)<BR></TD> <TD vAlign=top>This command will insert an image (referenced by url) at the insertion point.<BR><BR>Does it delete the selection?<BR></TD></TR> <TR> <TD vAlign=top>insertorderedlist<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD vAlign=top>insertunorderedlist<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">italic<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">If there is no selection, the insertion point will set italic for subsequently typed characters. <BR><BR>If there is a selection and all of the characters are already italic, the italic will be removed. Otherwise, all selected characters will become italic.</TD></TR> <TR> <TD vAlign=top>justifycenter<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD vAlign=top>justifyfull<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD vAlign=top>justifyleft<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD vAlign=top>justifyright<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">outdent<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">Outdent the block where the caret is located. If the block is not indented prior to calling outdent, nothing will happen.<BR><BR>note: is an error thrown if no outdenting is done?<BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">paste<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">This command is disabled for the time being to prevent security exploits.<BR><BR>This command will paste the contents of the clipboard at the location of the caret. If there is a selection, it will be deleted prior to the insertion of the clipboard's contents.<BR><BR>note: the shortcut key will automatically trigger this command (typically accel-V)</TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">redo<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">This command will redo the previous undo action. If undo was not the most recent action, this command will have no effect.<BR><BR>note: the shortcut key will automatically trigger this command (typically accel-shift-Z)</TD></TR> <TR> <TD vAlign=top>removeformat<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">selectall<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">This command will select all of the contents within the editable area.<BR><BR>note: the shortcut key will automatically trigger this command (typically accel-A)<BR></TD></TR> <TR> <TD vAlign=top>strikethrough<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top>If there is no selection, the insertion point will set strikethrough for subsequently typed characters. <BR><BR>If there is a selection and all of the characters are already striked, the strikethrough will be removed. Otherwise, all selected characters will have a line drawn through them.<BR></TD></TR> <TR> <TD vAlign=top>subscript<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top>If there is no selection, the insertion point will set subscript for subsequently typed characters. <BR><BR>If there is a selection and all of the characters are already subscripted, the subscript will be removed. Otherwise, all selected characters will be drawn slightly lower than normal text.<BR></TD></TR> <TR> <TD vAlign=top>superscript<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top>If there is no selection, the insertion point will set superscript for subsequently typed characters. <BR><BR>If there is a selection and all of the characters are already superscripted, the superscript will be removed. Otherwise, all selected characters will be drawn slightly higher than normal text<BR></TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">underline<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">If there is no selection, the insertion point will set underline for subsequently typed characters. <BR><BR>If there is a selection and all of the characters are already underlined, the underline will be removed. Otherwise, all selected characters will become underlined.</TD></TR> <TR> <TD style="VERTICAL-ALIGN: top">undo<BR></TD> <TD style="VERTICAL-ALIGN: top">none<BR></TD> <TD style="VERTICAL-ALIGN: top">This command will undo the previous action. If no action has occurred in the document, then this command will have no effect.<BR><BR>note: the shortcut key will automatically trigger this command (typically accel-Z)<BR></TD></TR> <TR> <TD vAlign=top>unlink<BR></TD> <TD vAlign=top>none<BR></TD> <TD vAlign=top><BR></TD></TR></TBODY></TABLE><BR></DIV><BR></TD></TR> <TR> <TD vAlign=top align=right colSpan=2> <DIV class=documentinfo>Copyright © 1998-2003 The Mozilla Organization. <BR>Last modified November 18, 2002. <BR><A href="http://www.mozilla.org/webtools/bonsai/cvslog.cgi?file=mozilla-org/html/editor/midas-spec.html&rev=&root=/cvsroot/">Document History</A>. <BR><A href="http://doctor.mozilla.org/?file=mozilla-org/html/editor/midas-spec.html">Edit this Page</A>. </DIV></TD></TR></TBODY></TABLE></BODY></HTML> --- NEW FILE: .DS_Store --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Converting an app using document_designMode from IE to Midas.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0043)http://www.mozilla.org/editor/ie2midas.html --> <HTML><HEAD><TITLE>Converting an app using document.designMode from IE to Midas.</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK href="Converting an app using document_designMode from IE to Midas-Dateien/persistent-style.css" type=text/css rel=stylesheet><LINK href="../images/mozilla-16.png" type=image/png rel=icon> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=bannercell vAlign=top><A class=bannerlink href="http://www.mozilla.org/"><IMG class=mozillaorgbanner height=58 alt="" src="Converting an app using document_designMode from IE to Midas-Dateien/mozilla-banner.gif" width=600> </A></TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0> <TBODY> <TR> <TD vAlign=top> <TABLE class=outersidebar border=0> <TBODY> <TR> <TD class=bordercell vAlign=top> <TABLE class=middlesidebar cellSpacing=3 border=0> <TBODY> <TR> <TD class=titlecell vAlign=top> <TABLE class=innersidebar cellSpacing=3 cellPadding=0 border=0> <TBODY> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/"><B>The Mozilla<BR>Organization</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/mozorg.html">At A Glance</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/feedback.html">Feedback</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/get-involved.html">Get Involved</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/community.html">Newsgroups</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/MPL/">License Terms</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/catalog/"><B>Developer Docs</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/roadmap.html">Roadmap</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/projects/">Projects</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/ports/">Ports</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/owners.html">Module Owners</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/hacking/">Hacking</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/source.html">Get the Source</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/build/">Build It</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/quality/"><B>Testing</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/releases/">Download</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://bugzilla.mozilla.org/enter_bug.cgi?format=guided">Report A Bug</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/bugs/">Bugzilla</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://www.mozilla.org/quality/bug-writing-guidelines.html">Bug Writing</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/tools.html"><B>Tools</B></A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://lxr.mozilla.org/seamonkey/">View Source</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey">Tree Status</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=SeaMonkeyAll&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=day&mindate=&maxdate=&cvsroot=%2Fcvsroot">New Checkins</A></TD></TR> <TR> <TD></TD> <TD class=linkcell><A href="http://bugzilla.mozilla.org/">Submit A Bug</A></TD></TR> <TR> <TD class=spacercell></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/faq.html"><B>FAQ</B></A></TD></TR> <TR> <TD class=linkcell colSpan=2><A href="http://www.mozilla.org/search.html"><B>Search</B></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD> <TD vAlign=top> <H2>Converting an app using document.designMode from IE to Midas. </H2> <P>This document provides an overview of porting an application using Internet Explorer's <SPAN style="FONT-FAMILY: monospace">document.designMode="on"</SPAN> functionality over to the new Mozilla Midas API. The first version of Mozilla that supports Midas fully is 1.3b. Note <SPAN style="FONT-FAMILY: monospace">contenteditable</SPAN> is not supported by Mozilla at this time. <P>A demo of basic Midas functionality is available at <A href="http://www.mozilla.org/editor/midasdemo">http://www.mozilla.org/editor/midasdemo</A>. This demo was NOT designed to function on both IE and Mozilla. It will be updated in the future. Note that there is a great deal of Midas functionality that goes beyond what IE provides. This will be documented elsewhere. </P> <P></P> <P>Note that many of the modifications you will have to make to enable your application to work with Mozilla are not specific to the new editor functionality - they are general modifications that would need to be made to make your application work on Mozilla anyway. Most of these are related to areas where Internet Explorer is not compliant with W3C specifications. </P> <OL> <LI> <P>All instances of <SPAN style="FONT-FAMILY: monospace">document.all.element</SPAN> must be replaced by <SPAN style="FONT-FAMILY: monospace">document.getElementById('element')</SPAN>. When you do this, you must make sure that all your elements actually have an "id" attribute, since <SPAN style="FONT-FAMILY: monospace">document.all</SPAN> works with both "id" and "name" attributes. </P> <P>In addition, any places where you reference elements directly by name must be changed to use <SPAN style="FONT-FAMILY: monospace">getElementById</SPAN> as well. For example, IE allows you to reference the style of a table element by using <SPAN style="FONT-FAMILY: monospace">tablecell.style</SPAN> - with Mozilla, you must use <SPAN style="FONT-FAMILY: monospace">document.getElementById('tablecell').style</SPAN>.</P> <P>Finally, IE provides different arrays such as frames, so that you can use <SPAN style="FONT-FAMILY: monospace">frames.iframename</SPAN>. For Mozilla, you must use <SPAN style="FONT-FAMILY: monospace">document.getElementById</SPAN> to reference the iframe. </P> <LI> <P>IE allows the <SPAN style="FONT-FAMILY: monospace">focus()</SPAN> method to be used directly on an iframe. Technically, the focus method should be executed against the contentWindow. The following code fragment can be used to replace <SPAN style="FONT-FAMILY: monospace">iframe.focus()</SPAN> and will work with IE and Mozilla.</P><PRE>document.getElementById("iframe").contentWindow.focus() </PRE> <LI> <P>Setting <SPAN style="FONT-FAMILY: monospace">document.designMode</SPAN> <STRONG>must NOT</STRONG> be done in the <SPAN style="FONT-FAMILY: monospace">script</SPAN> section of the <SPAN style="FONT-FAMILY: monospace">head</SPAN>. We suggest the onLoad function for the body where the iframe is contained.</P> <LI> <P>On IE, the document is obtained like this: <SPAN style="FONT-FAMILY: monospace">iframename.document</SPAN>. This is then used to do things like execCommand, etc. This does not work on Mozilla. You must use <SPAN style="FONT-FAMILY: monospace">document.getElementById("iframename").contentWindow.document</SPAN>. This method works on IE as well. </P> <LI> <P>If you would like to provide tooltip text for your toolbar buttons, you must use the title= attribute for images in addition to the alt= attribute. The alt= attribute is provided for accessibility purposes and while IE does allow it to be used for tooltips, the W3C compliant way is to use title= which works on both IE and Mozilla. For more information, please see: <A href="http://www.hixie.ch/advocacy/alttext">http://www.hixie.ch/advocacy/alttext</A>. </P> <LI> <P>Currently, the command "createlink" does not support displaying a user interface. You use Javascript to query the URL from the user. For instance: <PRE>var szURL = prompt("Enter the URL", ""); . . . getDocument().execCommand('createlink',false,szURL); </PRE> <P></P> <LI> <P>Due to ambiguity in the Microsoft specification for execCommand, Mozilla requires that you specify all three parameters in order to guarantee the behavior you are expecting. </P> <LI> <P>In researching the parameters to <SPAN style="FONT-FAMILY: monospace">formatblock</SPAN> for execCommand, we have determined that the current use of "Heading 1", "Preformatted", "Normal", etc. in most editors on the web is incorrect. These words are translated, so if you hardcode them in your application, it will not function on non-English browsers. Microsoft has provided non-localized versions of these identifiers and we suggest that they be used to guarantee your application works in all versions of IE, as well as Mozilla. Note that in all of our research, the Normal identifiers functions exactly like the Paragraph identifier. </P> <P>Here is the mapping: </P> <TABLE border=1> <TBODY> <TR> <TD>Localized Version</TD> <TD>Equivalent</TD></TR> <TR> <TD>Normal</TD> <TD><P></TD></TR> <TR> <TD>Heading 1</TD> <TD><H1></TD></TR> <TR> <TD>Heading 2</TD> <TD><H2></TD></TR> <TR> <TD>Heading 3</TD> <TD><H3></TD></TR> <TR> <TD>Heading 4</TD> <TD><H4></TD></TR> <TR> <TD>Heading 5</TD> <TD><H5></TD></TR> <TR> <TD>Heading 6</TD> <TD><H6></TD></TR> <TR> <TD>Paragraph</TD> <TD><P></TD></TR> <TR> <TD>Preformatted</TD> <TD><PRE></TD></TR> <TR> <TD>Address</TD> <TD><ADDRESS></TD></TR></TBODY></TABLE> <LI> <P>View source must be done differently for Mozilla. Here is a mapping between the two methods. </P> <P>IE method to switch to source view: </P><PRE>iHTML = getDocument().body.innerHTML; getDocument().body.innerText = iHTML; </PRE> <P>Mozilla method to switch to source view: </P><PRE>var html = document.createTextNode(getDocument().body.innerHTML); getDocument().body.innerHTML = ""; getDocument().body.appendChild(html); </PRE> <P>IE method to switch back to regular view: </P><PRE>iText = getDocument().body.innerText; getDocument().body.innerHTML = iText; </PRE> <P>Mozilla method to switch back to regular view: </P><PRE>var html = getDocument().body.ownerDocument.createRange(); html.selectNodeContents(getDocument().body); getDocument().body.innerHTML = html.toString(); </PRE> <P></P> <LI> <P>Inserting arbitrary HTML is not supported at this time. For an example of how to insert a table, plese see the demo at <A href="http://www.mozilla.org/editor/midasdemo">http://www.mozilla.org/editor/midasdemo</A> </P> <LI>The <SPAN style="FONT-FAMILY: monospace">print</SPAN> option to execCommand does not work with Mozilla. To print the document, simply call the <SPAN style="FONT-FAMILY: monospace">print()</SPAN> function on contentWindow. For example: <PRE>document.getElementById("iframe").contentWindow.print(); </PRE> <LI>The <SPAN style="FONT-FAMILY: monospace">backcolor</SPAN> option to execCommand behaves differently on Mozilla than on IE. It sets the background of the entire document. If you just want to hilite text, similar to the way backcolor behaves on IE, use <SPAN style="FONT-FAMILY: monospace">hilitecolor</SPAN>. <LI> <P>If you would like to detect whether or not the version of Mozilla that is being used support Midas at all, you can use this code snippet:</P><PRE>document.getElementById('edit').contentDocument.designMode = "on"; try { document.getElementById('edit').contentDocument.execCommand("undo", false, null); } catch (e) { alert("This demo is not supported on your level of Mozilla."); } </PRE></LI></OL></TD></TR> <TR> <TD vAlign=top align=right colSpan=2> <DIV class=documentinfo>Copyright © 1998-2003 The Mozilla Organization. <BR>Last modified January 30, 2003. <BR><A href="http://www.mozilla.org/webtools/bonsai/cvslog.cgi?file=mozilla-org/html/editor/ie2midas.html&rev=&root=/cvsroot/">Document History</A>. <BR><A href="http://doctor.mozilla.org/?file=mozilla-org/html/editor/ie2midas.html">Edit this Page</A>. </DIV></TD></TR></TBODY></TABLE></BODY></HTML> --- NEW FILE: Text Color.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0051)http://www.mozilla.org/editor/midasdemo/colors.html --> <HTML><HEAD><TITLE>Text Color</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <SCRIPT> function selectColor(color) { parent.document.getElementById("edit").contentDocument.execCommand(parent.command, false, color); parent.document.getElementById("colorpalette").style.visibility="hidden"; parent.document.getElementById("edit").contentWindow.focus(); } function InitColorPalette() { if (document.getElementsByTagName) var x = document.getElementsByTagName('TD'); else if (document.all) var x = document.all.tags('TD'); for (var i=0;i<x.length;i++) { x[i].onmouseover = over; x[i].onmouseout = out; x[i].onclick = click; } } function over() { this.style.border='2px dotted white'; } function out() { this.style.border='1px solid gray'; } function click() { selectColor(this.id); } </SCRIPT> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY bgColor=white onload=InitColorPalette()> <TABLE cellSpacing=1 cellPadding=1 border=1> <TBODY> <TR> <TD id=#FFFFFF width=20 bgColor=#ffffff height=20><IMG height=1 width=1></TD> <TD id=#FFCCCC width=20 bgColor=#ffcccc height=20><IMG height=1 width=1></TD> <TD id=#FFCC99 width=20 bgColor=#ffcc99 height=20><IMG height=1 width=1></TD> <TD id=#FFFF99 width=20 bgColor=#ffff99 height=20><IMG height=1 width=1></TD> <TD id=#FFFFCC width=20 bgColor=#ffffcc height=20><IMG height=1 width=1></TD> <TD id=#99FF99 width=20 bgColor=#99ff99 height=20><IMG height=1 width=1></TD> <TD id=#99FFFF width=20 bgColor=#99ffff height=20><IMG height=1 width=1></TD> <TD id=#CCFFFF width=20 bgColor=#ccffff height=20><IMG height=1 width=1></TD> <TD id=#CCCCFF width=20 bgColor=#ccccff height=20><IMG height=1 width=1></TD> <TD id=#FFCCFF width=20 bgColor=#ffccff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#CCCCCC width=20 bgColor=#cccccc height=20><IMG height=1 width=1></TD> <TD id=#FF6666 width=20 bgColor=#ff6666 height=20><IMG height=1 width=1></TD> <TD id=#FF9966 width=20 bgColor=#ff9966 height=20><IMG height=1 width=1></TD> <TD id=#FFFF66 width=20 bgColor=#ffff66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF33 width=20 bgColor=#ffff33 height=20><IMG height=1 width=1></TD> <TD id=#66FF99 width=20 bgColor=#66ff99 height=20><IMG height=1 width=1></TD> <TD id=#33FFFF width=20 bgColor=#33ffff height=20><IMG height=1 width=1></TD> <TD id=#66FFFF width=20 bgColor=#66ffff height=20><IMG height=1 width=1></TD> <TD id=#9999FF width=20 bgColor=#9999ff height=20><IMG height=1 width=1></TD> <TD id=#FF99FF width=20 bgColor=#ff99ff height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#C0C0C0 width=20 bgColor=#c0c0c0 height=20><IMG height=1 width=1></TD> <TD id=#FF0000 width=20 bgColor=#ff0000 height=20><IMG height=1 width=1></TD> <TD id=#FF9900 width=20 bgColor=#ff9900 height=20><IMG height=1 width=1></TD> <TD id=#FFCC66 width=20 bgColor=#ffcc66 height=20><IMG height=1 width=1></TD> <TD id=#FFFF00 width=20 bgColor=#ffff00 height=20><IMG height=1 width=1></TD> <TD id=#33FF33 width=20 bgColor=#33ff33 height=20><IMG height=1 width=1></TD> <TD id=#66CCCC width=20 bgColor=#66cccc height=20><IMG height=1 width=1></TD> <TD id=#33CCFF width=20 bgColor=#33ccff height=20><IMG height=1 width=1></TD> <TD id=#6666CC width=20 bgColor=#6666cc height=20><IMG height=1 width=1></TD> <TD id=#CC66CC width=20 bgColor=#cc66cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#999999 width=20 bgColor=#999999 height=20><IMG height=1 width=1></TD> <TD id=#CC0000 width=20 bgColor=#cc0000 height=20><IMG height=1 width=1></TD> <TD id=#FF6600 width=20 bgColor=#ff6600 height=20><IMG height=1 width=1></TD> <TD id=#FFCC33 width=20 bgColor=#ffcc33 height=20><IMG height=1 width=1></TD> <TD id=#FFCC00 width=20 bgColor=#ffcc00 height=20><IMG height=1 width=1></TD> <TD id=#33CC00 width=20 bgColor=#33cc00 height=20><IMG height=1 width=1></TD> <TD id=#00CCCC width=20 bgColor=#00cccc height=20><IMG height=1 width=1></TD> <TD id=#3366FF width=20 bgColor=#3366ff height=20><IMG height=1 width=1></TD> <TD id=#6633FF width=20 bgColor=#6633ff height=20><IMG height=1 width=1></TD> <TD id=#CC33CC width=20 bgColor=#cc33cc height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#666666 width=20 bgColor=#666666 height=20><IMG height=1 width=1></TD> <TD id=#990000 width=20 bgColor=#990000 height=20><IMG height=1 width=1></TD> <TD id=#CC6600 width=20 bgColor=#cc6600 height=20><IMG height=1 width=1></TD> <TD id=#CC9933 width=20 bgColor=#cc9933 height=20><IMG height=1 width=1></TD> <TD id=#999900 width=20 bgColor=#999900 height=20><IMG height=1 width=1></TD> <TD id=#009900 width=20 bgColor=#009900 height=20><IMG height=1 width=1></TD> <TD id=#339999 width=20 bgColor=#339999 height=20><IMG height=1 width=1></TD> <TD id=#3333FF width=20 bgColor=#3333ff height=20><IMG height=1 width=1></TD> <TD id=#6600CC width=20 bgColor=#6600cc height=20><IMG height=1 width=1></TD> <TD id=#993399 width=20 bgColor=#993399 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#333333 width=20 bgColor=#333333 height=20><IMG height=1 width=1></TD> <TD id=#660000 width=20 bgColor=#660000 height=20><IMG height=1 width=1></TD> <TD id=#993300 width=20 bgColor=#993300 height=20><IMG height=1 width=1></TD> <TD id=#996633 width=20 bgColor=#996633 height=20><IMG height=1 width=1></TD> <TD id=#666600 width=20 bgColor=#666600 height=20><IMG height=1 width=1></TD> <TD id=#006600 width=20 bgColor=#006600 height=20><IMG height=1 width=1></TD> <TD id=#336666 width=20 bgColor=#336666 height=20><IMG height=1 width=1></TD> <TD id=#000099 width=20 bgColor=#000099 height=20><IMG height=1 width=1></TD> <TD id=#333399 width=20 bgColor=#333399 height=20><IMG height=1 width=1></TD> <TD id=#663366 width=20 bgColor=#663366 height=20><IMG height=1 width=1></TD></TR> <TR> <TD id=#000000 width=20 bgColor=#000000 height=20><IMG height=1 width=1></TD> <TD id=#330000 width=20 bgColor=#330000 height=20><IMG height=1 width=1></TD> <TD id=#663300 width=20 bgColor=#663300 height=20><IMG height=1 width=1></TD> <TD id=#663333 width=20 bgColor=#663333 height=20><IMG height=1 width=1></TD> <TD id=#333300 width=20 bgColor=#333300 height=20><IMG height=1 width=1></TD> <TD id=#003300 width=20 bgColor=#003300 height=20><IMG height=1 width=1></TD> <TD id=#003333 width=20 bgColor=#003333 height=20><IMG height=1 width=1></TD> <TD id=#000066 width=20 bgColor=#000066 height=20><IMG height=1 width=1></TD> <TD id=#330099 width=20 bgColor=#330099 height=20><IMG height=1 width=1></TD> <TD id=#330033 width=20 bgColor=#330033 height=20><IMG height=1 width=1></TD></TR></TBODY></TABLE></BODY></HTML> --- NEW FILE: Midas Demo.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- saved from url=(0040)http://www.mozilla.org/editor/midasdemo/ --> <HTML><HEAD><TITLE>Midas Demo</TITLE> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <STYLE type=text/css>.imagebutton { BORDER-RIGHT: #c0c0c0 2px solid; BORDER-TOP: #c0c0c0 2px solid; BORDER-LEFT: #c0c0c0 2px solid; WIDTH: 23px; BORDER-BOTTOM: #c0c0c0 2px solid; HEIGHT: 22px; BACKGROUND-COLOR: #c0c0c0 } .image { BORDER-RIGHT: medium none; BORDER-TOP: medium none; LEFT: 1px; BORDER-LEFT: medium none; WIDTH: 21px; BORDER-BOTTOM: medium none; POSITION: relative; TOP: 1px; HEIGHT: 20px } .toolbar { HEIGHT: 30px; BACKGROUND-COLOR: #c0c0c0 } </STYLE> <SCRIPT> var command = ""; function InitToolbarButtons() { kids = document.getElementsByTagName('DIV'); for (var i=0; i < kids.length; i++) { if (kids[i].className == "imagebutton") { kids[i].onmouseover = tbmouseover; kids[i].onmouseout = tbmouseout; kids[i].onmousedown = tbmousedown; kids[i].onmouseup = tbmouseup; kids[i].onclick = tbclick; } } } function tbmousedown(e) { this.firstChild.style.left = 2; this.firstChild.style.top = 2; this.style.border="inset 2px"; e.preventDefault(); } function tbmouseup() { this.firstChild.style.left = 1; this.firstChild.style.top = 1; this.style.border="outset 2px"; } function tbmouseout() { this.style.border="solid 2px #C0C0C0"; } function tbmouseover() { this.style.border="outset 2px"; } function insertNodeAtSelection(win, insertNode) { // get current selection var sel = win.getSelection(); // get the first range of the selection // (there's almost always only one range) var range = sel.getRangeAt(0); // deselect everything sel.removeAllRanges(); // remove content of current selection from document range.deleteContents(); // get location of current selection var container = range.startContainer; var pos = range.startOffset; // make a new range for the new selection range=document.createRange(); if (container.nodeType==3 && insertNode.nodeType==3) { // if we insert text in a textnode, do optimized insertion container.insertData(pos, insertNode.nodeValue); // put cursor after inserted text range.setEnd(container, pos+insertNode.length); range.setStart(container, pos+insertNode.length); } else { var afterNode; if (container.nodeType==3) { // when inserting into a textnode // we create 2 new textnodes // and put the insertNode in between var textNode = container; container = textNode.parentNode; var text = textNode.nodeValue; // text before the split var textBefore = text.substr(0,pos); // text after the split var textAfter = text.substr(pos); var beforeNode = document.createTextNode(textBefore); var afterNode = document.createTextNode(textAfter); // insert the 3 new nodes before the old one container.insertBefore(afterNode, textNode); container.insertBefore(insertNode, afterNode); container.insertBefore(beforeNode, insertNode); // remove the old node container.removeChild(textNode); } else { // else simply insert the node afterNode = container.childNodes[pos]; container.insertBefore(insertNode, afterNode); } range.setEnd(afterNode, 0); range.setStart(afterNode, 0); } sel.addRange(range); }; function getOffsetTop(elm) { var mOffsetTop = elm.offsetTop; var mOffsetParent = elm.offsetParent; while(mOffsetParent){ mOffsetTop += mOffsetParent.offsetTop; mOffsetParent = mOffsetParent.offsetParent; } return mOffsetTop; } function getOffsetLeft(elm) { var mOffsetLeft = elm.offsetLeft; var mOffsetParent = elm.offsetParent; while(mOffsetParent){ mOffsetLeft += mOffsetParent.offsetLeft; mOffsetParent = mOffsetParent.offsetParent; } return mOffsetLeft; } function tbclick() { if ((this.id == "forecolor") || (this.id == "hilitecolor")) { parent.command = this.id; buttonElement = document.getElementById(this.id); document.getElementById("colorpalette").style.left = getOffsetLeft(buttonElement); document.getElementById("colorpalette").style.top = getOffsetTop(buttonElement) + buttonElement.offsetHeight; document.getElementById("colorpalette").style.visibility="visible"; } else if (this.id == "createlink") { var szURL = prompt("Enter a URL:", ""); document.getElementById('edit').contentWindow.document.execCommand("CreateLink",false,szURL) } else if (this.id == "createtable") { e = document.getElementById("edit"); rowstext = prompt("enter rows"); colstext = prompt("enter cols"); rows = parseInt(rowstext); cols = parseInt(colstext); if ((rows > 0) && (cols > 0)) { table = e.contentWindow.document.createElement("table"); table.setAttribute("border", "1"); table.setAttribute("cellpadding", "2"); table.setAttribute("cellspacing", "2"); tbody = e.contentWindow.document.createElement("tbody"); for (var i=0; i < rows; i++) { tr =e.contentWindow.document.createElement("tr"); for (var j=0; j < cols; j++) { td =e.contentWindow.document.createElement("td"); br =e.contentWindow.document.createElement("br"); td.appendChild(br); tr.appendChild(td); } tbody.appendChild(tr); } table.appendChild(tbody); insertNodeAtSelection(e.contentWindow, table); } } else { document.getElementById('edit').contentWindow.document.execCommand(this.id, false, null); } } function Select(selectname) { var cursel = document.getElementById(selectname).selectedIndex; /* First one is always a label */ if (cursel != 0) { var selected = document.getElementById(selectname).options[cursel].value; document.getElementById('edit').contentWindow.document.execCommand(selectname, false, selected); document.getElementById(selectname).selectedIndex = 0; } document.getElementById("edit").contentWindow.focus(); } function dismisscolorpalette() { document.getElementById("colorpalette").style.visibility="hidden"; } function Start() { document.getElementById('edit').contentWindow.document.designMode = "on"; try { document.getElementById('edit').contentWindow.document.execCommand("undo", false, null); } catch (e) { alert("This demo is not supported on your level of Mozilla."); } InitToolbarButtons(); document.addEventListener("mousedown", dismisscolorpalette, true); document.getElementById("edit").contentWindow.document.addEventListener("mousedown", dismisscolorpalette, true); document.addEventListener("keypress", dismisscolorpalette, true); document.getElementById("edit").contentWindow.document.addEventListener("keypress", dismisscolorpalette, true); } </SCRIPT> <META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD> <BODY onload=Start()> <H2>Please note that the changing of text format (Heading, Paragraph, etc.) will only function properly on a 1.3b build dated after January 26, 2003. Thanks.</H2> <TABLE id=toolbar1 bgColor=#c0c0c0> <TBODY> <TR> <TD> <DIV class=imagebutton id=cut><IMG class=image title=Cut alt=Cut src="Midas Demo-Dateien/cut.gif"></DIV></TD> <TD> <DIV class=imagebutton id=copy><IMG class=image title=Copy alt=Copy src="Midas Demo-Dateien/copy.gif"></DIV></TD> <TD> <DIV class=imagebutton id=paste><IMG class=image title=Paste alt=Paste src="Midas Demo-Dateien/paste.gif"></DIV> <TD></TD> <TD></TD> <TD> <DIV class=imagebutton id=undo><IMG class=image title=Undo alt=Undo src="Midas Demo-Dateien/undo.gif"></DIV></TD> <TD> <DIV class=imagebutton id=redo><IMG class=image title=Redo alt=Redo src="Midas Demo-Dateien/redo.gif"></DIV></TD> <TD></TD> <TD> <DIV class=imagebutton id=createlink style="LEFT: 10px"><IMG class=image title="Insert Link" alt="Insert Link" src="Midas Demo-Dateien/link.gif"></DIV></TD> <TD></TD> <TD> <DIV class=imagebutton id=createtable style="LEFT: 10px"><IMG class=image title="Insert Table" alt="Insert Table" src="Midas Demo-Dateien/table.gif"></DIV></TD></TR></TBODY></TABLE><BR> <TABLE id=toolbar2 bgColor=#c0c0c0> <TBODY> <TR> <TD><SELECT id=formatblock onchange=Select(this.id);> <OPTION value="<p>" selected>Normal</OPTION> <OPTION value="<p>">Paragraph</OPTION> <OPTION value="<h1>">Heading 1</OPTION> <OPTION value="<h2>">Heading 2</OPTION> <OPTION value="<h3>">Heading 3</OPTION> <OPTION value="<h4>">Heading 4</OPTION> <OPTION value="<h5>">Heading 5</OPTION> <OPTION value="<h6>">Heading 6</OPTION> <OPTION value="<address>">Address <ADDR></OPTION> <OPTION value="<pre>">Formatted</OPTION></SELECT> </TD> <TD><SELECT id=fontname onchange=Select(this.id);> <OPTION value=Font selected>Font</OPTION> <OPTION value=Arial>Arial</OPTION> <OPTION value=Courier>Courier</OPTION> <OPTION value="Times New Roman">Times New Roman</OPTION></SELECT> </TD> <TD><SELECT id=fontsize onchange=Select(this.id); unselectable="on"> <OPTION value=Size selected>Size</OPTION> <OPTION value=1>1</OPTION> <OPTION value=2>2</OPTION> <OPTION value=3>3</OPTION> <OPTION value=4>4</OPTION> <OPTION value=5>5</OPTION> <OPTION value=6>6</OPTION> <OPTION value=7>7</OPTION></SELECT> </TD> <TD> <DIV class=imagebutton id=bold><IMG class=image title=Bold alt=Bold src="Midas Demo-Dateien/bold.gif"></DIV></TD> <TD> <DIV class=imagebutton id=italic><IMG class=image title=Italic alt=Italic src="Midas Demo-Dateien/italic.gif"></DIV></TD> <TD> <DIV class=imagebutton id=underline><IMG class=image title=Underline alt=Underline src="Midas Demo-Dateien/underline.gif"></DIV></TD> <TD></TD> <TD> <DIV class=imagebutton id=forecolor style="LEFT: 10px"><IMG class=image title="Text Color" alt="Text Color" src="Midas Demo-Dateien/forecolor.gif"></DIV></TD> <TD> <DIV class=imagebutton id=hilitecolor style="LEFT: 40px"><IMG class=image title="Background Color" alt="Background Color" src="Midas Demo-Dateien/backcolor.gif"></DIV></TD> <TD></TD> <TD> <DIV class=imagebutton id=justifyleft style="LEFT: 10px"><IMG class=image title="Align Left" alt="Align Left" src="Midas Demo-Dateien/justifyleft.gif"></DIV></TD> <TD> <DIV class=imagebutton id=justifycenter style="LEFT: 40px"><IMG class=image title=Center alt=Center src="Midas Demo-Dateien/justifycenter.gif"></DIV></TD> <TD> <DIV class=imagebutton id=justifyright style="LEFT: 70px"><IMG class=image title="Align Right" alt="Align Right" src="Midas Demo-Dateien/justifyright.gif"></DIV></TD> <TD></TD> <TD> <DIV class=imagebutton id=insertorderedlist style="LEFT: 10px"><IMG class=image title="Ordered List" alt="Ordered List" src="Midas Demo-Dateien/orderedlist.gif"></DIV></TD> <TD> <DIV class=imagebutton id=insertunorderedlist style="LEFT: 40px"><IMG class=image title="Unordered List" alt="Unordered List" src="Midas Demo-Dateien/unorderedlist.gif"></DIV></TD> <TD></TD> <TD> <DIV class=imagebutton id=outdent style="LEFT: 10px"><IMG class=image title=Outdent alt=Outdent src="Midas Demo-Dateien/outdent.gif"></DIV></TD> <TD> <DIV class=imagebutton id=indent style="LEFT: 40px"><IMG class=image title=Indent alt=Indent src="Midas Demo-Dateien/indent.gif"></DIV></TD></TR></TBODY></TABLE><BR><IFRAME id=edit src="about:blank" width="100%" height=200></IFRAME><IFRAME id=colorpalette style="VISIBILITY: hidden; POSITION: absolute" src="Midas Demo-Dateien/colors.htm" width=250 height=170></IFRAME></IFRAME> <SCRIPT> function viewsource(source) { if (source) { var html = document.createTextNode(document.getElementById('edit').contentWindow.document.body.innerHTML); document.getElementById('edit').contentWindow.document.body.innerHTML = ""; document.getElementById('edit').contentWindow.document.body.appendChild(html); document.getElementById("toolbar1").style.visibility="hidden"; document.getElementById("toolbar2").style.visibility="hidden"; } else { var html = document.getElementById('edit').contentWindow.document.body.ownerDocument.createRange(); html.selectNodeContents(document.getElementById('edit').contentWindow.document.body); document.getElementById('edit').contentWindow.document.body.innerHTML = html.toString(); document.getElementById("toolbar1").style.visibility="visible"; document.getElementById("toolbar2").style.visibility="visible"; } } function usecss(source) { document.getElementById('edit').contentWindow.document.execCommand("useCSS", false, !(source)); } function readonly(source) { document.getElementById('edit').contentWindow.document.execCommand("readonly", false, !(source)); } </SCRIPT> <INPUT onclick=viewsource(this.checked) type=checkbox> View HTML Source</INPUT> <INPUT onclick=usecss(this.checked) type=checkbox CHECKED> Use CSS</INPUT> <INPUT onclick=readonly(this.checked) type=checkbox> Read only</INPUT> </BODY></HTML> |
From: Jamie <ast...@us...> - 2005-08-24 21:55:26
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/gecko In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/gecko Added Files: Tag: REL1_1_BRANCH .DS_Store Log Message: directory restructuring --- NEW FILE: .DS_Store --- (This appears to be a binary file; contents omitted.) |
From: Jamie <ast...@us...> - 2005-08-24 21:55:26
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/js Added Files: Tag: REL1_1_BRANCH dhtmled.js lib.js lib2.js lib_ms.js Log Message: directory restructuring --- NEW FILE: dhtmled.js --- //Cmd Maps DECMD_BOLD = 5000 DECMD_COPY = 5002 DECMD_CUT = 5003 DECMD_DELETE = 5004 DECMD_DELETECELLS = 5005 DECMD_DELETECOLS = 5006 DECMD_DELETEROWS = 5007 DECMD_FINDTEXT = 5008 DECMD_FONT = 5009 DECMD_GETBACKCOLOR = 5010 DECMD_GETBLOCKFMT = 5011 DECMD_GETBLOCKFMTNAMES = 5012 DECMD_GETFONTNAME = 5013 DECMD_GETFONTSIZE = 5014 DECMD_GETFORECOLOR = 5015 DECMD_HYPERLINK = 5016 DECMD_IMAGE = 5017 DECMD_INDENT = 5018 DECMD_INSERTCELL = 5019 DECMD_INSERTCOL = 5020 DECMD_INSERTROW = 5021 DECMD_INSERTTABLE = 5022 DECMD_ITALIC = 5023 DECMD_JUSTIFYCENTER = 5024 DECMD_JUSTIFYLEFT = 5025 DECMD_JUSTIFYRIGHT = 5026 DECMD_LOCK_ELEMENT = 5027 DECMD_MAKE_ABSOLUTE = 5028 DECMD_MERGECELLS = 5029 DECMD_ORDERLIST = 5030 DECMD_OUTDENT = 5031 DECMD_PASTE = 5032 DECMD_REDO = 5033 DECMD_REMOVEFORMAT = 5034 DECMD_SELECTALL = 5035 DECMD_SEND_BACKWARD = 5036 DECMD_BRING_FORWARD = 5037 DECMD_SEND_BELOW_TEXT = 5038 DECMD_BRING_ABOVE_TEXT = 5039 DECMD_SEND_TO_BACK = 5040 DECMD_BRING_TO_FRONT = 5041 DECMD_SETBACKCOLOR = 5042 DECMD_SETBLOCKFMT = 5043 DECMD_SETFONTNAME = 5044 DECMD_SETFONTSIZE = 5045 DECMD_SETFORECOLOR = 5046 DECMD_SPLITCELL = 5047 DECMD_UNDERLINE = 5048 DECMD_UNDO = 5049 DECMD_UNLINK = 5050 DECMD_UNORDERLIST = 5051 DECMD_PROPERTIES = 5052 // // Enums // // OLECMDEXECOPT OLECMDEXECOPT_DODEFAULT = 0 OLECMDEXECOPT_PROMPTUSER = 1 OLECMDEXECOPT_DONTPROMPTUSER = 2 // DHTMLEDITCMDF DECMDF_NOTSUPPORTED = 0 DECMDF_DISABLED = 1 DECMDF_ENABLED = 3 DECMDF_LATCHED = 7 DECMDF_NINCHED = 11 // DHTMLEDITAPPEARANCE DEAPPEARANCE_FLAT = 0 DEAPPEARANCE_3D = 1 // OLE_TRISTATE OLE_TRISTATE_UNCHECKED = 0 OLE_TRISTATE_CHECKED = 1 OLE_TRISTATE_GRAY = 2 --- NEW FILE: lib.js --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lib_ms.js --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lib2.js --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/modules Added Files: Tag: REL1_1_BRANCH behavior_css.js behavior_menu_invisible.js behavior_remove_phptags.js behavior_remove_xmltags.js button_about.js button_hr.gif button_hr.js button_html.htm button_html.js button_image.js button_imagemap.js button_log.js button_table_properties.html button_table_properties.js button_table_properties_gecko.html grid_small.js listbox_paragraph.js listbox_styleclass.js listbox_template.js listbox_template_example.html Log Message: directory restructuring --- NEW FILE: button_hr.js --- //init function MODUL__HrInsertGetApiInfoArray(_image) {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'button'; apiInfoArray['image'] = _image; apiInfoArray['title'] = 'Insert Line'; apiInfoArray['onclick'] = MODUL__HRinsertOnClick; apiInfoArray['exec'] = MODUL__HRinsertExec; // Set the position of the button apiInfoArray['grid'] = DECMD_HYPERLINK; //See js/dhtmled.js for valid values //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onclick'] = MODUL__HRinsertOnClick_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__HRinsertExec(_this,elementObject) {/*{{{*/ var sel; var range; var DOMobj = document[_this.objectId].DOM; if (DOMobj) { sel = DOMobj.selection; //window.status=sel.type.toLowerCase(); if (sel && sel.type && (sel.type.toLowerCase() == "text" || sel.type.toLowerCase() == "none")) { elementObject.className = 'sglButton'; elementObject.children.tags("IMG")[0].className = 'sglIcon'; elementObject.children.tags("IMG")[0].style.filter = ''; } else { elementObject.className = 'sglButton'; elementObject.children.tags("IMG")[0].className = 'sglIcon'; elementObject.children.tags("IMG")[0].style.filter = 'alpha(opacity=25)'; } } }/*}}}*/ function MODUL__HRinsertOnClick(_this) {/*{{{*/ if (!document[_this.getObjectId()] || document[_this.getObjectId()].Busy) return false; try{ var selection = document[_this.objectId].DOM.selection.createRange(); selection.pasteHTML('<hr>'); document[_this.objectId].focus(); } catch(e){;} return true; }/*}}}*/ //GECKO function MODUL__HRinsertOnClick_GECKO(api_info) {/*{{{*/ document.getElementById(api_info['ObjectId']).contentWindow.document.execCommand('inserthorizontalrule', false, null) }/*}}}*/ --- NEW FILE: grid_small.js --- function MODUL__dhtmlEditorSetGridSmall(editor) {/*{{{*/ editor.setMenuGrid(DECMD_SETFONTNAME); editor.setMenuGrid(DECMD_SETFONTSIZE); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_BOLD); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_SETFORECOLOR); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_JUSTIFYLEFT); editor.setMenuGrid(DECMD_JUSTIFYCENTER); editor.setMenuGrid(DECMD_JUSTIFYRIGHT); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_HYPERLINK); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_UNDO); editor.setMenuGrid(DECMD_REDO); return; editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_INSERTTABLE); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_INSERTROW); editor.setMenuGrid(DECMD_DELETEROWS); editor.setMenuGrid('|'); editor.setMenuGrid(DECMD_INSERTCOL); editor.setMenuGrid(DECMD_DELETECOLS); }/*}}}*/ --- NEW FILE: listbox_styleclass.js --- //init function MODUL__listBoxStyleClassGetApiInfoArray(config) {/*{{{*/ var preStyles = config['preStyles']; var cssDetection= true; var apiInfoArray = new Array(); apiInfoArray['typ'] = 'listbox'; apiInfoArray['box'] = new Array(); apiInfoArray['box'][0] = new Array(); apiInfoArray['box'][0]['name'] = 'Choose Style Format'; apiInfoArray['box'][0]['value'] = '_*_'; if (preStyles && preStyles.length) for (var i=0;i<preStyles.length;i++) { apiInfoArray['box'][i+1] = new Array(); apiInfoArray['box'][i+1]['name'] = preStyles[i]['name']; apiInfoArray['box'][i+1]['value'] = preStyles[i]['value']; } apiInfoArray['title'] = 'Styles'; apiInfoArray['onclick'] = MODUL__listBoxStyleClassOnClick; //apiInfoArray['onprepare'] = ____toggleEditModeOnPrepare; //apiInfoArray['onDocumentComplete'] = MODUL__listBoxStyleClassINIT; apiInfoArray['grid'] = DECMD_SETFONTSIZE; apiInfoArray['exec'] = MODUL__listBoxStyleClassExec; //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; apiInfoArray['QueryStatusItem'] = DECMD_GETBLOCKFMT; //GECKO apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onclick'] = MODUL__listBoxStyleClassOnClick_GECKO; apiInfoArray['GECKO_onDocumentComplete'] = MODUL__listBoxStyleClassOnDocumentComplete_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__listBoxStyleClassINIT(_this,elementObject) {/*{{{*/ var preStyles; if (!_this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY) { _this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY=new Array(); } for(var i=0; i<elementObject.length;i++) { _this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY[elementObject[i].value]=true; } }/*}}}*/ function MODUL__listBoxStyleClassExec(_this,elementObject) {/*{{{*/ if (!_this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY) MODUL__listBoxStyleClassINIT(_this,elementObject); //window.status=elementObject.length++; var sel; var range; var DOMobj = document[_this.objectId].DOM; var elementObjectSelected = ''; var cssDetection = false; if (DOMobj) { sel = DOMobj.selection; if (sel && sel.type) { //window.status=sel.createRange().parentElement().className; if ( true)//"text" == sel.type.toLowerCase() ) { range = sel.createRange(); var pElement = range.parentElement(); if (pElement && pElement.className) { elementObjectSelected = pElement.className; /* if (!_this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY) { _this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY=new Array(); } */ if (!_this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY[pElement.className]) { _this.MODUL__listBoxStyleClass_OPTION_TABLE_ARRAY[pElement.className]=true; var L = elementObject.length; if (cssDetection) { elementObject.length++; elementObject.options[L].text=pElement.className; elementObject.options[L].value=pElement.className; } } } } } } //elementObject.value = document[_this.objectId].ExecCommand(DECMD_GETBLOCKFMT, OLECMDEXECOPT_DODEFAULT); //window.status=document[_this.objectId].ExecCommand(DECMD_GETBLOCKFMT, OLECMDEXECOPT_DODEFAULT); if (!elementObjectSelected) {elementObject.selectedIndex=0;return true;} elementObject.value = elementObjectSelected;//select listBox return true; }/*}}}*/ function MODUL__listBoxStyleClassOnClick(_this,elementObject) {/*{{{*/ if (!document[_this.getObjectId()] || document[_this.getObjectId()].Busy) return false; var _className; var selection; var range; var DOMobj; var pElement; if (!document[_this.objectId] || !document[_this.objectId].DOM || !elementObject || !elementObject.value) return false; if (elementObject.value == '_*_') return true; DOMobj = document[_this.objectId].DOM; _className = elementObject.value; selection = DOMobj.selection; if (!selection) return false; range = selection.createRange() if (!range) return false; pElement = range.parentElement(); if (!pElement || !pElement.getAttribute) return false; if (_className.length) { pElement.className = _className; } else { pElement.className = ''; } //elementObject.selectedIndex = 0;//Not needed document[_this.objectId].Refresh(); return true; }/*}}}*/ //GECKO //a dirty solution... anytime should be better... function MODUL__listBoxStyleClassOnClick_GECKO(api_info) {/*{{{*/ var v = api_info['select_element_obj'].value; api_info['select_element_obj'].selectedIndex=0; if (v == '_*_') return true;//magic var ObjectId; var Obj; var win; var doc; var body; var sel; var range; ObjectId = api_info['ObjectId']; Obj = dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(ObjectId); win = document.getElementById(ObjectId).contentWindow; doc = win.document; body = doc.body; sel = win.getSelection() range = sel.getRangeAt(0); var breakpoint=1; var node4class=false; if (!sel) return; if (!sel.focusNode) return; var invalidClassContainer=new Array(); invalidClassContainer['HTML'] = true; invalidClassContainer['HEAD'] = true; invalidClassContainer['TITLE'] = true; invalidClassContainer['STYLE'] = true; invalidClassContainer['BODY'] = true; if (!sel.focusNode.nodeName || invalidClassContainer[sel.focusNode.nodeName.toUpperCase()]) return; if (sel.focusNode.nodeType==3)//TextElement... { node4class=sel.focusNode.parentNode; //Searching for a nonTextElement (Container for the class attribute) while(1)//arghhhhhhhhhhhhhhhhhhhhhGHHHGGggg... { if (!node4class)//??? { node4class=false; break; } if (node4class.nodeType==3) { node4class = node4class.parentNode; continue; } if (invalidClassContainer[node4class.nodeName.toUpperCase()]) { node4class=false; break; } //more checks ???... break; } } if (!node4class || !node4class.setAttribute) { return; } //now we should have a correct container for our class attrib. node4class.setAttribute('class',v); return; if (!api_info['select_element_obj'].disabled) { api_info['select_element_obj'].selectedIndex=0; api_info['select_element_obj'].disabled=true; alert("Currently this is not supported for your Browser"); } }/*}}}*/ function MODUL__listBoxStyleClassOnDocumentComplete_GECKO(api_info) {/*{{{*/ }/*}}}*/ --- NEW FILE: button_table_properties.html --- <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- document.writeln('<title>'+window.dialogArguments['title']+'</title>'); //--> </SCRIPT> <STYLE TYPE="text/css"> BODY {margin-left:10; font-family:Verdana; font-size:12; background:menu} BUTTON {width:5em} TABLE,TD,INPUT {font-family:Verdana; font-size:10px} P {text-align:center} </STYLE> <SCRIPT LANGUAGE=JavaScript> function _return() { var arg = window.dialogArguments; var ret = new Array(); ret['attributes'] = new Array(); for ( var i=0;i<arg['attributes'].length;i++ ) { ret['attributes'][i] = new Array(); ret['attributes'][i]['name'] = arg['attributes'][i]; ret['attributes'][i]['value'] = document.getElementById(arg['attributes'][i]).value; } for ( var i=0;i<arg['attributes_advanced'].length;i++ ) { var l=ret['attributes'].length; ret['attributes'][l] = new Array(); ret['attributes'][l]['name'] = arg['attributes_advanced'][i]; ret['attributes'][l]['value'] = document.getElementById(arg['attributes_advanced'][i]).value; } window.returnValue = ret; window.close(); } </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=document EVENT=onkeydown> if (event.keyCode == 27) self.close(); if (event.keyCode == 114) { dialogWidth = parseInt(dialogWidth)+20+'px'; dialogHeight = parseInt(dialogHeight)+20+'px'; } if (event.keyCode == 115 && parseInt(dialogWidth)>20 && parseInt(dialogHeight)>20) { dialogWidth = parseInt(dialogWidth)-20+'px'; dialogHeight = parseInt(dialogHeight)-20+'px'; } </SCRIPT> </HEAD> <BODY> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- var attributes = window.dialogArguments['attributes']; var attributes_advanced = window.dialogArguments['attributes_advanced']; var pElement = window.dialogArguments['pElement']; var thisAttribute; document.writeln('<TABLE CELLSPACING=3>'); for ( var i=0;i<attributes.length;i++ ) { var thisAttribute = attributes[i]; document.writeln('<TR>'); document.writeln('<TD>'); document.writeln(thisAttribute); document.writeln('</TD>'); document.writeln('<TD>'); document.writeln('<INPUT value="'+pElement.getAttribute(thisAttribute)+'" ID="'+thisAttribute+'"></TD>'); document.writeln('</TD>'); document.writeln('</TR>'); } for ( var i=0;i<attributes_advanced.length;i++ ) { var thisAttribute = attributes_advanced[i]; document.writeln('<TR>'); document.writeln('<TD>'); document.writeln(thisAttribute); document.writeln('</TD>'); document.writeln('<TD>'); document.writeln('<INPUT value="'+pElement.getAttribute(thisAttribute)+'" ID="'+thisAttribute+'"></TD>'); document.writeln('</TD>'); document.writeln('</TR>'); } document.writeln('</TABLE>'); //--> </SCRIPT> <P> <BUTTON TYPE=SUBMIT onclick="_return()">OK</BUTTON> <BUTTON ONCLICK="window.close();">Cancel</BUTTON> </BODY> </HTML> --- NEW FILE: behavior_remove_phptags.js --- //init function MODUL__behaviorRemovePHPTagsGetApiInfoArray() {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'behavior'; apiInfoArray['onDocumentComplete'] = MODUL__behaviorRemovePHPTagsOnDocumentComplete; apiInfoArray['onprepare'] = MODUL__behaviorRemovePHPTagsOnPrepare; apiInfoArray['onGetHtmlSource'] = MODUL__behaviorRemovePHPTagsOnPrepare; //Gecko apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onprepare'] = MODUL__behaviorRemovePHPTagsOnPrepare_GECKO; apiInfoArray['GECKO_onGetHtmlSource'] = MODUL__behaviorRemovePHPTagsOnPrepare_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__behaviorRemovePHPTagsOnDocumentComplete(_this) {/*{{{*/ //MODUL__behaviorRemovePHPTagsOnPrepare(_this) return true; }/*}}}*/ function MODUL__behaviorRemovePHPTagsOnPrepare(_this) {/*{{{*/ try { var gt='>';//avoid php ending var content=false; eval("content = document[_this.getObjectId()].DOM.body.innerHTML.replace(/<\\?/g,'<?');"); eval("content = document[_this.getObjectId()].DOM.body.innerHTML.replace(/\\?>/g,'>?');"); if (content) document[_this.getObjectId()].DOM.body.innerHTML = content ; } catch(e){return false;}; return true; }/*}}}*/ //GECKO function MODUL__behaviorRemovePHPTagsOnPrepare_GECKO(api_info) {/*{{{*/ try { var gt='>';//avoid php ending var content=false; eval("content = document.getElementById(api_info['ObjectId']).contentWindow.document.body.innerHTML.replace(/<\\?/g,'<?');"); eval("content = document.getElementById(api_info['ObjectId']).contentWindow.document.body.innerHTML.replace(/\\?>/g,'>?');"); if (content) document[_this.getObjectId()].DOM.body.innerHTML = content ; } catch(e){return false;}; return true; }/*}}}*/ --- NEW FILE: button_html.js --- //Init Function function MODUL__toggleEditModeGetApiInfoArray(_image) {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'button'; apiInfoArray['image'] = _image; apiInfoArray['title'] = 'HTML'; apiInfoArray['onclick'] = MODUL__toggleEditMode; apiInfoArray['onprepare'] = MODUL__toggleEditModeOnPrepare; apiInfoArray['onGetHtmlSource'] = MODUL__toggleEditModeOnPrepare; apiInfoArray['onDocumentComplete'] = MODUL__toggleEditModeOnDocumentComplete; //apiInfoArray['grid'] = DECMD_HYPERLINK;//Set the Position here- See js/dhtmled.js for valid values //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; //enable ContextMenu entry(s) apiInfoArray['ContextMenu'] = new Array(); var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].menuString = MENU_SEPARATOR__; apiInfoArray['ContextMenu'][_L].grid = DECMD_PASTE; var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].queryStatus = ''; apiInfoArray['ContextMenu'][_L].queryStatusFunction = MODUL__toggleEditModeContextQueryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = apiInfoArray['title']; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__toggleEditModeContextMenuAction; apiInfoArray['ContextMenu'][_L].queryStatusCmdId = ''; apiInfoArray['ContextMenu'][_L].grid = DECMD_PASTE; var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].menuString = MENU_SEPARATOR__; apiInfoArray['ContextMenu'][_L].grid = DECMD_PASTE; //Gecko Wilco Support //apiInfoArray['typ'] = 'button'; //apiInfoArray['title'] = 'HTML'; apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_image'] = _image; apiInfoArray['GECKO_onclick'] = MODUL__toggleEditMode_GECKO; apiInfoArray['GECKO_onprepare'] = MODUL__toggleEditMode_onprepare_GECKO; apiInfoArray['GECKO_onGetHtmlSource'] = MODUL__toggleEditMode_onprepare_GECKO; apiInfoArray['GECKO_exec'] = MODUL__toggleEditMode_EXEC_GECKO; return apiInfoArray; }/*}}}*/ //MSDHTML Functions function MODUL__toggleEditModeOnDocumentComplete(_this) {/*{{{*/ //____toggleEditMode(_this); return true; }/*}}}*/ function MODUL__toggleEditModeOnPrepare(_this) {/*{{{*/ var _display = document[_this.getObjectId()].style.display; if (_display.toLowerCase() == 'none' && _this.outPutMode != 'makeonly' ) { //refresh by switching ;-) MODUL__toggleEditMode(_this); MODUL__toggleEditMode(_this); } return true; }/*}}}*/ function MODUL__toggleEditMode(_this,__mode) {/*{{{*/ if (!document[_this.getObjectId()] || document[_this.getObjectId()].Busy) return false; if (__mode == -9 ||!document.getElementById(_this.getElementId()) || _this.outPutMode == 'makeonly' )//|| mode_==2)//|| _this.outPutMode == 'replaceTextarea') { //alert('Not Supportet'); var w = _this.width; var h = _this.height; if (true || w<600 || w>1300) w=700; if (true || h<400 || h>800) h=500; var arg = new Array(); arg[0] = _this; arg[1] = window; var arr = showModalDialog( document.dhtmlEditors_home+'modules/button_html.htm', arg, "font-family:Verdana; font-size:12; dialogWidth:"+w+"px; dialogHeight:"+h+"px" ); return true; } var _display = document[_this.getObjectId()].style.display; var i ; if (_display == '' || _display.toLowerCase() == 'block') { document[_this.getObjectId()].Refresh(); document.getElementById(_this.getElementId()).value = document[_this.getObjectId()].DOM.body.innerHTML; _this.disableAllButtons(); //except me for (i=0; i<_this.QueryStatusToolbarButtons.length; i++) { if (_this.QueryStatusToolbarButtons[i].element && _this.QueryStatusToolbarButtons[i].element.className && _this.QueryStatusToolbarButtons[i].element.children && _this.QueryStatusToolbarButtons[i].element.children.tags && _this.QueryStatusToolbarButtons[i].element.children.tags("IMG") && _this.QueryStatusToolbarButtons[i].element.children.tags("IMG")[0] && _this.QueryStatusToolbarButtons[i].element.children.tags("IMG")[0].className && _this.QueryStatusToolbarButtons[i].element.children.tags("IMG")[0].title == 'HTML' ) { _this.QueryStatusToolbarButtons[i].element.className = 'sglButton'; _this.QueryStatusToolbarButtons[i].element.children.tags("IMG")[0].className = 'sglIcon'; _this.QueryStatusToolbarButtons[i].element.children.tags("IMG")[0].style.filter = ''; } } if (!document.getElementById(_this.getElementId()).style.backgroundColorSaved) { document.getElementById(_this.getElementId()).style.widthSaved = document.getElementById(_this.getElementId()).style.width; document.getElementById(_this.getElementId()).style.heightSaved = document.getElementById(_this.getElementId()).style.height; document.getElementById(_this.getElementId()).wrapSaved = document.getElementById(_this.getElementId()).wrap; document.getElementById(_this.getElementId()).style.backgroundColorSaved = document.getElementById(_this.getElementId()).style.backgroundColor; } document.getElementById(_this.getElementId()).style.width = _this.width;//+'px'; document.getElementById(_this.getElementId()).style.height = _this.height;//+'px'; document.getElementById(_this.getElementId()).wrap = 'off'; document.getElementById(_this.getElementId()).style.backgroundColor = "#d3d3d3"; document.getElementById(_this.getObjectId()).style.display = 'none'; document.getElementById(_this.getElementId()).style.display = 'block'; //document.getElementById(_this.getElementId()).focus(); //document.getElementById(_this.getElementId()).focus(); } else { document.getElementById(_this.getElementId()).style.display = 'none'; document[_this.getObjectId()].style.display = 'block'; document[_this.getObjectId()].DOM.body.innerHTML = document.getElementById(_this.getElementId()).value; document[_this.getObjectId()].Refresh(); //restore the settings of textarea document.getElementById(_this.getElementId()).style.width = document.getElementById(_this.getElementId()).style.widthSaved; document.getElementById(_this.getElementId()).style.height = document.getElementById(_this.getElementId()).style.heightSaved; document.getElementById(_this.getElementId()).wrap = document.getElementById(_this.getElementId()).wrapSaved; document.getElementById(_this.getElementId()).style.backgroundColor = document.getElementById(_this.getElementId()).style.backgroundColorSaved; _this.enableAllButtons(); } }/*}}}*/ function MODUL__toggleEditModeContextMenuAction(_this) {/*{{{*/ MODUL__toggleEditMode(_this,-9); }/*}}}*/ function MODUL__toggleEditModeContextQueryStatusFunction(xPos,yPos,contextMenuCollectionItem,_this) {/*{{{*/ return OLE_TRISTATE_UNCHECKED; }/*}}}*/ //Gecko Plugin Functions function MODUL__toggleEditMode_onprepare_GECKO(api_info) {/*{{{*/ var myEditObjId = api_info['ObjectId']; if (dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).API_tmp_MODUL__toggleEditMode_GECKO) { document.getElementById(myEditObjId).contentWindow.document.body.innerHTML=document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').value; } }/*}}}*/ function MODUL__toggleEditMode_GECKO(api_info) {/*{{{*/ dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).API_tmp_MODUL__toggleEditMode_GECKO= !dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).API_tmp_MODUL__toggleEditMode_GECKO; var ws=4; var hs=0; //alert(dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).API_tmp_MODUL__toggleEditMode_GECKO) var myEditObjId = api_info['ObjectId']; if (dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).API_tmp_MODUL__toggleEditMode_GECKO) { if(!document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt')) { var txtArea = document.getElementById(myEditObjId).contentWindow.document.createElement("textarea"); txtArea.setAttribute("id", myEditObjId+"modultoggleeditmodegeckoplugintxt"); var w = parseInt(document.getElementById(myEditObjId).style.width); var h = parseInt(document.getElementById(myEditObjId).style.height); w+=ws; h+=hs; txtArea.setAttribute("style",'display:none; width:'+w+'px; height:'+h+'px;'); document.getElementById(myEditObjId+'iframecontainer').appendChild(txtArea); } MODUL__toggleEditMode_ButtonsGECKO(api_info,0); document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').value=document.getElementById(myEditObjId).contentWindow.document.body.innerHTML; document.getElementById(myEditObjId).style.visibility="hidden"; document.getElementById(myEditObjId).style.width="0px"; document.getElementById(myEditObjId).style.height="0px"; document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').style.display="block"; document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').focus(); return; } else { //alert(1); MODUL__toggleEditMode_ButtonsGECKO(api_info,1); document.getElementById(myEditObjId).contentWindow.document.body.innerHTML=document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').value; document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').style.display="none"; document.getElementById(myEditObjId).style.width=parseInt(document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').style.width)-ws; document.getElementById(myEditObjId).style.height=parseInt(document.getElementById(myEditObjId+'modultoggleeditmodegeckoplugintxt').style.height)-hs; document.getElementById(myEditObjId).style.visibility="visible"; document.getElementById(myEditObjId).contentWindow.focus(); return; } }/*}}}*/ function MODUL__toggleEditMode_ButtonsGECKO(api_info,_do) {/*{{{*/ var _this = new Array('disable','enable'); eval("dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).onthefly_"+_this[_do]+"AllButtons()"); document.getElementById(api_info['ObjectId']+'APIB'+api_info['id']).style.visibility='visible'; }/*}}}*/ function MODUL__toggleEditMode_EXEC_GECKO(api_info) {/*{{{*/ return dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).API_tmp_MODUL__toggleEditMode_GECKO; return true; }/*}}}*/ --- NEW FILE: behavior_remove_xmltags.js --- //init function MODUL__behaviorRemoveXmlTagsGetApiInfoArray() {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'behavior'; apiInfoArray['onDocumentComplete'] = MODUL__behaviorRemoveXmlTagsOnDocumentComplete; apiInfoArray['onprepare'] = MODUL__behaviorRemoveXmlTagsOnPrepare; apiInfoArray['onGetHtmlSource'] = MODUL__behaviorRemoveXmlTagsOnPrepare; //Gecko apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onprepare'] = MODUL__behaviorRemoveXmlTagsOnPrepare_GECKO; apiInfoArray['GECKO_onGetHtmlSource'] = MODUL__behaviorRemoveXmlTagsOnPrepare_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__behaviorRemoveXmlTagsOnDocumentComplete(_this) {/*{{{*/ //MODUL__behaviorRemoveXmlTagsOnPrepare(_this) return true; }/*}}}*/ function MODUL__behaviorRemoveXmlTagsOnPrepare(_this) {/*{{{*/ try { var gt='>';//avoid php ending var content=false; eval("content = document[_this.getObjectId()].DOM.body.innerHTML.replace(/<\\?xml[\\w\\W]{0,}?"+gt+"/ig,'');"); if (content) document[_this.getObjectId()].DOM.body.innerHTML = content ; } catch(e){return false;}; return true; }/*}}}*/ //GECKO function MODUL__behaviorRemoveXmlTagsOnPrepare_GECKO(api_info) {/*{{{*/ try { var gt='>';//avoid php ending var content=false; eval("content = document.getElementById(api_info['ObjectId']).contentWindow.document.body.innerHTML.replace(/<\\?xml[\\w\\W]{0,}?"+gt+"/ig,'');"); if (content) document[_this.getObjectId()].DOM.body.innerHTML = content ; } catch(e){return false;}; return true; }/*}}}*/ --- NEW FILE: button_image.js --- function MODUL__ImageAddEdit_EXEC(_this,elementObject) { var s = document[_this.objectId].QueryStatus(DECMD_IMAGE); if (s == DECMDF_DISABLED || s == DECMDF_NOTSUPPORTED) { if (!elementObject.children.tags("IMG")[0].style.filter.length) { elementObject.className = 'sglButton'; elementObject.children.tags("IMG")[0].className = 'sglIcon'; elementObject.children.tags("IMG")[0].style.filter = 'alpha(opacity=25)'; } } else if (s == DECMDF_ENABLED || s == DECMDF_NINCHED) { if (elementObject.className!='sglButtonMouseOverUp' || elementObject.children.tags("IMG")[0].style.filter.length) { elementObject.className = 'sglButton'; elementObject.children.tags("IMG")[0].className = 'sglIcon'; elementObject.children.tags("IMG")[0].style.filter = ''; } } else { // DECMDF_LATCHED if (elementObject.className!='sglButtonDown' || elementObject.children.tags("IMG")[0].style.filter.length) { elementObject.className = 'sglButtonDown'; elementObject.children.tags("IMG")[0].className = 'sglIconDown'; elementObject.children.tags("IMG")[0].style.filter = ''; } } } function MODUL__ImageAddEdit_queryStatusFunction(xPos,yPos,contextMenuCollectionItem,_this) { if (document[_this.objectId].Busy) return -1; var state = document[_this.objectId].QueryStatus(DECMD_INSERTROW); if (state==DECMDF_DISABLED) { //lets look of we are inside a table if ( !(document[_this.getObjectId()] && document[_this.getObjectId()].DOM && document[_this.getObjectId()].DOM.selection && document[_this.getObjectId()].DOM.selection.createRange) ) return -1; var selection = selection = document[_this.getObjectId()].DOM.selection.createRange(); if (!selection || !selection.parentElement || !selection.parentElement()) return -1;; if (MODUL__ImageAddEdit___small_helperlein__find_parent('table',selection.parentElement())) { //We are inside a table but QueryStatus returns DECMDF_DISABLED (that can be possible) //We show a OLE_TRISTATE_GRAY entry in the menu context in this case return OLE_TRISTATE_GRAY;; } return -1;//else we show nothink, cause we are not in a table } if (state == DECMDF_DISABLED || state == DECMDF_NOTSUPPORTED) { return OLE_TRISTATE_GRAY; } else if (state == DECMDF_ENABLED || state == DECMDF_NINCHED) { //lets look if action possible bacause DECMD_DELETECOLS is too raw if (contextMenuCollectionItem.menuString == 'Cell Properties' || contextMenuCollectionItem.menuString == 'Row Properties') { if ( !(document[_this.getObjectId()] && document[_this.getObjectId()].DOM && document[_this.getObjectId()].DOM.selection && document[_this.getObjectId()].DOM.selection.createRange) ) return -1; var selection = selection = document[_this.getObjectId()].DOM.selection.createRange(); if (!selection || !selection.parentElement || !selection.parentElement()) return -1;; var _tagName; if(contextMenuCollectionItem.menuString == 'Cell Properties') _tagName='td'; else _tagName='tr'; if (!MODUL__ImageAddEdit___small_helperlein__find_parent(_tagName,selection.parentElement())) { //We are inside a table but QueryStatus returns DECMDF_DISABLED (that can be possible) //We show a OLE_TRISTATE_GRAY entry in the menu context in this case return OLE_TRISTATE_GRAY;; } } return OLE_TRISTATE_UNCHECKED; } else { // DECMDF_LATCHED return OLE_TRISTATE_CHECKED; } //should never arrived :-) return -1; return OLE_TRISTATE_UNCHECKED;// = 0 return OLE_TRISTATE_CHECKED;// = 1 return OLE_TRISTATE_GRAY ;//= 2 } function MODUL__ImageAddEdit_ContextMenuAction(_this,contextMenuCollection) { //Busy ?! if ( !(document[_this.getObjectId()] && document[_this.getObjectId()].DOM && document[_this.getObjectId()].DOM.selection && document[_this.getObjectId()].DOM.selection.createRange) ) return false; var selection = selection = document[_this.getObjectId()].DOM.selection.createRange(); if (!selection || !selection.parentElement || !selection.parentElement()) return false; var pElement=false; if (contextMenuCollection['menuString'] == 'Row Properties')//users choice pElement = MODUL__ImageAddEdit___small_helperlein__find_parent('tr',selection.parentElement()); if (contextMenuCollection['menuString'] == 'Cell Properties')//users choice pElement = MODUL__ImageAddEdit___small_helperlein__find_parent('td',selection.parentElement()); if (contextMenuCollection['menuString'] == 'Table Properties')//users choice pElement = MODUL__ImageAddEdit___small_helperlein__find_parent('table',selection.parentElement()); if (!pElement) return false; var tagName = pElement.tagName; tagName = tagName.toLowerCase(); //alert(tagName); if(true) { if (true) { var ret var arg = new Array(); arg['attributes'] = new Array(); arg['attributes'][arg['attributes'].length] = 'bgColor'; arg['attributes'][arg['attributes'].length] = 'borderColor'; if (tagName =='table') arg['attributes'][arg['attributes'].length] = 'border'; if (tagName =='table') arg['attributes'][arg['attributes'].length] = 'cellSpacing'; if (tagName =='table') arg['attributes'][arg['attributes'].length] = 'cellPadding'; if (tagName !='tr') arg['attributes'][arg['attributes'].length] = 'width'; if (tagName !='tr') arg['attributes'][arg['attributes'].length] = 'height'; arg['attributes'][arg['attributes'].length] = 'align'; if (tagName !='table') arg['attributes'][arg['attributes'].length] = 'valign'; arg['attributes_advanced'] = new Array(); if (tagName !='tr') arg['attributes_advanced'][arg['attributes_advanced'].length] = 'backGround'; if (tagName !='tr') arg['attributes_advanced'][arg['attributes_advanced'].length] = 'borderColordark'; if (tagName !='tr') arg['attributes_advanced'][arg['attributes_advanced'].length] = 'borderColorlight'; if (false) arg['attributes_advanced'][arg['attributes_advanced'].length] = 'class'; if (false) arg['attributes_advanced'][arg['attributes_advanced'].length] = 'colspan'; if (false) arg['attributes_advanced'][arg['attributes_advanced'].length] = 'rowspan'; if (false) arg['attributes_advanced'][arg['attributes_advanced'].length] = 'style'; arg['attributes'][arg['attributes'].length] = 'title'; arg['attributes_advanced'][arg['attributes_advanced'].length] = 'dir'; arg['attributes_advanced'][arg['attributes_advanced'].length] = 'lang'; arg['attributes_advanced'][arg['attributes_advanced'].length] = 'id'; arg['pElement'] = pElement; arg['_this'] = _this; arg['_window'] = window; arg['title'] = contextMenuCollection['menuString']; var w = 350; var h = 500; var ret = showModalDialog( document.dhtmlEditors_home+'modules/button_table_properties.html', arg, "font-family:Verdana; dialogWidth:"+w+"px; dialogHeight:"+h+"px" ); if (ret && ret['attributes']) { for(var i=0;i<ret['attributes'].length;i++) { var name = ret['attributes'][i]['name']; var value = ret['attributes'][i]['value']; if (value.length<1) { try{ pElement.removeAttribute(name); }catch(_E){ alert(name+ ' '+value);}; } else { try{ pElement.setAttribute(name,value); }catch(_E){ alert(name+ ' '+value);}; } } } // document[_this.getObjectId()].style.display='none'; // document[_this.getObjectId()].style.display='block'; document[_this.getObjectId()].Refresh(); return true; } } return false; alert(contextMenuCollection['menuString']); } function MODUL__ImageAddEdit___small_helperlein__find_parent(_tagName,_element) { var escapE=0; while(_element && ++escapE<333*6) { if (_tagName.toLowerCase() != 'table' && _element.tagName.toLowerCase() == 'table') return false; if (_element.tagName && _element.tagName.toLowerCase() == _tagName.toLowerCase()) return _element; _element=_element.parentElement; } return false; //alert(_element.tagName); } function MODUL__ImageAddEdit_GetApiInfoArray(_image) { var apiInfoArray = new Array(); apiInfoArray['typ'] = 'button'; apiInfoArray['image'] = _image; apiInfoArray['title'] = 'Image';//if you change this title Change it below too!!! apiInfoArray['onclick'] = MODUL__ImageAddEdit_ONCLICK; apiInfoArray['exec'] = MODUL__ImageAddEdit_EXEC; // Set the position of the button apiInfoArray['grid'] = DECMD_INSERTTABLE; //See js/dhtmled.js for valid values //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; //enable ContextMenu entry(s) apiInfoArray['ContextMenu'] = new Array(); var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].queryStatus = ''; apiInfoArray['ContextMenu'][_L].queryStatusFunction = MODUL__ImageAddEdit_queryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = apiInfoArray['title']; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__ImageAddEdit_ContextMenuAction; apiInfoArray['ContextMenu'][_L].queryStatusCmdId = ''; apiInfoArray['ContextMenu'][_L].grid = DECMD_INSERTTABLE; var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].queryStatus = ''; apiInfoArray['ContextMenu'][_L].queryStatusFunction = MODUL__ImageAddEdit_queryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = "Cell Properties"; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__ImageAddEdit_ContextMenuAction; apiInfoArray['ContextMenu'][_L].queryStatusCmdId = ''; apiInfoArray['ContextMenu'][_L].grid = DECMD_INSERTTABLE; var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].queryStatus = ''; apiInfoArray['ContextMenu'][_L].queryStatusFunction = MODUL__ImageAddEdit_queryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = "Row Properties"; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__ImageAddEdit_ContextMenuAction; apiInfoArray['ContextMenu'][_L].queryStatusCmdId = ''; apiInfoArray['ContextMenu'][_L].grid = DECMD_INSERTTABLE; var _L = apiInfoArray['ContextMenu'].length; apiInfoArray['ContextMenu'][_L] = new Array(); apiInfoArray['ContextMenu'][_L].menuString = MENU_SEPARATOR__; apiInfoArray['ContextMenu'][_L].grid = DECMD_INSERTTABLE; return apiInfoArray; } function MODUL__ImageAddEdit_ONCLICK(_this) { if ( !(document[_this.getObjectId()] && document[_this.getObjectId()].DOM && document[_this.getObjectId()].DOM.selection && document[_this.getObjectId()].DOM.selection.createRange) ) return -1; var selection = document[_this.getObjectId()].DOM.selection; if (selection && selection.type && selection.type.toLowerCase() == 'control') { S } } --- NEW FILE: button_about.js --- (This appears to be a binary file; contents omitted.) --- NEW FILE: listbox_paragraph.js --- //This Plugin works only on german Windows Operating System if using IE //init function MODUL__listBoxParagraphGetApiInfoArray() {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'listbox'; apiInfoArray['box'] = new Array(); apiInfoArray['box'][0] = new Array(); apiInfoArray['box'][0]['name'] = 'Normal'; apiInfoArray['box'][0]['value'] = 'Normal'; for(var u=0;u<6;u++) { apiInfoArray['box'][u+1] = new Array(); apiInfoArray['box'][u+1]['name'] = 'Überschrift '+(u+1); apiInfoArray['box'][u+1]['value'] = 'Überschrift '+(u+1); } apiInfoArray['box'][6] = new Array(); apiInfoArray['box'][6]['name'] = 'Formatiert'; apiInfoArray['box'][6]['value'] = 'Formatiert'; apiInfoArray['box'][7] = new Array(); apiInfoArray['box'][7]['name'] = 'Adresse'; apiInfoArray['box'][7]['value'] = 'Adresse'; apiInfoArray['title'] = 'Heading'; apiInfoArray['onclick'] = MODUL__listBoxParagraphHeadingOnClick; //apiInfoArray['onprepare'] = ____toggleEditModeOnPrepare; //apiInfoArray['onDocumentComplete'] = ____toggleEditModeOnDocumentComplete; apiInfoArray['grid'] = DECMD_SETFONTSIZE; apiInfoArray['exec'] = MODUL__listBoxParagraphHeadingExec; //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; apiInfoArray['QueryStatusItem'] = DECMD_GETBLOCKFMT; //Gecko Wilco Support apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onclick'] = MODUL__listBoxParagraphHeadingOnClick_GECKO; apiInfoArray['GECKO_onDocumentComplete']= MODUL__listBoxParagraphHeadingOnDocumentComplete_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__listBoxParagraphHeadingExec(_this,elementObject) {/*{{{*/ elementObject.value = document[_this.objectId].ExecCommand(DECMD_GETBLOCKFMT, OLECMDEXECOPT_DODEFAULT); //window.status=document[_this.objectId].ExecCommand(DECMD_GETBLOCKFMT, OLECMDEXECOPT_DODEFAULT); return true; }/*}}}*/ function MODUL__listBoxParagraphHeadingOnClick(_this,elementObject) {/*{{{*/ if (!document[_this.getObjectId()] || document[_this.getObjectId()].Busy) return false; document[_this.getObjectId()].ExecCommand(DECMD_SETBLOCKFMT, OLECMDEXECOPT_DODEFAULT, elementObject.value); document[_this.getObjectId()].focus(); //alert(_this); return true; }/*}}}*/ //Gecko function MODUL__listBoxParagraphHeadingOnDocumentComplete_GECKO(api_info) {/*{{{*/ var i; api_info['select_element_obj'].length = 0; //reset listbox, hehe :-) api_info['select_element_obj'][api_info['select_element_obj'].length] = new Option('Normal','<p>',true,false); api_info['select_element_obj'][api_info['select_element_obj'].length] = new Option('Paragraph','<p>',false,false); for(i=1;i<7;i++) { api_info['select_element_obj'][api_info['select_element_obj'].length] = new Option('Heading '+i,'<h'+i+'>',false,false); } api_info['select_element_obj'][api_info['select_element_obj'].length] = new Option('Address','<address>',false,false); api_info['select_element_obj'][api_info['select_element_obj'].length] = new Option('Formatted','<pre>',false,false); return true; }/*}}}*/ function MODUL__listBoxParagraphHeadingOnClick_GECKO(api_info) {/*{{{*/ /* api_info['ObjectId'] api_info['id'] api_info['select_element_obj'] api_info['idx'] */ if (!api_info['select_element_obj'].length) return; var cursel = api_info['select_element_obj'].selectedIndex; /* First one is always a label */ if (cursel != 0) { var selected = api_info['select_element_obj'].options[cursel].value; document.getElementById(api_info['ObjectId']).contentWindow.document.execCommand('formatblock', false, selected); document.getElementById(api_info['ObjectId']).selectedIndex = 0; } document.getElementById(api_info['ObjectId']).contentWindow.focus(); return true; }/*}}}*/ --- NEW FILE: button_html.htm --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Edit HTML Source - Resize the window with F1-F4</title> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> var editorObject = false; var _opener = false; function ________init() { editorObject = window.dialogArguments[0]; _opener = window.dialogArguments[1]; document.getElementById('tsource').style.width="100%";//parseInt(dialogWidth); document.getElementById('tsource').style.height="90%";//parseInt(dialogHeight); document.getElementById('tsource').style.backgroundColor ="#d3d3d3"; document.getElementById('tsource').value = _opener.document[editorObject.getObjectId()].DOM.body.innerHTML document.getElementById('tsource').focus(); } function ________put() { if (editorObject.setHtmlSource(document.getElementById('tsource').value) == true) { self.close(); } } </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=document EVENT=onkeydown> if (event.keyCode == 27) self.close(); if (event.keyCode == 112) document.getElementById('tsource').style.fontSize = parseInt(document.getElementById('tsource').style.fontSize)+2+'px'; if (event.keyCode == 113 && parseInt(document.getElementById('tsource').style.fontSize)>0) document.getElementById('tsource').style.fontSize = parseInt(document.getElementById('tsource').style.fontSize)-2+'px'; if (event.keyCode == 114) { dialogWidth = parseInt(dialogWidth)+20+'px'; dialogHeight = parseInt(dialogHeight)+20+'px'; } if (event.keyCode == 115 && parseInt(dialogWidth)>20 && parseInt(dialogHeight)>20) { dialogWidth = parseInt(dialogWidth)-20+'px'; dialogHeight = parseInt(dialogHeight)-20+'px'; } </SCRIPT> </head> <body onload="________init()" bgcolor="#d3d3d3" id="bo"> <textarea style="font-size:12px;" wrap="off" id="tsource"></textarea><br><div align="center"><input type="button" value="OK" onclick="________put()"> <input onclick="self.close()" type="button" value="Cancel"></div> </body> </html> --- NEW FILE: button_imagemap.js --- function MODUL_DECMD_IMAGEMAP_onclick(_this) { //DECMD_IMAGEMAP_RANGE = ''; //DECMD_IMAGEMAP_RANGE_ITEM = ''; var oSel ,sType, range_; oSel = document[_this.objectId].DOM.selection; range_ = oSel.createRange() if (range_.length <= 0 || !range_.item || range_.item(range_.length-1).tagName.toLowerCase() != 'img') { alert('Please click on an Image for using the Salomon Image Map Editor'); return; } args=new Array(); args['opener'] = window; args['dhtmlobj'] = document[_this.objectId]; d_ = new Date(); var arr = showModalDialog( document.dhtmlEditors_home+"modules/imagemap/index.php?fkproxy="+d_.getMilliseconds(),args,"dialogWidth:750px; dialogHeight:550px; center: Yes; help: No; resizable: Yes; status: Yes;" ); } function MODUL_DECMD_IMAGEMAP_getApiInfoArray(_image) { var apiInfoArray = new Array(); apiInfoArray['typ'] = 'button'; apiInfoArray['image'] = _image; apiInfoArray['title'] = 'Image Map'; apiInfoArray['onclick'] = MODUL_DECMD_IMAGEMAP_onclick; //apiInfoArray['exec'] = MODUL__HRinsertExec; // Set the position of the button apiInfoArray['grid'] = DECMD_SETBACKCOLOR; //See js/dhtmled.js for valid values //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; return apiInfoArray; } --- NEW FILE: button_table_properties_gecko.html --- <HTML> <HEAD> <title>Set Table Preferences :: Gecko's Midas DhtmlEditor</title> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- //document.writeln('<title>'+window.dialogArguments['title']+'</title>'); //--> </SCRIPT> <STYLE TYPE="text/css"> BODY {margin-left:10; font-family:Verdana; font-size:12; background:menu} BUTTON {width:5em} TABLE,TD,INPUT {font-family:Verdana; font-size:10px} P {text-align:center} </STYLE> <SCRIPT LANGUAGE=JavaScript> function _return(info,close_) { var t; var i; for(t in info) { for(i=0;i<info[t]['att'].length;i++) { var v=document.formd['info['+t+'][att]['+i+']'].value; if(!v.toString().length) { info[t]['node'].removeAttribute(info[t]['att'][i]); continue; } info[t]['node'].setAttribute(info[t]['att'][i],v); } } //opener.MODUL__TableProperties_ONCLICK_GECKO__GUIdid(info); if (close_) window.close(); } </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=document EVENT=onkeydown> /* if (event.keyCode == 27) self.close(); if (event.keyCode == 114) { dialogWidth = parseInt(dialogWidth)+20+'px'; dialogHeight = parseInt(dialogHeight)+20+'px'; } if (event.keyCode == 115 && parseInt(dialogWidth)>20 && parseInt(dialogHeight)>20) { dialogWidth = parseInt(dialogWidth)-20+'px'; dialogHeight = parseInt(dialogHeight)-20+'px'; } */ </SCRIPT> </HEAD> <BODY> <table><tr><td align="center"> <form name=formd> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- var t; var i; var info = opener.document.MODUL__TableProperties_ONCLICK_GECKO__GUIINFO; document.writeln('<TABLE CELLSPACING=0 cellpadding=3 border=1>'); document.writeln('<TR valign="top">'); for(t in info) { document.writeln('<TD><b>'+info[t]['desc']+'</b><br>'); document.writeln('<TABLE CELLSPACING=1 border=0>'); for(i=0;i<info[t]['att'].length;i++) { document.writeln('<TR valign="top">'); document.writeln('<TD>'); document.writeln(info[t]['att'][i]); document.writeln('</TD>'); document.writeln('<TD>'); var v=info[t]['node'].getAttribute(info[t]['att'][i]); if(v==null) v=''; document.writeln('<input name="info['+t+'][att]['+i+']" type="text" value="'+v.toString()+'" size=10>'); document.writeln('</TD>'); document.writeln('</TR>'); } document.writeln('</TABLE>'); document.writeln('</TD>'); } document.writeln('</TR>'); document.writeln('</TABLE>'); //--> </SCRIPT> <input TYPE=button value="OK" onclick="_return(info,1)"> <input TYPE=button value="Set" onclick="_return(info)"> <input type=button value="Cancel" ONCLICK="window.close();"> </form> </td></tr></table> </BODY> </HTML> --- NEW FILE: listbox_template.js --- //init function MODUL__listBoxTemplateGetApiInfoArray(config) {/*{{{*/ var i; var templates = config['templates']; var apiInfoArray = new Array(); apiInfoArray['typ'] = 'listbox'; apiInfoArray['div'] = new Array(); apiInfoArray['div']['box'] = new Array(); apiInfoArray['box'] = new Array(); apiInfoArray['box'][0] = new Array(); apiInfoArray['div']['box'][0] = new Array(); apiInfoArray['box'][0]['name'] = 'Choose a Template'; apiInfoArray['box'][0]['value'] = 'Choose a Template';//Not used yed apiInfoArray['div']['box'][0]['insert_mode'] = ''; apiInfoArray['div']['box'][0]['template_url'] = ''; apiInfoArray['div']['box'][0]['template_content']= ''; apiInfoArray['div']['box'][0]['url_content_cache']= false; for(i=0;templates && i<templates.length; i++) { apiInfoArray['box'][i+1] = new Array(); apiInfoArray['box'][i+1]['name'] = templates[i]['name']; apiInfoArray['box'][i+1]['value'] = templates[i]['value']; apiInfoArray['div']['box'][i+1] = new Array(); apiInfoArray['div']['box'][i+1]['insert_mode'] = templates[i]['insert_mode']; apiInfoArray['div']['box'][i+1]['template_url'] = templates[i]['template_url']; apiInfoArray['div']['box'][i+1]['template_content'] = templates[i]['template_content']; apiInfoArray['div']['box'][i+1]['url_content_cache'] = templates[i]['url_content_cache']; //defaults if (!apiInfoArray['div']['box'][i+1]['insert_mode']) apiInfoArray['div']['box'][i+1]['insert_mode'] = 'replace'; if (!apiInfoArray['div']['box'][i+1]['template_url']) apiInfoArray['div']['box'][i+1]['template_url'] = ''; if (!apiInfoArray['div']['box'][i+1]['template_content']) apiInfoArray['div']['box'][i+1]['template_content'] = ''; if (apiInfoArray['div']['box'][i+1]['url_content_cache'] != true ) apiInfoArray['div']['box'][i+1]['url_content_cache']= false; } apiInfoArray['title'] = 'Templates'; apiInfoArray['grid'] = DECMD_SETFONTSIZE; apiInfoArray['onclick'] = MODUL__listBoxTemplateOnClick; //apiInfoArray['onprepare'] = ____toggleEditModeOnPrepare; //apiInfoArray['onDocumentComplete'] = MODUL__listBoxStyleClassINIT; //apiInfoArray['exec'] = MODUL__listBoxStyleClassExec; //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; apiInfoArray['QueryStatusItem'] = DECMD_GETBLOCKFMT; //Gecko apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onclick'] = MODUL__listBoxTemplateOnClick_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__listBoxTemplateOnClick(_this,elementObject,apiInfoArray) {/*{{{*/ if (!elementObject) return false; if (!document[_this.getObjectId()] || document[_this.getObjectId()].Busy) return false; if ( !(apiInfoArray && apiInfoArray['box'] && apiInfoArray['div'] && apiInfoArray['div']['box']) ) {return false;} var insert_mode = ''; var template_url = ''; var template_content = ''; var content2Insert = ''; var arg = new Array(); var ret = new Array(); var selectedIndex = elementObject.selectedIndex;// /\ //\\ //check minimum settings ///\\\ if ( //\\//\\ !apiInfoArray['div']['box'][selectedIndex] || (// \||/ !apiInfoArray['div']['box'][selectedIndex]['template_url'] && !apiInfoArray['div']['box'][selectedIndex]['template_content'] && !apiInfoArray['div']['box'][selectedIndex]['insert_mode']// /||\ )// || || !(// || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'replace' || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'buttom' || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'cursor' || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'top'// || ) //\\ ) return false; // \\ //____\\ // |||| // || /* imaging live */ insert_mode = apiInfoArray['div']['box'][selectedIndex]['insert_mode']; template_url = apiInfoArray['div']['box'][selectedIndex]['template_url']; template_content = apiInfoArray['div']['box'][selectedIndex]['template_content']; if (template_url) { var isCached=false; //enable caching ? if (apiInfoArray['div']['box'][selectedIndex]['url_content_cache'] == true) { //memory allocated ? if (!document.MODUL__listBoxTemplate_CACHED_URL_CONTENT) document.MODUL__listBoxTemplate_CACHED_URL_CONTENT=new Array(); //Cached ? if (document.MODUL__listBoxTemplate_CACHED_URL_CONTENT[template_url]) { ret = document.MODUL__listBoxTemplate_CACHED_URL_CONTENT[template_url]; isCached = true; } } if (!isCached) { arg['_this'] = _this; arg['_onload'] = MODUL__listBoxTemplateDialogOnLoadEvent; ret = showModalDialog(template_url,arg,"dialogWidth:"+180+"px; dialogHeight:"+10+"px"); if (!ret) return false; //Should be Cached ? if (apiInfoArray['div']['box'][selectedIndex]['url_content_cache']) document.MODUL__listBoxTemplate_CACHED_URL_CONTENT[template_url]=ret; } content2Insert = ret['content2Insert']; if (!content2Insert) content2Insert = ''; } if (template_content) { content2Insert += template_content; } // ok - all the content is in content2Insert, now cecking out the insert Mode //busy ? if (insert_mode == 'replace') { _this.setHtmlSource(content2Insert); } if (insert_mode == 'buttom') { document[_this.getObjectId()].DOM.body.innerHTML += content2Insert; } if (insert_mode == 'top') { document[_this.getObjectId()].DOM.body.innerHTML = content2Insert+document[_this.getObjectId()].DOM.body.innerHTML; } if (insert_mode == 'cursor') { try { var selection; selection = document[_this.getObjectId()].DOM.selection.createRange(); selection.pasteHTML(content2Insert); } catch(e) {;} } document[_this.getObjectId()].Refresh(); elementObject.selectedIndex=0; return true; }/*}}}*/ function MODUL__listBoxTemplateDialogOnLoadEvent(DialogWindow) {/*{{{*/ var ret = new Array(); ret['status'] = true; ret['error_num'] = 0; ret['error_val'] = ''; ret['content2Insert'] = DialogWindow.document['body'].innerHTML; DialogWindow.returnValue = ret; DialogWindow.close(); }/*}}}*/ //Gecko function MODUL__listBoxTemplateOnClick_GECKO(api_info) {/*{{{*/ /* api_info['ObjectId'] api_info['id'] api_info['select_element_obj'] api_info['idx'] */ var div = dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(api_info['ObjectId']).ApiModulListBoxes[api_info['idx']].div; var selectedIndex = api_info['select_element_obj'].selectedIndex; var insert_mode = ''; var template_url = ''; var template_content = ''; var content2Insert = ''; var arg = new Array(); var ret = new Array(); var apiInfoArray = new Array(); apiInfoArray['div'] = div;//Mapping // /\ //\\ //check minimum settings ///\\\ if ( //\\//\\ !apiInfoArray['div']['box'][selectedIndex] || (// \||/ !apiInfoArray['div']['box'][selectedIndex]['template_url'] && !apiInfoArray['div']['box'][selectedIndex]['template_content'] && !apiInfoArray['div']['box'][selectedIndex]['insert_mode']// /||\ )// || || !(// || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'replace' || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'buttom' || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'cursor' || apiInfoArray['div']['box'][selectedIndex]['insert_mode'] == 'top'// || ) //\\ ... [truncated message content] |
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/images Added Files: Tag: REL1_1_BRANCH absmode.gif abspos.gif additem.gif bgcolor.gif bold.gif borders.gif break.gif bullist.gif center.gif copy.gif cut.gif deindent.gif delcell.gif delcol.gif delete.gif delrow.gif details.gif dms.gif email.gif end.gif fgcolor.gif find.gif fullscrn.gif help.gif image.gif immap.gif inindent.gif inscell.gif inscol.gif insrow.gif instable.gif italic.gif left.gif link.gif linkadv.gif lock.gif mrgcell.gif newdoc.gif newproj.gif numlist.gif open.gif paste.gif print.gif project.gif props.gif reddot.gif redo.gif right.gif save.gif saveall.gif saveas.gif snapgrid.gif source.gif spltcell.gif start.gif target.gif tasklist.gif tblprop.gif under.gif undo.gif zb_b.gif zb_o.gif zb_y.gif zf_b.gif zf_o.gif zf_y.gif Log Message: directory restructuring --- NEW FILE: end.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: start.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: italic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: zf_y.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: open.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: copy.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: saveas.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: numlist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: target.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: insrow.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: delcol.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: dms.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: snapgrid.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: source.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: right.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: details.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: under.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: delrow.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: deindent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: zb_y.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: inscell.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: inscol.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: spltcell.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: left.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: find.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: delete.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: bold.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: immap.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: delcell.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: zb_b.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: abspos.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: image.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: instable.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: undo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cut.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: reddot.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: bgcolor.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tasklist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: break.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: absmode.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: saveall.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newdoc.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lock.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: email.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: fgcolor.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: project.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: fullscrn.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tblprop.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: zf_b.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: linkadv.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newproj.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: zb_o.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: center.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: print.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: bullist.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mrgcell.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: redo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: additem.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: link.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: help.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: save.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: props.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: zf_o.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: inindent.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: paste.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: borders.gif --- (This appears to be a binary file; contents omitted.) |
From: Jamie <ast...@us...> - 2005-08-24 21:55:25
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/css Added Files: Tag: REL1_1_BRANCH toolbars.css Log Message: directory restructuring --- NEW FILE: toolbars.css --- .sglButton { BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonface solid 1px; BORDER-LEFT: buttonface solid 1px; BORDER-RIGHT: buttonface solid 1px; BORDER-TOP: buttonface solid 1px; HEIGHT: 23px; WIDTH: 23px; } .sglIcon { POSITION: RELATIVE; LEFT: 0px; TOP: px; } .sglIconDown { POSITION: RELATIVE; LEFT: +1; TOP: +1; } .sglButtonMouseOverUp { BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow solid 1px; BORDER-LEFT: buttonhighlight solid 1px; BORDER-RIGHT: buttonshadow solid 1px; BORDER-TOP: buttonhighlight solid 1px; HEIGHT: 23px; WIDTH: 24px; } .sglButtonMouseOverDown { BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonhighlight solid 1px; BORDER-LEFT: buttonshadow solid 1px; BORDER-RIGHT: buttonhighlight solid 1px; BORDER-TOP: buttonshadow solid 1px; HEIGHT: 23px; WIDTH: 24px; } .sglButtonDown { BACKGROUND-COLOR: gainsboro; BORDER-BOTTOM: buttonhighlight solid 1px; BORDER-LEFT: buttonshadow solid 1px; BORDER-RIGHT: buttonhighlight solid 1px; BORDER-TOP: buttonshadow solid 1px; HEIGHT: 23px; WIDTH: 24px; } .sglSeparator { BORDER-LEFT: buttonshadow solid 1px; BORDER-RIGHT: buttonhighlight solid 1px; FONT-SIZE: 0px; HEIGHT: 22px; WIDTH: 1px; } .sglSeparatorLine { BORDER-LEFT: buttonshadow solid 1px; BORDER-RIGHT: buttonhighlight solid 1px; FONT-SIZE: 0px; HEIGHT: 1px; } .sglGeneral { HEIGHT: 22px; } .sglMenuIconMouseOver { BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow solid 1px; BORDER-LEFT: buttonhighlight solid 1px; BORDER-RIGHT: buttonshadow solid 1px; BORDER-TOP: buttonhighlight solid 1px; } .sglToolbar { BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow solid 1px; BORDER-LEFT: buttonhighlight solid 1px; BORDER-RIGHT: buttonshadow solid 1px; BORDER-TOP: buttonhighlight solid 1px; HEIGHT: 27px; } |
From: Jamie <ast...@us...> - 2005-08-24 21:55:25
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/dialog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/dialog Added Files: Tag: REL1_1_BRANCH instable.htm selcolor.htm setlink.htm Log Message: directory restructuring --- NEW FILE: setlink.htm --- <HTML> <HEAD> <TITLE>Set Hyperlink</TITLE> <STYLE TYPE="text/css"> BODY {margin-left:10; font-family:Arial; font-size:10; background:menu} BUTTON {width:7em} TABLE {font-family:Arial; font-size:10} P {text-align:center} </STYLE> <SCRIPT LANGUAGE=JavaScript> <!-- function set_target(s_obj) { var tval = s_obj.options[s_obj.selectedIndex].value; HREFtarget.value = tval; } function IsDigit() { return ((event.keyCode >= 48) && (event.keyCode <= 57)) } // --> </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=window EVENT=onload> <!-- for ( elem in window.dialogArguments ) { if (elem=='link') { HREFlink.value = window.dialogArguments["link"]; if (!HREFlink.value) HREFlink.value=''; } if (elem=='target') { HREFtarget.value = window.dialogArguments["target"]; //if (!HREFtarget.value) HREFtarget.value='_self'; } } // --> </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=Ok EVENT=onclick> <!-- var arr = new Array(); arr["link"] = HREFlink.value; arr["target"] = HREFtarget.value; window.returnValue = arr; window.close(); // --> </SCRIPT> </HEAD> <BODY> <table cellpadding="6" cellspacing="" border="0"> <tr> <td> <fieldset><legend>Hyperlink information</legend> <table> <tr> <td>URL</td> <td><INPUT TYPE=TEXT SIZE=40 NAME=HREFlink></td> </tr> <tr> <td>Target</td> <td> <script> var config = window.dialogArguments["config"]; if (!config) { config = new Array(); config['advanced'] = 0; } if (config['advanced'] == 1) { document.writeln('<INPUT TYPE=TEXT SIZE=10 NAME=HREFtarget>'); document.writeln(' '); document.writeln('<img align="middle" src="../images/target.gif" alt="Choose Target here -->" width="23" height="22" border="0" title="Choose Target here -->">'); } else { document.writeln('<INPUT TYPE=HIDDEN NAME=HREFtarget>'); } </script> <select onchange="set_target(this)" title="Choose Target here"> <option value=""></option> <option value="_self">Open link in same window</option> <option value="_blank">Open link in new window</option> <script> if (config['advanced'] == 1) { document.writeln('<option value="_blank">_blank</option>'); document.writeln('<option value="_self">_self</option>'); document.writeln('<option value="_parent">_parent</option>'); document.writeln('<option value="_top">_top</option>'); } </script> </select> </td> </tr> <tr> <td>Email:</td> <td> <a href="#" onclick="HREFtarget.value='';HREFlink.value='mailto:';HREFlink.focus();">Click here to set an email address link</a> </td> </tr> </table> </fieldset> </td> <td> <BUTTON ID=Ok TYPE=SUBMIT>OK</BUTTON><br> <BUTTON ONCLICK="window.close();">Cancel</BUTTON> </td> </tr> </table> </BODY> </HTML> --- NEW FILE: selcolor.htm --- <!-- Copyright 1998 Microsoft Corporation. All rights reserved. --> <HTML> <HEAD> <TITLE>Select Color</TITLE> <STYLE TYPE="text/css"> BODY {margin-left:10; font-family:Verdana; font-size:12; background:menu} BUTTON {width:5em} P {text-align:center} TABLE {cursor:hand} </STYLE> <SCRIPT LANGUAGE=JavaScript FOR=ColorTable EVENT=onclick> SelColor.value = event.srcElement.title; </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=ColorTable EVENT=onmouseover> text = event.srcElement.title; if ( text != event.srcElement.bgColor ) text += " (" + event.srcElement.bgColor + ")"; RGB.innerText = text; </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=ColorTable EVENT=onmouseout> RGB.innerText = " "; </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=Ok EVENT=onclick> window.returnValue = SelColor.value; window.close(); </SCRIPT> </HEAD> <!-- Copyright 1998 Microsoft Corporation. All rights reserved. --> <BODY> <DIV> </DIV> <P> <TABLE ID=ColorTable BORDER=1 BORDERCOLOR=SILVER BORDERCOLORLIGHT=WHITE BORDERCOLORDARK=BLACK CELLSPACING=0 CELLPADDING=0> <TR> <TD BGCOLOR=aliceblue TITLE=aliceblue> <TD BGCOLOR=antiquewhite TITLE=antiquewhite> <TD BGCOLOR=aqua TITLE=aqua> <TD BGCOLOR=aquamarine TITLE=aquamarine> <TD BGCOLOR=azure TITLE=azure> <TD BGCOLOR=beige TITLE=beige> <TD BGCOLOR=bisque TITLE=bisque> <TD BGCOLOR=black TITLE=black> <TD BGCOLOR=blanchedalmond TITLE=blanchedalmond> <TD BGCOLOR=blue TITLE=blue> <TD BGCOLOR=blueviolet TITLE=blueviolet> <TD BGCOLOR=brown TITLE=brown> <TD BGCOLOR=burlywood TITLE=burlywood> <TD BGCOLOR=cadetblue TITLE=cadetblue> <TD BGCOLOR=chartreuse TITLE=chartreuse> <TD BGCOLOR=chocolate TITLE=chocolate> <TR> <TD BGCOLOR=coral TITLE=coral> <TD BGCOLOR=cornflower TITLE=cornflower> <TD BGCOLOR=cornsilk TITLE=cornsilk> <TD BGCOLOR=crimson TITLE=crimson> <TD BGCOLOR=cyan TITLE=cyan> <TD BGCOLOR=darkblue TITLE=darkblue> <TD BGCOLOR=darkcyan TITLE=darkcyan> <TD BGCOLOR=darkgoldenrod TITLE=darkgoldenrod> <TD BGCOLOR=darkgray TITLE=darkgray> <TD BGCOLOR=darkgreen TITLE=darkgreen> <TD BGCOLOR=darkkhaki TITLE=darkkhaki> <TD BGCOLOR=darkmagenta TITLE=darkmagenta> <TD BGCOLOR=darkolivegreen TITLE=darkolivegreen> <TD BGCOLOR=darkorange TITLE=darkorange> <TD BGCOLOR=darkorchid TITLE=darkorchid> <TD BGCOLOR=darkred TITLE=darkred> <TR> <TD BGCOLOR=darksalmon TITLE=darksalmon> <TD BGCOLOR=darkseagreen TITLE=darkseagreen> <TD BGCOLOR=darkslateblue TITLE=darkslateblue> <TD BGCOLOR=darkslategray TITLE=darkslategray> <TD BGCOLOR=darkturquoise TITLE=darkturquoise> <TD BGCOLOR=darkviolet TITLE=darkviolet> <TD BGCOLOR=deeppink TITLE=deeppink> <TD BGCOLOR=deepskyblue TITLE=deepskyblue> <TD BGCOLOR=dimgray TITLE=dimgray> <TD BGCOLOR=dodgerblue TITLE=dodgerblue> <TD BGCOLOR=firebrick TITLE=firebrick> <TD BGCOLOR=floralwhite TITLE=floralwhite> <TD BGCOLOR=forestgreen TITLE=forestgreen> <TD BGCOLOR=fuchia TITLE=fuchia> <TD BGCOLOR=gainsboro TITLE=gainsboro> <TD BGCOLOR=ghostwhite TITLE=ghostwhite> <TR> <TD BGCOLOR=gold TITLE=gold> <TD BGCOLOR=goldenrod TITLE=goldenrod> <TD BGCOLOR=gray TITLE=gray> <TD BGCOLOR=green TITLE=green> <TD BGCOLOR=greenyellow TITLE=greenyellow> <TD BGCOLOR=honeydew TITLE=honeydew> <TD BGCOLOR=hotpink TITLE=hotpink> <TD BGCOLOR=indianred TITLE=indianred> <TD BGCOLOR=indigo TITLE=indigo> <TD BGCOLOR=ivory TITLE=ivory> <TD BGCOLOR=khaki TITLE=khaki> <TD BGCOLOR=lavender TITLE=lavender> <TD BGCOLOR=lavenderblush TITLE=lavenderblush> <TD BGCOLOR=lawngreen TITLE=lawngreen> <TD BGCOLOR=lemonchiffon TITLE=lemonchiffon> <TD BGCOLOR=lightblue TITLE=lightblue> <TR> <TD BGCOLOR=lightcoral TITLE=lightcoral> <TD BGCOLOR=lightcyan TITLE=lightcyan> <TD BGCOLOR=lightgoldenrodyellow TITLE=lightgoldenrodyellow> <TD BGCOLOR=lightgreen TITLE=lightgreen> <TD BGCOLOR=lightgrey TITLE=lightgrey> <TD BGCOLOR=lightpink TITLE=lightpink> <TD BGCOLOR=lightsalmon TITLE=lightsalmon> <TD BGCOLOR=lightseagreen TITLE=lightseagreen> <TD BGCOLOR=lightskyblue TITLE=lightskyblue> <TD BGCOLOR=lightslategray TITLE=lightslategray> <TD BGCOLOR=lightsteelblue TITLE=lightsteelblue> <TD BGCOLOR=lightyellow TITLE=lightyellow> <TD BGCOLOR=lime TITLE=lime> <TD BGCOLOR=limegreen TITLE=limegreen> <TD BGCOLOR=linen TITLE=linen> <TD BGCOLOR=magenta TITLE=magenta> <TR> <TD BGCOLOR=maroon TITLE=maroon> <TD BGCOLOR=mediumaquamarine TITLE=mediumaquamarine> <TD BGCOLOR=mediumblue TITLE=mediumblue> <TD BGCOLOR=mediumorchid TITLE=mediumorchid> <TD BGCOLOR=mediumpurple TITLE=mediumpurple> <TD BGCOLOR=mediumseagreen TITLE=mediumseagreen> <TD BGCOLOR=mediumslateblue TITLE=mediumslateblue> <TD BGCOLOR=mediumspringgreen TITLE=mediumspringgreen> <TD BGCOLOR=mediumturquoise TITLE=mediumturquoise> <TD BGCOLOR=mediumvioletred TITLE=mediumvioletred> <TD BGCOLOR=midnightblue TITLE=midnightblue> <TD BGCOLOR=mintcream TITLE=mintcream> <TD BGCOLOR=mistyrose TITLE=mistyrose> <TD BGCOLOR=moccasin TITLE=moccasin> <TD BGCOLOR=navajowhite TITLE=navajowhite> <TD BGCOLOR=navy TITLE=navy> <TR> <TD BGCOLOR=oldlace TITLE=oldlace> <TD BGCOLOR=olive TITLE=olive> <TD BGCOLOR=olivedrab TITLE=olivedrab> <TD BGCOLOR=orange TITLE=orange> <TD BGCOLOR=orangered TITLE=orangered> <TD BGCOLOR=orchid TITLE=orchid> <TD BGCOLOR=palegoldenrod TITLE=palegoldenrod> <TD BGCOLOR=palegreen TITLE=palegreen> <TD BGCOLOR=paleturquoise TITLE=paleturquoise> <TD BGCOLOR=palevioletred TITLE=palevioletred> <TD BGCOLOR=papayawhip TITLE=papayawhip> <TD BGCOLOR=peachpuff TITLE=peachpuff> <TD BGCOLOR=peru TITLE=peru> <TD BGCOLOR=pink TITLE=pink> <TD BGCOLOR=plum TITLE=plum> <TD BGCOLOR=powderblue TITLE=powderblue> <TR> <TD BGCOLOR=purple TITLE=purple> <TD BGCOLOR=red TITLE=red> <TD BGCOLOR=rosybrown TITLE=rosybrown> <TD BGCOLOR=royalblue TITLE=royalblue> <TD BGCOLOR=saddlebrown TITLE=saddlebrown> <TD BGCOLOR=salmon TITLE=salmon> <TD BGCOLOR=sandybrown TITLE=sandybrown> <TD BGCOLOR=seagreen TITLE=seagreen> <TD BGCOLOR=seashell TITLE=seashell> <TD BGCOLOR=sienna TITLE=sienna> <TD BGCOLOR=silver TITLE=silver> <TD BGCOLOR=skyblue TITLE=skyblue> <TD BGCOLOR=slateblue TITLE=slateblue> <TD BGCOLOR=slategray TITLE=slategray> <TD BGCOLOR=snow TITLE=snow> <TD BGCOLOR=springgreen TITLE=springgreen> <TR> <TD BGCOLOR=steelblue TITLE=steelblue> <TD BGCOLOR=tan TITLE=tan> <TD BGCOLOR=teal TITLE=teal> <TD BGCOLOR=thistle TITLE=thistle> <TD BGCOLOR=tomato TITLE=tomato> <TD BGCOLOR=turquoise TITLE=turquoise> <TD BGCOLOR=violet TITLE=violet> <TD BGCOLOR=wheat TITLE=wheat> <TD BGCOLOR=white TITLE=white> <TD BGCOLOR=whitesmoke TITLE=whitesmoke> <TD BGCOLOR=yellow TITLE=yellow> <TD BGCOLOR=yellowgreen TITLE=yellowgreen> </TABLE> <P> <LABEL FOR=SelColor>Color:</LABEL> <INPUT TYPE=TEXT SIZE=20 ID=SelColor> <BR> <SPAN ID=RGB> </SPAN> <P> <BUTTON ID=Ok TYPE=SUBMIT>OK</BUTTON> <BUTTON ONCLICK="window.close();">Cancel</BUTTON> </BODY> </HTML> --- NEW FILE: instable.htm --- <!-- Copyright 1998 Microsoft Corporation. All rights reserved. --> <HTML> <HEAD> <TITLE>Enter Table Information</TITLE> <STYLE TYPE="text/css"> BODY {margin-left:10; font-family:Verdana; font-size:12; background:menu} BUTTON {width:5em} TABLE {font-family:Verdana; font-size:12} P {text-align:center} </STYLE> <SCRIPT LANGUAGE=JavaScript> function IsDigit() { return ((event.keyCode >= 48) && (event.keyCode <= 57)) } </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=window EVENT=onload> for ( elem in window.dialogArguments ) { switch( elem ) { case "NumRows": NumRows.value = window.dialogArguments["NumRows"]; break; case "NumCols": NumCols.value = window.dialogArguments["NumCols"]; break; case "TableAttrs": TableAttrs.value = window.dialogArguments["TableAttrs"]; break; case "CellAttrs": CellAttrs.value = window.dialogArguments["CellAttrs"]; break; case "Caption": Caption.value = window.dialogArguments["Caption"]; break; } } </SCRIPT> <SCRIPT LANGUAGE=JavaScript FOR=Ok EVENT=onclick> var arr = new Array(); arr["NumRows"] = NumRows.value; arr["NumCols"] = NumCols.value; arr["TableAttrs"] = TableAttrs.value; arr["CellAttrs"] = CellAttrs.value; arr["Caption"] = Caption.value; window.returnValue = arr; window.close(); </SCRIPT> </HEAD> <BODY> <TABLE CELLSPACING=10> <TR> <TD>Rows: <TD><INPUT ID=NumRows TYPE=TEXT SIZE=3 NAME=NumRows ONKEYPRESS="event.returnValue=IsDigit();"> <TR> <TD>Columns: <TD><INPUT ID=NumCols TYPE=TEXT SIZE=3 NAME=NumCols ONKEYPRESS="event.returnValue=IsDigit();"> <TR> <TD>Table Attributes: <TD><INPUT TYPE=TEXT SIZE=40 NAME=TableAttrs> <TR> <TD>Cell Attributes: <TD><INPUT TYPE=TEXT SIZE=40 NAME=CellAttrs> <TR> <TD>Caption: <TD><INPUT TYPE=TEXT SIZE=40 NAME=Caption> </TABLE> <P> <BUTTON ID=Ok TYPE=SUBMIT>OK</BUTTON> <BUTTON ONCLICK="window.close();">Cancel</BUTTON> </BODY> </HTML> |
From: Jamie <ast...@us...> - 2005-08-24 21:55:25
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg/custom/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15280/includes/functions/wysiwyg/custom/templates Added Files: Tag: REL1_1_BRANCH t1.php t2.php t3.php Log Message: directory restructuring --- NEW FILE: t2.php --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Loading Template...</title> </head> <body onload="window.dialogArguments._onload(window);"> <strong>Template 2</strong><br> <table border="1" bgcolor="#0000ff"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </tr> </table> </body> </html> --- NEW FILE: t1.php --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Loading Template...</title> </head> <body onload="window.dialogArguments._onload(window);"> <strong>Template 1</strong><br> <? for($i=0;$i<200;$i++) { ?> <table border="1" bgcolor="#008000"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </tr> </table> <? } ?> </body> </html> --- NEW FILE: t3.php --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Loading Template...</title> </head> <body onload="window.dialogArguments._onload(window);"> <strong>Template 3</strong><br> <table border="1" bgcolor="#ff0000"> <tr> <td>1</td> <td>2</td> <td>3</td> </tr> <tr> <td>4</td> <td>5</td> <td>6</td> </tr> <tr> <td>7</td> <td>8</td> <td>9</td> </tr> </table> </body> </html> |
From: Jamie <ast...@us...> - 2005-08-24 21:54:36
|
Update of /cvsroot/openfirst/base/includes/functions/wysiwyg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15156/includes/functions/wysiwyg Added Files: Tag: REL1_1_BRANCH DHTMLEditor Info.txt Log Message: directory restructuring --- NEW FILE: DHTMLEditor Info.txt --- (This appears to be a binary file; contents omitted.) |
From: Jamie <ast...@us...> - 2005-08-24 21:53:35
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14968/includes Added Files: Tag: REL1_1_BRANCH auth.php dbase.php globals-default.php Log Message: directory restructuring --- NEW FILE: auth.php --- <?php /* * openFIRST.base - config/auth.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Purpose: Deal with authorization of users. if(isset($encryption) == false) { $encryption = "crypt"; } // Provide functions for the various encryption types... // syntax: cryptpassword(password, encryption-type, salt); function cryptpassword ($password, $encryption = "md5", $salt="") { // Encrypt passwords using whatever algorithm is preferred. if ($encryption == "crc32") { return(crc32($password)); } elseif ($encryption == "sha1") { return(sha1($password)); } elseif ($encryption == "crypt") { return(crypt($password, $salt)); } else { return(md5($password)); } } function logout(){ if(isset($GLOBALS["user"]->user)) { $q = ofirst_dbquery("UPDATE ofirst_members SET authcode = NULL WHERE user='".$GLOBALS["user"]->user."';"); } } function showlogin () { // Show a login form for the user. echo("<br><br><form action='". $_SERVER["PHP_SELF"] . "' method='post'>"); if(isset($_SERVER["HTTP_REFERER"])){ echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>"); } echo "<table width='200'> <tr> <th width='36%'> </th> <th width='64%'>Account Login</th> </tr> <tr> <td><div align='right'>Username:</div></td> <td><input name='login' type='text' /> </td> </tr> <tr> <td><div align='right'>Password:</div></td> <td> <input name='password' type='password' /></td> </tr> <tr> <td> </td> <td><input type=\"submit\" value=\"Login\">"; if(!isset($GLOBALS["pass_save_disabled"])){ echo " <br><input type=checkbox name=savepass id=savepass value=1 checked><label for=savepass>Save Password</label>"; } echo("</td></tr> <tr><td> </td><td><a href=\"".$GLOBALS["basepath"]."/members/forgotten.php\">Forgot Password</a></td></tr> </table> </form><br><br>"); return(0); } // Determine if the user has already logged in with this session. If // they have, set variables indicating this. If they have not, make a // note of this so that components requiring them to log in are disabled. if((isset($_SESSION['authcode']))||(isset($_COOKIE["openFIRSTlogin"])&&!isset($pass_save_disabled))) { if(isset($_SESSION['authcode'])){ $authcode = $_SESSION['authcode']; }elseif(isset($_COOKIE["openFIRSTlogin"])&&$_COOKIE["openFIRSTlogin"]!=0){ $authcode = $_COOKIE["openFIRSTlogin"]; $_SESSION['authcode']=$authcode; //renew cookie setcookie("openFIRSTlogin",$authcode,time()+2592000,"/"); } else { $authcode=0; } $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE authcode='$authcode';"); if(ofirst_dberrno() == 0 && ofirst_dbnum_rows($query) == 1 && $authcode!=0 ) { $user = ofirst_dbfetch_object($query); } else { unset($_SESSION['authcode']); if(!isset($pass_save_disabled)){ //delete cookie setcookie("openFIRSTlogin"," ",time()-3600,"/"); } if(isset($_POST["login"])){ $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); if(ofirst_dberrno() == 0) { $user = ofirst_dbfetch_object($query); if(ofirst_dbnum_rows($query) == 1) { if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); } else { unset($user); } } } } } } elseif(isset($_POST["login"]) == true && isset($_POST["password"]) == true) { $query = ofirst_dbquery("SELECT * FROM ofirst_members WHERE user='" . $_POST["login"] . "';"); if(ofirst_dberrno() == 0) { $user = ofirst_dbfetch_object($query); if(ofirst_dbnum_rows($query) == 1) { if(cryptpassword($_POST["password"], $encryption, $user->password) == $user->password) { session_register("authcode"); mt_srand(microtime() * 1000000); $_SESSION["authcode"] = (microtime()|mt_rand(1,mt_getrandmax())).substr($_SERVER["REMOTE_HOST"],0,40); $aquery = ofirst_dbquery("UPDATE ofirst_members SET authcode='" . $_SESSION["authcode"] . "' WHERE user='" . $_POST["login"] . "';"); if(!isset($pass_save_disabled)){ if(isset($_POST["savepass"])&&$_POST["savepass"]="1"){ //save authcode in a cookie setcookie("openFIRSTlogin",$_SESSION["authcode"],time()+2592000,"/"); } else { //delete cookie setcookie("openFIRSTlogin"," ",time()-3600,"/"); unset($_COOKIE["openFIRSTlogin"]); } } } else { unset($user); } } } } if(ofirst_dberrno() != 0) { // There was an error, check if it's because they didn't create the // members table. if(ofirst_dberrno() == 1146) { echo("<p>Members table does not exist, therefore I am creating it.</p>"); $query = ofirst_dbquery("CREATE TABLE ofirst_members ( UNIQUE(user), user CHAR(128), firstname TINYTEXT, lastname TINYTEXT, lastseen TINYTEXT, ip TINYTEXT, password TEXT, authcode TEXT, membertype TINYTEXT, division TINYTEXT, year INTEGER, email TEXT, icq INTEGER, aim TINYTEXT, msn TINYTEXT, yim TINYTEXT, description TEXT, signature TINYTEXT, dateregistered TINYTEXT, picturelocation TINYTEXT, team INTEGER, skills TEXT );"); if(ofirst_dberrno() == 0) { // Insert a default user 'administrator' and set them to have // administrative access and some password. $query = ofirst_dbquery("INSERT INTO ofirst_members (user, membertype, password) VALUES('admin', 'administrator', '" . cryptpassword("openfirst", $encryption) ."');"); echo("<p>Members table has been created. Please login as <b>admin</b> using the password <b>openfirst</b> to set configuration options.</p>"); showlogin(); die(); } else { die(ofirst_dberror()); } } } if(isset($user->user)){ $query = "UPDATE ofirst_members SET lastseen='" . date("h:i:s M d, Y") . "' WHERE user='$user->user';"; $q = ofirst_dbquery($query); unset($q); } /* This is here for legacy reasons, so as to make previous versions * of certain modules function with the newer base modules. */ function membersmenu() { return(0); } ?> --- NEW FILE: dbase.php --- <?php /* * openFIRST.base - config/dbase.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Purpose: Provide database functionality so that each module is // able to easily switch between, say, MySQL and MSSQL databases // without having to be completely rewritten or released as two // different versions. if(isset($dbasetype) == false) { $dbasetype = "mysql"; } $connectdsn = ""; if(isset($peardb) && $peardb) { // Include the PEAR Database Abstraction Layer include_once("DB.php"); } elseif(! isset($peardb)) { $peardb = false; } // Wrapper for database selection. function ofirst_dbconnect($server = "", $username = "", $password = "", $newlink = "", $intclientflags = "") { global $dbasetype, $peardb, $connectdsn; echo("CONNECT"); if($peardb) { $connectdsn = "$dbasetype://$username:$password@$server/"; return(0); } elseif($dbasetype == "mysql") { if(function_exists("mysql_connect") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } if($intclientflags != "") { return(mysql_connect($server, $username, $password, $newlink, $intclientflags)); } elseif($newlink != "") { return(mysql_connect($server, $username, $password, $newlink)); } else { return(mysql_connect($server, $username, $password)); } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } return(mssql_connect($server, $username, $password)); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_connect") == false) { die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } if($newlink != "") { return(odbc_connect($server, $username, $password, $newlink)); } else { return(odbc_connect($server, $username, $password)); } } exit(0); } function ofirst_select_db($databasename, $linkidentifier = "") { global $dbasetype, $peardb, $connectdsn; echo "SELECTDB"; if($peardb) { return($connectdsn =& DB::connect("$connectdsn$databasename")); } elseif($dbasetype == "mysql") { if(function_exists("mysql_select_db") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } if($linkidentifier != "") { return(mysql_select_db($databasename, $linkidentifier)); } else { return(mysql_select_db($databasename)); } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_select_db") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } if($linkidentifier != "") { return(mssql_select_db($databasename, $linkidentifier)); } else { return(mssql_select_db($databasename)); } } exit(0); } function ofirst_dberrno($linkidentifier = "") { global $dbasetype, $peardb; if($peardb) { if($linkidentifier != "") { return(DB_Error::getCode($linkidentifier)); } else { return(DB_Error::getCode()); } } elseif($dbasetype == "mysql") { if(function_exists("mysql_errno") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } if($linkidentifier != "") { return(mysql_errno($linkidentifier)); } else { return(mysql_errno()); } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } return(0); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_error") == false) { die("ODBC support is not enabled in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } if($linkidentifier != "") { return(odbc_error($linkidentifier)); } else { return(odbc_error()); } } exit(0); } function ofirst_dberror($linkidentifier = "") { global $dbasetype, $peardb; if($peardb) { if($linkidentifier != "") { return(DB_Error::getMessage($linkidentifier)); } else { return(DB_Error::getMessage()); } } elseif($dbasetype == "mysql") { if(function_exists("mysql_error") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } if($linkidentifier != "") { return(mysql_error($linkidentifier)); } else { return(mysql_error()); } } elseif ($dbasetype == "mssql") { if(function_exists("mssql_connect") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } return(0); } elseif ($dbasetype == "odbc") { if(function_exists("odbc_errormsg") == false) { die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } if($linkidentifier != "") { return(odbc_errormsg($linkidentifer)); } else { return(odbc_errormsg()); } } exit(0); } function ofirst_dbquery($string, $linkidentifier = "", $batchsize = "") { global $dbasetype, $peardb, $sqlconnection; if($peardb) { if($batchsize != "") { return($sqlconnection->query($string, $linkidentifier, $batchsize)); } elseif($linkidentifier != "") { return($sqlconnection->query($string, $linkidentifier)); } else { print_r($sqlconnection); return($sqlconnection->query($string)); } } elseif($dbasetype == "mysql") { if(function_exists("mysql_query") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } if($linkidentifier != "") { return(mysql_query($string, $linkidentifier)); } else { return(mysql_query($string)); } } elseif($dbasetype == "mssql") { if(function_exists("mssql_query") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } if($batchsize != "") { return(mssql_query($string, $linkidentifier, $batchsize)); } elseif($linkidentifier != "") { return(mssql_query($string, $linkidentifier)); } else { return(mssql_query($string)); } } elseif ($dbasetype == "odbc") { if(function_exists("odbc_exec") == false) { die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } // Note: this may be misleading, the variable names are not reflective of their content in this particular line, as the odbc function uses an order different from the other databases. return(odbc_exec($string, $linkidentifer)); } exit(0); } function ofirst_dbfetch_object($resource, $rownumber = "") { global $dbasetype, $peardb; if($peardb) { if($rownumber != "") { return(DB_FETCHMODE_OBJECT($resource, $rownumber)); } else { return(DB_FETCHMODE_OBJECT($resource)); } } elseif($dbasetype == "mysql") { if(function_exists("mysql_fetch_object") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } return(mysql_fetch_object($resource)); } elseif($dbasetype == "mssql") { if(function_exists("mssql_fetch_object") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } return(mssql_fetch_object($resource)); } elseif($dbasetype == "odbc") { if(function_exists("odbc_fetch_object") == false) { die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } if($rownumber != "") { return(odbc_fetch_object($resource, $rownumber)); } else { return(odbc_fetch_object($resource)); } } exit(0); } function ofirst_dbnum_rows($resource) { global $dbasetype, $peardb; if($peardb) { if($resource != "") { return(DB_result::numRows($resource)); } else { return(DB_result::numRows()); } } elseif($dbasetype == "mysql") { if(function_exists("mysql_num_rows") == false) { die("MySQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable MySQL support, or choose another database type."); } return(mysql_num_rows($resource)); } elseif($dbasetype == "mssql") { if(function_exists("mssql_num_rows") == false) { die("Microsoft SQL support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable Microsoft SQL support, or choose another database type."); } return(mssql_num_rows($resource)); } elseif($dbasetype == "odbc") { if(function_exists("odbc_num_rows") == false) { die("ODBC support is not available in your version of PHP. To use the openFIRST Web Portal Software, please either enable ODBC support, or choose another database type."); } if($resource != "") { return(odbc_num_rows($resource)); } else { return(odbc_num_rows()); } } exit(0); } ?> --- NEW FILE: globals-default.php --- <?php /* * openFIRST globals.php * This is a placeholder file. It will be recreated * by first.php when you first access and configure * your OpenFIRST portal software. */ if(file_exists("../config/first.php")) { header("Location: ../config/first.php"); } elseif(file_exists("config/first.php")) { header("Location: config/first.php"); } elseif(file_exists("../../config/first.php")) { header("Location: ../../config/first.php"); } ?> |
From: Jamie <ast...@us...> - 2005-08-24 21:53:34
|
Update of /cvsroot/openfirst/base/includes/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14968/includes/functions Added Files: Tag: REL1_1_BRANCH browserid.php debug.php forms.php mail.php wysiwyg.php Log Message: directory restructuring --- NEW FILE: wysiwyg.php --- <?php /* * openFIRST.base - config/functions/wysiwyg.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase<dav...@ea...> and DHTMLEditor Author: Hans-Jürgen Petrich <pe...@tr...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // A complete function to create the Javascript command for loading of the WYSIWYG function make_wysiwyg($fieldname,$height,$width,$init){ global $basepath; ?> <SCRIPT TYPE="text/javascript" language="JavaScript1.3"> <!-- !!!! important comment this !!!! document.dhtmlEditors_home='<?php echo $basepath; ?>/config/functions/wysiwyg/'; document.writeln('<'+'SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'js/lib.js">'+'<'+'/SCRIPT'+'>'); document.writeln('<SCRIPT LANGUAGE="JavaScript" src="'+document.dhtmlEditors_home+'modules/button_html.js"></SCRIPT>'); // --> </SCRIPT> <textarea id="<?php echo $fieldname; ?>" name="<?php echo $fieldname; ?>" style="width:<?php echo $height; ?>px; height:<?php echo $width; ?>px;"><?php echo $init; ?></textarea> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- var myEditor = new dhtmlEditor; myEditor.registerApiModul(MODUL__toggleEditModeGetApiInfoArray('<?php echo $basepath; ?>/config/functions/wysiwyg/images/newdoc.gif')); myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); //--> </SCRIPT> <?php } ?> --- NEW FILE: mail.php --- <?php /* * openFIRST.base - config/functions/mail.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Purpose: Provide mail functions capable of dealing with multi-part messages. // Produces multi-part mail messages in a manner able to be used as a drop-in replacement for mail(); function multipartmail($to, $subject = "openFIRST Mailing", $message = "No message given.", $headers = "", $additionalparamaters = "") { global $header; global $footer; global $basepath; $fheader = ""; $ffooter = ""; $info = ""; $headers .= "Mime-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/alternative; boundary=openfirst-mail.boundry\r\n"; $textmessage = $message; while(stristr($textmessage,"<")) { $textmessage = str_replace(substr($textmessage, strpos($textmessage, "<"), strpos($textmessage, ">") - strpos($textmessage, "<") + 1), "", $textmessage); } $textmessage = str_replace("<", "<", str_replace(">", ">", $textmessage)); $info .= "--openfirst-mail.boundry Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit $textmessage --openfirst-mail.boundry Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit"; $fle = fopen($header, "r"); while(!feof($fle)) { $fheader .= fgets($fle); } fclose($fle); $fle = fopen($footer, "r"); while(!feof($fle)) { $ffooter .= fgets($fle); } fclose($fle); // Strip the PHP tags from the header. while(stristr($fheader,"<?")) { $fheader = str_replace(substr($fheader, strpos($fheader, "<?"), strpos($fheader, "?>") - strpos($fheader, "<?") + 2), "", $fheader); } while(stristr($ffooter,"<?")) { $ffooter = str_replace(substr($ffooter, strpos($ffooter, "<?"), strpos($ffooter, "?>") - strpos($ffooter, "<?") + 2), "", $ffooter); } // Strip the ASP tags from the header. while(stristr($fheader,"<%")) { $fheader = str_replace(substr($fheader, strpos($fheader, "<%"), strpos($fheader, "%>") - strpos($fheader, "<%") + 2), "", $fheader); } while(stristr($ffooter,"<%")) { $ffooter = str_replace(substr($ffooter, strpos($ffooter, "<%"), strpos($ffooter, "%>") - strpos($ffooter, "<%") + 2), "", $ffooter); } $fheader = str_replace("src=\"/", "src=\"http://" . $_SERVER["SERVER_NAME"] . "/" . $basepath, $fheader); $fheader = str_replace("src='/", "src=\"http://" . $_SERVER["SERVER_NAME"] . "/" . $basepath, $fheader); $fheader = str_replace("src=/", "src=\"http://" . $_SERVER["SERVER_NAME"] . "/" . $basepath, $fheader); $ffooter = str_replace("src=\"/", "src=\"http://" . $_SERVER["SERVER_NAME"] . "/" . $basepath, $ffooter); $ffooter = str_replace("src='/", "src=\"http://" . $_SERVER["SERVER_NAME"] . "/" . $basepath, $ffooter); $ffooter = str_replace("src=/", "src=\"http://" . $_SERVER["SERVER_NAME"] . "/" . $basepath, $ffooter); $info .= ("$fheader<pre>$message</pre>$ffooter"); return(mail($to, $subject, $info, $headers)); } ?> --- NEW FILE: browserid.php --- <?php /* * openFIRST.base - config/functions/browserid.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Greg Inozemtsev <gr...@si...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ //Functions for browser/platform identification function identify_platform($useragent="") { $return=""; if((bool) ini_get("browscap")){ //get OS info from browscap.ini $browser=get_browser($useragent); //restore error reporting level $return=$browser->platform; if ($return==""){ //returns the original user-agent string return $useragent; } } else { //browscap.ini disabled //returns the original user-agent string return $useragent; } //return platform ID return $return; } function identify_browser($useragent="") { if((bool) ini_get("browscap")){ $err_prev=error_reporting(E_ERROR); //get browser info from browscap.ini $browser=get_browser($useragent); //restore error reporting level error_reporting($err_prev); $return=""; //Get browser name $browsername=$browser->browser; if ($browsername==""){ //could not determine browser name, browscap.ini disabled //return the original user-agent string return $useragent; } else { if ($browsername=="IE"){ //Spell 'IE' as 'Internet Explorer' $browsername="Internet Explorer"; } //Get major version $ver=$browser->majorver; //remove # character at beginning of string if (substr($ver,0,1)=="#"){ $ver=substr($ver,1); } $return=$browsername." ".$ver."."; //Get minor version $ver=$browser->minorver; //remove # character at beginning of string if (substr($ver,0,1)=="#"){ $ver=substr($ver,1); } $return.=$ver; //Identify search engine if (isset($browser->crawler)){ if($browser->crawler==1){ $return.=" (Search Engine)"; } } } } else { //browscap.ini disabled //returns the original user-agent string return $useragent; } //return browser ID return $return; } ?> --- NEW FILE: forms.php --- <?php /* * openFIRST.base - config/functions/forms.php * * Copyright (C) 2003, * openFIRST Project * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Set function information function checkform($field){ $error = array(); // Loop through every single array in the function foreach($field as $fields=>$checkwith){ // While looping use one of these cases to perform the proper checking switch($checkwith){ // If field is a password then check as password and respond case "password": if(strlen($_POST[$fields]) < 5){ $error[] = "Password is too short, must be 5-6 characters in length. You entered: ".$_POST[$fields]; } break; // If field is an email address then check as email and respond case "email": if( ! eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*"."@([a-z0-9]+([\.-][a-z0-9]+))*$",$_POST[$fields])) { $error[] = "E-mail field contains illegal characters. You entered: ".$_POST[$fields]; } else { $item = explode("@", $_POST[$fields]); if( gethostbyname($item["1"]) == $item["1"]) { $error[] = "Domain in e-mail address is illegal. You entered: ".$_POST[$fields]; } } break; // If field is set as ifempty then check if its empty and respond case "ifempty": if(empty($_POST[$fields])){ $error[] = "Empty field on form. You entered: ".$_POST[$fields]; } } } return $error; } // Set function values function formerrors($error){ // Check if requires error response if (! empty($error)){ // Create errors table echo "<table width=400 border=1 align=center cellpadding=1 cellspacing=0 bordercolor=#333333 bgcolor=#CCCCCC><tr><td><b>You have errors within your form:</b><br>"; // Display errors in form foreach($error as $value){ echo "- ".$value."<br>"; } // Close errors table echo "</td></tr></table>"; } } ?> --- NEW FILE: debug.php --- <?php /* * openFIRST.base - config/functions/debug.php * * Copyright (C) 2003, * openFIRST Project * Original Author: Tim Ginn <tim...@po...> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // Purpose: Provide some useful features for debugging certain problems. // This entire process is optional, of course. Anyone may easily // simply remove this file in order to eliminate the debugging. set_error_handler("ofirst_error_handler"); // Handles errors by displaying a message and contacting openFIRST // developers for assistance. function ofirst_error_handler($errno,$error,$file,$line) { global $dbasetype, $ostype, $sqlserver, $currentmodule, $user, $mailnotify, $mailfrom; if(! function_exists("md5_file")) { $checksum = "md5_file not supported by PHP version."; } else { $checksum = md5_file($_SERVER["PATH_TRANSLATED"]); } // Notify the appropriate local contact mail($mailnotify, "$error in $file on line $line", "Error Description: $error in $file on line $line There is additional information regarding this bug stored on the openFIRST Bugzilla Server at: http://bugzilla.openfirst.org/", "From: $mailfrom"); // Attempt to contact the openFIRST Bugzilla Server $bugzilla = fopen(str_replace(" ", "%20", "http://bugzilla.openfirst.org/openfirst/?module=$currentmodule&uri=" . $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"] . "&details=MD5: $checksum Database Type: $dbasetype Operating System: $ostype SQL Server: $sqlserver Current Module: $currentmodule Error Number: $errno &specifics=PHP_SELF: " . $_SERVER["PHP_SELF"] . " HTTP Host: " . $_SERVER["HTTP_HOST"] . " HTTP Referer: " . $_SERVER["HTTP_REFERER"] . " Translated Path: " . $_SERVER["PATH_TRANSLATED"] . " User (if exists): $user->user User Access Level: $user->membertype Error Description: $error in $file on line $line"), "r"); if(! $bugzilla) { // If a connection cannot be established to the Bugzilla server echo("Could not contact the openFIRST Bugzilla server."); echo("<h3><strong>$errno</strong> - <strong>$error</strong> in <strong>$file</strong> on line <strong>$line</strong></h3> <p><strong>The openFIRST system has encountered an error. This may be due to a misconfiguration on the behalf of the person installing it, or an error in the openFIRST code.</strong></p> <p>Debugging may be disabled by removing (config/functions/debug.php)"); } else { // If a connection is established to the Bugzilla server then rely // completely on it for the appropriate error message to show. while(!feof($bugzilla)) { $line = fgets($bugzilla, 2048); echo $line; } } } ?> |
Update of /cvsroot/openfirst/base/style/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14798/style/images Added Files: Tag: REL1_1_BRANCH back-admin.png back-light.gif back-lighter.gif back.gif developers-small.gif help.gif large.gif mmc.gif oflogo.gif openfirst-small.png openfirst.png poweredby-small.png poweredby.png small-warning-green.gif small-warning.gif verytinyfirst.gif w3c401.png warning.gif web.gif Log Message: Directory restructuring --- NEW FILE: oflogo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: back-admin.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: w3c401.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: back-lighter.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mmc.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: small-warning.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: help.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: back.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: developers-small.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: large.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: warning.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: verytinyfirst.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: small-warning-green.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: openfirst.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: poweredby-small.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: back-light.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: openfirst-small.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: web.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: poweredby.png --- (This appears to be a binary file; contents omitted.) |
From: Jamie <ast...@us...> - 2005-08-24 21:51:47
|
Update of /cvsroot/openfirst/base/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14712/style Added Files: Tag: REL1_1_BRANCH footers.php headers.php Log Message: Directory restructuring --- NEW FILE: footers.php --- <?php if(! isset($basepath)){ $basepath = "http://openfirst.sourceforge.net/"; } ?> <hr width="80%" size="1px" style="border:1px" noshade> <table class="menu" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> <td class="menu" style="background=image: url('<?php echo("$basepath/images/"); ?>back-light.gif');"> <div> <div align="center">© Copyright 2002-2003 by <?php echo $title; ?>. All rights reserved.<?php if(isset($user->membertype)){if($user->membertype == "administrator"){ echo "<br><br>[ <a href='$basepath/config/index.php'>Administrator Options / Configuration Area</a> ]"; }} ?></div> </div> </td> </tr> <tr> <td class="menu"> <div> <div align="right"><a href= "http://openfirst.sourceforge.net"><img src="<?php echo("$basepath/images/"); ?>poweredby-small.png" width="177" height="30" border="0" alt="Powered by openFIRST Software - http://openfirst.sourceforge.net"></a><a href= "http://validator.w3.org/check?uri=http%3A//openfirst.sourceforge.net/"> <img src="<?php echo("$basepath/images/"); ?>w3c401.png" alt="Valid HTML 4.01" width="88" height="31" border="0"></a> </div> </div> </td> </tr> </table> <p> </p> </body> </html> --- NEW FILE: headers.php --- <?php if(! isset($basepath)){ $basepath = "http://openfirst.sourceforge.net/"; $title = "openFIRST Team"; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php echo $title; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Language" content="en-CA"> <meta name="copyright" content="© 2003 openFIRST http://openfirst.sf.net."> <meta name="author" content="OpenFIRST - http://openfirst.sf.net"> <meta name="generator" content="OpenFIRST - http://openfirst.sf.net"> <style type="text/css"> #adminmenu { color: #ffffff; } #adminmenu a:link { color: #ffffff; } #adminmenu a:visited { color: #ffffff; } #adminmenu a:active { color: #ffffff; } #adminmenu a:hover { color: #ffffff; } a:link { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } a:visited { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } a:active { color: #0000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } a:hover { color: #000000; font-size: 12px; font-family: sans-serif; text-decoration: underline; } #topmenu { text-align: left; } #topmenu a:link { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none; } #topmenu a:visited { color: #bebebe; font-size: 12px; font-family: sans-serif; text-decoration: none; } #topmenu a:active { color: #cecece; font-size: 12px; font-family: sans-serif; text-decoration: none; } #topmenu a:hover { color: #bed8ff; font-size: 12px; font-family: sans-serif; text-decoration: none; } table { border-left:solid #999999 1px;border-right:solid #999999 1px;border-bottom:solid #999999 1px; margin-left:auto; margin-right:auto; } td { padding: 5px; } th { padding: 5px; } table.menu { border-left:0px;border-right:0px;border-bottom:0px; } td.menu {border-left:0px;border-right:0px;border-bottom:0px; } body {color: black; font-weight: bolder; font-size: 12px; font-family: sans-serif; text-decoration:none; text-align: center; margin: 0px; } td { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } td.navigation { color: black; font-size: 12px; font-family: sans-serif; text-decoration: none; } th { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-light.gif'); } td.sub { background-color: #999999; color: #333333;background-image: url('<?php echo("$basepath/images/"); ?>back-lighter.gif'); } </style> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="6"> <tr> <td> <img src="<?php echo("$basepath/images/"); ?>openfirst.png" alt="openFIRST Portal System"> </td> </tr> <tr> <th id="topmenu" style="background-image: url('<?php echo($basepath); ?>/images/back.gif');"> <?php if(ISSET($headers)){ echo("» <a accesskey='h' href='$home'><u>H</u>ome</a> | " . $headers); }else{ ?> » <a accesskey="h" href="http://openfirst.sourceforge.net"><u>H</u>ome</a> | » <a accesskey="d" href="http://openfirst.sourceforge.net/downloads.php"><u>D</u>ownloads</a> | » <a accesskey="r" href="http://openfirst.sourceforge.net/release.php"><u>R</u>elease Notes</a> | » <a accesskey="m" href="http://openfirst.sourceforge.net/modules.php"><u>M</u>odules</a> | » <a accesskey="l" href="http://openfirst.sourceforge.net/license.php"><u>L</u>icense</a> | » <a accesskey="b" href="http://openfirst.sourceforge.net/bugreports.php"><u>B</u>ug Reports</a> | » <a accesskey="c" href="http://openfirst.sourceforge.net/contact.php"><u>C</u>ontact Us</a> | » <a accesskey="a" href="http://openfirst.sourceforge.net/about.php"><u>A</u>bout openFIRST</a> | » <a accesskey="e" href="http://openfirst.sourceforge.net/developers.php">D<u>e</u>velopers</a> <?php } ?> </th> </tr> <tr> <td style="background-image: url('<?php echo("$basepath/images/"); ?>back-light.gif'); "> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="63%"> <?php // Check if module name has been set then echo if(isset($modulename)){ echo "<b>$currentmodulen</b> -"; } // Check if navigation bar option is set then echo options if(isset($subnav)){ // Output module navigation bar echo $subnav; } ?> </td> <td width="37%"> <div> <div align="right" style="color: #333333;"> <?php // Check if messenger module has activated usersonline option then echo value if(isset($usersonline)){ echo $usersonline; } else { echo "Welcome to the <b>".$title."</b> website!"; } ?> </div> </div></td> </tr> </table></td> </tr> <?php if (isset($user->user)){ if(isset($adminnav) == true && $user->membertype == "administrator"){ ?> <tr> <td id="adminmenu" background="<?php echo("$basepath/images/"); ?>back-admin.png"><b>Admin Options -</b> <?php // Print admin navigation bar echo $adminnav; ?></td> </tr> <?php } } ?> </table> <?php if ($basepath == "http://openfirst.sourceforge.net/") { unset($basepath); } ?> |
From: Jamie <ast...@us...> - 2005-08-24 21:51:15
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14595/config Modified Files: Tag: REL1_1_BRANCH first.php Log Message: No More PEAR! Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.37.2.1 retrieving revision 1.37.2.2 diff -C2 -d -r1.37.2.1 -r1.37.2.2 *** first.php 24 Aug 2005 21:35:04 -0000 1.37.2.1 --- first.php 24 Aug 2005 21:51:07 -0000 1.37.2.2 *************** *** 68,72 **** } - if(! isset($_POST["peardb"])) { $_POST["peardb"] = false; } fputs($of, "<?php --- 68,71 ---- *************** *** 80,84 **** */ \$dbasetype = \"" . $_POST["dbasetype"] . "\"; - \$peardb = " . $_POST["peardb"] . "; \$ostype = '" . $_POST["ostype"] . "'; if (\$ostype == \"windows\") { --- 79,82 ---- *************** *** 104,112 **** \$sqlconnection = ofirst_dbconnect(\"\$sqlserver\",\"\$sqluser\",\"\$sqlpassword\"); ! if(\$peardb) { ! \$sqlconnection = ofirst_select_db(\$sqldatabase); ! } else { ! ofirst_select_db(\$sqldatabase); ! } $cookielogins --- 102,106 ---- \$sqlconnection = ofirst_dbconnect(\"\$sqlserver\",\"\$sqluser\",\"\$sqlpassword\"); ! ofirst_select_db(\$sqldatabase); $cookielogins *************** *** 263,279 **** </tr> <tr> ! <td>Database Type ! <?php ! $fd = explode(";", ini_get('include_path')); ! $peardb = false; ! foreach($fd as $d) { ! if(file_exists($d . "/DB.php")) { ! echo ("<br>The PEAR Database Abstraction layer exists and will be used."); ! $peardb = true; ! } ! } ! ?> ! </td> ! <td><?php if(! $peardb) { ?> <input type='hidden' name='peardb' value='false'> <select name="dbasetype"> --- 257,262 ---- </tr> <tr> ! <td>Database Type</td> ! <td> <input type='hidden' name='peardb' value='false'> <select name="dbasetype"> *************** *** 282,304 **** <option value="odbc">ODBC</option> </select> - - <?php } else { ?> - <input type='hidden' name='peardb' value='true'> - <select name="dbasetype"> - <option value="dbase">dBase (through PEAR DB)</option> - <option value="fbsql">FrontBase (through PEAR DB)</option> - <option value="ibase">InterBase (through PEAR DB)</option> - <option value="ifx">Informix (through PEAR DB)</option> - <option value="msql">Mini SQL (through PEAR DB)</option> - <option value="mssql">Microsoft SQL Server (through PEAR DB)</option> - <option value="mysql">MySQL (for servers running MySQL <= 4.0) (through PEAR DB)</option> - <option value="mysqli">MySQL (for servers running MySQL >= 4.1) (through PEAR DB)</option> - <option value="oci8">Oracle 7/8/9 (through PEAR DB)</option> - <option value="odbc">ODBC (Open Database Connectivity) (through PEAR DB)</option> - <option value="pgsql">PostgreSQL (through PEAR DB)</option> - <option value="sqlite">SQLite (through PEAR DB)</option> - <option value="sybase">Sybase (through PEAR DB)</option> - </select> - <?php } ?> <tr> <td>Title of Website</td> --- 265,268 ---- |
From: Jamie <ast...@us...> - 2005-08-24 21:43:14
|
Update of /cvsroot/openfirst/base In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13272 Modified Files: Tag: REL1_1_BRANCH index.php Log Message: including includes/globals.php Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/index.php,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** index.php 23 Nov 2003 23:15:09 -0000 1.5 --- index.php 24 Aug 2005 21:43:06 -0000 1.5.2.1 *************** *** 29,33 **** // Purpose: provide a basic starting point for the OpenFIRST web portal. ! include("config/globals.php"); include($header); --- 29,33 ---- // Purpose: provide a basic starting point for the OpenFIRST web portal. ! include("includes/globals.php"); include($header); |
From: Jamie <ast...@us...> - 2005-08-24 21:43:14
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13272/config Modified Files: Tag: REL1_1_BRANCH index.php install.php modules.php version.php Log Message: including includes/globals.php Index: install.php =================================================================== RCS file: /cvsroot/openfirst/base/config/install.php,v retrieving revision 1.17 retrieving revision 1.17.2.1 diff -C2 -d -r1.17 -r1.17.2.1 *** install.php 14 Dec 2003 20:32:29 -0000 1.17 --- install.php 24 Aug 2005 21:43:05 -0000 1.17.2.1 *************** *** 28,32 **** // Purpose: set up OpenFIRST modules ! include("../config/globals.php"); include($header); --- 28,32 ---- // Purpose: set up OpenFIRST modules ! include("../includes/globals.php"); include($header); Index: version.php =================================================================== RCS file: /cvsroot/openfirst/base/config/version.php,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** version.php 9 Apr 2004 21:33:27 -0000 1.7 --- version.php 24 Aug 2005 21:43:05 -0000 1.7.2.1 *************** *** 28,32 **** // Purpose: set up OpenFIRST modules ! include("../config/globals.php"); include($header); --- 28,32 ---- // Purpose: set up OpenFIRST modules ! include("../includes/globals.php"); include($header); Index: modules.php =================================================================== RCS file: /cvsroot/openfirst/base/config/modules.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** modules.php 13 Sep 2003 15:30:58 -0000 1.6 --- modules.php 24 Aug 2005 21:43:05 -0000 1.6.2.1 *************** *** 28,32 **** // Purpose: configure OpenFIRST modules, including their position on menus ! include("../config/globals.php"); include($header); --- 28,32 ---- // Purpose: configure OpenFIRST modules, including their position on menus ! include("../includes/globals.php"); include($header); Index: index.php =================================================================== RCS file: /cvsroot/openfirst/base/config/index.php,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** index.php 9 Apr 2004 18:00:43 -0000 1.9 --- index.php 24 Aug 2005 21:43:05 -0000 1.9.2.1 *************** *** 28,32 **** // Purpose: Provide a control center for configuration activities. ! include("./globals.php"); include($header); if(isset($user->user) == true && $user->membertype == "administrator") { --- 28,32 ---- // Purpose: Provide a control center for configuration activities. ! include("../includes/globals.php"); include($header); if(isset($user->user) == true && $user->membertype == "administrator") { *************** *** 41,47 **** <?php ! if(is_writable("./globals.php") && file_exists("./first.php")) { echo("<p><strong>Warning: </strong> Your globals.php file is writable by the web user. Also, first.php is still in existance. After you have setup the openFIRST web portal system, it is safe to remove first.php. Removing first.php prevents the accidental reset of configuration information and prevents external users from altering your configuration. For maximal security, you should also change the filesystem permissions so that globals.php is not writable by the web user."); ! } elseif(is_writable("./globals.php")) { echo("<p><strong>Warning: </strong> Your globals.php file is writable by the web user. For maximal security, you should change the filesystem permissions to correct this.</p>"); } --- 41,47 ---- <?php ! if(is_writable("../includes/globals.php") && file_exists("./first.php")) { echo("<p><strong>Warning: </strong> Your globals.php file is writable by the web user. Also, first.php is still in existance. After you have setup the openFIRST web portal system, it is safe to remove first.php. Removing first.php prevents the accidental reset of configuration information and prevents external users from altering your configuration. For maximal security, you should also change the filesystem permissions so that globals.php is not writable by the web user."); ! } elseif(is_writable("../includes/globals.php")) { echo("<p><strong>Warning: </strong> Your globals.php file is writable by the web user. For maximal security, you should change the filesystem permissions to correct this.</p>"); } |
From: <bug...@we...> - 2005-08-24 21:41:02
|
http://bugzilla.openfirst.org/show_bug.cgi?id=127 ------- Additional Comments From ti...@op... 2005-08-24 16:40 ------- Note that while this bug applies to the REL1_1 branch (and is keyworded as such) it also applies elsewhere and should not be closed until all occurances everywhere have been changed. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |
From: <bug...@we...> - 2005-08-24 21:39:11
|
http://bugzilla.openfirst.org/show_bug.cgi?id=252 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|REL1_1 | ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |
From: <bug...@we...> - 2005-08-24 21:38:47
|
http://bugzilla.openfirst.org/show_bug.cgi?id=250 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|REL1_1 | ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |
From: <bug...@we...> - 2005-08-24 21:38:38
|
http://bugzilla.openfirst.org/show_bug.cgi?id=248 ti...@op... changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |major ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. |