Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (14 sloc) 0.558 kb
de4820cc »
2011-03-01 New plugin: Edit textarea
1 <?php
2
3 /** Use <textarea> for char and varchar
091a4d04 »
2012-06-30 Link to documentation
4 * @link http://www.adminer.org/plugins/#use
de4820cc »
2011-03-01 New plugin: Edit textarea
5 * @author Jakub Vrana, http://www.vrana.cz/
6 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
8 */
9 class AdminerEditTextarea {
10
11 function editInput($table, $field, $attrs, $value) {
12 if (ereg('char', $field["type"])) {
7d152fba »
2011-03-21 Utilize bodyKeydown function
13 return "<textarea cols='30' rows='1' style='height: 1.2em;'$attrs>" . h($value) . '</textarea>';
de4820cc »
2011-03-01 New plugin: Edit textarea
14 }
15 }
16
17 }
Something went wrong with that request. Please try again.