Altezza celle

N

nico

Guest
Prima di tutto ti ringrazio per l'ottimo lavoro che hai messo a disposizione. Per uno come me che sta cominciando a scrivere applicazioncine con php è una vera manna!
Se ti interessa ho dovuto effettuare una piccola modifica a business_logic.php per ridurre l'ampiezza della griglia di visualizzazione ("visualizza tutti i record") eliminando il margine inferiore sotto le immagini. La presenza del margine (automatico? scusa l'ignoranza... ) raddoppiava quasi l'altezza delle celle; non so se la cosa era voluta ,nel caso ti chiedo dove era il posto giusto da modificare?.

Ciao e grazie ancora

allego codice modificato (style=....):


if ($results_type == "check_mailing"){
$results_table .= "<table cellspacing=\"0\" cellpadding=\"0\"><tr><td><form method=post action=\"mail.php\" style=\"margin-top: 0; margin-bottom: 0\"><input type=\"hidden\" name=\"function\" value=\"remove_contact\"><input type=\"hidden\" name=\"name_mailing\" value=\"$name_mailing\"><input type=\"hidden\" name=\"where_field\" value=\"$where_field\"><input type=\"hidden\" name=\"where_value\" value=\"$where_value\"><input type=\"hidden\" name=\"page\" value=\"$page\"><input type=\"submit\" value=\"".$submit_buttons_ar["remove_from_mailing"]."\"></form></td></tr></table>";

} // end if


elseif ($unique_field_name != "" and ($results_type == "search" or $results_type == "possible_duplication")){ // exists a unique number: edit, delete, details make sense

$results_table .= "<table cellspacing=\"0\" cellpadding=\"0\" ><tr>";



if ($enable_edit == "1"){ // display the edit icon

$results_table .= "<td ><form method=post action=\"form.php?table_name=".urlencode($table_name)."\" target=\"_".$edit_target_window."\" style=\"margin-top: 0; margin-bottom: 0\"><input type=\"hidden\" name=\"function\" value=\"edit\"><input type=\"hidden\" name=\"where_field\" value=\"$where_field\"><input type=\"hidden\" name=\"where_value\" value=\"$where_value\"><input type=\"image\" src=\"".$edit_icon."\" alt=\"".$submit_buttons_ar["edit"]."\" border=\"0\"></form></td>";

} // end if

if ($enable_delete == "1"){ // display the delete icon

$results_table .= "<td ><form method=post action=\"form.php?table_name=".urlencode($table_name)."\" style=\"margin-top: 0; margin-bottom: 0\"><input type=\"hidden\" name=\"function\" value=\"delete\" ><input type=\"hidden\" name=\"where_field\" value=\"$where_field\"><input type=\"hidden\" name=\"where_value\" value=\"$where_value\"><input type=\"image\" src=\"".$delete_icon."\" alt=\"".$submit_buttons_ar["delete"]."\" border=\"0\"></form></td>";

} // end if

if ($enable_details == "1"){ // display the details icon

$results_table .= "<td><form method=post action=\"form.php?table_name=".urlencode($table_name)."\" target=\"_".$edit_target_window."\" style=\"margin-top: 0; margin-bottom: 0\"><input type=\"hidden\" name=\"function\" value=\"details\"><input type=\"hidden\" name=\"where_field\" value=\"$where_field\"><input type=\"hidden\" name=\"where_value\" value=\"$where_value\"><input type=\"image\" src=\"".$details_icon."\" alt=\"".$submit_buttons_ar["details"]."\" border=\"0\" ></form></td>";

} // end if
 
Top