url(array('controller'=>'sql','action'=>'create.database'));
?>
lang->L_CREATE_DATABASE;?>
sqlHeadNavi(); ?>
lang->L_CREATE_DATABASE;?>:
jQuery()->onLoadCaptureStart(); ?>
var dbCollations = collations); ?>;
var dbDefaultCollations = defaultCollations); ?>;
$('#dbCharset').bind('change', function() {
var newOpts = '';
var curCharset = $(this).val();
$(dbCollations[curCharset]).each(function(id, v) {
var selected = '';
if (v == dbDefaultCollations[curCharset]) {
selected = ' selected="selected"';
}
newOpts += '';
$('#dbCollation').html(newOpts);
});
});
$(document).ready(function() {
$('#dbName').focus();
});
jQuery()->onLoadCaptureEnd();
if (isset($this->dbCreated)) {
if ($this->dbCreated) {
$this->popUpMessage()->addMessage(
'dialogDbCreation',
'L_CREATE_DATABASE',
array('L_DATABASE_CREATED_SUCCESS', $this->newDbInfo['dbName']),
array(
'modal' => 'true',
'autoOpen' => 'true',
'buttons' => array(
'L_OK' => 'function(){$(this).dialog("close"); }',
)
)
);
} else {
$this->popUpMessage()->addMessage(
'dialogDbCreation',
'L_CREATE_DATABASE',
array(
'L_DATABASE_CREATED_FAILED',
'(' . $this->errorInfo['code'] . ') '
. $this->errorInfo['message'] .''
),
array(
'modal' => 'true',
'autoOpen' => 'true',
'buttons' => array(
'L_OK' => 'function(){$(this).dialog("close"); }',
)
)
);
}
}
?>