설치시에 XE가 지원하는 모든 DB를 보여주도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5819 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-10 01:20:57 +00:00
parent 8dfa3688e6
commit 3c0d58c94a
2 changed files with 9 additions and 5 deletions

View file

@ -105,9 +105,13 @@
$eval_str = sprintf('$oDB = new %s();', $class_name);
eval($eval_str);
if(!$oDB || !$oDB->isSupported()) continue;
if(!$oDB) continue;
$this->supported_list[] = $db_type;
$obj = null;
$obj->db_type = $db_type;
$obj->enable = $oDB->isSupported()?true:false;
$this->supported_list[] = $obj;
}
return $this->supported_list;

View file

@ -11,10 +11,10 @@
<!--@foreach(DB::getSupportedList() as $key => $val)-->
<tr>
<th scope="row">
<input type="radio" name="db_type" value="{$val}" id="db_type_{$val}" <!--@if($val=="mysql")-->checked="checked"<!--@end-->/>
<label for="db_type_{$val}">{$val}</label>
<input type="radio" name="db_type" value="{$val->db_type}" <!--@if(!$val->enable)-->disabled="disabled"<!--@end--> id="db_type_{$val->db_type}" <!--@if($val->db_type=="mysql")-->checked="checked"<!--@end-->/>
<label for="db_type_{$val->db_type}">{$val->db_type}</label>
</th>
<td>{$lang->db_desc[$val]}</td>
<td>{$lang->db_desc[$val->db_type]}</td>
</tr>
<!--@end-->
</table>