Show/hide host for sqlite
This commit is contained in:
parent
96a70b2303
commit
c6e2831793
@ -19,7 +19,7 @@ class Add_DB extends GtkWindow {
|
|||||||
|
|
||||||
var $conn, $dbtype, $host, $user, $pass, $database, $settings, $db_file, $port;
|
var $conn, $dbtype, $host, $user, $pass, $database, $settings, $db_file, $port;
|
||||||
|
|
||||||
public function __construct($conn='', $dbtype='', $host='localhost', $user='', $pass='', $database='', $db_file=NULL, $port)
|
public function __construct($conn='', $dbtype='', $host='localhost', $user='', $pass='', $database='', $db_file=NULL, $port='')
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
@ -206,6 +206,7 @@ class Add_DB extends GtkWindow {
|
|||||||
$this->db_file->set_filename(NULL);
|
$this->db_file->set_filename(NULL);
|
||||||
$this->port->show();
|
$this->port->show();
|
||||||
$this->db_file->hide();
|
$this->db_file->hide();
|
||||||
|
$this->host->show();
|
||||||
$this->user->set_text('');
|
$this->user->set_text('');
|
||||||
$this->pass->set_text('');
|
$this->pass->set_text('');
|
||||||
$this->port->set_text('');
|
$this->port->set_text('');
|
||||||
@ -238,6 +239,7 @@ class Add_DB extends GtkWindow {
|
|||||||
case "SQLite":
|
case "SQLite":
|
||||||
$this->db_file->show();
|
$this->db_file->show();
|
||||||
$this->port->hide();
|
$this->port->hide();
|
||||||
|
$this->host->hide();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user