diff --git a/html/js/managetable.js b/html/js/managetable.js new file mode 100644 index 000000000..7b766db4d --- /dev/null +++ b/html/js/managetable.js @@ -0,0 +1,211 @@ + diff --git a/include/lib/class_manage_table_sql.php b/include/lib/class_manage_table_sql.php index e7e227d8d..99af3496a 100644 --- a/include/lib/class_manage_table_sql.php +++ b/include/lib/class_manage_table_sql.php @@ -1,110 +1,46 @@ - - table->seek(); $nb=Database::num_count($ret); + printf ('
| "; if ( $this->can_update_row() ) { - $js=printf ("ManageTable.input('%s');", - $p_row[$this->table->primary_key] + $js=printf ("ManageTable.input('%s','%s');", + $p_row[$this->table->primary_key], + $this->object_name ); } echo " | "; echo ""; if ( $this->can_delete_row() ) { - $js=printf ("ManageTable.delete('%s');", - $p_row[$this->table->primary_key] + $js=printf ("ManageTable.delete('%s','%s');", + $p_row[$this->table->primary_key], + $this->object_name + ); } |