From da19f7be808fd589e36cb7ea45554f83e4f7143e Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 20 Mar 2007 15:11:15 +0000 Subject: [PATCH] marked phpMyAdmin Designer as own package (phpMyAdmin-Designer) --- pmd/scripts/ajax.js | 1 + pmd/scripts/iecanvas.js | 36 ++++++++++++++++++++++------------- pmd/scripts/move.js | 1 + pmd/styles/default/style1.css | 24 +++++++++++++---------- pmd_common.php | 1 + pmd_display_field.php | 1 + pmd_general.php | 1 + pmd_help.php | 1 + pmd_pdf.php | 1 + pmd_relation_new.php | 1 + pmd_relation_upd.php | 1 + pmd_save_pos.php | 1 + 12 files changed, 47 insertions(+), 23 deletions(-) diff --git a/pmd/scripts/ajax.js b/pmd/scripts/ajax.js index 1a3ae6d91..7f3ea6026 100644 --- a/pmd/scripts/ajax.js +++ b/pmd/scripts/ajax.js @@ -2,6 +2,7 @@ /** * * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd/scripts/iecanvas.js b/pmd/scripts/iecanvas.js index 4066e3808..3735029a7 100644 --- a/pmd/scripts/iecanvas.js +++ b/pmd/scripts/iecanvas.js @@ -1,10 +1,20 @@ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * + * @version $Id$ + * @package phpMyAdmin-Designer + */ + +/** + * + */ if (!window.all) // if IE -{ +{ document.attachEvent("onreadystatechange", // document load - function () - { - if (document.readyState == "complete") - { + function () + { + if (document.readyState == "complete") + { var el = document.getElementById("canvas"); var outerHTML = el.outerHTML; var newEl = document.createElement(outerHTML); @@ -17,7 +27,7 @@ if (!window.all) // if IE el.style.width = el.attributes.width.nodeValue + "px"; el.style.height = el.attributes.height.nodeValue + "px"; - } + } } ); @@ -30,23 +40,23 @@ if (!window.all) // if IE m[i] = (m[i]*1).toString(16).length < 2 ? '0' + (m[i]*1).toString(16) : (m[i]*1).toString(16); return ['#' + m[1] + m[2] + m[3], 1]; } -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ function PMD_2D(th) { this.element_ = th; this.pmd_arr = Array(); this.strokeStyle; this.fillStyle; this.lineWidth; - + this.closePath = function() { this.pmd_arr.push({type: "close"}); } - + this.clearRect = function() { this.element_.innerHTML = ""; this.pmd_arr = []; } - + this.beginPath = function() { this.pmd_arr = []; } @@ -111,7 +121,7 @@ if (!window.all) // if IE for (var i = 0; i < this.pmd_arr.length; i++) { var p = this.pmd_arr[i]; - + if (p.type == "moveTo") { Str.push(" m "); Str.push(Math.floor(p.x), ",",Math.floor(p.y)); @@ -130,10 +140,10 @@ if (!window.all) // if IE Math.floor(p.xEnd), ",", Math.floor(p.yEnd)); } } - + Str.push(' ">'); Str.push(""); - + this.element_.insertAdjacentHTML("beforeEnd", Str.join("")); this.pmd_arr = Array(); } diff --git a/pmd/scripts/move.js b/pmd/scripts/move.js index 60f274cce..7295da1ff 100644 --- a/pmd/scripts/move.js +++ b/pmd/scripts/move.js @@ -2,6 +2,7 @@ /** * @version $Id$ * @author Ivan A Kirillov (Ivan.A.Kirillov@gmail.com) + * @package phpMyAdmin-Designer */ /** diff --git a/pmd/styles/default/style1.css b/pmd/styles/default/style1.css index be8096780..eda0f0ed1 100644 --- a/pmd/styles/default/style1.css +++ b/pmd/styles/default/style1.css @@ -1,4 +1,8 @@ -/* $Id$ */ +/* vim: set expandtab sw=4 ts=4 sts=4: */ +/** + * @version $Id$ + * @package phpMyAdmin-Designer + */ body{ font-family:Arial, Helvetica, sans-serif; font-size:12px; background-color:#EAEEF0; margin:0px; } .input_tab { background-color:#A6C7E1;} @@ -41,14 +45,14 @@ input,select,textarea{ font-family:Arial, Helvetica, sans-serif; font-size:12px; .L_butt2_2{ font-size:12px; padding:0px; border:#0099CC solid 1px; background:#FFEE99; text-decoration: none; color:#000000; cursor:default;} /* -----------------------------------------------------------------------------------------------------------*/ .bor{ width:10px; height:10px;} -#frams1 { background: url(images/1.png) no-repeat right bottom; } +#frams1 { background: url(images/1.png) no-repeat right bottom; } #frams2 { background: url(images/2.png) no-repeat left bottom; } -#frams3 { background: url(images/3.png) no-repeat left top; } +#frams3 { background: url(images/3.png) no-repeat left top; } #frams4 { background: url(images/4.png) no-repeat right top; } -#frams5 { background: url(images/5.png) repeat-x center bottom; } -#frams6 { background: url(images/6.png) repeat-y left; } +#frams5 { background: url(images/5.png) repeat-x center bottom; } +#frams6 { background: url(images/6.png) repeat-y left; } #frams7 { background: url(images/7.png) repeat-x top; } -#frams8 { background: url(images/8.png) repeat-y right; } +#frams8 { background: url(images/8.png) repeat-y right; } #osn_tab { background-color:#FFFFFF; border:#A9A9A9 solid 1px;} @@ -63,13 +67,13 @@ ul.header { position: fixed; margin: 0; z-index:1001; - + padding:0px; - + background-image:url(images/top_panel.png); background-position:top; background-repeat:repeat-x; - + border-right:#999999 solid 1px; /*border-bottom:#999999 solid 1px;*/ border-left:#999999 solid 1px; @@ -126,7 +130,7 @@ cursor: default; background-color: #FFEE99; } -.M_bord +.M_bord { border: 0; margin-left: 2px; diff --git a/pmd_common.php b/pmd_common.php index b2dbcd8ff..a1e30979f 100644 --- a/pmd_common.php +++ b/pmd_common.php @@ -3,6 +3,7 @@ /** * @author Ivan A Kirillov (Ivan.A.Kirillov@gmail.com) * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_display_field.php b/pmd_display_field.php index ffbb34654..28e2000c5 100644 --- a/pmd_display_field.php +++ b/pmd_display_field.php @@ -3,6 +3,7 @@ /** * @author Ivan A Kirillov (Ivan.A.Kirillov@gmail.com) * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_general.php b/pmd_general.php index 57b6df58c..967548f8c 100644 --- a/pmd_general.php +++ b/pmd_general.php @@ -3,6 +3,7 @@ /** * @author Ivan A Kirillov (Ivan.A.Kirillov@gmail.com) * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_help.php b/pmd_help.php index 3fa35ee40..4a1e40702 100644 --- a/pmd_help.php +++ b/pmd_help.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_pdf.php b/pmd_pdf.php index c43abf097..ca9f6e120 100644 --- a/pmd_pdf.php +++ b/pmd_pdf.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_relation_new.php b/pmd_relation_new.php index 6530715ee..6ec0b6ea5 100644 --- a/pmd_relation_new.php +++ b/pmd_relation_new.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_relation_upd.php b/pmd_relation_upd.php index d332b4186..5941353c5 100644 --- a/pmd_relation_upd.php +++ b/pmd_relation_upd.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin-Designer */ /** diff --git a/pmd_save_pos.php b/pmd_save_pos.php index 584fd4f44..649bcf30d 100644 --- a/pmd_save_pos.php +++ b/pmd_save_pos.php @@ -3,6 +3,7 @@ /** * * @version $Id$ + * @package phpMyAdmin-Designer */ /**