mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
댓글을 관리자가 정한 수만큼 페이징을 하여 보여주도록 기능 추가. 모듈의 업데이트 필요
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3757 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d122c1a0b4
commit
21dcd2d191
37 changed files with 490 additions and 45 deletions
8
modules/comment/queries/deleteCommentList.xml
Normal file
8
modules/comment/queries/deleteCommentList.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<query id="deleteCommentList" action="delete">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comment_srl" var="comment_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
8
modules/comment/queries/deleteCommentsList.xml
Normal file
8
modules/comment/queries/deleteCommentsList.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<query id="deleteCommentsList" action="delete">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
8
modules/comment/queries/deleteModuleCommentsList.xml
Normal file
8
modules/comment/queries/deleteModuleCommentsList.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<query id="deleteModuleCommentsList" action="delete">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -3,7 +3,9 @@
|
|||
<table name="comments" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
<column name="comment_srl" />
|
||||
<column name="parent_srl" />
|
||||
<column name="regdate" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
|
|
|
|||
11
modules/comment/queries/getCommentListItem.xml
Normal file
11
modules/comment/queries/getCommentListItem.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getCommentListItem" action="select">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comment_srl" var="comment_srl" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
21
modules/comment/queries/getCommentPageList.xml
Normal file
21
modules/comment/queries/getCommentPageList.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<query id="getCommentPageList" action="select">
|
||||
<tables>
|
||||
<table name="comments" alias="comments" />
|
||||
<table name="comments_list" alias="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="comments.*" />
|
||||
<column name="depth" alias="depth" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comments_list.document_srl" var="document_srl" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="comments_list.comment_srl" var="comments.comment_srl" filter="number" pipe="and" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="head" order="asc" />
|
||||
<index var="sort_index" default="arrange" order="asc" />
|
||||
<list_count var="list_count" default="list_count" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
14
modules/comment/queries/insertCommentList.xml
Normal file
14
modules/comment/queries/insertCommentList.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<query id="insertCommentList" action="insert">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="comment_srl" var="comment_srl" notnull="notnull" />
|
||||
<column name="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
<column name="head" var="head" filter="number" />
|
||||
<column name="arrange" var="arrange" filter="number" />
|
||||
<column name="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" />
|
||||
<column name="depth" var="depth" filter="number" />
|
||||
</columns>
|
||||
</query>
|
||||
13
modules/comment/queries/updateCommentListArrange.xml
Normal file
13
modules/comment/queries/updateCommentListArrange.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<query id="updateCommentListArrange" action="update">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="arrange" default="plus(1)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="head" var="head" filter="number" notnull="notnull" pipe="and" />
|
||||
<condition operation="excess" column="arrange" var="arrange" filter="number" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
11
modules/comment/queries/updateCommentListModule.xml
Normal file
11
modules/comment/queries/updateCommentListModule.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="updateCommentListModule" action="update">
|
||||
<tables>
|
||||
<table name="comments_list" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="module_srl" var="module_srl" filter="number" default="0" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="document_srl" var="document_srls" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue