";
//echo"Change your password
";
echo"
"; echo"
"; echo"
"; } function display_table(){ $table=get_table(); //echo"t: $table"; echo"
"; } function add_field_menu(){ $table=get_table(); echo"
"; } function get_fields_only(){ $table = get_table(); $columns = mysql_query("SHOW COLUMNS from $table") or die ("Could not get COLUMNS"); $numcolumns = mysql_num_rows($columns); $x = 0; while( $x < $numcolumns){ $colname = mysql_fetch_row($columns); $col[$x] = $colname[0]; $x++; } return $col; } function get_fields_from_table($table){ $columns = mysql_query("SHOW COLUMNS from $table") or die ("Could not get COLUMNS2"); $numcolumns = mysql_num_rows($columns); $x = 0; while( $x < $numcolumns){ $colname = mysql_fetch_row($columns); $col[$x] = $colname[0]; $x++; } return $col; } function get_fields(){ $table = get_table(); $columns = mysql_query("SHOW COLUMNS from $table") or die ("Could not get COLUMNS"); $numcolumns = mysql_num_rows($columns); $x = 0; while( $x < $numcolumns){ $colname = mysql_fetch_row($columns); $col[$x] = $colname[0]; $x++; } for ($i=0; $i
"; } else{ echo" $col[$i]
"; } } else{ if($val == "Log File" || $val == "Root File" || $val == "Document"){ echo" $col[$i]
"; } else{ echo" $col[$i]
"; } } } } function get_table(){ $action = get_request('table','A-Za-z0-9'); //echo"a: $action"; if ($action == "CMCAM"){$table = "CMCAM";} elseif ($action == "CMCMM"){$table = "CMCMM";} elseif ($action == "CMCMX"){$table = "CMCMX";} elseif ($action == "CMSBC"){$table = "CMSBC";} elseif ($action == "CMVMM"){$table = "CMVMM";} elseif ($action == "CMTCMCPJEP"){$table = "CMTCMCPJEP";} elseif ($action == "CMTTC"){$table = "CMTTC";} else{ $table = "CMCAM";}//default return $table; } echo "