Browse files

test

  • Loading branch information...
1 parent 818c6b2 commit ea97a4df2e1f6773ecc35ed7199b465d2401ef3b @xianglei committed Sep 3, 2012
Showing with 10 additions and 5 deletions.
  1. +6 −1 loadData.php
  2. +4 −4 templates/load_data.html
View
7 loadData.php
@@ -19,6 +19,9 @@
$client->execute('use '.$_GET['database']);
+ echo '<div class="container">';
+ echo '<div class="span10">';
+
if(!@$_GET['table'])
{
die($lang['dieTableChoose']);
@@ -49,7 +52,7 @@
}
else
{
- echo "<a href=dbStructure.php?database=".$_GET['database'].">".$lang['back']."</a><br><br>";
+ echo "<a href=dbStructure.php?database=".$_GET['database']."><i class=icon-backward></i>".$lang['back']."</a><br><br>";
if(!@$_POST['path'])
{
include_once "templates/load_data.html";
@@ -97,4 +100,6 @@
}
$transport->close();
}
+ echo '</div>';
+ echo '</div>';
}
View
8 templates/load_data.html
@@ -1,15 +1,15 @@
<form method=post>
<?php echo $lang['loadDataComment'];?><br>
-<table border=1 cellspacing=1 cellpadding=3>
+<table class="table table-bordered">
-<tr bgcolor=#FFFF99>
+<tr class=info>
<td><?php echo $lang['chooseFS'];?></td>
<td><?php echo $lang['pathToLoad'];?></td>
<td><?php echo $lang['ifPartition'];?></td>
<td><?php echo $lang['overwrite'];?></td>
<tr>
-<tr bgcolor=#99FFFF>
+<tr class="error">
<td><select name=local><option value=local><?php echo $lang['local'];?></option><option value=hdfs><?php echo $lang['hdfs'];?></option></select></td>
<td><input type=text name=path></td>
<td><input type=text name=partition></td>
@@ -19,5 +19,5 @@
</table><br>
<input type=hidden name=database value="<?php echo $_GET['database'];?>">
<input type=hidden name=table value="<?php echo $_GET['table'];?>">
-<input type=submit value="<?php echo $lang['submit'];?>">
+<input class="btn btn-danger" type=submit value="<?php echo $lang['submit'];?>">
</form>

0 comments on commit ea97a4d

Please sign in to comment.