From 12af64757baf59b9b00c4895cc3a9dc7902a567b Mon Sep 17 00:00:00 2001 From: ankitg Date: Wed, 9 Jun 2010 22:53:13 +0530 Subject: [PATCH] options added in designer --- pmd/scripts/move.js | 40 ++++++++++++ pmd/styles/default/style1.css | 25 +++++++ pmd_general.php | 120 +++++++++++++++++++++++++++++++++- 3 files changed, 183 insertions(+), 2 deletions(-) diff --git a/pmd/scripts/move.js b/pmd/scripts/move.js index a68f4746a..a8a38cd21 100644 --- a/pmd/scripts/move.js +++ b/pmd/scripts/move.js @@ -965,3 +965,43 @@ function getColorByTarget( target ) return color; } + +function Click_option(id_this) +{ + var left = Glob_X - (document.getElementById(id_this).offsetWidth>>1); + document.getElementById(id_this).style.left = left + 'px'; + // var top = Glob_Y - document.getElementById(id_this).offsetHeight - 10; + document.getElementById(id_this).style.top = (screen.height / 4) + 'px'; + document.getElementById(id_this).style.visibility = "visible"; +} + +function Close_option() +{ + document.getElementById('pmd_options').style.visibility = "hidden"; +} + +function Select_all(id_this) +{ + var parent= document.form1; + for(i = 0; i < parent.elements.length; i++) { + if (parent.elements[i].type == "checkbox" && parent.elements[i].id.substring(0,(7 + id_this.length)) == 'select_' + id_this) { + if(document.getElementById('select_all_' + id_this).checked == true) + parent.elements[i].checked = true; + else + parent.elements[i].checked = false; + } + } + Re_load(); +} + +function Table_onover(id_this,val) +{ + if(!val) { + document.getElementById("id_zag_" + id_this).className="tab_zag_2"; + document.getElementById("id_zag_" + id_this + "_2").className="tab_zag_2"; + } + else { + document.getElementById("id_zag_" + id_this).className="tab_zag"; + document.getElementById("id_zag_" + id_this + "_2").className="tab_zag"; + } +} \ No newline at end of file diff --git a/pmd/styles/default/style1.css b/pmd/styles/default/style1.css index b4f7ec33b..26e85e90e 100644 --- a/pmd/styles/default/style1.css +++ b/pmd/styles/default/style1.css @@ -147,6 +147,23 @@ form { color: #888888; } +.option_tab { + padding-left: 2px; + padding-right: 2px; + width: 5px; +} + +.select_all { + vertical-align: top; + padding-left: 2px; + padding-right: 2px; + cursor: default; + width: 1px; + color: #000000; + background-image: url(images/Header.png); + background-repeat: repeat-x; +} + .small_tab { vertical-align: top; background-color: #0064ea; @@ -372,6 +389,14 @@ a.M_butt:hover { width: 153px; } +#pmd_optionse { + position: absolute; + left: 636px; + top: 85px; + z-index: 1000; + width: 153px; +} + #layer_menu_sizer { background-image: url(../../images/resize.png); cursor: nw-resize; diff --git a/pmd_general.php b/pmd_general.php index 89988ddfa..1beadf139 100644 --- a/pmd_general.php +++ b/pmd_general.php @@ -187,6 +187,13 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) { "> + '; + echo ''; + }?> + onmouseover="Table_onover('',0)" + onmouseout="Table_onover('',1)"> '; echo $GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i]; ?> + '; + }?> )"> + '; + echo ''; + }?> ">
@@ -276,6 +296,13 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) { ?>
+ '; + echo ' '; + } ?> + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Options
Where
Relation operator +
Value/
Subquery
+
Rename To
New Name
Aggregate
Operator +
Group By
Order By
+ + +
+