extended 'check/uncheck all tables' feature to js disabled browsers

This commit is contained in:
Loïc Chapeaux
2002-01-03 12:54:44 +00:00
parent bf7aca1491
commit cd3204ad68
3 changed files with 29 additions and 358 deletions

View File

@@ -6,7 +6,9 @@ $Id$
$Source$
2001-01-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* db_details.php3: invalid xhtml statements.
* db_details.php3:
- invalid xhtml statements;
- extend "check/uncheck all tables" feature to js disabled browsers.
* libraries/functions.js: codding standards.
2002-01-02 Marc Delisle <lem9@users.sourceforge.net>

View File

@@ -168,6 +168,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
</tr>
<?php
$i = $sum_entries = $sum_size = 0;
$checked = (!empty($checkall) ? ' checked="checked"' : '');
while (list($keyname, $sts_data) = each($tables)) {
$table = $sts_data['Name'];
// Sets parameters for links
@@ -181,7 +182,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
?>
<tr>
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($table); ?>" />
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($table); ?>"<?php echo $checked; ?> />
</td>
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
&nbsp;<b><?php echo htmlspecialchars($table); ?>&nbsp;</b>&nbsp;
@@ -331,14 +332,23 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
<input type="submit" name="submit_mult" value="<?php echo $strPrintView; ?>" />
</td>
</tr>
<?php
// Check all tables url
$checkall_url = 'db_details.php3'
. '?lang=' . $lang
. '&amp;server=' . $server
. '&amp;db=' . urlencode($db);
echo "\n";
?>
<tr>
<td>
<a href="#" onclick="setCheckboxes('tablesForm', true); return false;">
<a href="<?php echo $checkall_url; ?>&amp;checkall=1" onclick="setCheckboxes('tablesForm', true); return false;">
<?php echo $GLOBALS['strCheckAll']; ?></a>
</td>
<td>&nbsp;</td>
<td>
<a href="#" onclick="setCheckboxes('tablesForm', false); return false;">
<a href="<?php echo $checkall_url; ?>" onclick="setCheckboxes('tablesForm', false); return false;">
<?php echo $GLOBALS['strUncheckAll']; ?></a>
</td>
</tr>
@@ -366,6 +376,7 @@ else {
<th><?php echo ucfirst($strRecords); ?></th>
</tr>
<?php
$checked = (!empty($checkall) ? ' checked="checked"' : '');
while ($i < $num_tables) {
// Sets parameters for links
$url_query = 'lang=' . $lang
@@ -378,7 +389,7 @@ else {
?>
<tr>
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($tables[$i]); ?>" />
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($tables[$i]); ?>"<?php echo $checked; ?> />
</td>
<td bgcolor="<?php echo $bgcolor; ?>" class="data">
<b>&nbsp;<?php echo $tables[$i]; ?>&nbsp;</b>
@@ -419,14 +430,23 @@ else {
<input type="submit" name="submit_mult" value="<?php echo $strEmpty; ?>" />
</td>
</tr>
<?php
// Check all tables url
$checkall_url = 'db_details.php3'
. '?lang=' . $lang
. '&amp;server=' . $server
. '&amp;db=' . urlencode($db);
echo "\n";
?>
<tr>
<td>
<a href="#" onclick="setCheckboxes('tablesForm', true); return false;">
<a href="<?php $checkall_url; ?>&amp;checkall=1" onclick="setCheckboxes('tablesForm', true); return false;">
<?php echo $GLOBALS['strCheckAll']; ?></a>
</td>
<td>&nbsp;</td>
<td>
<a href="#" onclick="setCheckboxes('tablesForm', false); return false;">
<a href="<?php $checkall_url; ?>" onclick="setCheckboxes('tablesForm', false); return false;">
<?php echo $GLOBALS['strUncheckAll']; ?></a>
</td>
</tr>

View File

@@ -1,351 +0,0 @@
<?php
/* $Id$ */
$charset = 'iso-8859-1';
$text_dir = 'ltr';
$left_font_family = 'verdana, helvetica, arial, geneva, sans-serif';
$right_font_family = 'helvetica, arial, geneva, sans-serif';
$number_thousands_separator = '.';
$number_decimal_separator = ',';
$byteUnits = array('Bytes', 'KB', 'MB', 'GB');
$day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
$month = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
// See http://www.php.net/manual/en/function.strftime.php to define the
// variable below
$datefmt = '%B %d, %Y at %I:%M %p';
$strAccessDenied = 'Acceso Negado';
$strAction = 'Acci<63>n';
$strAddDeleteColumn = 'Adicionar/Eliminar columnas de campo';
$strAddDeleteRow = 'Adicionar/Eliminar filas de criterios';
$strAddNewField = 'Adicionar un novo campo';
$strAddPriv = 'Adicionar un novo privilexio';
$strAddPrivMessage = 'Privilexio adicionado.';
$strAddSearchConditions = 'Condici<63>n da pesquisa (ou sexa, o complemento da cl<63>usula "WHERE"):';
$strAddToIndex = 'Adicionar ao <20>ndice &nbsp;%s&nbsp;coluna(s)';
$strAddUser = 'Adicionar un novo usuario';
$strAddUserMessage = 'Usuario adicionado.';
$strAffectedRows = 'Filas que van ser afectadas:';
$strAfter = 'Despois de';
$strAfterInsertBack = 'Voltar';
$strAfterInsertNewInsert = 'Inserir un novo rexistro';
$strAll = 'Todos';
$strAlterOrderBy = 'Ordenar a tabela por';
$strAnalyzeTable = 'Analizar a tabela';
$strAnd = 'E';
$strAnIndex = 'Adicionouse un <20>ndice a %s';
$strAny = 'Calquer';
$strAnyColumn = 'Calquer columna';
$strAnyDatabase = 'Calquer banco de datos';
$strAnyHost = 'Calquer servidor';
$strAnyTable = 'Calquer tabela';
$strAnyUser = 'Calquer usuario';
$strAPrimaryKey = 'Adicionouse unha chave primaria a %s';
$strAscending = 'Ascendente';
$strAtBeginningOfTable = 'No comezo da tabela';
$strAtEndOfTable = 'Ao final da tabela';
$strAttr = 'Atributos';
$strBack = 'Voltar';
$strBinary = ' Binario ';
$strBinaryDoNotEdit= ' Binario - non editar ';
$strBookmarkDeleted = 'Eliminouse o marcador.';
$strBookmarkLabel = 'Nome';
$strBookmarkQuery = 'A procura de SQL foi gardada';
$strBookmarkThis = 'Gardar esta procura de SQL';
$strBookmarkView = 'S<> visualizar';
$strBrowse = 'Visualizar';
$strBzip = 'comprimido no formato "bzipped"';
$strCantLoadMySQL = 'Non foi posible carregar a extensi<73>n do MySQL;<br>comprobe, por favor, a configuraci<63>n do PHP.';
$strCantRenameIdxToPrimary = 'Non se pode facer que este <20>ndice sexa PRIMARIO!';
$strCardinality = 'Cardinalidade';
$strCarriage = 'Car<61>cter de retorno: \\r';
$strChange = 'Mudar';
$strCheckAll = 'Marc<72>-los todos';
$strCheckDbPriv = 'Verificar os privilexios do banco de datos';
$strCheckTable = 'Verificar a tabela';
$strColumn = 'Columna';
$strColumnNames = 'Nomes das Columnas';
$strCompleteInserts = 'Inserci<63>ns completas';
$strConfirm = 'Est<73> seguro/a?';
$strCookiesRequired = 'A partir de aqui debe permitir cookies.';
$strCopyTable = 'Copiar a tabela a (base_de_datos<b>.</b>tabela):';
$strCopyTableOK = 'Tabela \$table copiada para \$new_name.';
$strCreate = 'Crear';
$strCreateIndex = 'Crear un <20>ndice en&nbsp;%s&nbsp;colunas';
$strCreateIndexTopic = 'Crear un novo <20>ndice';
$strCreateNewDatabase = 'Crear un novo banco de datos';
$strCreateNewTable = 'Crear unha nova tabela neste banco de datos ';
$strCriteria = 'Criterio';
$strData = 'Datos';
$strDatabase = 'Banco de Datos ';
$strDatabaseHasBeenDropped = 'A base de datos %s foi eliminada.';
$strDatabases = 'Bancos de Datos';
$strDatabasesStats = 'Estat<61>sticas dos bancos de datos';
$strDataOnly = 'S<> os datos';
$strDefault = 'Padr<64>n';
$strDelete = 'Eliminar';
$strDeleted = 'Rexistro eliminado';
$strDeletedRows = 'Filas borradas:';
$strDeleteFailed = 'Non foi posible eliminar!';
$strDeleteUserMessage = 'Acaba de eliminar o usuario %s.';
$strDescending = 'Descendente';
$strDisplay = 'Mostrar';
$strDisplayOrder = 'Mostrar en orde:';
$strDoAQuery = 'Faga unha "procura por exemplo" (o comod<6F>n <20> "%")';
$strDocu = 'Documentaci<63>n';
$strDoYouReally = 'Seguro? ';
$strDrop = 'Eliminar';
$strDropDB = 'Elimina o banco de datos: ';
$strDropTable = 'Eliminar a tabela';
$strDumpingData = 'Extraindo datos da tabela';
$strDynamic = 'din<69>mico';
$strEdit = 'Modificar';
$strEditPrivileges = 'Modificar privilexios';
$strEffective = 'Efectivo';
$strEmpty = 'Borrar';
$strEmptyResultSet = 'MySQL retornou um conxunto vac<61>o (ex. cero rexistros).';
$strEnd = 'Fin';
$strEnglishPrivileges = ' Nota: os nomes de privilexios do MySQL est<73>n en ingl<67>s';
$strError = 'Erro';
$strExtendedInserts = 'Inserci<63>ns extendidas';
$strExtra = 'Extra';
$strField = 'Campo';
$strFieldHasBeenDropped = 'Eliminouse o campo %s';
$strFields = 'Campos';
$strFieldsEmpty = ' O reconto de campos di que non hai neng<6E>n! ';
$strFieldsEnclosedBy = 'Os campos delim<69>tanse con';
$strFieldsEscapedBy = 'Os campos esc<73>panse con';
$strFieldsTerminatedBy = 'Os campos rematan por';
$strFixed = 'fixo';
$strFlushTable = 'Fechar a tabela ("FLUSH")';
$strFormat = 'Formato';
$strFormEmpty = 'Falta un valor no formulario!';
$strFullText = 'Textos completos';
$strFunction = 'Funci<63>ns';
$strGenTime = 'Xerado en';
$strGo = 'Executar';
$strGrants = 'Conceder';
$strGzip = 'comprimido no formato "gzipped"';
$strHasBeenAltered = 'foi alterado.';
$strHasBeenCreated = 'foi creado.';
$strHome = 'Comezo ("Home")';
$strHomepageOfficial = 'P<>xina Oficial do phpMyAdmin';
$strHomepageSourceforge = 'P<>xina do phpMyAdmin en Sourceforge';
$strHost = 'Servidor';
$strHostEmpty = 'O nome do servidor est<73> vac<61>o!';
$strIdxFulltext = 'Texto completo';
$strIfYouWish = 'Para carregar s<> algunhas columnas da tabela, faga unha lista separada por v<>rgulas.';
$strIgnore = 'Ignorar';
$strIndex = '<27>ndice';
$strIndexHasBeenDropped = 'Eliminouse o <20>ndice %s';
$strIndexName = 'Nome do <20>ndice&nbsp;:';
$strIndexType = 'Tipo de <20>ndice&nbsp;:';
$strIndexes = '<27>ndices';
$strInsert = 'Inserir';
$strInsertAsNewRow = 'Inserir unha nova columna';
$strInsertedRows = 'Filas inseridas:';
$strInsertNewRow = 'Inserir un novo rexistro';
$strInsertTextfiles = 'Inserir un arquivo de texto na tabela';
$strInstructions = 'Instrucci<63>ns';
$strInUse = 'en uso';
$strInvalidName = '"%s" i unha palabra reservada. Non se pode utilizar como nome dun banco de datos, dunha tabela ou dun campo.';
$strKeepPass = 'Non mude o contrasinal';
$strKeyname = 'Nome chave';
$strKill = 'Matar (kill)';
$strLength = 'Tama<6D>o';
$strLengthSet = 'Tama<6D>o/Definir*';
$strLimitNumRows = 'N<>mero de rexistros por p<>xina';
$strLineFeed = 'Car<61>cter de alimentaci<63>n de li<6C>a: \\n';
$strLines = 'Li<4C>as';
$strLinesTerminatedBy = 'As li<6C>as rematan por';
$strLocationTextfile = 'Localizaci<63>n do arquivo de texto';
$strLogin = 'Entrada (login)';
$strLogout = 'Sair';
$strLogPassword = 'Contrasinal:';
$strLogUsername = 'Nome de usuario:';
$strModifications = 'As modificaci<63>ns foron gardadas';
$strModify = 'Modificar';
$strModifyIndexTopic = 'Modificar un <20>ndice';
$strMoveTable = 'Mover a tabela a (base_de_datos<b>.</b>tabela):';
$strMoveTableOK = 'Moveuse a tabela %s para %s.';
$strMySQLReloaded = 'MySQL reiniciado.';
$strMySQLSaid = 'Mensaxes do MySQL: ';
$strMySQLShowProcess = 'Mostrar os procesos';
$strMySQLShowStatus = 'Mostrar informaci<63>n de tempo de execuci<63>n do MySQL';
$strMySQLShowVars = 'Mostrar as variables de sistema do MySQL';
$strName = 'Nome';
$strNbRecords = 'N<>mero de rexistros';
$strNext = 'Seguinte';
$strNo = 'Non';
$strNoDatabases = 'Non hai neng<6E>n banco de datos';
$strNoDropDatabases = 'Os comandos "Eliminar banco de datos" non est<73>n permitidos.';
$strNoFrames = 'phpMyAdmin usa-se mellor cun navegador que <b>acepte molduras</b>.';
$strNoIndex = 'Non se definiu un <20>ndice';
$strNoIndexPartsDefined = 'Non se definiron partes do <20>ndice';
$strNoModification = 'Sen cambios';
$strNone = 'Nengun';
$strNoPassword = 'Sen Contrasinal';
$strNoPrivileges = 'Sen Privilexios';
$strNoQuery = 'Non hai procura SQL!';
$strNoRights = 'Non ten direitos suficientes para estar aqu<71> agora!';
$strNoTablesFound = 'Non se achou nengunha tabela no banco de datos';
$strNotNumber = 'Non <20> un n<>mero!';
$strNotValidNumber = ' non <20> un n<>mero v<>lido para unha fila!';
$strNoUsersFound = 'Non se achou nengun(s) usuario(s).';
$strNull = 'Nulo';
$strNumberIndexes = ' N<>mero de <20>ndices avanzados ';
$strOftenQuotation = 'Xeralmente son aspas. OPCIONAL significa que s<> os campos de caracteres son delimitados por caracteres "delimitadores"';
$strOptimizeTable = 'Optimizar a tabela';
$strOptionalControls = 'Opcional. Controla como se han de ler e escreber os caracteres especiais.';
$strOptionally = 'OPCIONAL';
$strOr = 'ou';
$strOverhead = 'De m<>is (Overhead)';
$strPartialText = 'Textos parciais';
$strPassword = 'Contrasinal';
$strPasswordEmpty = 'O contrasinal est<73> vac<61>o!';
$strPasswordNotSame = 'Os contrasinais non son os mesmos!';
$strPHPVersion = 'Versi<73>n do PHP';
$strPmaDocumentation = 'Documentaci<63>n do phpMyAdmin';
$strPos1 = 'Inicio';
$strPrevious = 'Anterior';
$strPrimary = 'Primaria';
$strPrimaryKey = 'Chave primaria';
$strPrimaryKeyHasBeenDropped = 'Eliminouse a chave primaria';
$strPrimaryKeyName = 'O nome da chave primaria debe ser... PRIMARIA';
$strPrimaryKeyWarning = '("PRIMARIA" <b>debe</b> ser o nome de e <b>s<> de</b> unha chave primaria)';
$strPrintView = 'Visualizaci<63>n previa da impresi<73>n';
$strPrivileges = 'Privilexios';
$strProperties = 'Propiedades';
$strQBE = 'Procurar pondo un exemplo ("QBE")';
$strQBEDel = 'Eliminar';
$strQBEIns = 'Inserir';
$strQueryOnDb = 'Procura tipo SQL no banco de datos <b>%s</b>:';
$strRecords = 'Rexistros';
$strReloadFailed = 'A reinicializaci<63>n do MySQL fallou.';
$strReloadMySQL = 'Reinicializar o MySQL';
$strRememberReload = 'Lembre-se recarregar o servidor.';
$strRenameTable = 'Renomear a tabela para';
$strRenameTableOK = 'Tabela \$table renomeada para \$new_name';
$strRepairTable = 'Reparar a tabela';
$strReplace = 'Substituir';
$strReplaceTable = 'Substituir os datos da tabela polos do ficheiro';
$strReset = 'Reiniciar';
$strReType = 'Reescreber';
$strRevoke = 'Revogar';
$strRevokeGrant = 'Revogar privilexio de conceder';
$strRevokeGrantMessage = 'Retirou-lle o privilexio de Permitir a %s';
$strRevokeMessage = 'Retirou-lle os privilexios a %s';
$strRevokePriv = 'Revogar privilexios';
$strRowLength = 'Lonxitude da fila';
$strRows = 'Filas';
$strRowsFrom = 'filas, a comezar da';
$strRowSize= ' Tama<6D>o da fila ';
$strRowsModeVertical= 'vertical';
$strRowsModeHorizontal= 'horizontal';
$strRowsModeOptions= 'en modo %s e repetir os cabezallos de cada %s celas';
$strRowsStatistic = 'Estatist<73>cas da Fila';
$strRunning = 'a rodar no servidor %s';
$strMySQLServerProcess = 'MySQL %pma_s1% a rodar no servidor %pma_s2% como %pma_s3%';
$strRunQuery = 'Enviar esta procura';
$strRunSQLQuery = 'Efectuar unha procura SQL na base de datos %s';
$strSave = 'Gardar';
$strSelect = 'Procurar';
$strSelectFields = 'Seleccione os campos (m<>nimo 1)';
$strSelectNumRows = 'a procurar';
$strSend = 'Enviar <I>(gravar nun ficheiro)</I><br>';
$strSequence = 'Secuencia';
$strServerChoice = 'Escolla de Servidor';
$strServerVersion = 'Versi<73>n do servidor';
$strSetEnumVal = 'Se o tipo de campo <20> "enum" ou "set", introduza os valores usando este formato: \'a\',\'b\',\'c\'...<br />Se precisar p<>r unha barra invertida (" \ ") ou aspas simples (" \' ") entre estes valores, preceda a barra e as aspas de barras invertidas (por exemplo \'\\\\xyz\' ou \'a\\\'b\').';
$strShow = 'Mostrar';
$strShowAll = 'Ver todos os rexistros';
$strShowCols = 'Mostrar as columnas';
$strShowingRecords = 'Mostrando rexistros ';
$strShowPHPInfo = 'Mostrar informaci<63>n sobre o PHP';
$strShowTables = 'Mostrar as tabelas';
$strShowThisQuery = ' Mostrar esta procura aqu<71> outra vez ';
$strSingly = 'a refacer logo de inserci<63>ns e destruci<63>ns (shingly)';
$strSize = 'Tama<6D>o';
$strSort = 'Ordenar';
$strSpaceUsage = 'Uso do espazo';
$strSQLQuery = 'comando SQL';
$strStartingRecord = 'A comezar un rexistro'; //FUZZY
$strStatement = 'Informaci<63>ns';
$strStrucCSV = 'Datos CSV';
$strStrucData = 'Estructura e datos';
$strStrucDrop = 'Adicionar \'Eliminar tabela anterior se existe\'';
$strStrucExcelCSV = 'CSV (para datos de Ms Excel)';
$strStrucOnly = 'S<> a estructura';
$strSubmit = 'Submeter';
$strSuccess = 'O seu comando de SQL executou-se com <20>xito';
$strSum = 'Suma';
$strTable = 'tabela ';
$strTableComments = 'Comentarios da tabela';
$strTableEmpty = 'O nome da tabela est<73> vac<61>o!';
$strTableHasBeenDropped = 'Eliminouse a tabela %s';
$strTableHasBeenEmptied = 'Vaciouse a tabela %s';
$strTableHasBeenFlushed = 'Fechouse a tabela %s';
$strTableMaintenance = 'Tabela de manutenci<63>n';
$strTables = '%s tabela(s)';
$strTableStructure = 'Estructura da tabela';
$strTableType = 'Tipo da tabela';
$strTextAreaLength = ' Por causa da sua lonxitude,<br> este campo pode non ser editable ';
$strTheContent = 'O conte<74>do do seu arquivo foi inserido';
$strTheContents = 'O conte<74>do do arquivo substitu<74>u o conte<74>do da tabela que ti<74>a a mesma chave primaria ou <20>nica';
$strTheTerminator = 'O car<61>cter que separa os campos.';
$strTotal = 'total';
$strType = 'Tipo';
$strUncheckAll = 'Quitar-lles as marcas a todos';
$strUnique = '<27>nico';
$strUpdatePrivMessage = 'Acaba de actualizar os privilexios de %s.';
$strUpdateProfile = 'Actualizar o perfil:';
$strUpdateProfileMessage = 'Actualizouse o perfil.';
$strUpdateQuery = 'Actualizar a procura';
$strUsage = 'Uso';
$strUseBackquotes = 'Protexer os nomes das tabelas e dos campos con&nbsp;" ` "';
$strUser = 'Usuario';
$strUserEmpty = 'O nome do usuario est<73> vac<61>o!';
$strUserName = 'Nome do usuario';
$strUsers = 'Usuarios';
$strUseTables = 'Usar as tabelas';
$strValue = 'Valor';
$strViewDump = 'Ver o esquema do volcado da tabela';
$strViewDumpDB = 'Ver o esquema do volcado do banco de datos';
$strWelcome = 'Benvida/o a %s';
$strWithChecked = 'Todos os marcados';
$strWrongUser = 'Usuario ou contrasinal errado. Acceso negado.';
$strYes = 'Si';
$strZip = 'comprimido no formato "zipped"';
// To translate
$strCardinality = 'Cardinality';
$strLogin = 'Login';
$strLogPassword = 'Password:';
$strLogUsername = 'Username:';
?>