Rev 305 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 305 | Rev 362 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | public static function newConnection(): OIDplusDatabaseConnection { |
26 | public static function newConnection(): OIDplusDatabaseConnection { |
27 | return new OIDplusDatabaseConnectionMySQLi(); |
27 | return new OIDplusDatabaseConnectionMySQLi(); |
28 | } |
28 | } |
29 | 29 | ||
30 | public static function setupHTML(): string { |
30 | public static function setupHTML(): string { |
- | 31 | return '<div id="DBPLUGIN_PARAMS_MySQL">'. |
|
- | 32 | ' <p>'._L('MySQL hostname and port').':<br><input id="mysql_host" type="text" value="localhost:3306" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="mysql_host_warn"></span></p>'. |
|
- | 33 | ' <p>'._L('MySQL username').':<br><input id="mysql_username" type="text" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="mysql_username_warn"></span></p>'. |
|
- | 34 | ' <p>'._L('MySQL password').':<br><input id="mysql_password" type="password" autocomplete="new-password" onkeypress="rebuild()" onkeyup="rebuild()"></p>'. |
|
- | 35 | ' <p>'._L('MySQL database name').':<br><input id="mysql_database" type="text" onkeypress="rebuild()" onkeyup="rebuild()"> <span id="mysql_database_warn"></span></p>'. |
|
- | 36 | '</div>'; |
|
- | 37 | } |
|
- | 38 | ||
- | 39 | public static function setupJS(): string { |
|
31 | return file_get_contents(__DIR__ . '/setup.part.html'); |
40 | return file_get_contents(__DIR__ . '/setup.js'); |
32 | } |
41 | } |
33 | } |
42 | } |