git-svn-id: http://xe-core.googlecode.com/svn/trunk@44 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-02-15 06:15:23 +00:00
parent 55b5b91d63
commit e1f8a69118
6 changed files with 12 additions and 12 deletions

View file

@ -7,7 +7,7 @@
*
* xml filter 파일은 js script로 컴파일 되어 캐싱됨\n
* \n
* <filter name="js function 이름" method_name="서버에 요청할 action 이름" confirm_msg_code="submit시에 prompt로 물어볼 메세지의 코드" >\n
* <filter name="js function 이름" act="서버에 요청할 action 이름" confirm_msg_code="submit시에 prompt로 물어볼 메세지의 코드" >\n
* <form> <-- 항목의 체크\n
* <node target="name" required="true" minlength="1" maxlength="5" filter="email,userid,alpha,number" equalto="target" />\n
* </form>\n
@ -80,7 +80,7 @@
$filter_name = $xml_obj->filter->attrs->name;
$confirm_msg_code = $xml_obj->filter->attrs->confirm_msg_code;
$module = $xml_obj->filter->attrs->module;
$method_name = $xml_obj->filter->attrs->method_name;
$act = $xml_obj->filter->attrs->act;
$field_node = $xml_obj->filter->form->node;
@ -96,7 +96,7 @@
// js function 을 만들기 시작
$js_doc = sprintf("function %s(fo_obj) {\n", $filter_name);
$js_doc .= sprintf("\tvar oFilter = new XmlJsFilter(fo_obj, \"%s\", \"%s\", %s);\n", $module, $method_name, $callback_func);
$js_doc .= sprintf("\tvar oFilter = new XmlJsFilter(fo_obj, \"%s\", \"%s\", %s);\n", $module, $act, $callback_func);
// field, 즉 체크항목의 script 생성
$node_count = count($field_node);

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<module default_action="viewIntroduce" manage_action="">
<action name="viewIntroduce" type="view" grant="" />
<action name="viewDBInfoForm" type="view" grant="" />
<action name="doInstall" type="controller" grant="" />
<action name="dispIntroduce" type="view" grant="" />
<action name="dispInstallForm" type="view" grant="" />
<action name="procInstall" type="controller" grant="" />
</module>

View file

@ -58,7 +58,7 @@
/**
* @brief 설치 시도
**/
function doInstall() {
function procInstall() {
// 설치가 되어 있는지에 대한 체크
if(Context::isInstalled()) return new Object(-1, 'msg_already_installed');

View file

@ -27,14 +27,14 @@
/**
* @brief license 설치 환경에 대한 메세지 보여줌
**/
function viewIntroduce() {
function dispIntroduce() {
$this->setTemplateFile('introduce');
}
/**
* @brief DB 정보 입력 화면을 보여줌
* @brief DB 정보/ 최고 관리자 정보 입력 화면을 보여줌
**/
function viewDBInfoForm() {
function dispInstallForm() {
// db_type이 지정되지 않았다면 다시 초기화면 출력
if(!Context::get('db_type')) return $this->viewIntroduce();

View file

@ -1,4 +1,4 @@
<filter name="install" module="install" method_name="doInstall">
<filter name="install" module="install" act="procInstall">
<form>
<node target="db_type" required="true" />
<node target="db_hostname" required="true" minlength="1" maxlength="250" />

View file

@ -27,7 +27,7 @@
<!--@if($install_enable)-->
<form method="get" action="./">
<input type="hidden" name="act" value="viewDBInfoForm" />
<input type="hidden" name="act" value="dispInstallForm" />
<table border="1">
<tr>
<td>{$lang->db_type}</td>