Improve syntax for virtual table fields.
This commit is contained in:
parent
63a62780b9
commit
ddb4988fe0
|
|
@ -63,8 +63,7 @@ $order = $_GET["order"];
|
|||
$order = 'asc';
|
||||
}
|
||||
|
||||
$sql = "";
|
||||
$sql .= " select * from v_virtual_table_fields ";
|
||||
$sql = "select * from v_virtual_table_fields ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and virtual_table_uuid = '$virtual_table_uuid' ";
|
||||
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
|
||||
|
|
@ -80,7 +79,6 @@ $order = $_GET["order"];
|
|||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('virtual_field_label', 'Label', $order_by, $order);
|
||||
echo th_order_by('virtual_field_name', 'Name', $order_by, $order);
|
||||
|
|
@ -97,13 +95,10 @@ $order = $_GET["order"];
|
|||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
|
||||
if ($result_count == 0) {
|
||||
//no results
|
||||
}
|
||||
else { //received results
|
||||
if ($result_count > 0) {
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['virtual_field_label']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['virtual_field_label']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['virtual_field_name']." </td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['virtual_field_type']."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['virtual_field_column']."</td>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue