Simplify around (thanks to David Grudl)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@610 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
faa43e4c3c
commit
225126b47d
|
@ -176,7 +176,7 @@ if (isset($_GET["download"])) {
|
|||
echo '<tr class="nowrap' . odd(' odd') . '"><td>' . (isset($row["Rows"]) ? '<input type="checkbox" name="tables[]" value="' . htmlspecialchars($row["Name"]) . '"' . (in_array($row["Name"], (array) $_POST["tables"], true) ? ' checked="checked"' : '') . ' /></td><th><a href="' . htmlspecialchars($SELF) . 'table=' . urlencode($row["Name"]) . '">' . htmlspecialchars($row["Name"]) . "</a></th><td>$row[Engine]</td><td>" . (strlen(trim($row["Comment"])) ? htmlspecialchars($row["Comment"]) : " ") . "</td><td>$row[Collation]" : ' </td><th><a href="' . htmlspecialchars($SELF) . 'view=' . urlencode($row["Name"]) . '">' . htmlspecialchars($row["Name"]) . '</a></th><td colspan="8"><a href="' . htmlspecialchars($SELF) . "select=" . urlencode($row["Name"]) . '">' . lang('View') . '</a>');
|
||||
foreach ((isset($row["Rows"]) ? array("Data_length" => "create", "Index_length" => "indexes", "Data_free" => "edit", "Auto_increment" => "create", "Rows" => "select") : array()) as $key => $link) {
|
||||
$val = number_format($row[$key], 0, '.', lang(','));
|
||||
echo '</td><td align="right">' . (strlen($row[$key]) ? '<a href="' . htmlspecialchars("$SELF$link=") . urlencode($row["Name"]) . '">' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('around %s', $val) : $val) . '</a>' : ' ');
|
||||
echo '</td><td align="right">' . (strlen($row[$key]) ? '<a href="' . htmlspecialchars("$SELF$link=") . urlencode($row["Name"]) . '">' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('~ %s', $val) : $val) . '</a>' : ' ');
|
||||
}
|
||||
echo "</td></tr>\n";
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ $translations = array(
|
|||
'Event' => 'Událost',
|
||||
'MySQL version: %s through PHP extension %s' => 'Verze MySQL: %s přes PHP extenzi %s',
|
||||
'%d row(s)' => array('%d řádek', '%d řádky', '%d řádků'),
|
||||
'around %s' => 'přibližně %s',
|
||||
'~ %s' => '~ %s',
|
||||
'ON UPDATE CURRENT_TIMESTAMP' => 'Při změně aktuální čas',
|
||||
'Remove' => 'Odebrat',
|
||||
'Are you sure?' => 'Opravdu?',
|
||||
|
|
Loading…
Reference in a new issue