Change the tables to schemas.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
require_once "root.php";
|
||||
require_once "includes/require.php";
|
||||
require_once "includes/checkauth.php";
|
||||
if (permission_exists('table_edit')) {
|
||||
if (permission_exists('schema_edit')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
@@ -49,7 +49,7 @@ require_once "includes/paging.php";
|
||||
|
||||
echo "<table width='100%' border='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td width='50%' align=\"left\" nowrap=\"nowrap\"><b>Virtual Table Data Types Name Value List</b></td>\n";
|
||||
echo "<td width='50%' align=\"left\" nowrap=\"nowrap\"><b>Schema Name Values</b></td>\n";
|
||||
echo "<td width='50%' align=\"right\"> </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
@@ -59,10 +59,9 @@ require_once "includes/paging.php";
|
||||
echo "</tr>\n";
|
||||
echo "</tr></table>\n";
|
||||
|
||||
//$sql = "";
|
||||
//$sql .= " select * from v_table_name_values ";
|
||||
//$sql .= " where domain_uuid = '$domain_uuid' ";
|
||||
//$sql .= " and table_field_uuid = '$table_field_uuid' ";
|
||||
//$sql = "select * from v_schema_name_values ";
|
||||
//$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
//$sql .= "and schema_field_uuid = '$schema_field_uuid' ";
|
||||
//if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
|
||||
//$prep_statement = $db->prepare(check_sql($sql));
|
||||
//$prep_statement->execute();
|
||||
@@ -76,10 +75,9 @@ require_once "includes/paging.php";
|
||||
//list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page);
|
||||
//$offset = $rows_per_page * $page;
|
||||
|
||||
$sql = "";
|
||||
$sql .= " select * from v_table_name_values ";
|
||||
$sql .= " where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= " and table_field_uuid = '$table_field_uuid' ";
|
||||
$sql = "select * from v_schema_name_values ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
$sql .= "and schema_field_uuid = '$schema_field_uuid' ";
|
||||
if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
|
||||
//$sql .= " limit $rows_per_page offset $offset ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
@@ -98,7 +96,7 @@ require_once "includes/paging.php";
|
||||
echo th_order_by('data_types_name', 'Name', $order_by, $order);
|
||||
echo th_order_by('data_types_value', 'Value', $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
echo " <a href='table_data_types_name_value_edit.php?table_uuid=".$row[table_uuid]."&table_field_uuid=".$row[table_field_uuid]."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='schema_name_value_edit.php?schema_uuid=".$row["schema_uuid"]."&schema_field_uuid=".$row["schema_field_uuid"]."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
|
||||
@@ -108,10 +106,10 @@ require_once "includes/paging.php";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[data_types_name]."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[data_types_value]."</td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <a href='table_data_types_name_value_edit.php?table_uuid=".$row[table_uuid]."&table_field_uuid=".$row[table_field_uuid]."&id=".$row[table_name_value_uuid]."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='table_data_types_name_value_delete.php?table_uuid=".$row[table_uuid]."&table_field_uuid=".$row[table_field_uuid]."&id=".$row[table_name_value_uuid]."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
//echo " <input type='button' class='btn' name='' alt='edit' onclick=\"window.location='table_data_types_name_value_edit.php?id=".$row[table_name_value_uuid]."'\" value='e'>\n";
|
||||
//echo " <input type='button' class='btn' name='' alt='delete' onclick=\"if (confirm('Are you sure you want to delete this?')) { window.location='table_data_types_name_value_delete.php?id=".$row[table_name_value_uuid]."' }\" value='x'>\n";
|
||||
echo " <a href='schema_name_value_edit.php?schema_uuid=".$row["schema_uuid"]."&schema_field_uuid=".$row["schema_field_uuid"]."&id=".$row["schema_name_value_uuid"]."' alt='edit'>$v_link_label_edit</a>\n";
|
||||
echo " <a href='schema_name_value_delete.php?schema_uuid=".$row["schema_uuid"]."&schema_field_uuid=".$row["schema_field_uuid"]."&id=".$row["schema_name_value_uuid"]."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
//echo " <input type='button' class='btn' name='' alt='edit' onclick=\"window.location='schema_name_value_edit.php?id=".$row["schema_name_value_uuid"]."'\" value='e'>\n";
|
||||
//echo " <input type='button' class='btn' name='' alt='delete' onclick=\"if (confirm('Are you sure you want to delete this?')) { window.location='schema_name_value_delete.php?id=".$row["schema_name_value_uuid"]."' }\" value='x'>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
if ($c==0) { $c=1; } else { $c=0; }
|
||||
@@ -127,7 +125,7 @@ require_once "includes/paging.php";
|
||||
echo " <td width='33.3%' nowrap> </td>\n";
|
||||
//echo " <td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
echo " <a href='table_data_types_name_value_edit.php?table_uuid=".$row[table_uuid]."&table_field_uuid=".$row[table_field_uuid]."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " <a href='schema_name_value_edit.php?schema_uuid=".$row["schema_uuid"]."&schema_field_uuid=".$row["schema_field_uuid"]."' alt='add'>$v_link_label_add</a>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
@@ -148,4 +146,4 @@ require_once "includes/paging.php";
|
||||
//show the footer
|
||||
require_once "includes/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user