openfirst-cvscommit Mailing List for openFIRST (Page 86)
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: <dav...@us...> - 2003-08-20 17:55:52
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv31706 Modified Files: newmsg.php Log Message: Added function checking just in case the person doesnt have the mail function in place. Index: newmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/newmsg.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** newmsg.php 20 Aug 2003 16:00:30 -0000 1.6 --- newmsg.php 20 Aug 2003 16:07:45 -0000 1.7 *************** *** 50,58 **** $receiver = mysql_fetch_object($query); ! // Send mail notification to use via multipart mail function multipartmail($receiver->email, "New message has arrived!" , $message = "Hello ".$receiver->firstname.", you have received a new message from ".$user->user.". You may pickup your message by visiting: $home/$basepath/messenger/inbox.php. Thank you and have a nice day!"); echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>"); --- 50,60 ---- $receiver = mysql_fetch_object($query); ! // Send mail notification to use via multipart mail function if the function exists already + if(function_exists("multipartmail")){ multipartmail($receiver->email, "New message has arrived!" , $message = "Hello ".$receiver->firstname.", you have received a new message from ".$user->user.". You may pickup your message by visiting: $home/$basepath/messenger/inbox.php. Thank you and have a nice day!"); + } echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>"); |
From: <dav...@us...> - 2003-08-20 17:49:46
|
Update of /cvsroot/openfirst/photogallery/admin In directory sc8-pr-cvs1:/tmp/cvs-serv8128 Added Files: galleryglobals.php newgallery.php Log Message: initial upload --- NEW FILE: galleryglobals.php --- <?php /* * openFIRST.photogallery - galleryglobals.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 * */ // Declare gallery location compared to galleryglobals.php $gallerydir = "gallery/"; //Declare image types allowed for uploading/previewing $imgtypes = "gif,jpg,peg,png,bmp"; // Note that any extensions that you have beyond // 4 characters must be added to this variable // only as the last three digits. ie. jpeg = peg // Declare maximum execution time for the galleries $gallery_execution_time = "1200"; // Declare SMTP to use when sending photo's by e-mail $SMTP = "smtp.localhost.com"; ?> --- NEW FILE: newgallery.php --- <?php /* * openFIRST.photogallery - newgallery.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 * */ // Import globals and estbalish database connection include("../config/globals.php"); include($header); include("galleryglobals.php"); mysql_select_db($sqldatabase,$sqlconnection); // Check if user is an admin then allow processes if (isset($user->user)){ // Check if user initiates create option and run create options if(ISSET($_POST['create'])){ mkdir($gallerydir.$_POST['galleryname'],0777) or die("<br><br><center>Can't create folder! [ <a href='manage.php'>Manage</a> ]"); mkdir($gallerydir.$_POST['galleryname']."/thumbs",0777) or die("<br><br><center>Can't create folder! [ <a href='manage.php'>Manage</a> ]"); mysql_query("INSERT INTO ofirst_galleries (GalleryName, Author, Date, Description) values( '".$_POST['galleryname']."' ,'".$_POST['author']."' ,'".time()."' ,'".$_POST['description']."')") or die(mysql_error()); die("<br><br><center>New gallery added! [ <a href='manage.php'>Manage</a> ]</center>"); } ?> <h2>New Gallery</h2> <p><a href="manage.php">Manager</a> <a href="newgallery.php">Add New Gallery</a><?php membersmenu($user->membertype); ?></p> <form method="POST" action="newgallery.php"> <table width="499" border="0" align="center" cellpadding="6" cellspacing="0"> <tr bgcolor="#999999"> <td valign="top"> <div align="center"> </div></td> <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gallery Name</strong></font></td> </tr> <tr> <td width="135" valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Gallery Name:</font></div></td> <td width="275" valign="top"><input name="galleryname" type="text" id="galleryname"></td> </tr> <tr> <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Author:</font></div></td> <td valign="top"><font size="2"> <input name="author" type="text" id="author"> (Temporarily an option until openfirst.members is released)</font></td> </tr> <tr> <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Date:</font></div></td> <td valign="top"><?php echo date("F j, Y, g:i a",time()); ?></td> </tr> <tr> <td valign="top"><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Description:</font></div></td> <td valign="top"> <textarea name="description" cols="40" rows="10" id="description"></textarea></td> </tr> <tr> <td valign="top"> </td> <td valign="top"><input name="create" type="submit" id="create" value="Create Gallery"></td> </tr> </table> </form> <?php }else{ showlogin(); } include($footer); ?> |
From: <xt...@us...> - 2003-08-20 17:35:28
|
Update of /cvsroot/openfirst/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv24985 Modified Files: index.php Log Message: Fix minor errors present on systems with higher than normal debug settings Index: index.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 24 Jul 2003 00:42:20 -0000 1.4 --- index.php 20 Aug 2003 15:33:41 -0000 1.5 *************** *** 43,48 **** ! if((int)$_GET["perpage"] == 0) { $_GET["perpage"] = 5; } ! if((int)$_GET["start"] == 0) { $_GET["start"] = 0; } echo("<form action='./' method='get'> Start at posting <input type='text' name='start' value='" . $_GET["start"] ."' size='3'> --- 43,48 ---- ! if(isset($_GET["perpage"]) == false || (int)$_GET["perpage"] == 0) { $_GET["perpage"] = 5; } ! if(isset($_GET["start"]) == false || (int)$_GET["start"] == 0) { $_GET["start"] = 0; } echo("<form action='./' method='get'> Start at posting <input type='text' name='start' value='" . $_GET["start"] ."' size='3'> |
From: <dav...@us...> - 2003-08-20 17:21:10
|
Update of /cvsroot/openfirst/photogallery In directory sc8-pr-cvs1:/tmp/cvs-serv7821 Added Files: email.php Log Message: initial upload |
From: <xt...@us...> - 2003-08-20 16:40:49
|
Update of /cvsroot/openfirst/news/admin In directory sc8-pr-cvs1:/tmp/cvs-serv20261/admin Modified Files: index.php Log Message: Add HTML editor... thanks Hans-Jurgen Petrich :) Index: index.php =================================================================== RCS file: /cvsroot/openfirst/news/admin/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 29 Jul 2003 15:31:54 -0000 1.4 --- index.php 20 Aug 2003 15:03:25 -0000 1.5 *************** *** 40,44 **** style="width: 250px;"> <br />Message: ! <br /><textarea name="news" cols="40" rows="20">Insert your news here.</textarea> <br /> <input type="submit" value="Add News Item" /> --- 40,48 ---- style="width: 250px;"> <br />Message: ! <br /><?php if(function_exists("make_wysiwyg") == true) { ! make_wysiwyg("news", 240, 200, "Insert your news here."); ! } else { ! ?><textarea name="news" cols="40" rows="20">Insert your news here.</textarea><?php ! } ?> <br /> <input type="submit" value="Add News Item" /> |
From: <dav...@us...> - 2003-08-20 16:27:40
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/modules/imagemap In directory sc8-pr-cvs1:/tmp/cvs-serv10206 Added Files: trans.gif msmove.js index.php genMove.js arr.gif Log Message: initial upload --- NEW FILE: trans.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: msmove.js --- var CurentMAP=''; var activeElements = new Array(); var activeElementCount = 0; var lTop, lLeft; var doMove = true; var doResize = false; function toggleMoveResize(e) { if (doMove) { doMove = false; doResize = true; //e.value = "Resizing, Click to Move"; } else { doMove = true; doResize = false; //e.value = "Moving, Click to Resize"; } } function mousedown() { //_imgOnMouseOver(); var mp; mp = findMoveable(window.event.srcElement); //if (!window.event.altKey) { if (true) { for (i=0; i<activeElementCount; i++) { if (activeElements[i] != mp) { try { if(mp.tagName.toLowerCase()=='div') { activeElements[i].style.borderWidth = "1px"; } } catch(e){} //createmapf['delete'].disabled=true; } } if (mp) { activeElements[0] = mp; CurentMAP=activeElements[0]; _setFormFromMap(); activeElementCount = 1; _areas_doborder1px4all() mp.style.borderWidth = "2px"; createmapf['delete'].disabled=false; } else { activeElementCount = 0; } } else { alert('int er'); if (mp) { if (mp.style.borderWidth != "2px") { activeElements[activeElementCount] = mp; activeElementCount++; mp.style.borderWidth = "2px"; CurentMAP=activeElements[0]; _setFormFromMap(); } } } //window.status = activeElementCount; lLeft = window.event.x; lTop = window.event.y; } document.onmousedown = mousedown; function doResizeit(Mx,My,activeElement_) { var pr_ = (parseInt(activeElement_.style.width)/2); //if (pr_>50) pr_=50; //alert(activeElement_); if ( parseInt(Mx) >= parseInt(activeElement_.style.left)+parseInt(activeElement_.style.width)-(pr_) || parseInt(My) >= parseInt(activeElement_.style.top)+parseInt(activeElement_.style.height)-10 ) { return true; } return false; } function ___MmosOvrr(activeElement_) { if (doResizeit(event.x,event.y,activeElement_)) { activeElement_.style.cursor = 'nw-resize';; } else { activeElement_.style.cursor = 'move';; } } function mousemove() { var i, dLeft, dTop; sx = window.event.x; sy = window.event.y; //_imgOnMouseOver(); for (i=0; i<activeElementCount; i++) { //if (doMove) var mapid=SAL__get_parsedimgmap_i(activeElements[i].id); if (doResizeit(sx,sy,activeElements[i])) { activeElements[i].style.cursor = 'nw-resize'; } else { activeElements[i].style.cursor = 'move'; } } if (window.event.button == 1) { //_imgOnMouseOver(); dLeft = sx - lLeft; dTop = sy - lTop; for (i=0; i<activeElementCount; i++) { //if (doMove) var mapid=SAL__get_parsedimgmap_i(activeElements[i].id); if (doResizeit(sx,sy,activeElements[i])) { resizeElement(activeElements[i], dLeft, dTop); } else { moveElement(activeElements[i], dLeft, dTop); } createmapf.mex.value=parseInt(document.getElementById('divmap'+mapid).style.width) createmapf.mey.value== parseInt(document.getElementById('divmap'+mapid).style.height) createmapf.msx.value=parseInt(document.getElementById('divmap'+mapid).style.left) createmapf.msy.value=parseInt(document.getElementById('divmap'+mapid).style.top) } lLeft = sx; lTop = sy; return false; } } function moveElement(mp, dLeft, dTop) { var e e = mp; e.style.posTop += dTop; e.style.posLeft += dLeft; } function resizeElement(mp, dLeft, dTop) { var e; e = mp; e.style.posHeight += dTop; e.style.posWidth += dLeft; } function findMoveable(e) { if (!e.tagName || e.tagName.toLowerCase() != "div") return null; if (e.moveable == 'true') return e; return findMoveable(e.parentElement); } function findDefinedMoveable(e) { if ((e.moveable == 'true') || (e.moveable == 'false')) return e; if (e.tagName == "BODY") return null; return findDefinedMoveable(e.parentElement); } function rfalse() { return false; } function _imgmapkeydowhdl() { try { if (window.event.keyCode == 8 || window.event.keyCode == 46 ) { _deleteMap_(); return; } else { if (CurentMAP && CurentMAP.style && CurentMAP.style.visibility == 'visible') { var _step = 1; if (window.event.ctrlKey) { _step = 5; } if (window.event.shiftKey) { if (window.event.keyCode ==37) { CurentMAP.style.width = parseInt(CurentMAP.style.width)-_step; return; } if (window.event.keyCode ==39) { CurentMAP.style.width = parseInt(CurentMAP.style.width)+_step; return; } if (window.event.keyCode ==38) { CurentMAP.style.height= parseInt(CurentMAP.style.height)-_step; return; } if (window.event.keyCode ==40) { CurentMAP.style.height = parseInt(CurentMAP.style.height)+_step; return; } } else { if (window.event.keyCode ==37) { CurentMAP.style.left = parseInt(CurentMAP.style.left)-_step; return; } if (window.event.keyCode ==39) { CurentMAP.style.left = parseInt(CurentMAP.style.left)+_step; return; } if (window.event.keyCode ==38) { CurentMAP.style.top = parseInt(CurentMAP.style.top)-_step; return; } if (window.event.keyCode ==40) { CurentMAP.style.top = parseInt(CurentMAP.style.top)+_step; return; } } } } } catch(e){;} } function SAL__get_parsedimgmap_i(rawname) { return rawname.replace(/divmap/,''); } function SAL__set___map_info() { var mapname=opener_oldMapName; for (var i=0; i<opener_DOM.all.length; i++) { if (opener_oldMapName.length > 0 && opener_DOM.all(i).tagName.toLowerCase() == 'map' && opener_DOM.all(i).getAttribute('name') == mapname) { for (var ia=1;opener_DOM.all(i+ia) && opener_DOM.all(i+ia).tagName.toLowerCase() == 'area' && ia < maxMaps ;ia++) { var _target = opener_DOM.all(i+ia).getAttribute('target'); var _href = opener_DOM.all(i+ia).getAttribute('href'); var _alt = opener_DOM.all(i+ia).getAttribute('alt'); var _coords = opener_DOM.all(i+ia).getAttribute('coords'); if (_coords.length >0) { var _coordsA = Array(); _coords = _coords.replace(/ /,''); _coords = _coords.replace(/ /,''); _coordsA = _coords.split(","); if (_coordsA.length==4) { document.getElementById('divmap'+ia).SALMAP_href= _href; document.getElementById('divmap'+ia).SALMAP_alt= _alt; document.getElementById('divmap'+ia).SALMAP_target= _target; document.getElementById('divmap'+ia).style.left= parseInt(_coordsA[0]); document.getElementById('divmap'+ia).style.top= parseInt(_coordsA[1]); document.getElementById('divmap'+ia).style.width= parseInt(_coordsA[2]-_coordsA[0]); document.getElementById('divmap'+ia).style.visibility= 'visible'; document.getElementById('divmap'+ia).style.height= parseInt(_coordsA[3]-_coordsA[1]); //alert(); } } } break; } } if (!document.____SAL_interval_imgmap_htmleditor_____ || document.____SAL_interval_imgmap_htmleditor_____=='undefined') { //document.____SAL_interval_imgmap_htmleditor_____ = window.setInterval("_editMap_()",500); } } function SAL___remove_____map(mapname) { for (var i=0; i<opener_DOM.all.length; i++) { if (opener_oldMapName.length > 0 && opener_DOM.all[i].tagName.toLowerCase() == 'map' && opener_DOM.all[i].getAttribute('name') == mapname) { try { opener_DOM.all[i].removeNode(true); } catch(e){alert('cant remove old map');} } } } function SAL___set_htdmled_imap(mapinfo) { // OPENER ABFRAGEN!!! //DECMD_IMAGEMAP_RANGE abfragen if (!mapinfo) { alert('FIXME'); return; } // Neue map adden // var succ=0; try { if (mapinfo['map_source'] && mapinfo['map_source'].length) { var map_el,area_; map_el = opener_DOM.createElement("map"); opener_oItem.insertAdjacentElement('afterEnd',map_el); map_el.setAttribute('name','__tmpmapname__'); map_el.insertAdjacentHTML('afterBegin', mapinfo['map_source']) } succ=1; } catch(e){alert("Internal error[mmap]");} if (succ==1) { if (mapinfo['map_name'] && mapinfo['map_name'] && mapinfo['map_name'].length) { //alert(opener.DECMD_IMAGEMAP_RANGE_ITEM.useMap); opener_oItem.setAttribute('useMap','#'+mapinfo['map_name']); opener_oItem.setAttribute('border','0'); } else { opener_oItem.removeAttribute('useMap'); } SAL___remove_____map(opener_oldMapName); if (mapinfo['map_name'] && mapinfo['map_name'] && mapinfo['map_name'].length) { map_el.setAttribute('name',mapinfo['map_name']); } window.dialogArguments['dhtmlobj'].Refresh(); window.dialogArguments['dhtmlobj'].style.display='none'; window.dialogArguments['dhtmlobj'].style.display='block'; window.dialogArguments['dhtmlobj'].Refresh(); //window.dialogArguments["opener"].SAL_chng_S_mode(); //window.dialogArguments["opener"].SAL_chng_S_mode(); } else { alert('internal error 656'); } self.close(); } function _imgOnClick_() { if (_createMap_()) { createmapf['delete'].disabled=false; return true; } return false; } function _getFreeMapId() { for(var i=0;i<maxMaps;i++) { if (document.getElementById('divmap'+i).style.visibility == 'hidden') { return i; } } return ''; } function _setFormFromMap() { createmapf.href.value= CurentMAP.SALMAP_href createmapf.alt.value=CurentMAP.SALMAP_alt createmapf.target.value=CurentMAP.SALMAP_target createmapf.msx.value= parseInt(CurentMAP.style.left) createmapf.msy.value= parseInt(CurentMAP.style.top) createmapf.mex.value= parseInt(CurentMAP.style.width) createmapf.mey.value= parseInt(CurentMAP.style.height) createmapf.mapid.value= parseInt(SAL__get_parsedimgmap_i(CurentMAP.id)) } function _editMap_() { // alert(); if (!CurentMAP) return; //alert(activeElements[0].style.visibility); CurentMAP.SALMAP_href = createmapf.href.value; CurentMAP.SALMAP_alt = createmapf.alt.value; CurentMAP.SALMAP_target = createmapf.target.value; return true; ; } function _areas_doborder1px4all() { for(var i=0;i<maxMaps;i++) { if (document.getElementById('divmap'+i).style.visibility == "visible") { document.getElementById('divmap'+i).style.borderWidth ="1px"; } } } function _createMap_() { var MapId = _getFreeMapId(); if (MapId.length <=0) { alert('no free Area available'); return false; } document.getElementById('divmap'+MapId).style.left = event.x; document.getElementById('divmap'+MapId).style.top = event.y; document.getElementById('divmap'+MapId).style.width = 50; document.getElementById('divmap'+MapId).style.height = 50; document.getElementById('divmap'+MapId).SALMAP_href = ''; document.getElementById('divmap'+MapId).SALMAP_alt = ''; document.getElementById('divmap'+MapId).SALMAP_target = ''; CurentMAP = document.getElementById('divmap'+MapId); _areas_doborder1px4all(); document.getElementById('divmap'+MapId).style.borderWidth = '2px'; document.getElementById('divmap'+MapId).style.visibility = 'visible'; _setFormFromMap(); return true; } function _generate_source_() { var map_source = ''; var img_atr = ''; for(var i=0;i<maxMaps ;i++) { if (document.getElementById('divmap'+i).style.visibility == 'visible') { map_source += '<area shape=RECT alt="'+document.getElementById('divmap'+i).SALMAP_alt+'" coords="'+parseInt(document.getElementById('divmap'+i).style.left)+','+parseInt(document.getElementById('divmap'+i).style.top)+','+(parseInt(document.getElementById('divmap'+i).style.left)+parseInt(document.getElementById('divmap'+i).style.width))+','+(parseInt(document.getElementById('divmap'+i).style.top)+parseInt(document.getElementById('divmap'+i).style.height))+'" target="'+document.getElementById('divmap'+i).SALMAP_target+'" href="'+document.getElementById('divmap'+i).SALMAP_href+'">'; } } if (map_source.length>0) { var name = _makeMapName(); img_atr = ' usemap="#'+name+'"' //map_source = '<map name="'+name+'">'+"\n"+map_source+'</map>'; } //return '<img src="'+Limg_tl+'" alt="" border="0"'+img_atr+'>'+map_source; var ret = Array(); ret['map_source'] = map_source; ret['map_name'] = name; return ret; } function _makeMapName() { if (opener_oldMapName && opener_oldMapName.length) { return opener_oldMapName; } var zeit = new Date(); return "Smap"+Date.UTC(zeit.getYear(),zeit.getMonth(),zeit.getDay(),zeit.getHours(),zeit.getMinutes(),zeit.getSeconds()); } function _deleteMap_() { if (createmapf['delete'].disabled == true) return; createmapf['delete'].disabled=true; CurentMAP.style.visibility= 'hidden'; CurentMAP.SALMAP_href= ''; CurentMAP.SALMAP_alt= ''; CurentMAP.SALMAP_target= ''; CurentMAP.style.left= '' CurentMAP.style.top= '' CurentMAP.style.width= '' CurentMAP.style.height= '' return; } function _mapCleanUpDirtyMapRefs() { var mapname=opener_oldMapName; var toDelMaps = new Array; var usedMapNames = new Array; for (var i=0; i<opener_DOM.all.length; i++) { if (opener_DOM.all(i).tagName.toLowerCase() == 'img' && opener_DOM.all(i).getAttribute('useMap') && opener_DOM.all(i).getAttribute('useMap').length > 0) { var _mapname = opener_DOM.all(i).getAttribute('useMap').replace(/#/,''); _mapname = _mapname.toLowerCase(); usedMapNames[_mapname] = 1; } } for (var i=0; i<opener_DOM.all.length; i++) { if (opener_DOM.all(i).tagName.toLowerCase() == 'map') { if ( opener_DOM.all(i).getAttribute('name') == '' ) { //KICK & DELETE toDelMaps[toDelMaps.length]=opener_DOM.all(i); continue; } var _mapname = opener_DOM.all(i).getAttribute('name'); _mapname = _mapname.toLowerCase(); if ( usedMapNames[_mapname] != 1) { //KICK toDelMaps[toDelMaps.length]=opener_DOM.all(i); usedMapNames[_mapname]++; } usedMapNames[_mapname]=0; } } var _mapname; var _err = ' - cleaned'; for(var i=0;i<toDelMaps.length;i++) { //alert(toDelMaps[i].getAttribute('name')); if (toDelMaps[i]) { try { //alert('del') toDelMaps[i].removeNode(true); } catch(e) { //alert('err') _err = ''; } } } if (toDelMaps.length>0) alert('NOTE: dirty HTML code dedected'+_err); return true; } document.onmousemove = mousemove; //document.onselectstart = rfalse; --- NEW FILE: index.php --- <? include ("../../../../../../std.inc.php3");?> <? __salomon__check__login(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Salomon Image Map Editor</title> <? SAL__include_std_js_scripts();?> <? __salomon__include__css(); ?> <!-- <script src="genMove.js" type="text/javascript"></script> --> <script src="msmove.js" type="text/javascript"></script> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> maxMaps = 100; if (!window.dialogArguments) { window.dialogArguments = Array; window.dialogArguments['opener'] = opener; } opener_DOM = window.dialogArguments['dhtmlobj'].DOM; opener_oSel = opener_DOM.selection; opener_oRange = opener_oSel.createRange() opener_oItem = opener_oRange.item(opener_oRange.length-1); opener_oldMapName = opener_oItem.getAttribute('usemap'); opener_oldMapName = opener_oldMapName.replace(/#/,''); Limg_tl = opener_oItem.src; Limg_tlW = opener_oItem.getAttribute('width'); Limg_tlH = opener_oItem.getAttribute('height'); _mapCleanUpDirtyMapRefs(); </SCRIPT> </head> <body bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0" onload="SAL__set___map_info()"> <? #__salomon__include__body(); ?> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> var eimgatr=''; if (Limg_tlH) { eimgatr = ' height='+Limg_tlH+' '; } if (Limg_tlW) { eimgatr += ' width='+Limg_tlW+' '; } document.write('<img src="'+Limg_tl+'" '+eimgatr+' alt="" border="0" onclick="_imgOnClick_();" style="cursor:crosshair;">'); </SCRIPT> <br><br> <table> <tr> <td><strong>Map-Area Properties</strong></td> </tr> <tr> <td nowrap> <table cellpadding="0" cellspacing="0" border="1" bordercolor="#808080"><tr><td> <form name="createmapf"> <table cellpadding="0" cellspacing="2"> <tr valign="top"> <td>Hyperlink (href)</td> <td><input onfocus="document.onselectstart = '';document.onmousemove=''" onkeyup="_editMap_();" onblur="document.onselectstart = rfalse;document.onmousemove=mousemove;_editMap_()" type="text" name="href" value="" size="50"></td> </tr> <tr valign="top"> <td>Alt Text (alt)</td> <td><input onfocus="document.onselectstart = '';document.onmousemove=''" onkeyup="_editMap_()" onblur="document.onselectstart = rfalse;document.onmousemove=mousemove;_editMap_()" type="text" name="alt" value="" size="50"></td> </tr> <tr valign="top"> <td><a href="#" onclick="SAL_CHVIS_mod('advmappr')" title="Click here for Advanced Properties">Advanced</a></td> <td></td> </tr> <tr valign="top" style="display:none;" id="advmappr"> <td>Target</td> <td><input onfocus="document.onselectstart = '';document.onmousemove=''" onkeyup="_editMap_()" onblur="document.onselectstart = rfalse;document.onmousemove=mousemove;_editMap_()" type="text" name="target" value="" size="10"> _self _parent _top _blank </td> </tr> </table> <span style="display:none;">Map X:<input type="text" name="msx" value="" size="3"><br></span> <span style="display:none;">Map Y:<input type="text" name="msy" value="" size="3"><br></span> <span style="display:none;">Map Width X:<input type="text" name="mex" value="50" size="3"><br></span> <span style="display:none;">Map Heigh Y:<input type="text" name="mey" value="50" size="3"><br></span> <span style="display:none;">Map Number: <input type="text" name="mapid" value="" size="3"><br></span> <br><input style="display:none; disabled type="button" name="create" value="Create" > <input disabled type="button" name="delete" value="Delete Area" onclick="_deleteMap_()"> <!-- <input type="button" value="Make" onclick="alert(_generate_source_())"> --> <input type="button" value="Save Image Map" onclick="_editMap_();SAL___set_htdmled_imap(_generate_source_())"> <input style="display:none;" disabled type="button" name="edit" value="Edit" onclick="_editMap_()"> </form> </td></tr></table> <br> <strong><a onclick="SAL_CHVIS_mod('helpsp')" href="#" title="Click here for Help">Quick-Help</a></strong><br> <span id=helpsp style="display:none;"> - You can add a Map-Area by a LEFT-MOUSE-CLICK on a free Area at the Image<br> - You can edit a Map-Area by a LEFT-MOUSE-CLICK on the Map-Area (red-marked), then you have to fill out the form<br> - You can delete a Map-Area by a LEFT-MOUSE-CLICK on the Map-Area (red-marked), then you have to click the DELETE button<br> - You can finetune a Map-Area by the curser keys<br> - You can move and resize a Map-Area via DRAG and DROP<br> - When you finished you have to click "Save Image Map" </span> </td> </tr> </table> <br><br> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> for(var i=0;i<maxMaps;i++) { var _Estyle = ' visibility:hidden; '; document.writeln('<div onkeyDown="_imgmapkeydowhdl()" onmousemove="___MmosOvrr(this);mousemove()" moveable=true id="divmap'+i+'" style="position:absolute; left:0px; top:0px; width:0px; height:0px; z-index:'+(i+1)+'; '+_Estyle+' border: 1px solid Red; background-image: url(trans.gif);"><!-- <font color="Red"><strong> '+i+'</strong></font> --></div>'); document.getElementById('divmap'+i).SALMAP_href= ''; document.getElementById('divmap'+i).SALMAP_alt= ''; document.getElementById('divmap'+i).SALMAP_target= ''; } </SCRIPT> <? page_close();?> </body> </html> --- NEW FILE: genMove.js --- /////////////////////////////////////////////////////////////////////// // This script was designed by Erik Arvidsson for WebFX // // // // For more info and examples see: http://webfx.eae.net // // or send mail to er...@ea... // // // // Feel free to use this code as lomg as this disclaimer is // // intact. // /////////////////////////////////////////////////////////////////////// var checkZIndex = true; var dragobject = null; var tx; var ty; var ie5 = document.all != null && document.getElementsByTagName != null; function getReal(el) { temp = el; while ((temp != null) && (temp.tagName != "BODY")) { if ((temp.className == "moveme") || (temp.className == "handle")){ el = temp; return el; } temp = temp.parentElement; } return el; } function moveme_onmousedown() { el = getReal(window.event.srcElement) if (el.className == "moveme" || el.className == "handle") { if (el.className == "handle") { tmp = el.getAttribute("handlefor"); if (tmp == null) { dragobject = null; return; } else dragobject = eval(tmp); } else dragobject = el; if (checkZIndex) makeOnTop(dragobject); ty = window.event.clientY - getTopPos(dragobject); tx = window.event.clientX - getLeftPos(dragobject); window.event.returnValue = false; window.event.cancelBubble = true; } else { dragobject = null; } } function moveme_onmouseup() { if(dragobject) { dragobject = null; } } function moveme_onmousemove() { if (dragobject) { if (window.event.clientX >= 0 && window.event.clientY >= 0) { dragobject.style.left = window.event.clientX - tx; dragobject.style.top = window.event.clientY - ty; } window.event.returnValue = false; window.event.cancelBubble = true; } } function getLeftPos(el) { if (ie5) { if (el.currentStyle.left == "auto") return 0; else return parseInt(el.currentStyle.left); } else { return el.style.pixelLeft; } } function getTopPos(el) { if (ie5) { if (el.currentStyle.top == "auto") return 0; else return parseInt(el.currentStyle.top); } else { return el.style.pixelTop; } } function makeOnTop(el) { var daiz; var max = 0; var da = document.all; for (var i=0; i<da.length; i++) { daiz = da[i].style.zIndex; if (daiz != "" && daiz > max) max = daiz; } el.style.zIndex = max + 1; } if (document.all) { //This only works in IE4 or better document.onmousedown = moveme_onmousedown; document.onmouseup = moveme_onmouseup; document.onmousemove = moveme_onmousemove; } document.write("<style>"); document.write(".moveme {cursor: move;}"); document.write(".handle {cursor: move;}"); document.write("</style>"); --- NEW FILE: arr.gif --- (This appears to be a binary file; contents omitted.) |
From: <dav...@us...> - 2003-08-20 16:24:25
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv30400 Modified Files: newmsg.php Log Message: Added mail notification via multipart() mail global function. Fixed previewing of current users online when no recipient is specified in query string. Index: newmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/newmsg.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** newmsg.php 20 Aug 2003 14:29:11 -0000 1.5 --- newmsg.php 20 Aug 2003 16:00:30 -0000 1.6 *************** *** 45,48 **** --- 45,59 ---- ,'".time()."')") or die("INSERT ERROR: ".mysql_error()); + // Get information about the receiver + + $query = mysql_query("SELECT * FROM ofirst_members WHERE user = '".$_POST['recip']."'") or die(mysql_error()); + $receiver = mysql_fetch_object($query); + + // Send mail notification to use via multipart mail function + + multipartmail($receiver->email, + "New message has arrived!" , $message = "Hello ".$receiver->firstname.", you have received a new message from ".$user->user.". + You may pickup your message by visiting: $home/$basepath/messenger/inbox.php. Thank you and have a nice day!"); + echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>"); die(include($footer)); *************** *** 62,81 **** <td> <?php // Set the reply based on querystring or list members if (ISSET($_GET['RECIP'])){ $query = mysql_query("SELECT * FROM ofirst_messenger_usersonline WHERE ID = '".$_GET['RECIP']."'"); $recipient = mysql_fetch_object($query); ! echo $recipient->Member; echo "<input type='hidden' name='recip' value='".$recipient->Member."'>"; ! }else{ ! echo "<select name='recip'id='recip'>"; ! $query = mysql_query("SELECT * FROM ofirst_messenger_usersonline"); while($recipient = mysql_fetch_object($query)){ ! if(! $recipient->Member == "none"){ ! echo "<option>".$recipient->Member."<option>"; ! } } ! echo "</select>"; } ?> --- 73,99 ---- <td> <?php + // Set the reply based on querystring or list members if (ISSET($_GET['RECIP'])){ + $query = mysql_query("SELECT * FROM ofirst_messenger_usersonline WHERE ID = '".$_GET['RECIP']."'"); $recipient = mysql_fetch_object($query); ! echo "<input type='hidden' name='recip' value='".$recipient->Member."'>"; ! ! }else{ ! ! echo "<select name='recip' id='recip'>"; ! $query = mysql_query("SELECT * FROM ofirst_messenger_usersonline"); ! echo $recipient->Member; ! while($recipient = mysql_fetch_object($query)){ ! if($recipient->Member != "none"){ ! echo "<option>".$recipient->Member."<option>"; ! } } ! ! echo "</select>"; } ?> |
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/gfx In directory sc8-pr-cvs1:/tmp/cvs-serv11289 Added Files: .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: initial upload --- NEW FILE: .DS_Store --- (This appears to be a binary file; contents omitted.) --- NEW FILE: backcolor.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: 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: copy.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: forecolor.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: italic.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: 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: orderedlist.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: paste.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: source.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: underline.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: unorderedlist.gif --- (This appears to be a binary file; contents omitted.) |
From: <xt...@us...> - 2003-08-20 15:57:25
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv16243 Modified Files: first.php Log Message: Fix lack of escaping error Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** first.php 19 Aug 2003 20:53:42 -0000 1.18 --- first.php 20 Aug 2003 14:40:09 -0000 1.19 *************** *** 91,95 **** } } elseif (is_readable(getcwd() . \"/../../config/functions/\")) { ! foreach (glob(getcwd() . \"/../../config/functions/*.php\") as $filename) { include(\$filename); } --- 91,95 ---- } } elseif (is_readable(getcwd() . \"/../../config/functions/\")) { ! foreach (glob(getcwd() . \"/../../config/functions/*.php\") as \$filename) { include(\$filename); } |
From: <dav...@us...> - 2003-08-20 15:39:46
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv13923 Modified Files: newmsg.php Log Message: Added use of wysiwyg function. Index: newmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/newmsg.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** newmsg.php 20 Aug 2003 00:40:28 -0000 1.4 --- newmsg.php 20 Aug 2003 14:29:11 -0000 1.5 *************** *** 49,53 **** } ?> ! <form method="POST" action="newmsg.php"> <h1>Visitor Inbox for Messaging</h1> <p>Please make sure that your messeges do not contain profanity or abusive comments.</p> --- 49,53 ---- } ?> ! <form onsubmit="return dhtmlEditorPrepareSubmit();" method="POST" action="newmsg.php"> <h1>Visitor Inbox for Messaging</h1> <p>Please make sure that your messeges do not contain profanity or abusive comments.</p> *************** *** 88,92 **** <tr> <th>Body</th> ! <td> <textarea name="body" cols="50" rows="10" id="body"></textarea> <br> <font size="2">(HTML and emoticon options enabled)</font></td> --- 88,99 ---- <tr> <th>Body</th> ! <td> ! <?php ! if (function_exists("make_wysiwyg")) { ! make_wysiwyg("body",500,255,""); ! }else{ ! echo "<textarea name='body'></textarea>"; ! } ! ?> <br> <font size="2">(HTML and emoticon options enabled)</font></td> |
From: <dav...@us...> - 2003-08-20 15:39:25
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/js In directory sc8-pr-cvs1:/tmp/cvs-serv10304 Added Files: dhtmled.js lib.js lib2.js lib_ms.js Log Message: initial upload --- 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: lib2.js --- (This appears to be a binary file; contents omitted.) --- NEW FILE: lib_ms.js --- (This appears to be a binary file; contents omitted.) |
From: <dav...@us...> - 2003-08-20 15:39:16
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/uti In directory sc8-pr-cvs1:/tmp/cvs-serv11033 Added Files: colors.htm Log Message: initial upload --- 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> |
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/dev/Midas Demo-Dateien In directory sc8-pr-cvs1:/tmp/cvs-serv11816 Added Files: 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: initial upload --- NEW FILE: Demo-Dateien backcolor.gif --- --- NEW FILE: bold.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: copy.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: forecolor.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: italic.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: 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: orderedlist.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: paste.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: table.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: undo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: unorderedlist.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/images In directory sc8-pr-cvs1:/tmp/cvs-serv10629 Added Files: 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: initial upload --- NEW FILE: absmode.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: additem.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: bold.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: borders.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: bullist.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: copy.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: deindent.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: delcol.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: delrow.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: dms.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: end.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: find.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: help.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: immap.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: 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: insrow.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: italic.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: link.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: lock.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: newdoc.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: numlist.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: paste.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: project.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: reddot.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: right.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: saveall.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: 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: spltcell.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: target.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: tblprop.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: undo.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: zb_o.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: zf_b.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: zf_y.gif --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/modules In directory sc8-pr-cvs1:/tmp/cvs-serv12208 Added Files: 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: initial upload --- NEW FILE: behavior_css.js --- //Init Function function MODUL__behaviorLoadCSS(cssSrc,cssHtml) {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'behavior'; apiInfoArray['header'] = ''; //OLD & Deprecated /*{{{*/ /* if (cssSrc && cssSrc.length) { apiInfoArray['header'] += '<link salomondhtmldesignmetainfo=\"this_tag_will_removed_automaticaly_by_dhtmlEditorGecko\" REL="stylesheet" TYPE="text/css" HREF="'+cssSrc+'">'; apiInfoArray['GECKO_COMPATIBLE'] = true; } */ /*}}}*/ //New CSS Syntax for Import /*{{{*/ if ( (cssHtml && cssHtml.length) || (cssSrc && cssSrc.length) ) { apiInfoArray['header'] += "<style type=\"text/css\">\n"; if (cssSrc && cssSrc.length) apiInfoArray['header'] += "@import url("+cssSrc+") all;\n" if (cssHtml && cssHtml.length) apiInfoArray['header'] += cssHtml; apiInfoArray['header'] += "\n</style>"; apiInfoArray['header'] += '<link salomondhtmldesignmetainfo=\"this_tag_will_removed_automaticaly_by_dhtmlEditorGecko\" REL="stylesheet" TYPE="text/css" HREF="'+cssSrc+'">'; apiInfoArray['GECKO_COMPATIBLE'] = true; } /*}}}*/ return apiInfoArray; }/*}}}*/ --- NEW FILE: behavior_menu_invisible.js --- //init function MODUL__behaviorMenuInvisible(editor) {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'behavior'; apiInfoArray['onclick'] = MODUL__behaviorMenuInvisible_onclick; apiInfoArray['onDocumentComplete'] = MODUL__behaviorMenuInvisible_onDocumentComplete; if (editor) { editor.hideButtonBarOnInit = true; editor.disableDisplayEvent = 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 = OLE_TRISTATE_UNCHECKED;//''; apiInfoArray['ContextMenu'][_L].queryStatusFunction = MODUL__behaviorMenuInvisible_ContextQueryStatusFunction;//more prio than apiInfoArray['ContextMenu'][_L].queryStatus apiInfoArray['ContextMenu'][_L].menuString = 'Hide Menu Bar'; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__behaviorMenuInvisible_ToggleMenuDisplay_onContextMenuAction; 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 apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onDocumentComplete'] = MODUL__behaviorMenuInvisible_onDocumentComplete_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__behaviorMenuInvisible_ToggleMenuDisplay(_thisId) {/*{{{*/ var _this = false; var tblId = _thisId+'ButtonBarTbl'; if (!_thisId) return; //search my object in the global object collection for(var i=0;i<document[document.____GLOBAL_VAR_PREFIX____+'__allEditorInfos'].length;i++) { if (document[document.____GLOBAL_VAR_PREFIX____+'__allEditorInfos'][i].obj && document[document.____GLOBAL_VAR_PREFIX____+'__allEditorInfos'][i].obj.objectId == _thisId) { _this = document[document.____GLOBAL_VAR_PREFIX____+'__allEditorInfos'][i].obj; break; } } if (!_this) return; //alert(_this.disableDisplayEvent); if (document.getElementById(tblId).style.display == 'none') { document.getElementById(tblId).style.display = 'block'; _this.disableDisplayEvent = false; } else { document.getElementById(tblId).style.display = 'none'; _this.disableDisplayEvent = true; } }/*}}}*/ function MODUL__behaviorMenuInvisible_ToggleMenuDisplay_onContextMenuAction (_this) {/*{{{*/ if (document.getElementById(_this.objectId+'ButtonBarTbl').style.display == 'none') { document.getElementById(_this.objectId+'ButtonBarTbl').style.display = 'block'; _this.disableDisplayEvent = false; } else { document.getElementById(_this.objectId+'ButtonBarTbl').style.display = 'none'; _this.disableDisplayEvent = true; } }/*}}}*/ function MODUL__behaviorMenuInvisible_onclick(_this) {/*{{{*/ document.getElementById(_this.objectId+'ButtonBarTbl').style.display = 'none'; _this.disableDisplayEvent = true; return true; }/*}}}*/ function MODUL__behaviorMenuInvisible_onDocumentComplete(_this) {/*{{{*/ var content = ''; var width = _this.width content += '<span title="Click here to display/hide the menu" style="cursor:hand;" onclick="void(MODUL__behaviorMenuInvisible_ToggleMenuDisplay(\''+_this.objectId+'\'))" style="BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow solid 1px; BORDER-LEFT: buttonhighlight solid 1px; BORDER-RIGHT: buttonshadow solid 1px; BORDER-TOP: buttonhighlight solid 1px; HEIGHT: 3px; WIDTH: '+width+'px;">'; content += '<div align="center"><font title="Click here to display/hide the menu" color="blue" style="font-size:10px" face="Arial">Menu</font></div></span>'; document.getElementById(_this.objectId+'ButtonBarTbl').insertAdjacentHTML("BeforeBegin",content); document.getElementById(_this.objectId+'ButtonBarTbl').style.display = 'none'; _this.disableDisplayEvent = true; return true; }/*}}}*/ function MODUL__behaviorMenuInvisible_ContextQueryStatusFunction(xPos,yPos,contextMenuCollectionItem,_this) {/*{{{*/ if (document.getElementById(_this.objectId+'ButtonBarTbl').style.display == 'none') { return OLE_TRISTATE_CHECKED;// = 1 } return OLE_TRISTATE_UNCHECKED; }/*}}}*/ //GECKO function MODUL__behaviorMenuInvisible_onclick_GECKO(ObjectId) {/*{{{*/ if (document.getElementById(ObjectId+'ButtonBarTbl2').style.display=='none') { document.getElementById(ObjectId+'ButtonBarTbl2').style.display=''; //Workaround 4 Gecko-Dhtml-Bug: re-init buttons cause mouseXXX Effects are lost... if (!dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(ObjectId).tmp______MODUL__behaviorMenuInvisible_onclick_GECKO) { dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(ObjectId).tmp______MODUL__behaviorMenuInvisible_onclick_GECKO=true;//only1time dhtmlEditorGecko.GET_MY_OBJECT_INSTANCE_FROM_OBJECT_ID(ObjectId).InitToolbarButtons(); } } else { document.getElementById(ObjectId+'ButtonBarTbl2').style.display='none'; } }/*}}}*/ function MODUL__behaviorMenuInvisible_onDocumentComplete_GECKO(api_info) {/*{{{*/ var content = ''; var width = parseInt(document.getElementById(api_info['ObjectId']).style.width); content += '<span title="Click here to display/hide the menu" style="cursor:hand;" onclick="" style="BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow solid 1px; BORDER-LEFT: buttonhighlight solid 1px; BORDER-RIGHT: buttonshadow solid 1px; BORDER-TOP: buttonhighlight solid 1px; HEIGHT: 3px; WIDTH: '+width+'px;">'; content += '<div align="center"><a href="javascript:MODUL__behaviorMenuInvisible_onclick_GECKO(\''+api_info['ObjectId']+'\')"><font title="Click here to display/hide the menu" color="blue" style="font-size:10px" face="Arial">Menu</font></a></div></span>'; document.getElementById(api_info['ObjectId']+'ButtonBarTbl2').style.display='none'; document.getElementById(api_info['ObjectId']+'ButtonBarTbl1').innerHTML = content+document.getElementById(api_info['ObjectId']+'ButtonBarTbl1').innerHTML; return true; }/*}}}*/ --- 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: 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_about.js --- (This appears to be a binary file; contents omitted.) --- NEW FILE: button_hr.gif --- (This appears to be a binary file; contents omitted.) --- 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: 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_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: 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_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_log.js --- function MODUL__dhtmlEditorDoShowLogs(_this) { //this.ALLLOG_TYPES //this.ALLLOG var content=''; for (var i=0;i<_this.ALLLOG.length;i++) { content+=_this.ALLLOG[i]+"\n"; } //alert(content); var W_HANDLE; W_HANDLE = window.open("about:blank","_blank"); W_HANDLE.document.writeln('<NOBR>'); W_HANDLE.document.writeln('<xmp>'); W_HANDLE.document.writeln(content); W_HANDLE.document.writeln('</xmp>'); W_HANDLE.document.writeln('</NOBR>'); return true; } function MODUL__dhtmlEditorShowLogsGetApiInfoArray(_image) { var apiInfoArray = new Array(); apiInfoArray['typ'] = 'button'; apiInfoArray['image'] = _image; apiInfoArray['title'] = 'Show Logs'; apiInfoArray['onclick'] = MODUL__dhtmlEditorDoShowLogs; //apiInfoArray['onprepare'] = MODUL__toggleEditModeOnPrepare; //apiInfoArray['onDocumentComplete'] = MODUL__toggleEditModeOnDocumentComplete; //apiInfoArray['grid'] = DECMD_HYPERLINK; //apiInfoArray['gridSeperatorBefore'] = true; //apiInfoArray['gridSeperatorAfter'] = true; return apiInfoArray; } --- 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: button_table_properties.js --- //init function MODUL__TableProperties_GetApiInfoArray(_image) {/*{{{*/ var apiInfoArray = new Array(); apiInfoArray['typ'] = 'button'; apiInfoArray['image'] = _image; apiInfoArray['title'] = 'Table Properties';//if you change this title Change it below too!!! apiInfoArray['onclick'] = MODUL__TableProperties_ONCLICK; apiInfoArray['exec'] = MODUL__TableProperties_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__TableProperties_queryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = apiInfoArray['title']; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__TableProperties_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__TableProperties_queryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = "Cell Properties"; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__TableProperties_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__TableProperties_queryStatusFunction; apiInfoArray['ContextMenu'][_L].menuString = "Row Properties"; apiInfoArray['ContextMenu'][_L].ContextMenuActionFunction = MODUL__TableProperties_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; //GECKO apiInfoArray['GECKO_COMPATIBLE'] = true; apiInfoArray['GECKO_onclick'] = MODUL__TableProperties_ONCLICK_GECKO; return apiInfoArray; }/*}}}*/ //M$ function MODUL__TableProperties_EXEC(_this,elementObject) {/*{{{*/ var s = document[_this.objectId].QueryStatus(DECMD_INSERTROW); 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__TableProperties_ONCLICK(_this) {/*{{{*/ //We simulate contextMenuCollection var contextMenuCollection = new Array(); contextMenuCollection['menuString'] = 'Table Properties'; return MODUL__TableProperties_ContextMenuAction(_this,contextMenuCollection); }/*}}}*/ function MODUL__TableProperties_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__TableProperties___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__TableProperties___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__TableProperties_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__TableProperties___small_helperlein__find_parent('tr',selection.parentElement()); if (contextMenuCollection['menuString'] == 'Cell Properties')//users choice pElement = MODUL__TableProperties___small_helperlein__find_parent('td',selection.parentElement()); if (contextMenuCollection['menuString'] == 'Table Properties')//users choice pElement = MODUL__TableProperties___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__TableProperties___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); }/*}}}*/ //GECKO function MODUL__TableProperties_ONCLICK_GECKO(api_info) {/*{{{*/ 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 node_td = sel.focusNode.parentNode; if (!sel || !sel.focusNode) return; var node_td = MODUL__TableProperties_ONCLICK_GECKO__find__('TD',sel.focusNode); var node_tr = MODUL__TableProperties_ONCLICK_GECKO__find__('TR',node_td); var node_table = MODUL__TableProperties_ONCLICK_GECKO__find__('TABLE',node_tr); if(!(node_td && node_tr && node_table)) return; //ok - got all nodes... var att_td = new Array(); var att_tr = new Array(); var att_table = new Array(); att_td[att_td.length] = 'bgColor'; att_td[att_td.length] = 'borderColor'; att_td[att_td.length] = 'width'; att_td[att_td.length] = 'height'; att_td[att_td.length] = 'align'; att_td[att_td.length] = 'valign'; att_td[att_td.length] = 'backGround'; att_td[att_td.length] = 'borderColordark'; att_td[att_td.length] = 'borderColorlight'; att_td[att_td.length] = 'title'; att_td[att_td.length] = 'dir'; att_td[att_td.length] = 'lang'; att_td[att_td.length] = 'id'; att_tr[att_tr.length] = 'bgColor'; att_tr[att_tr.length] = 'borderColor'; att_tr[att_tr.length] = 'align'; att_tr[att_tr.length] = 'valign'; att_tr[att_tr.length] = 'title'; att_tr[att_tr.length] = 'dir'; att_tr[att_tr.length] = 'lang'; att_tr[att_tr.length] = 'id'; att_table[att_table.length] = 'border'; att_table[att_table.length] = 'bgColor'; att_table[att_table.length] = 'borderColor'; att_table[att_table.length] = 'cellSpacing'; att_table[att_table.length] = 'cellPadding'; att_table[att_table.length] = 'width'; att_table[att_table.length] = 'height'; att_table[att_table.length] = 'backGround'; att_table[att_table.length] = 'borderColordark'; att_table[att_table.length] = 'borderColorlight'; att_table[att_table.length] = 'title'; att_table[att_table.length] = 'dir'; att_table[att_table.length] = 'lang'; att_table[att_table.length] = 'id'; var info = new Array(); info['table'] = new Array(); info['table']['node'] = node_table; info['table']['att'] = att_table; info['table']['desc'] = 'Table Properties'; info['tr'] = new Array(); info['tr']['node'] = node_tr; info['tr']['att'] = att_tr; info['tr']['desc'] = 'Row Properties'; info['td'] = new Array(); info['td']['node'] = node_td; info['td']['att'] = att_td; info['td']['desc'] = 'Cell Properties'; MODUL__TableProperties_ONCLICK_GECKO__doGUI(info); }/*}}}*/ function MODUL__TableProperties_ONCLICK_GECKO__doGUI(info) {/*{{{*/ document.MODUL__TableProperties_ONCLICK_GECKO__GUIINFO=info; window.open(document.dhtmlEditors_home+'modules/button_table_properties_gecko.html','_blank','width=500,height=400,left=30,top=30,scrolling=auto,scrollbars=1,resizable=1,status=1'); }/*}}}*/ function MODUL__TableProperties_ONCLICK_GECKO__find__(tag,node) {/*{{{*//*{{{*/ if (node && node.nodeName && node.nodeName.toUpperCase && node.nodeName.toUpperCase() == tag.toUpperCase()) { return node; } if (node && node.parentNode) { return MODUL__TableProperties_ONCLICK_GECKO__find__(tag,node.parentNode); } return false; }/*}}}*//*}}}*/ --- 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) { ... [truncated message content] |
From: <xt...@us...> - 2003-08-20 15:29:17
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv22589 Modified Files: workspace.php Log Message: Fix miscellaneous issues that may cause errors on systems with elevated debug levels. Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** workspace.php 12 Aug 2003 17:09:14 -0000 1.6 --- workspace.php 20 Aug 2003 15:17:27 -0000 1.7 *************** *** 29,34 **** ! if($_GET["filepath"] == "") { $filepath = "/"; } else {$filepath = $_GET["filepath"]; } ! if($_POST["filepath"] != "") { $filepath = $_POST["filepath"]; } // Get important data used throughout this. --- 29,35 ---- ! if(isset($_GET["filepath"]) == true && $_GET["filepath"] == "") { $filepath = "/"; } else { $filepath = $_GET["filepath"]; } ! if(isset($_POST["filepath"]) == true && $_POST["filepath"] != "") { $filepath = $_POST["filepath"]; } ! if(isset($filepath) == false || $filepath = "") { $filepath = "/"; } // Get important data used throughout this. *************** *** 36,40 **** $ws = mysql_fetch_object($wsu); ! if($_GET["action"] == "view" && isset($_GET["view"]) == true) { if($_GET["owner"] == $user->user) { $file = $ws->virtfspath . "/" . $_GET["file"]; --- 37,41 ---- $ws = mysql_fetch_object($wsu); ! if(isset($_GET["action"]) == true && $_GET["action"] == "view" && isset($_GET["view"]) == true) { if($_GET["owner"] == $user->user) { $file = $ws->virtfspath . "/" . $_GET["file"]; *************** *** 70,74 **** if(isset($user->user)) { ! if($_POST["action"] == "modify") { echo("Your modifications to "" . $_POST["file"] . "" have been made [ <a href='workspace.php'>Return to workspace</a> ]"); $vfs = mysql_fetch_object(mysql_query("SELECT virtfspath FROM ofirst_workspace_users WHERE user='" . $_POST["owner"] . "';")); --- 71,75 ---- if(isset($user->user)) { ! if(isset($_POST["action"]) == true && $_POST["action"] == "modify") { echo("Your modifications to "" . $_POST["file"] . "" have been made [ <a href='workspace.php'>Return to workspace</a> ]"); $vfs = mysql_fetch_object(mysql_query("SELECT virtfspath FROM ofirst_workspace_users WHERE user='" . $_POST["owner"] . "';")); *************** *** 82,86 **** die(include($footer)); } ! if($_POST["action"] == "makedirectory") { mkdir(getcwd() . "/virtfs/$user->user/$filepath/" . $_POST["directory"]); $uf = mysql_query("INSERT INTO ofirst_workspace_files (size, location, owner, permissions, date, description, filetype, name) VALUES('0', '$filepath', '$user->user', 'drw-------', '" . date('D M d Y h:m:s') . "', 'Sub Directory', 'dir-" . $_POST["directorytype"] . "', '" . $_POST["directory"] . "');"); --- 83,87 ---- die(include($footer)); } ! if(isset($_POST["action"]) == true && $_POST["action"] == "makedirectory") { mkdir(getcwd() . "/virtfs/$user->user/$filepath/" . $_POST["directory"]); $uf = mysql_query("INSERT INTO ofirst_workspace_files (size, location, owner, permissions, date, description, filetype, name) VALUES('0', '$filepath', '$user->user', 'drw-------', '" . date('D M d Y h:m:s') . "', 'Sub Directory', 'dir-" . $_POST["directorytype"] . "', '" . $_POST["directory"] . "');"); *************** *** 261,265 **** <h1>Personal Workspace</h1> <p><?php - if($_GET["filepath"] == "") { $filepath = "/"; } else {$filepath = $_GET["filepath"]; } $files = mysql_fetch_object(mysql_query("SELECT SUM(size) as used FROM ofirst_workspace_files WHERE owner='$user->user';")); if(mysql_num_rows($wsu) == 1) { --- 262,265 ---- *************** *** 434,438 **** <?php } else { ! if($_GET["activate"] == true) { if(is_writable(getcwd() . "/virtfs/") == true) { mysql_query("INSERT INTO ofirst_workspace_users (quota, user, virtfspath, frozen) VALUES('10', '$user->user', '" . getcwd() . "/virtfs/$user->user/', '0');"); --- 434,438 ---- <?php } else { ! if(isset($_GET["activate"]) == true && $_GET["activate"] == true) { if(is_writable(getcwd() . "/virtfs/") == true) { mysql_query("INSERT INTO ofirst_workspace_users (quota, user, virtfspath, frozen) VALUES('10', '$user->user', '" . getcwd() . "/virtfs/$user->user/', '0');"); |
From: <xt...@us...> - 2003-08-20 15:28:26
|
Update of /cvsroot/openfirst/guestbook In directory sc8-pr-cvs1:/tmp/cvs-serv19358 Modified Files: sign.php Log Message: Add HTML editor to Guest Book... thanks Hans-Jurgen Petrich :) Index: sign.php =================================================================== RCS file: /cvsroot/openfirst/guestbook/sign.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sign.php 28 Jun 2003 01:35:42 -0000 1.5 --- sign.php 20 Aug 2003 14:57:49 -0000 1.6 *************** *** 56,62 **** <br /><img src="world.png" alt="Location: "/> Location <input type="text" name="location" style="width: 300px;" value="<?php echo($user->location); ?>" /> <br />Comment<br /> ! <textarea name="comment" style="width: 400px; height: 300px;" rows="25" cols="40"> ! <?php echo($user->signature); ?> ! </textarea> <br /> <input type="submit" title="Submit" /> <input type="reset" title="Clear" /> --- 56,67 ---- <br /><img src="world.png" alt="Location: "/> Location <input type="text" name="location" style="width: 300px;" value="<?php echo($user->location); ?>" /> <br />Comment<br /> ! <?php ! if (function_exists("make_wysiwyg")) { ! make_wysiwyg("comment",400,300,"$user->signature"); ! } else { ! ?><textarea name="comment" style="width: 400px; height: 300px;" rows="25" cols="40"><?php echo($user->signature); ?></textarea> ! <?php ! } ! ?> <br /> <input type="submit" title="Submit" /> <input type="reset" title="Clear" /> *************** *** 66,68 **** <?php include("$footer"); ! ?> \ No newline at end of file --- 71,73 ---- <?php include("$footer"); ! ?> |
From: <xt...@us...> - 2003-08-20 15:27:39
|
Update of /cvsroot/openfirst/members In directory sc8-pr-cvs1:/tmp/cvs-serv23653 Modified Files: workspace.php Log Message: Fix errors in setting file path Index: workspace.php =================================================================== RCS file: /cvsroot/openfirst/members/workspace.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** workspace.php 20 Aug 2003 15:17:27 -0000 1.7 --- workspace.php 20 Aug 2003 15:25:28 -0000 1.8 *************** *** 29,35 **** ! if(isset($_GET["filepath"]) == true && $_GET["filepath"] == "") { $filepath = "/"; } else { $filepath = $_GET["filepath"]; } if(isset($_POST["filepath"]) == true && $_POST["filepath"] != "") { $filepath = $_POST["filepath"]; } ! if(isset($filepath) == false || $filepath = "") { $filepath = "/"; } // Get important data used throughout this. --- 29,35 ---- ! if(isset($_GET["filepath"]) == true && $_GET["filepath"] != "") { $filepath = $_GET["filepath"]; } if(isset($_POST["filepath"]) == true && $_POST["filepath"] != "") { $filepath = $_POST["filepath"]; } ! if(isset($filepath) == false || $filepath == "") { $filepath = "/"; } // Get important data used throughout this. *************** *** 124,128 **** } ! if($filepath =="/") { deldir($ws->virtfspath . $_GET["directory"]); } else { --- 124,128 ---- } ! if($filepath == "/") { deldir($ws->virtfspath . $_GET["directory"]); } else { |
From: <dav...@us...> - 2003-08-20 14:49:48
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/modules/imagemap In directory sc8-pr-cvs1:/tmp/cvs-serv10097/imagemap Log Message: Directory /cvsroot/openfirst/base/config/functions/wysiwyg/modules/imagemap added to the repository |
From: <dav...@us...> - 2003-08-20 11:20:02
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/dev/Converting an app using document_designMode from IE to Midas-Dateien In directory sc8-pr-cvs1:/tmp/cvs-serv7777 Added Files: persistent-style.css Log Message: initial upload --- NEW FILE: an app using document_designMode from IE to Midas-Dateien persistent-style.css --- |
From: <dav...@us...> - 2003-08-20 10:35:29
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko In directory sc8-pr-cvs1:/tmp/cvs-serv7246 Added Files: .DS_Store Log Message: initial upload --- NEW FILE: .DS_Store --- (This appears to be a binary file; contents omitted.) |
From: <dav...@us...> - 2003-08-20 10:27:00
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/js In directory sc8-pr-cvs1:/tmp/cvs-serv8020 Added Files: lib.js .DS_Store .dhtmleditorgecko.js.swp Log Message: initial upload --- 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; --- 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.) |
From: <dav...@us...> - 2003-08-20 09:03:22
|
Update of /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/uti In directory sc8-pr-cvs1:/tmp/cvs-serv6955/uti Log Message: Directory /cvsroot/openfirst/base/config/functions/wysiwyg/gecko/uti added to the repository |
From: <dav...@us...> - 2003-08-20 07:47:09
|
Update of /cvsroot/openfirst/base/config/functions In directory sc8-pr-cvs1:/tmp/cvs-serv6186 Added Files: wysiwyg.php Log Message: initial upload --- 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('../images/newdoc.gif')); myEditor.make_andReplaceTextarea('<?php echo $fieldname; ?>'); //--> </SCRIPT> <? } ?> |
From: <xt...@us...> - 2003-08-20 07:11:09
|
Update of /cvsroot/openfirst/search In directory sc8-pr-cvs1:/tmp/cvs-serv9856 Modified Files: index.php Log Message: Fix bug preventing search from functioning as expected on systems not having openFIRST basepath at document root Index: index.php =================================================================== RCS file: /cvsroot/openfirst/search/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 19 Aug 2003 22:52:36 -0000 1.2 --- index.php 19 Aug 2003 23:24:49 -0000 1.3 *************** *** 35,39 **** <img src="search2.png" alt="Search" /> </th> ! <td><form method="GET" action="/search/"> <select name="type"> <option value="google" <?php if($_GET["type"] == "google") { echo " selected='selected'"; } ?>>Google Search</option> --- 35,39 ---- <img src="search2.png" alt="Search" /> </th> ! <td><form method="GET" action="<?php echo $basepath; ?>/search/"> <select name="type"> <option value="google" <?php if($_GET["type"] == "google") { echo " selected='selected'"; } ?>>Google Search</option> |