history tab changes
This commit is contained in:
@@ -25,7 +25,7 @@ function display(init,final) {
|
|||||||
str ='';
|
str ='';
|
||||||
for ( var i=0; i < history_array.length; i++){
|
for ( var i=0; i < history_array.length; i++){
|
||||||
var temp = history_array[i].get_tab() + '.' + history_array[i].get_obj_no();
|
var temp = history_array[i].get_tab() + '.' + history_array[i].get_obj_no();
|
||||||
str += '<h2 class="tiger"><a href="#"></a>' + temp + '</h2>';
|
str += '<h2 class="tiger"><a href="#">' + temp + '</a></h2>';
|
||||||
str +='<div class="toggle_container">\n';
|
str +='<div class="toggle_container">\n';
|
||||||
while((history_array[i].get_tab() + '.' + history_array[i].get_obj_no()) == temp) {
|
while((history_array[i].get_tab() + '.' + history_array[i].get_obj_no()) == temp) {
|
||||||
str +='<div class="block"> <table>';
|
str +='<div class="block"> <table>';
|
||||||
|
@@ -973,7 +973,7 @@ function Click_option(id_this,column_name,table_name)
|
|||||||
// var top = Glob_Y - document.getElementById(id_this).offsetHeight - 10;
|
// var top = Glob_Y - document.getElementById(id_this).offsetHeight - 10;
|
||||||
document.getElementById(id_this).style.top = (screen.height / 4) + 'px';
|
document.getElementById(id_this).style.top = (screen.height / 4) + 'px';
|
||||||
document.getElementById(id_this).style.visibility = "visible";
|
document.getElementById(id_this).style.visibility = "visible";
|
||||||
document.getElementById('option_col_name').innerHTML = 'column_name';
|
document.getElementById('option_col_name').innerHTML = '<strong>Options For "' +column_name+ '" column</strong>';
|
||||||
col_name = column_name;
|
col_name = column_name;
|
||||||
tab_name = table_name;
|
tab_name = table_name;
|
||||||
}
|
}
|
||||||
@@ -1009,7 +1009,6 @@ function Table_onover(id_this,val)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function add_object() {
|
function add_object() {
|
||||||
var rel = document.getElementById('rel_opt');
|
var rel = document.getElementById('rel_opt');
|
||||||
var sum = 0;
|
var sum = 0;
|
||||||
@@ -1020,11 +1019,12 @@ function add_object() {
|
|||||||
document.getElementById('hint').style.visibility = "visible";
|
document.getElementById('hint').style.visibility = "visible";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var w = document.getElementById('rel_opt').value;
|
|
||||||
var p = document.getElementsByName('Query');
|
var p = document.getElementsByName('Query');
|
||||||
var where_obj = new where(w,p.value);//make where object
|
var where_obj = new where(rel.value,p.value);//make where object
|
||||||
history_array.push(new history(col_name,where_obj,tab_name,h_tabs[tab_name],"Where"));
|
history_array.push(new history(col_name,where_obj,tab_name,h_tabs[tab_name],"Where"));
|
||||||
sum = sum + 1;
|
sum = sum + 1;
|
||||||
|
rel.value = '--';
|
||||||
|
p.value = "";
|
||||||
}
|
}
|
||||||
if (document.getElementById('new_name').value !="") {
|
if (document.getElementById('new_name').value !="") {
|
||||||
var rename_obj = new rename(document.getElementById('new_name').value);//make Rename object
|
var rename_obj = new rename(document.getElementById('new_name').value);//make Rename object
|
||||||
@@ -1036,6 +1036,7 @@ function add_object() {
|
|||||||
var aggregate_obj = new aggregate(document.getElementById('operator').value) ;
|
var aggregate_obj = new aggregate(document.getElementById('operator').value) ;
|
||||||
history_array.push(new history(col_name,aggregate_obj,tab_name,h_tabs[tab_name],"Aggregate"));
|
history_array.push(new history(col_name,aggregate_obj,tab_name,h_tabs[tab_name],"Aggregate"));
|
||||||
sum = sum + 1;
|
sum = sum + 1;
|
||||||
|
document.getElementById('operator').value = '---';
|
||||||
//make aggregate operator
|
//make aggregate operator
|
||||||
}
|
}
|
||||||
if (document.getElementById('groupby').checked == true ) {
|
if (document.getElementById('groupby').checked == true ) {
|
||||||
|
@@ -464,6 +464,7 @@ h2.tiger{
|
|||||||
font-size:14px;
|
font-size:14px;
|
||||||
padding: 50 20 50 20px;
|
padding: 50 20 50 20px;
|
||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
|
width: 300px;
|
||||||
float: left;
|
float: left;
|
||||||
color : #333;
|
color : #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -471,12 +472,14 @@ h2.tiger{
|
|||||||
|
|
||||||
h2.tiger a {
|
h2.tiger a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
color : #333;
|
color : #333;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2.tiger a:hover {
|
h2.tiger a:hover {
|
||||||
color: #ccc;
|
color: #000;
|
||||||
|
background-image: url(images/Header_Linked.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2.active {
|
h2.active {
|
||||||
@@ -490,7 +493,8 @@ h2.active {
|
|||||||
margin: 0 0 5px;
|
margin: 0 0 5px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-top: 1px solid #d6d6d6;
|
border-top: 1px solid #d6d6d6;
|
||||||
background: #83B0B8 ;
|
background: #FFF ;
|
||||||
|
width: 300px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
@@ -445,9 +445,8 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
|
|||||||
<table width="168" border="0" align="center" cellpadding="2" cellspacing="0">
|
<table width="168" border="0" align="center" cellpadding="2" cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="center" nowrap="nowrap"><strong>Options For</strong></td>
|
<td colspan="2" rowspan="2" id="option_col_name" nowrap="nowrap" align="center"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ><td id="option_col_name"></td></tr>
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="where">
|
<tbody id="where">
|
||||||
<tr><td align="center" nowrap="nowrap"><b>Where</b></td></tr>
|
<tr><td align="center" nowrap="nowrap"><b>Where</b></td></tr>
|
||||||
@@ -520,14 +519,15 @@ for ($i = 0; $i < count($GLOBALS['PMD']["TABLE_NAME"]); $i++) {
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<?php
|
||||||
<div class="panel">
|
if($_REQUEST['query']) {
|
||||||
<div style="clear:both;"></div>
|
echo '<div class="panel">';
|
||||||
<div id="ab"></div>
|
echo '<div style="clear:both;"></div>';
|
||||||
|
echo '<div id="ab"></div>';
|
||||||
<div style="clear:both;"></div>
|
echo '<div style="clear:both;"></div>';
|
||||||
</div>
|
echo '</div>';
|
||||||
<a class="trigger" href="#">History</a>
|
echo '<a class="trigger" href="#">History</a>';
|
||||||
|
} ?>
|
||||||
<!-- cache images -->
|
<!-- cache images -->
|
||||||
<img src="pmd/images/2leftarrow_m.png" width="0" height="0" alt="" />
|
<img src="pmd/images/2leftarrow_m.png" width="0" height="0" alt="" />
|
||||||
<img src="pmd/images/rightarrow1.png" width="0" height="0" alt="" />
|
<img src="pmd/images/rightarrow1.png" width="0" height="0" alt="" />
|
||||||
|
Reference in New Issue
Block a user