Spacing, capitalization and other minor changes to virtual tables.

This commit is contained in:
Mark Crane
2012-08-26 06:19:10 +00:00
parent 100afec4c3
commit 81795b3607

View File

@@ -195,7 +195,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<form method='post' name='frm' action=''>\n";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
if ($action == "add") {
echo "<td align='left' width='30%' nowrap='nowrap'><b>Virtual Table Add</b></td>\n";
@@ -205,8 +204,8 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
echo "<td width='70%' align='right'>\n";
if (strlen($row[virtual_table_uuid]) > 0) {
echo " <input type='button' class='btn' name='' alt='view' onclick=\"window.location='v_virtual_table_data_view.php?id=".$row[virtual_table_uuid]."'\" value='view'>&nbsp;&nbsp;\n";
echo " <input type='button' class='btn' name='' alt='import' onclick=\"window.location='v_virtual_tables_import.php?id=".$row[virtual_table_uuid]."'\" value='import'>&nbsp;&nbsp;\n";
echo " <input type='button' class='btn' name='' alt='view' onclick=\"window.location='v_virtual_table_data_view.php?id=".$row[virtual_table_uuid]."'\" value='View'>&nbsp;&nbsp;\n";
echo " <input type='button' class='btn' name='' alt='import' onclick=\"window.location='v_virtual_tables_import.php?id=".$row[virtual_table_uuid]."'\" value='Import'>&nbsp;&nbsp;\n";
}
include "export/index.php";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='v_virtual_tables.php'\" value='Back'>\n";
@@ -224,11 +223,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " Table Category:\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
//echo " <input class='formfld' type='text' name='virtual_table_category' maxlength='255' value=\"$virtual_table_category\">\n";
$table_name = 'v_virtual_tables';$field_name = 'virtual_table_category';$sql_where_optional = "";$field_current_value = $virtual_table_category;
echo html_select_other($db, $table_name, $field_name, $sql_where_optional, $field_current_value);
echo "<br />\n";
echo "Enter the category.\n";
echo "Select the category.\n";
echo "</td>\n";
echo "</tr>\n";
@@ -312,8 +309,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " <select name='virtual_table_parent_uuid' class='formfld'>\n";
echo " <option value=''></option>\n";
$sql = "";
$sql .= "select * from v_virtual_tables ";
$sql = "select * from v_virtual_tables ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$prep_statement = $db->prepare($sql);
$prep_statement->execute();