PBXT and Designer
This commit is contained in:
@@ -483,7 +483,7 @@ function Start_relation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ON_relation) {
|
if (!ON_relation) {
|
||||||
document.getElementById('InnoDB_relation').style.display = '';
|
document.getElementById('foreign_relation').style.display = '';
|
||||||
ON_relation = 1;
|
ON_relation = 1;
|
||||||
document.getElementById('hint').innerHTML = LangSelectReferencedKey;
|
document.getElementById('hint').innerHTML = LangSelectReferencedKey;
|
||||||
document.getElementById('hint').style.visibility = "visible";
|
document.getElementById('hint').style.visibility = "visible";
|
||||||
@@ -506,16 +506,16 @@ function Click_field(T, f, PK) // table field
|
|||||||
alert(LangPleaseSelectPrimaryOrUniqueKey);
|
alert(LangPleaseSelectPrimaryOrUniqueKey);
|
||||||
return;// 0;
|
return;// 0;
|
||||||
}//PK
|
}//PK
|
||||||
if (j_tabs[db + '.' + T] != 'INNODB') {
|
if (j_tabs[db + '.' + T] != '1') {
|
||||||
document.getElementById('InnoDB_relation').style.display = 'none';
|
document.getElementById('foreign_relation').style.display = 'none';
|
||||||
}
|
}
|
||||||
click_field = 1;
|
click_field = 1;
|
||||||
link_relation = "T1=" + T + "&F1=" + f;
|
link_relation = "T1=" + T + "&F1=" + f;
|
||||||
document.getElementById('hint').innerHTML = LangSelectForeignKey;
|
document.getElementById('hint').innerHTML = LangSelectForeignKey;
|
||||||
} else {
|
} else {
|
||||||
Start_relation(); // hidden hint...
|
Start_relation(); // hidden hint...
|
||||||
if (j_tabs[db + '.' + T] != 'INNODB' || !PK) {
|
if (j_tabs[db + '.' + T] != '1' || !PK) {
|
||||||
document.getElementById('InnoDB_relation').style.display = 'none';
|
document.getElementById('foreign_relation').style.display = 'none';
|
||||||
}
|
}
|
||||||
var left = Glob_X - (document.getElementById('layer_new_relation').offsetWidth>>1);
|
var left = Glob_X - (document.getElementById('layer_new_relation').offsetWidth>>1);
|
||||||
document.getElementById('layer_new_relation').style.left = left + 'px';
|
document.getElementById('layer_new_relation').style.left = left + 'px';
|
||||||
|
@@ -242,7 +242,7 @@ function get_script_tabs()
|
|||||||
'var j_tabs = new Array();' . "\n";
|
'var j_tabs = new Array();' . "\n";
|
||||||
for ($i = 0; $i < count($GLOBALS['PMD']['TABLE_NAME']); $i++) {
|
for ($i = 0; $i < count($GLOBALS['PMD']['TABLE_NAME']); $i++) {
|
||||||
$script_tabs .= "j_tabs['" . $GLOBALS['PMD_URL']['TABLE_NAME'][$i] . "'] = '"
|
$script_tabs .= "j_tabs['" . $GLOBALS['PMD_URL']['TABLE_NAME'][$i] . "'] = '"
|
||||||
. $GLOBALS['PMD']['TABLE_TYPE'][$i] . "';\n";
|
. (PMA_foreignkey_supported($GLOBALS['PMD']['TABLE_TYPE'][$i]) ? '1' : '0') . "';\n";
|
||||||
}
|
}
|
||||||
$script_tabs .=
|
$script_tabs .=
|
||||||
'// ]]>' . "\n" .
|
'// ]]>' . "\n" .
|
||||||
|
@@ -314,7 +314,7 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
|
|||||||
<td colspan="2" align="center" nowrap="nowrap"><b><?php echo $strCreateRelation; ?></b></td>
|
<td colspan="2" align="center" nowrap="nowrap"><b><?php echo $strCreateRelation; ?></b></td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="InnoDB_relation">
|
<tbody id="foreign_relation">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="center" nowrap="nowrap"><b>FOREIGN KEY</b></td>
|
<td colspan="2" align="center" nowrap="nowrap"><b>FOREIGN KEY</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user