Skip to content

Commit 4f0c2a3

Browse files
committed
refs #1154
* 언어 리소스 선택 부분 수정 * 이상하게 선택한 후에 리프레시가 안된다. action 의 작동이 문제가 되는듯 하다.
1 parent 5e148ff commit 4f0c2a3

File tree

1 file changed

+52
-46
lines changed

1 file changed

+52
-46
lines changed

setup.php

+52-46
Original file line numberDiff line numberDiff line change
@@ -129,69 +129,73 @@ function current(){
129129
<link rel="stylesheet" media="screen" type="text/css" href="./resources/style/setup/style.css" />
130130
<script type="text/javascript">
131131
//<![CDATA[
132-
function init() {
133-
}
132+
function init() {
133+
}
134134

135-
function previous() {
136-
}
135+
function previous() {
136+
}
137137

138138
function current(){
139-
document.getElementById("step").value ="" ;
140-
document.getElementById("setup").submit() ;
139+
document.getElementById("step").value ="";
140+
document.getElementById("setup").submit();
141141
}
142142

143-
function next(type) {
143+
function next(type) {
144144
if (type != undefined)
145145
document.getElementById("setupMode").value = type;
146-
document.getElementById("setup").submit();
147-
}
146+
document.getElementById("setup").submit();
147+
}
148148

149-
function show(id) {
150-
if (document.getElementById("typeDomain"))
151-
document.getElementById("typeDomain").style.display = "none";
152-
if (document.getElementById("typePath"))
153-
document.getElementById("typePath").style.display = "none";
154-
if (document.getElementById("typeSingle"))
155-
document.getElementById("typeSingle").style.display = "none";
156-
if (document.getElementById(id))
157-
document.getElementById(id).style.display = "block";
158-
}
149+
function show(id) {
150+
if (document.getElementById("typeDomain"))
151+
document.getElementById("typeDomain").style.display = "none";
152+
if (document.getElementById("typePath"))
153+
document.getElementById("typePath").style.display = "none";
154+
if (document.getElementById("typeSingle"))
155+
document.getElementById("typeSingle").style.display = "none";
156+
if (document.getElementById(id))
157+
document.getElementById(id).style.display = "block";
158+
}
159159
//]]>
160160
</script>
161161
</head>
162162
<body onload="init()">
163163
<div id="container">
164-
<form id="setup" name="setup" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
165-
<div id="title"><h1><img src="./resources/style/setup/image/title.gif" width="253" height="44" alt="<?php echo TEXTCUBE_NAME;?> <?php echo TEXTCUBE_VERSION;?> Setup" /></h1></div>
166-
<input type="hidden" name="Lang" id="Lang" value="<?php echo $baseLanguage;?>" />
164+
<form id="setup" name="setup" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
165+
<div id="title">
166+
<h1><img src="./resources/style/setup/image/title.gif" width="253" height="44" alt="<?php echo TEXTCUBE_NAME;?> <?php echo TEXTCUBE_VERSION;?> Setup" /></h1>
167+
</div>
168+
<input type="hidden" name="Lang" id="Lang" value="<?php echo $baseLanguage;?>" />
167169
<?php
168170
if (empty($_POST['step'])) {
169171
?>
170-
<div id="inner">
171-
<input type="hidden" name="step" value="1" />
172-
<h2><span class="step"><?php echo _f('%1단계', 1);?></span> : <?php echo _t('텍스트큐브 설치를 시작합니다.');?></h2>
173-
<div id="langSel" > <?php drawSetLang( $baseLanguage, 'Norm');?></div>
174-
<div id="info"><b><?php echo TEXTCUBE_VERSION;?></b><br />
175-
<?php echo TEXTCUBE_COPYRIGHT;?><br />
176-
Homepage: <a href="<?php echo TEXTCUBE_HOMEPAGE;?>"><?php echo TEXTCUBE_HOMEPAGE;?></a></div>
177-
<div id="content">
178-
<ol>
179-
<li><?php echo _t('소스를 포함한 소프트웨어에 포함된 모든 저작물(이하, 텍스트큐브)의 저작권자는 Needlworks / TNF 입니다.');?></li>
180-
<li><?php echo _t('텍스트큐브는 GPL 라이선스로 제공되며, 모든 사람이 자유롭게 이용할 수 있습니다.');?></li>
181-
<li><?php echo _t('프로그램 사용에 대한 유지 및 보수 등의 의무와, 사용 중 데이터 손실 등에 대한 사고책임은 모두 사용자에게 있습니다.');?></li>
182-
<li><?php echo _t('스킨 및 트리, 플러그인의 저작권은 각 제작자에게 있습니다.');?></li>
183-
</ol>
184-
</div>
185-
<div id="navigation">
186-
<a href="#" onclick="next(); return false;" title="<?php echo _t('다음');?>"><img src="./resources/style/setup/image/icon_next.gif" width="74" height="24" alt="<?php echo _t('다음');?>" /></a>
187-
</div>
188-
</div>
172+
<div id="inner">
173+
<input type="hidden" name="step" value="1" />
174+
<h2><span class="step"><?php echo _f('%1단계', 1);?></span> : <?php echo _t('텍스트큐브 설치를 시작합니다.');?></h2>
175+
<div id="langSel" >
176+
<?php drawSetLang( $baseLanguage, 'Norm');?>
177+
</div>
178+
<div id="info"><b><?php echo TEXTCUBE_VERSION;?></b><br />
179+
<?php echo TEXTCUBE_COPYRIGHT;?><br />
180+
Homepage: <a href="<?php echo TEXTCUBE_HOMEPAGE;?>"><?php echo TEXTCUBE_HOMEPAGE;?></a>
181+
</div>
182+
<div id="content">
183+
<ol>
184+
<li><?php echo _t('소스를 포함한 소프트웨어에 포함된 모든 저작물(이하, 텍스트큐브)의 저작권자는 Needlworks / TNF 입니다.');?></li>
185+
<li><?php echo _t('텍스트큐브는 GPL 라이선스로 제공되며, 모든 사람이 자유롭게 이용할 수 있습니다.');?></li>
186+
<li><?php echo _t('프로그램 사용에 대한 유지 및 보수 등의 의무와, 사용 중 데이터 손실 등에 대한 사고책임은 모두 사용자에게 있습니다.');?></li>
187+
<li><?php echo _t('스킨 및 트리, 플러그인의 저작권은 각 제작자에게 있습니다.');?></li>
188+
</ol>
189+
</div>
190+
<div id="navigation">
191+
<a href="#" onclick="next(); return false;" title="<?php echo _t('다음');?>"><img src="./resources/style/setup/image/icon_next.gif" width="74" height="24" alt="<?php echo _t('다음');?>" /></a>
192+
</div>
193+
</div>
189194
<?php
190195
}
191196
else if ($_POST['step'] == 7) {
192197
checkStep(8, false);
193-
}
194-
else {
198+
} else {
195199
/*
196200
function POD::escapeString($string) {
197201
global $mysql_escaping_function;
@@ -1523,10 +1527,12 @@ function drawSetLang( $currentLang = "ko" ,$curPosition = 'Norm' /*or 'Err'*/ )
15231527
if( $locale->setDirectory(ROOT.'/resources/locale/setup')) $availableLanguages = $locale->getSupportedLocales();
15241528
else return false;
15251529
?>
1526-
Select Default Language : <select name="Lang" id = "Lang" onchange= "current();" >
1530+
Select Default Language :
1531+
<select name="Lang" id = "Lang" onchange= "current();" >
15271532
<?php foreach( $availableLanguages as $key => $value)
1528-
print('<option value="'.$key.'" '.( $key == $currentLang ? ' selected="selected" ' : '').' >'.$value.'</option>');
1529-
?></select>
1533+
print(' <option value="'.$key.'" '.( $key == $currentLang ? ' selected="selected" ' : '').'>'.$value.'</option>'.CRLF);
1534+
?>
1535+
</select>
15301536
<?php
15311537
return true;
15321538
}

0 commit comments

Comments
 (0)