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

This commit is contained in:
zero 2007-05-29 06:34:09 +00:00
parent 7fea4d2ba4
commit 87b16614a5
5 changed files with 12 additions and 8 deletions

View file

@ -8,9 +8,9 @@
* @brief location.href에서 특정 key의 값을 return
**/
String.prototype.getQuery = function(key) {
var idx = current_url.indexOf('?');
var idx = this.indexOf('?');
if(idx == -1) return null;
var query_string = current_url.substr(idx+1, current_url.length);
var query_string = this.substr(idx+1, this.length);
var args = {}
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
@ -24,12 +24,12 @@ String.prototype.getQuery = function(key) {
* @brief location.href에서 특정 key의 값을 return
**/
String.prototype.setQuery = function(key, val) {
var idx = current_url.indexOf('?');
var uri = current_url;
var idx = this.indexOf('?');
var uri = this;
uri = uri.replace(/#$/,'');
if(idx != -1) {
uri = current_url.substr(0, idx);
var query_string = current_url.substr(idx+1, current_url.length);
uri = this.substr(0, idx);
var query_string = this.substr(idx+1, this.length);
var args = new Array();
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });

View file

@ -344,6 +344,8 @@
return $output;
}
$this->setLayoutPath('./common/tpl');
$this->setLayoutFile('default_layout.html');
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile("top_refresh.html");
}

View file

@ -75,7 +75,7 @@
}
// 스킨 경로 구함
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
$this->setTemplatePath($template_path);
// rss url

View file

@ -373,6 +373,8 @@
$oModuleController = &getController('module');
$oModuleController->updateModuleSkinVars($module_srl, $skin_vars);
$this->setLayoutPath('./common/tpl');
$this->setLayoutFile('default_layout.html');
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile("top_refresh.html");
}

View file

@ -73,7 +73,7 @@
$this->page_count = $this->module_info->page_count?$this->module_info->page_count:10;
// 스킨 템플릿 경로 지정
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->skin);
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
$this->setTemplatePath($template_path);
// rss url