mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 05:26:50 +09:00
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@6 860744bd-22fc-0310-8c96-e9fe5004b5ca
57 lines
2.5 KiB
PHP
57 lines
2.5 KiB
PHP
<?/*
|
|
+-------------------------------------------------------------------------+
|
|
| Copyright (C) 2002 Ian Berry |
|
|
| |
|
|
| 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. |
|
|
+-------------------------------------------------------------------------+
|
|
| cacti: the rrdtool frontend [php-auth, php-tree, php-form] |
|
|
+-------------------------------------------------------------------------+
|
|
| This code is currently maintained and debugged by Ian Berry, any |
|
|
| questions or comments regarding this code should be directed to: |
|
|
| - iberry@raxnet.net |
|
|
+-------------------------------------------------------------------------+
|
|
| - raXnet - http://www.raxnet.net/ |
|
|
+-------------------------------------------------------------------------+
|
|
*/?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<SCRIPT LANGUAGE=JAVASCRIPT>
|
|
<!--
|
|
function drag_prep() {
|
|
<?
|
|
if (sizeof($drag_inits) > 0) {
|
|
foreach ($drag_inits as $div_id) {
|
|
if ($browser->BROWSER == 'Netscape') {
|
|
print " obj1 = document.all ? document.all[\"$div_id[0]\"] : document.getElementById(\"$div_id[0]\");\n";
|
|
if ($div_id[1]) {
|
|
print " obj2 = document.all ? document.all[\"$div_id[1]\"] : document.getElementById(\"$div_id[1]\");\n";
|
|
print " Drag.init(obj1, obj2);\n";
|
|
} else {
|
|
print " Drag.init(obj1);\n";
|
|
}
|
|
if ($div_id[2]) {
|
|
print " obj2.onDragStart = function(x, y) { pop_dragger(\"$div_id[0]\", \"$div_id[1]\"); }\n";
|
|
print " obj2.onDragEnd = function(x, y) { alert(get_abs_x(obj2)+\" , \"+get_abs_y(obj2)); }\n";
|
|
}
|
|
} else {
|
|
print " Drag.init(document.all[\"$div_id[0]\"],document.all[\"$div_id[1]\"]);\n";
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
|
|
</body>
|
|
</html>
|