Commit da1aa3f9 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3369 Removing obsolete cellspacing

parent fe33c68b
This diff is collapsed.
......@@ -32,6 +32,8 @@ width:175px;
border:0;
padding:0;
text-align:center;
border-spacing:0;
border-collapse:collapse;
}
td.prev,td.prev_year,td.next,td.next_year {
......
......@@ -131,7 +131,7 @@ class Print_a_class {
}
// build a single table ... may be nested
$this->output .= '<table style="border:none;" cellspacing="1" '.( !$iteration && $this->export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>';
$this->output .= '<table style="border:none;" '.( !$iteration && $this->export_flag ? 'onClick="document.getElementById(\'pa_form_'.$this->export_hash.'\').submit();" )' : '' ).'>';
foreach ($array as $key => $value) {
$value_style = 'color:black;';
......
......@@ -33,7 +33,7 @@ function html_trace($errstr = "")
}
$trace = debug_backtrace();
$return_html = "<table width=\"100%\" cellspacing=0 style='background-color:#402005;color:white;border:2px solid red'><tr><td colspan=3><h1 style='color:white'>"._("PHP error")." \"$errstr\"</h1></td></tr>";
$return_html = "<table width=\"100%\" style='background-color:#402005;color:white;border:2px solid red;border-spacing:0;border-collapse:collapse;'><tr><td colspan=3><h1 style='color:white'>"._("PHP error")." \"$errstr\"</h1></td></tr>";
$return_mailto = rawurlencode("=== Trace ===");
/* Generate trace history */
for ($index = 0, $c = count($trace); $index < $c; $index++) {
......
......@@ -484,7 +484,7 @@ class acl_createedit extends acl
$back_color = "#C8C8C8";
}
$display .= "\n<table style='width:100%;border:1px solid #A0A0A0' cellspacing=0 cellpadding=2>".
$display .= "\n<table style='width:100%;border:1px solid #A0A0A0;border-spacing:0;border-collapse:collapse;'>".
"\n <tr>".
"\n <td style='background-color:{$back_color};height:1.8em;' colspan=".($cols - 1)."><b>"._("Object").": $name</b></td>".
"\n <td align='right' style='background-color:{$back_color};height:1.8em;'>".
......@@ -515,7 +515,7 @@ class acl_createedit extends acl
$display .= "\n <tr id='tr_$tname' style='vertical-align:top;height:0px;'>".
"\n <td colspan=".$cols.">".
"\n <div id='$tname' style='overflow:hidden; display:none;vertical-align:top;width:100%;'>".
"\n <table style='width:100%;'>";
"\n <table style='width:100%;border-collapse: collapse;' border='1'>";
foreach ($splist as $attr => $dsc) {
/* Skip pl* attributes, they are internal... */
......@@ -531,11 +531,9 @@ class acl_createedit extends acl
/* Close table row */
if ($cnt == $cols) {
$cnt = 1;
$rb = "";
$end = "\n </tr>";
} else {
$cnt++;
$rb = "border-right:1px solid #A0A0A0;";
$end = "";
}
......@@ -544,13 +542,13 @@ class acl_createedit extends acl
if (isset($currentAcl[$attr])) {
$state = $currentAcl[$attr];
}
$display .= "\n <td style='border-top:1px solid #A0A0A0;${rb}width:".(int)(100 / $cols)."%'>".
$display .= "\n <td style='border:1px solid #A0A0A0;width:".(int)(100 / $cols)."%'>".
"\n <b>$dsc</b> ($attr)<br>".$this->mkrwbx($key."_".$attr, $state)."</td>$end";
}
/* Fill missing td's if needed */
if (--$cnt != $cols && $cnt != 0) {
$display .= str_repeat("\n <td style='border-top:1px solid #A0A0A0; width:".(int)(100 / $cols)."%'>&nbsp;</td>", $cols - $cnt);
$display .= str_repeat("\n <td style='border:1px solid #A0A0A0;width:".(int)(100 / $cols)."%'>&nbsp;</td>", $cols - $cnt);
}
$display .= "\n </table>".
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment