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

This commit is contained in:
zero 2007-06-11 02:10:51 +00:00
parent 7441412096
commit e336df77c1
18 changed files with 55 additions and 42 deletions

View file

@ -25,13 +25,6 @@
$this->category_list = $oDocumentModel->getCategoryList($this->module_srl);
Context::set('category_list', $this->category_list);
// 선택된 카테고리 목록이 있으면 zbxe_url을 변경하여 트리메뉴에서 카테고리까지 참조할 수 있도록 함
$category_srl = Context::get('category');
if($this->category_list[$category_srl]) {
$this->category_srl = $category_srl;
Context::set('zbxe_url', sprintf("mid=%s&category=%d", $this->module_info->mid, $this->category_srl));
}
// 스킨 경로 구함
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
$this->setTemplatePath($template_path);

View file

@ -115,7 +115,6 @@ function blogDrawNode(parent_node) {
var text = node.getAttribute("text");
var url = node.getAttribute("url");
var expand = node.getAttribute("expand");
if(!text) continue;
// 자식 노드가 있는지 확인
@ -132,8 +131,9 @@ function blogDrawNode(parent_node) {
// zone_id 값을 세팅
var zone_id = "blog_category_"+node_srl;
blog_tree_menu_folder_list[blog_tree_menu_folder_list.length] = zone_id;
if(url && typeof(zbxe_url)!="undefined" && ( url.substr(url.length-zbxe_url.length, url.length) == zbxe_url)) {
var current_category = current_url.getQuery('category');
if(current_category == node_srl) {
selected = true;
blog_menu_selected = true;
}
@ -221,7 +221,7 @@ function blogDrawNode(parent_node) {
// 왼쪽 폴더/페이지와 텍스트 위치를 맞추기 위해;;; table태그 일단 사용. 차후 바꾸자..
html += '<div id="'+zone_id+'" class="node_item">'+
'<div id="'+zone_id+'_line" class="'+line_class+'">'+
'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="20"><img src="./common/tpl/images/blank.gif" width="18" height="18" alt="" id="'+zone_id+'_folder" '+click_str+' /></td>'+
'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="20"><img src="'+request_uri+'/common/tpl/images/blank.gif" width="18" height="18" alt="" id="'+zone_id+'_folder" '+click_str+' /></td>'+
'<td><a href="#" id="'+zone_id+'_node" class="'+text_class+'" onclick="blogSelectNode(\''+url+'\');return false;">'+text+'</a>'+document_count_text+'</td></tr></table>'+
'</div>';

View file

@ -10,7 +10,7 @@
<!-- 블로그 카테고리를 js/blog_tree_menu.js를 이용해서 표시 -->
<script type="text/javascript">
blogLoadTreeMenu("./files/cache/blog_category/{$layout_info->layout_srl}.xml.php", "{$layout_info->category_name?$layout_info->category_name:'category'}", "./?mid={$layout_info->mid}");
blogLoadTreeMenu("{getUrl()}/files/cache/blog_category/{$layout_info->layout_srl}.xml.php", "{$layout_info->category_name?$layout_info->category_name:'category'}", "{getUrl('','mid',$mid)}");
</script>
@ -58,7 +58,6 @@
<!-- top_menu 시작 -->
<!--@foreach($top_menu->list as $key => $val)--><!--@if($val['text'])-->
<!--@if($val['selected'])-->
{@ $class_name = 'first_menu_selected'}
<!--@else-->

View file

@ -7,7 +7,7 @@
class board extends ModuleObject {
var $search_option = array('title','content','title_content','user_name','user_id','tag'); ///< 검색 옵션
var $search_option = array('title','content','title_content','user_name','nick_name','user_id','tag'); ///< 검색 옵션
var $skin = "default"; ///< 스킨 이름
var $list_count = 20; ///< 한 페이지에 나타날 글의 수

View file

@ -26,7 +26,7 @@
* @brief 다운로드 경로를 구함
**/
function getDownloadUrl($file_srl, $sid) {
return "./?module=file&amp;act=procFileDownload&amp;file_srl=".$file_srl."&amp;sid=".$sid;
return getUrl('','module','file','act','procFileDownload','file_srl',$file_srl,'sid',$sid);
}
/**

View file

@ -41,7 +41,7 @@
$lang->about_title = '모듈에 연결시 쉽게 구분할 수 있는 제목을 입력해주세요';
$lang->about_menu_management = "메뉴관리는 선택하신 레이아웃에서 사용하는 메뉴를 구성할 수 있도록 합니다.\n정해진 단계까지 메뉴를 구성 가능하며 입력하신 메뉴를 클릭하시면 상세 정보를 입력할 수 있습니다.\n폴더그림을 클릭하시면 메뉴를 확장하실 수 있습니다.\n간혹 메뉴가 정상적으로 나타나지 않으면 \"캐시파일 재생성\" 버튼을 눌러서 정보를 갱신하세요.\n* 정해진 단계 이상의 메뉴는 제대로 표시되지 않을 수 있습니다.";
$lang->about_menu_name = '관리 및 이미지 버튼이 아닐경우 메뉴 명으로 나타날 제목입니다';
$lang->about_menu_url = "메뉴를 선택시 이동한 URL입니다.<br />다른 mid를 연결하고자 할때는 \"module=모듈명\" 또는 \"mid=모듈\"등으로<br />입력하시면 됩니다.<br />내용이 없을시 메뉴를 선택하여도 아무런 동작이 없게 됩니다.";
$lang->about_menu_url = "메뉴를 선택시 이동한 URL입니다.<br />다른 모듈을 연결하고자 할 때에는 id값만 입력해주시면 됩니다.<br />내용이 없을시 메뉴를 선택하여도 아무런 동작이 없게 됩니다.";
$lang->about_menu_open_window = '메뉴 선택시 새창으로 띄울 것인지를 정할 수 있습니다';
$lang->about_menu_expand = '트리메뉴(tree_menu.js)를 사용시 늘 펼쳐진 상태로 있게 합니다';
$lang->about_menu_img_btn = '이미지 버튼을 등록하시면 레이아웃에서 자동으로 이미지 버튼으로 교체되어 표시가 됩니다.';

View file

@ -307,6 +307,8 @@
// 변수 정리
$name = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->name);
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
if(eregi('^([a-zA-Z\_\-]+)$', $node->url)) $href = getUrl('','mid',$node->url);
else $href = $url;
$open_window = $node->open_window;
$expand = $node->expand;
$normal_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->normal_btn);
@ -318,12 +320,14 @@
if($group_srls) $group_check_code = sprintf('($_SESSION["is_admin"]==true||(is_array($_SESSION["group_srls"])&&count(array_intersect($_SESSION["group_srls"], array(%s)))))',$group_srls);
else $group_check_code = "true";
$attribute = sprintf(
'node_srl="%s" text="<?=(%s?"%s":"")?>" url="<?=(%s?"%s":"")?>" open_window="%s" expand="%s" normal_btn="%s" hover_btn="%s" active_btn="%s" ',
'node_srl="%s" text="<?=(%s?"%s":"")?>" url="<?=(%s?"%s":"")?>" href="<?=(%s?"%s":"")?>" open_window="%s" expand="%s" normal_btn="%s" hover_btn="%s" active_btn="%s" ',
$menu_item_srl,
$group_check_code,
$name,
$group_check_code,
$url,
$group_check_code,
$href,
$open_window,
$expand,
$normal_btn,
@ -352,10 +356,6 @@
if($menu_item_srl&&$tree[$menu_item_srl]) $child_output = $this->getPhpCacheCode($tree[$menu_item_srl], $tree);
else $child_output = array("buff"=>"", "url_list"=>array());
// 노드의 url에 ://가 있으면 바로 링크, 아니면 제로보드의 링크를 설정한다 ($node->href가 완성된 url)
if($node->url && !strpos($node->url, '://')) $node->href = "./?".$node->url;
else $node->href = $node->url;
// 현재 노드의 url값이 공란이 아니라면 url_list 배열값에 입력
if($node->url) $child_output['url_list'][] = $node->url;
$output['url_list'] = array_merge($output['url_list'], $child_output['url_list']);
@ -368,6 +368,8 @@
$name = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->name);
$href = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->href);
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
if(eregi('^([a-zA-Z\_\-]+)$', $node->url)) $href = getUrl('','mid',$node->url);
else $href = $url;
$open_window = $node->open_window;
$normal_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->normal_btn);
$hover_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->hover_btn);
@ -377,7 +379,7 @@
// 속성을 생성한다 ( url_list를 이용해서 선택된 메뉴의 노드에 속하는지를 검사한다. 꽁수지만 빠르고 강력하다고 생각;;)
$attribute = sprintf(
'"node_srl"=>"%s","text"=>(%s?"%s":""),"href"=>(%s?"%s":""),"url"=>(%s?"%s":""),"open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","selected"=>(%s&&in_array(Context::get("zbxe_url"),array(%s))?1:0),"list"=>array(%s)',
'"node_srl"=>"%s","text"=>(%s?"%s":""),"href"=>(%s?"%s":""),"url"=>(%s?"%s":""),"open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","selected"=>(%s&&in_array(Context::get("mid"),array(%s))?1:0),"list"=>array(%s)',
$node->menu_item_srl,
$group_check_code,
$name,

View file

@ -153,6 +153,6 @@ function doInsertMid(mid, menu_id) {
return;
}
fo_obj.menu_url.value = "mid="+mid;
fo_obj.menu_url.value = mid;
window.close();
}