📄 pmd_general.php
字号:
<?php/* vim: set expandtab sw=4 ts=4 sts=4: *//** * @author Ivan A Kirillov (Ivan.A.Kirillov@gmail.com) * @version $Id: pmd_general.php 11378 2008-07-09 15:24:44Z lem9 $ * @package phpMyAdmin-Designer *//** * */require_once "./pmd_common.php";$tab_column = get_tab_info();$script_tabs = get_script_tabs();$script_contr = get_script_contr();$tab_pos = get_tab_pos();$tables_pk_or_unique_keys = get_pk_or_unique_keys();$tables_all_keys = get_all_keys();$hidden = "hidden";?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>"><head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" /> <link rel="icon" href="pmd/images/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="pmd/images/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="pmd/styles/<?php echo $GLOBALS['PMD']['STYLE'] ?>/style1.css" /> <title>Designer</title> <script type="text/javascript"> // <![CDATA[<?phpecho ' var server = "' . PMA_escapeJsString($server) . '"; var db = "' . PMA_escapeJsString($db) . '"; var token = "' . PMA_escapeJsString($token) . '"; var LangSelectReferencedKey = "' . PMA_escapeJsString($strSelectReferencedKey) . '"; var LangSelectForeignKey = "' . PMA_escapeJsString($strSelectForeignKey) . '"; var LangPleaseSelectPrimaryOrUniqueKey = "' . PMA_escapeJsString($strPleaseSelectPrimaryOrUniqueKey) . '"; var LangIEnotSupport = "' . PMA_escapeJsString($strIEUnsupported) . '"; var LangChangeDisplay = "' . PMA_escapeJsString($strChangeDisplay) . '"; var strLang = Array(); strLang["strModifications"] = "' . PMA_escapeJsString($strModifications) . '"; strLang["strRelationDeleted"] = "' . PMA_escapeJsString($strRelationDeleted) . '"; strLang["strForeignKeyRelationAdded"] = "' . PMA_escapeJsString($strForeignKeyRelationAdded). '"; strLang["strGeneralRelationFeat:strDisabled"] = "' . PMA_escapeJsString($strGeneralRelationFeat . ' : ' . $strDisabled) . '"; strLang["strInternalRelationAdded"] = "' . PMA_escapeJsString($strInternalRelationAdded) . '"; strLang["strErrorRelationAdded"] = "' . PMA_escapeJsString($strErrorRelationAdded) . '"; strLang["strErrorRelationExists"] = "' . PMA_escapeJsString($strErrorRelationExists) . '"; strLang["strErrorSaveTable"] = "' . PMA_escapeJsString($strErrorSaveTable) . '";';?> // ]]> </script> <script src="pmd/scripts/ajax.js" type="text/javascript"></script> <script src="pmd/scripts/move.js" type="text/javascript"></script> <!--[if IE]> <script src="pmd/scripts/iecanvas.js" type="text/javascript"></script> <![endif]--><?phpecho $script_tabs . $script_contr . $script_display_field;?></head><body onload="Main()" class="general_body" id="pmd_body"><div class="header" id="top_menu"> <a href="javascript:Show_left_menu(document.getElementById('key_Show_left_menu'));" onmousedown="return false;" class="M_butt first" target="_self"> <img id='key_Show_left_menu' title="<?php echo $strShowHideLeftMenu; ?>" alt="v" src="pmd/images/downarrow2_m.png" /></a> <a href="javascript:Save2();" onmousedown="return false;" class="M_butt" target="_self" ><img title="<?php echo $strSavePosition ?>" src="pmd/images/save.png" alt="" /></a><a href="javascript:Start_table_new();" onmousedown="return false;" class="M_butt" target="_self" ><img title="<?php echo $strCreateTable ?>" src="pmd/images/table.png" alt="" /></a><a href="javascript:Start_relation();" onmousedown="return false;" class="M_butt" id="rel_button" target="_self" ><img title="<?php echo $strCreateRelation ?>" src="pmd/images/relation.png" alt="" /></a><a href="javascript:Start_display_field();" onmousedown="return false;" class="M_butt" id="display_field_button" target="_self" ><img title="<?php echo $strChangeDisplay ?>" src="pmd/images/display_field.png" alt="" /></a><a href="javascript:location.reload();" onmousedown="return false;" class="M_butt" target="_self" ><img title="<?php echo $strReload; ?>" src="pmd/images/reload.png" alt="" /></a><a href="javascript:Help();" onmousedown="return false;" class="M_butt" target="_self" ><img title="<?php echo $strHelp; ?>" src="pmd/images/help.png" alt="" /></a><img class="M_bord" src="pmd/images/bord.png" alt="" /><a href="javascript:Angular_direct();" onmousedown="return false;" class="M_butt" id="angular_direct_button" target="_self" ><img title="<?php echo $strAngularLinks . ' / ' . $strDirectLinks; ?>" src="pmd/images/ang_direct.png" alt="" /></a><a href="javascript:Grid();" onmousedown="return false;" class="M_butt" id="grid_button" target="_self" ><img title="<?php echo $strSnapToGrid ?>" src="pmd/images/grid.png" alt="" /></a><img class="M_bord" src="pmd/images/bord.png" alt="" /><a href="javascript:Small_tab_all(document.getElementById('key_SB_all'));" onmousedown="return false;" class="M_butt" target="_self" ><img id='key_SB_all' title="<?php echo $strSmallBigAll; ?>" alt="v" src="pmd/images/downarrow1.png" /></a><a href="javascript:Small_tab_invert();" onmousedown="return false;" class="M_butt" target="_self" ><img title="<?php echo $strToggleSmallBig; ?>" alt="key" src="pmd/images/bottom.png" /></a><img class="M_bord" src="pmd/images/bord.png" alt="" /><a href="javascript:PDF_save();" onmousedown="return false;" class="M_butt" target="_self" ><img src="pmd/images/pdf.png" alt="key" width="20" height="20" title="<?php echo $strImportExportCoords; ?>" /></a> <a href="javascript:Top_menu_right(document.getElementById('key_Left_Right'));" onmousedown="return false;" class="M_butt last" target="_self"> <img src="pmd/images/2rightarrow_m.png" id="key_Left_Right" alt=">" title="<?php echo $strMoveMenu; ?>" /></a></div><div id="osn_tab"> <CANVAS id="canvas" width="100" height="100" onclick="Canvas_click(this)"></CANVAS></div><form action="" method="post" name="form1"><div id="layer_menu" style="visibility:<?php echo $hidden ?>;"><div align="center" style="padding-top:5px;"> <a href="javascript:Hide_tab_all(document.getElementById('key_HS_all'));" onmousedown="return false;" class="M_butt" target="_self"> <img title="<?php echo $strHideShowAll; ?>" alt="v" src="pmd/images/downarrow1.png" id='key_HS_all' /></a> <a href="javascript:No_have_constr(document.getElementById('key_HS'));" onmousedown="return false;" class="M_butt" target="_self"> <img title="<?php echo $strHideShowNoRelation; ?>" alt="v" src="pmd/images/downarrow2.png" id='key_HS' /></a></div><div id="id_scroll_tab" class="scroll_tab"> <table width="100%" style="padding-left: 3px;"><?phpfor ($i = 0; $i < count($GLOBALS['PMD']['TABLE_NAME']); $i++) { ?> <tr><td title="<?php echo $strStructure; ?>" width="1px" onmouseover="this.className='L_butt2_2'" onmouseout="this.className='L_butt2_1'"> <img onclick="Start_tab_upd('<?php echo $GLOBALS['PMD_URL']["TABLE_NAME_SMALL"][$i]; ?>');" src="pmd/images/exec.png" alt="" /></td> <td width="1px"> <input onclick="VisibleTab(this,'<?php echo $GLOBALS['PMD_URL']["TABLE_NAME"][$i]; ?>')" title="<?php echo $strHide ?>" id="check_vis_<?php echo $GLOBALS['PMD_URL']["TABLE_NAME"][$i]; ?>" style="margin:0px;" type="checkbox" value="<?php echo $GLOBALS['PMD_URL']["TABLE_NAME"][$i]; ?>" <?php if (isset($tab_pos[$GLOBALS['PMD']["TABLE_NAME"][$i]])) { echo $tab_pos[$GLOBALS['PMD']["TABLE_NAME"][$i]]["H"] ? 'checked="checked"' : ''; } else { echo 'checked="checked"'; } ?> /></td> <td class="Tabs" onmouseover="this.className='Tabs2'" onmouseout="this.className='Tabs'" onclick="Select_tab('<?php echo $GLOBALS['PMD_URL']["TABLE_NAME"][$i]; ?>');"> <?php echo $GLOBALS['PMD_OUT']["TABLE_NAME"][$i]; ?></td> </tr> <?php}?> </table></div><div align="center"> <?php echo $strNumberOfTables ?>: <?php echo count($GLOBALS['PMD']['TABLE_NAME']) ?></div><div align="right"> <div id="layer_menu_sizer" onmousedown="layer_menu_cur_click=1"> </div></div></div><?phpfor ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) { $t_n = $GLOBALS['PMD']["TABLE_NAME"][$i]; $t_n_url = $GLOBALS['PMD_URL']["TABLE_NAME"][$i]; ?><input name="t_x[<?php echo $t_n_url ?>]" type="hidden" id="t_x_<?php echo $t_n_url ?>_" /><input name="t_y[<?php echo $t_n_url ?>]" type="hidden" id="t_y_<?php echo $t_n_url ?>_" /><input name="t_v[<?php echo $t_n_url ?>]" type="hidden" id="t_v_<?php echo $t_n_url ?>_" /><input name="t_h[<?php echo $t_n_url ?>]" type="hidden" id="t_h_<?php echo $t_n_url ?>_" /><table id="<?php echo $t_n_url ?>" cellpadding="0" cellspacing="0" class="tab" style="position: absolute; left: <?php if (isset($tab_pos[$t_n])) echo $tab_pos[$t_n]["X"]; else echo rand(180, 800); ?>px; top: <?php if (isset($tab_pos[$t_n])) echo $tab_pos[$t_n]["Y"]; else echo rand(30, 500); ?>px; visibility: <?php if (isset($tab_pos[$t_n])) echo $tab_pos[$t_n]["H"] ? "visible" : "hidden"; ?>; "><thead><tr> <td class="small_tab" onmouseover="this.className='small_tab2';" onmouseout="this.className='small_tab';" id="id_hide_tbody_<?php echo $t_n_url ?>" onclick="Small_tab('<?php echo $t_n_url ?>', 1)"><?php // no space alloawd here, between tags and content !!! // JavaScript function does require this if (! isset($tab_pos[$t_n]) || ! empty($tab_pos[$t_n]["V"])) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -