Permalink
Browse files

merge javascript

  • Loading branch information...
1 parent ea343fc commit c14b44f31584c3c5384fb4f650585abcdd6f9d41 @xianglei committed Jul 12, 2012
Showing with 8 additions and 7 deletions.
  1. +1 −1 alterTable.php
  2. +1 −1 cloneTable.php
  3. +1 −1 dropTable.php
  4. +1 −1 tableList.php
  5. +4 −3 templates/style.css
View
@@ -169,7 +169,7 @@
{
echo @$client->execute($v);
}
- echo "<script>alert('".$lang['success']."');showsd1('tableList.php?database=".$_POST['database']."','dbStructure.php?database=".$_POST['database']."');</script>";
+ echo "<script>alert('".$lang['success']."');showsd('tableList.php?database=".$_POST['database']."','dbStructure.php?database=".$_POST['database']."');</script>";
}
}
}
View
@@ -34,7 +34,7 @@
$sql = 'CREATE TABLE '.$_POST['newtablename'].' LIKE '.$_POST['table'];
echo $sql;
$client->execute($sql);
- echo "<script>alert('".$lang['createTableSuccess']."');showsd1('tableList.php?database=".$_GET['database']."','dbStructure.php?database=".$_GET['database']."');</script>";
+ echo "<script>alert('".$lang['createTableSuccess']."');showsd('tableList.php?database=".$_GET['database']."','dbStructure.php?database=".$_GET['database']."');</script>";
}
}
}
View
@@ -25,7 +25,7 @@
{
$sql = "drop table ".$_GET['table'];
$client->execute($sql);
- echo "<script>alert('".$lang['dropTableSuccess']."');showsd1('tableList.php?database=".$_GET['database']."','dbStructure.php?database=".$_GET['database']."');</script>";
+ echo "<script>alert('".$lang['dropTableSuccess']."');showsd('tableList.php?database=".$_GET['database']."','dbStructure.php?database=".$_GET['database']."');</script>";
}
$transport->close();
}
View
@@ -27,7 +27,7 @@
$i++;
}
echo "<br>\n";
- echo '<a href="javascript:showsd(\'index.php?frame=right\',\'dbList.php\')" target=left><<< '.$lang['back'].'</a>';
+ echo '<a href="javascript:showsd(\'dbList.php\',\'index.php?frame=right\')" target=left><<< '.$lang['back'].'</a>';
$transport->close();
}
?>
View
@@ -69,9 +69,10 @@
<script>
function showsd(link1,link2)
{
- var frame = parent.document.getElementsByName("right")[0];
- frame.src =link1;
- window.location =link2;
+ var frame_left = parent.document.getElementsByName("left")[0];
+ var frame_right = parent.document.getElementsByName("right")[0];
+ frame_left.src =link1;
+ frame_right.src =link2;
}
function showsd1(link1,link2)

0 comments on commit c14b44f

Please sign in to comment.