Fixed some indentation

This commit is contained in:
Rouslan Placella
2011-05-14 06:25:32 -04:00
committed by Marc Delisle
parent 20a04b2f2b
commit 989a1f35e9

View File

@@ -743,19 +743,19 @@ function insertQuery(queryType) {
valDis += "[value-" + NbSelect + "]"; valDis += "[value-" + NbSelect + "]";
editDis += myListBox.options[i].value + "=[value-" + NbSelect + "]"; editDis += myListBox.options[i].value + "=[value-" + NbSelect + "]";
} }
if (queryType == "selectall") { if (queryType == "selectall") {
query = "SELECT * FROM `" + table + "` WHERE 1"; query = "SELECT * FROM `" + table + "` WHERE 1";
} else if (queryType == "select") { } else if (queryType == "select") {
query = "SELECT " + chaineAj + " FROM `" + table + "` WHERE 1"; query = "SELECT " + chaineAj + " FROM `" + table + "` WHERE 1";
} else if (queryType == "insert") { } else if (queryType == "insert") {
query = "INSERT INTO `" + table + "`(" + chaineAj + ") VALUES (" + valDis + ")"; query = "INSERT INTO `" + table + "`(" + chaineAj + ") VALUES (" + valDis + ")";
} else if (queryType == "update") { } else if (queryType == "update") {
query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1"; query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1";
} else if(queryType == "delete") { } else if(queryType == "delete") {
query = "DELETE FROM `" + table + "` WHERE 1"; query = "DELETE FROM `" + table + "` WHERE 1";
} }
document.sqlform.sql_query.value = query; document.sqlform.sql_query.value = query;
sql_box_locked = false; sql_box_locked = false;
} }
} }