From ba3477f5d31ecefde8e7c12e05165e6e9e02a233 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 22 Jan 2007 17:53:54 +0000 Subject: [PATCH] button for direct/angular links --- ChangeLog | 3 ++ pmd/images/ang_direct.png | Bin 0 -> 795 bytes pmd/scripts/move.js | 29 +++++++++++++----- pmd/styles/default/style1.css | 56 +++++++++++++++------------------- pmd_general.php | 12 ++------ 5 files changed, 52 insertions(+), 48 deletions(-) create mode 100644 pmd/images/ang_direct.png diff --git a/ChangeLog b/ChangeLog index f32f8fb76..579977844 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog $Id$ $HeadURL$ +2007-01-22 Marc Delisle + * pmd/*: button for direct/angular links, thanks to Ivan Kirillov + 2007-01-22 Michal Čihař * lang/czech: Updated. diff --git a/pmd/images/ang_direct.png b/pmd/images/ang_direct.png new file mode 100644 index 0000000000000000000000000000000000000000..588037f43e4deef70f87a2447edaa185d303420c GIT binary patch literal 795 zcmeAS@N?(olHy`uVBq!ia0y~yU=RUe4mJh`hTcwDUIqrHN1iT@Ar-gwUdiMTyndFe}M5Y?70+@{4B2B_f>K;U4+(ofLVO*trOPS$bByDbBu2 zKI^E5&*5!9g=#ODWWK72?(@Byckb=GU2}7G&Rs0NguU;-w*9~Jf9G4Xm|0Bt&z1FM zek((W;)M_~hO=*$9;1vXW>OZa&1;foD{1W@wM3;COEpZh1==|ZTCX3dCNC%Hc zqWvZ2wMJR$b=*cXgaoz-ho9JVeyYcV3wk_3t`fV&I4)iI-`fzjS={aIxt}RT-$MEq z?lD$eago1E^31Z6q3P24r*G`!OmCR%IAO_xqfgi-r=C;g<9S-XHSC-U1N*y&7Ill) zDY15a3bG9Nze4}k@(d}tE!7DrId?WpuL{aGkqS?8@a^^Gm{IWUjp0(2bZxF%Oq$mD zuZlP4R>-_;Z(hdmrkF({e)nFk{g(fIZ--XfR76ZrdVeWaFDTS>A_R|XVvE&Z+<>?$D*w&^2|Jr49>|1Z%x+Pku>A?)FPpCO^!)& zKjdz&m2o@4Bp$XAd|WaK3STw~uRMyZ8qUi#L-t>k1xGc){I#?O2|3rL##MmYiC34(&(fZie4y59vxdrn<)SYwCv7d? zFB7%);P+An_t^@!_}y>D3eB19ypN~8y0ALBR(^R7SC-EA!ll2Wb~zofe3-mH*`&cFB}$*laML3o^tSAw^z!F*$2gxU%&n*(-&eN zEcoXwuTtQtnX)?^_EZK7S-+3uYN#zcDz0!xwqnJ1!QxH&*&ACDEK02ACKydw9(Tlu zUr9rsn^DSDmdKI;Vst E0DzTTzW@LL literal 0 HcmV?d00001 diff --git a/pmd/scripts/move.js b/pmd/scripts/move.js index 7ba4869ca..f22d29fee 100644 --- a/pmd/scripts/move.js +++ b/pmd/scripts/move.js @@ -12,6 +12,7 @@ var s_right = 0; var ON_relation = 0; var ON_grid = 0; var ON_display_field = 0; +var ON_angular_direct = 0;// relation_style: 0 - angular 1 - direct var click_field = 0; var link_relation = ""; var id_hint; @@ -21,7 +22,6 @@ var osn_tab_width = 0; var osn_tab_height = 0; var height_field = 7; var Glob_X, Glob_Y; -var relation_style = 0; // relation_style: 0 - angular 1 - direct var timeoutID; var layer_menu_cur_click = 0; var step = 10; @@ -251,7 +251,7 @@ function Line(x1,y1,x2,y2,color_line) function Line0(x1,y1,x2,y2,color_line) { - if(relation_style*1) + if(ON_angular_direct) Line2(x1,y1,x2,y2,color_line); else Line3(x1,y1,x2,y2,color_line); @@ -377,8 +377,7 @@ function Save2() function Grid() { - if(!ON_grid ) - { + if(!ON_grid ) { ON_grid = 1; document.getElementById('grid_button').className = 'M_butt_Selected_down';//'#FFEE99';gray #AAAAAA @@ -386,12 +385,28 @@ function Grid() document.getElementById('grid_button').className = 'M_butt_Selected_down_IE'; } } - else - { + else { document.getElementById('grid_button').className = 'M_butt'; ON_grid = 0; } } + +function Angular_direct() +{ + if(!ON_angular_direct ) { + ON_angular_direct = 1; + document.getElementById('angular_direct_button').className = 'M_butt_Selected_down';//'#FFEE99';gray #AAAAAA + + if(isIE) { // correct for IE + document.getElementById('angular_direct_button').className = 'M_butt_Selected_down_IE'; + } + } + else { + ON_angular_direct = 0; + document.getElementById('angular_direct_button').className = 'M_butt'; + } + Re_load(); +} //+++++++++++++++++++++++++++++++++++++++++++++++++++++ RELATION ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ function Start_relation() { @@ -766,7 +781,7 @@ function Top_menu_right(id_this) { if(id_this.alt==">") { - document.getElementById('top_menu').style.marginLeft = 300; + document.getElementById('top_menu').style.marginLeft = document.getElementById('top_menu').offsetWidth; // = 350 id_this.alt = "<"; id_this.src="pmd/images/2leftarrow_m.png"; } diff --git a/pmd/styles/default/style1.css b/pmd/styles/default/style1.css index 17d1ff6f5..be8096780 100644 --- a/pmd/styles/default/style1.css +++ b/pmd/styles/default/style1.css @@ -1,10 +1,7 @@ /* $Id$ */ body{ font-family:Arial, Helvetica, sans-serif; font-size:12px; background-color:#EAEEF0; margin:0px; } -/*.left_panel{ background-color:#EAEEF0; background-image:url(images/left_panel_tab.png); background-repeat:repeat-y; }*/ .input_tab { background-color:#A6C7E1;} -/*-------------------------------------------------------------*/ -/*.general_body { background-image:url(images/top_panel.png); background-position:top; background-repeat:repeat-x; }*/ table { font-size:12px; } #canvas { background-color:#FFFFFF; } @@ -16,15 +13,10 @@ canvas *{behavior:url(#default#VML)} .tab { -moz-user-select: none; background:#FFFFFF; border-collapse: collapse; border: 1px solid #AAAAAA; font-family:Tahoma; font-size:10px; z-index:1; } .tab_zag { background-image:url(images/Header.png); background-repeat:repeat-x; text-align:center; cursor:move; padding:1px; font-weight:bold; } .tab_zag_2 { background-image:url(images/Header_Linked.png); background-repeat:repeat-x; text-align:center; cursor:move; padding:1px; font-weight:bold; } -/*.tab_zag_3 { background-color:#FF0000; background-repeat:repeat-x; text-align:center; cursor:move; padding:1px; font-weight:bold; }*/ .tab_field { background:#FFFFFF; cursor:default; } .tab_field_2 { background-color:#CCFFCC; background-repeat:repeat-x; cursor:default;} .tab_field_3 { background-color:#FFE6E6;/*#DDEEFF*/ cursor:default; } #hint{ white-space:nowrap; position:absolute; background:#99FF99; left: 200px; top: 50px; z-index:3; border:#00CC66 solid 1px; visibility:hidden;} -/* -.L_butt,.L_butt:visited { font-size:12px; padding:4px; text-decoration: none; color:#000000; vertical-align:middle; cursor:default;} -.L_butt:hover{ font-size:12px; padding:3px; border:#0099CC solid 1px; background:#FFEE99; text-decoration: none; color:#000000; cursor:default;} -*/ form{margin:0px;} @@ -61,7 +53,7 @@ input,select,textarea{ font-family:Arial, Helvetica, sans-serif; font-size:12px; #osn_tab { background-color:#FFFFFF; border:#A9A9A9 solid 1px;} ul.header { - width: 300px; + width: 350px; background-color: #EAEEF0; color: #000000; text-align: center; @@ -86,52 +78,52 @@ ul.header { /* Button CSS rules */ a.M_butt img, a.M_butt_Selected_down img { - width: 20px; - height: 20px; - cursor: default; - margin-top: 3px; - margin-left: 1px; - margin-bottom: 3px; +width: 20px; +height: 20px; +cursor: default; +margin-top: 3px; +margin-left: 1px; +margin-bottom: 3px; } a.M_butt img{ - border: 1px dotted #F0F0EE !important; +border: 1px dotted #F0F0EE !important; } a.M_butt_Selected_down img { - border: 1px solid #C0C0BB !important; - background-color: #99FF99; +border: 1px solid #C0C0BB !important; +background-color: #99FF99; } a.M_butt img:hover { - border: 1px solid #0099CC !important; - cursor: default; - background-color: #FFEE99; +border: 1px solid #0099CC !important; +cursor: default; +background-color: #FFEE99; } /* for IE */ * html a.M_butt img, a.M_butt_Selected_down_IE { - border: 0px !important; - margin-top: 4px; - margin-bottom: 1px; +border: 0px !important; +margin-top: 4px; +margin-bottom: 1px; } * html a.M_butt{ - /*border: 1px dotted #F0F0EE;*/ - border: 1px dotted #FFFFFF; - cursor: default; +/*border: 1px dotted #F0F0EE;*/ +border: 1px dotted #FFFFFF; +cursor: default; } a.M_butt_Selected_down_IE { - border: 1px solid #C0C0BB; - background-color: #99FF99; +border: 1px solid #C0C0BB; +background-color: #99FF99; } * html a.M_butt:hover { - border: 1px solid #0099CC; - cursor: default; - background-color: #FFEE99; +border: 1px solid #0099CC; +cursor: default; +background-color: #FFEE99; } .M_bord diff --git a/pmd_general.php b/pmd_general.php index 681be89e7..342a7fbc9 100644 --- a/pmd_general.php +++ b/pmd_general.php @@ -68,9 +68,10 @@ echo $script_tabs . $script_contr . $script_display_field; href="javascript:Start_table_new();" onMouseDown="return false;" class="M_butt" target="_self">vkeykey @@ -88,14 +89,7 @@ echo $script_tabs . $script_contr . $script_display_field;
-
- -
-
-
+
v