mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1495 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7fea4d2ba4
commit
87b16614a5
5 changed files with 12 additions and 8 deletions
|
|
@ -8,9 +8,9 @@
|
||||||
* @brief location.href에서 특정 key의 값을 return
|
* @brief location.href에서 특정 key의 값을 return
|
||||||
**/
|
**/
|
||||||
String.prototype.getQuery = function(key) {
|
String.prototype.getQuery = function(key) {
|
||||||
var idx = current_url.indexOf('?');
|
var idx = this.indexOf('?');
|
||||||
if(idx == -1) return null;
|
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 = {}
|
var args = {}
|
||||||
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
|
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
|
||||||
|
|
||||||
|
|
@ -24,12 +24,12 @@ String.prototype.getQuery = function(key) {
|
||||||
* @brief location.href에서 특정 key의 값을 return
|
* @brief location.href에서 특정 key의 값을 return
|
||||||
**/
|
**/
|
||||||
String.prototype.setQuery = function(key, val) {
|
String.prototype.setQuery = function(key, val) {
|
||||||
var idx = current_url.indexOf('?');
|
var idx = this.indexOf('?');
|
||||||
var uri = current_url;
|
var uri = this;
|
||||||
uri = uri.replace(/#$/,'');
|
uri = uri.replace(/#$/,'');
|
||||||
if(idx != -1) {
|
if(idx != -1) {
|
||||||
uri = current_url.substr(0, idx);
|
uri = this.substr(0, idx);
|
||||||
var query_string = current_url.substr(idx+1, current_url.length);
|
var query_string = this.substr(idx+1, this.length);
|
||||||
var args = new Array();
|
var args = new Array();
|
||||||
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
|
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function() { args[arguments[1]] = arguments[2]; });
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -344,6 +344,8 @@
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->setLayoutPath('./common/tpl');
|
||||||
|
$this->setLayoutFile('default_layout.html');
|
||||||
$this->setTemplatePath($this->module_path.'tpl');
|
$this->setTemplatePath($this->module_path.'tpl');
|
||||||
$this->setTemplateFile("top_refresh.html");
|
$this->setTemplateFile("top_refresh.html");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
$this->setTemplatePath($template_path);
|
||||||
|
|
||||||
// rss url
|
// rss url
|
||||||
|
|
|
||||||
|
|
@ -373,6 +373,8 @@
|
||||||
$oModuleController = &getController('module');
|
$oModuleController = &getController('module');
|
||||||
$oModuleController->updateModuleSkinVars($module_srl, $skin_vars);
|
$oModuleController->updateModuleSkinVars($module_srl, $skin_vars);
|
||||||
|
|
||||||
|
$this->setLayoutPath('./common/tpl');
|
||||||
|
$this->setLayoutFile('default_layout.html');
|
||||||
$this->setTemplatePath($this->module_path.'tpl');
|
$this->setTemplatePath($this->module_path.'tpl');
|
||||||
$this->setTemplateFile("top_refresh.html");
|
$this->setTemplateFile("top_refresh.html");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
$this->page_count = $this->module_info->page_count?$this->module_info->page_count:10;
|
$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);
|
$this->setTemplatePath($template_path);
|
||||||
|
|
||||||
// rss url
|
// rss url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue