mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 11:49:56 +09:00
merge from 1.5.2
git-svn-id: http://xe-core.googlecode.com/svn/trunk@10446 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6c23751ef8
commit
c727926d9e
382 changed files with 6855 additions and 3603 deletions
|
|
@ -69,7 +69,7 @@
|
|||
<title xml:lang="es">Document</title>
|
||||
<title xml:lang="ru">Document</title>
|
||||
<title xml:lang="fr">Document</title>
|
||||
<title xml:lang="zh-TW">Document</title>
|
||||
<title xml:lang="zh-TW">文章</title>
|
||||
<title xml:lang="vi">Document</title>
|
||||
<title xml:lang="mn">Document</title>
|
||||
<title xml:lang="tr">Document</title>
|
||||
|
|
|
|||
|
|
@ -183,6 +183,31 @@
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$triggerObj->document_srls = implode(',',$document_srl_list);
|
||||
$triggerObj->module_srl = $module_srl;
|
||||
$triggerObj->category_srl = $category_srl;
|
||||
// Call a trigger (before)
|
||||
$output = ModuleHandler::triggerCall('document.copyDocumentModule', 'before', $triggerObj);
|
||||
if(!$output->toBool()) {
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$extraVarsList = $oDocumentModel->getDocumentExtraVarsFromDB($document_srl_list);
|
||||
$extraVarsListByDocumentSrl = array();
|
||||
if(is_array($extraVarsList->data))
|
||||
{
|
||||
foreach($extraVarsList->data AS $key=>$value)
|
||||
{
|
||||
if(!isset($extraVarsListByDocumentSrl[$value->document_srl]))
|
||||
{
|
||||
$extraVarsListByDocumentSrl[$value->document_srl] = array();
|
||||
}
|
||||
|
||||
array_push($extraVarsListByDocumentSrl[$value->document_srl], $value);
|
||||
}
|
||||
}
|
||||
|
||||
for($i=count($document_srl_list)-1;$i>=0;$i--) {
|
||||
$document_srl = $document_srl_list[$i];
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
|
|
@ -190,6 +215,18 @@
|
|||
|
||||
$obj = null;
|
||||
$obj = $oDocument->getObjectVars();
|
||||
|
||||
$extraVars = $extraVarsListByDocumentSrl[$document_srl];
|
||||
if($module_srl == $obj->module_srl)
|
||||
{
|
||||
if(is_array($extraVars))
|
||||
{
|
||||
foreach($extraVars as $extraItem)
|
||||
{
|
||||
if($extraItem->var_idx >= 0) $obj->{'extra_vars'.$extraItem->var_idx} = $extraItem->value;
|
||||
}
|
||||
}
|
||||
}
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->document_srl = getNextSequence();
|
||||
$obj->category_srl = $category_srl;
|
||||
|
|
@ -224,6 +261,24 @@
|
|||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
// copy multi language contents
|
||||
if(is_array($extraVars))
|
||||
{
|
||||
foreach($extraVars AS $key=>$value)
|
||||
{
|
||||
if($value->idx >= 0 && $value->lang_code == Context::getLangType())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if( $value->var_idx < 0 || ($module_srl == $value->module_srl && $value->var_idx >= 0) )
|
||||
{
|
||||
$oDocumentController->insertDocumentExtraVar($value->module_srl, $obj->document_srl, $value->var_idx, $value->value, $value->eid, $value->lang_code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Move the comments
|
||||
if($oDocument->getCommentCount()) {
|
||||
$oCommentModel = &getModel('comment');
|
||||
|
|
@ -293,6 +348,14 @@
|
|||
|
||||
$copied_srls[$document_srl] = $obj->document_srl;
|
||||
}
|
||||
|
||||
// Call a trigger (before)
|
||||
$output = ModuleHandler::triggerCall('document.copyDocumentModule', 'after', $triggerObj);
|
||||
if(!$output->toBool()) {
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$oDB->commit();
|
||||
|
||||
$output = new Object();
|
||||
|
|
|
|||
|
|
@ -112,6 +112,9 @@
|
|||
// 2011. 10. 25 status index check
|
||||
if(!$oDB->isIndexExists("documents", "idx_module_status")) return true;
|
||||
|
||||
// 2012. 02. 27 Add a trigger to copy extra keys when the module is copied
|
||||
if(!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'document', 'controller', 'triggerCopyModuleExtraKeys', 'after')) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -293,6 +296,12 @@
|
|||
if(!$oDB->isIndexExists("documents", "idx_module_status"))
|
||||
$oDB->addIndex("documents", "idx_module_status", array("module_srl","status"));
|
||||
|
||||
// 2012. 02. 27 Add a trigger to copy extra keys when the module is copied
|
||||
if(!$oModuleModel->getTrigger('module.procModuleAdminCopyModule', 'document', 'controller', 'triggerCopyModuleExtraKeys', 'after'))
|
||||
{
|
||||
$oModuleController->insertTrigger('module.procModuleAdminCopyModule', 'document', 'controller', 'triggerCopyModuleExtraKeys', 'after');
|
||||
}
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,8 +113,8 @@ class documentController extends document {
|
|||
$oDocumentController = &getController('document');
|
||||
$output = $oDocumentController->deleteModuleCategory($module_srl);
|
||||
if(!$output->toBool()) return $output;
|
||||
// Delete extra variable
|
||||
$this->deleteDocumentExtraVars($module_srl);
|
||||
// Delete extra key and variable, because module deleted
|
||||
$this->deleteDocumentExtraKeys($module_srl);
|
||||
|
||||
// remove aliases
|
||||
$this->deleteDocumentAliasByModule($module_srl);
|
||||
|
|
@ -166,6 +166,10 @@ class documentController extends document {
|
|||
// Set to 0 if the category_srl doesn't exist
|
||||
if($obj->category_srl) {
|
||||
$category_list = $oDocumentModel->getCategoryList($obj->module_srl);
|
||||
if(!$category_list[$obj->category_srl]->grant)
|
||||
{
|
||||
return new Object(-1, 'msg_not_permitted');
|
||||
}
|
||||
if(!$category_list[$obj->category_srl]) $obj->category_srl = 0;
|
||||
}
|
||||
// Set the read counts and update order.
|
||||
|
|
@ -707,10 +711,41 @@ class documentController extends document {
|
|||
if(!$module_srl) return new Object(-1,'msg_invalid_request');
|
||||
$obj->module_srl = $module_srl;
|
||||
if(!is_null($var_idx)) $obj->var_idx = $var_idx;
|
||||
$output = executeQuery('document.deleteDocumentExtraKeys', $obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
return executeQuery('document.deleteDocumentExtraVars', $obj);
|
||||
$oDB = DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
$output = $oDB->executeQuery('document.deleteDocumentExtraKeys', $obj);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$output = $oDB->executeQuery('document.updateDocumentExtraKeyIdxOrder', $obj);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$output = executeQuery('document.deleteDocumentExtraVars', $obj);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$output = $oDB->executeQuery('document.updateDocumentExtraVarIdxOrder', $obj);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
|
||||
$oDB->commit();
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1107,7 +1142,7 @@ class documentController extends document {
|
|||
|
||||
foreach($extra_keys as $idx => $val) {
|
||||
$js_code[] = sprintf('validator.cast("ADD_MESSAGE", ["extra_vars%s","%s"]);', $val->idx, $val->name);
|
||||
if($val->is_required == 'Y' && $logged_info->is_admin != 'Y') $js_code[] = sprintf('validator.cast("ADD_EXTRA_FIELD", ["extra_vars%s", { required:true }]);', $val->idx);
|
||||
if($val->is_required == 'Y') $js_code[] = sprintf('validator.cast("ADD_EXTRA_FIELD", ["extra_vars%s", { required:true }]);', $val->idx);
|
||||
}
|
||||
|
||||
$js_code[] = '})(jQuery);';
|
||||
|
|
@ -1598,7 +1633,7 @@ class documentController extends document {
|
|||
* @brief Move/ Delete the document in the seession
|
||||
**/
|
||||
function procDocumentManageCheckedDocument() {
|
||||
set_time_limit(50);
|
||||
set_time_limit(0);
|
||||
if(!Context::get('is_logged')) return new Object(-1,'msg_not_permitted');
|
||||
|
||||
$type = Context::get('type');
|
||||
|
|
@ -1831,5 +1866,26 @@ class documentController extends document {
|
|||
if(!$obj->status && $obj->is_secret == 'Y') $obj->status = $this->getConfigStatus('secret');
|
||||
if(!$obj->status && $obj->is_secret != 'Y') $obj->status = $this->getConfigStatus('public');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief copy extra keys when module copied
|
||||
**/
|
||||
function triggerCopyModuleExtraKeys(&$obj)
|
||||
{
|
||||
$oDocumentModel = &getModel('document');
|
||||
$documentExtraKeys = $oDocumentModel->getExtraKeys($obj->originModuleSrl);
|
||||
|
||||
if(is_array($documentExtraKeys) && is_array($obj->moduleSrlList))
|
||||
{
|
||||
$oDocumentController=&getController('document');
|
||||
foreach($obj->moduleSrlList AS $key=>$value)
|
||||
{
|
||||
foreach($documentExtraKeys AS $extraItem)
|
||||
{
|
||||
$oDocumentController->insertDocumentExtraKey($value, $extraItem->idx, $extraItem->name, $extraItem->type, $extraItem->is_required , $extraItem->search , $extraItem->default , $extraItem->desc, $extraItem->eid) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
var $columnList = array();
|
||||
var $allowscriptaccessList = array();
|
||||
var $allowscriptaccessKey = 0;
|
||||
var $uploadedFiles = array();
|
||||
|
||||
function documentItem($document_srl = 0, $load_extra_vars = true, $columnList = array()) {
|
||||
$this->document_srl = $document_srl;
|
||||
|
|
@ -338,13 +339,18 @@
|
|||
}
|
||||
// If additional content information is set
|
||||
if($add_content_info) {
|
||||
$memberSrl = $this->get('member_srl');
|
||||
if($memberSrl < 0)
|
||||
{
|
||||
$memberSrl = 0;
|
||||
}
|
||||
$content = sprintf(
|
||||
'<!--BeforeDocument(%d,%d)--><div class="document_%d_%d xe_content">%s</div><!--AfterDocument(%d,%d)-->',
|
||||
$this->document_srl, $this->get('member_srl'),
|
||||
$this->document_srl, $this->get('member_srl'),
|
||||
$this->document_srl, $memberSrl,
|
||||
$this->document_srl, $memberSrl,
|
||||
$content,
|
||||
$this->document_srl, $this->get('member_srl'),
|
||||
$this->document_srl, $this->get('member_srl')
|
||||
$this->document_srl, $memberSrl,
|
||||
$this->document_srl, $memberSrl
|
||||
);
|
||||
// Add xe_content class although accessing content is not required
|
||||
} else {
|
||||
|
|
@ -474,7 +480,7 @@
|
|||
|
||||
function getExtraValueHTML($idx) {
|
||||
$extra_vars = $this->getExtraVars();
|
||||
if(array_key_exists($idx,$extra_vars)){
|
||||
if(is_array($extra_vars) && array_key_exists($idx,$extra_vars)){
|
||||
return $extra_vars[$idx]->getValueHTML();
|
||||
}else{
|
||||
return '';
|
||||
|
|
@ -518,7 +524,14 @@
|
|||
if(!$this->getCommentCount()) return;
|
||||
if(!$this->isGranted() && $this->isSecret()) return;
|
||||
// cpage is a number of comment pages
|
||||
$cpage = Context::get('cpage');
|
||||
$cpageStr = sprintf('%d_cpage', $this->document_srl);
|
||||
$cpage = Context::get($cpageStr);
|
||||
|
||||
if(!$cpage)
|
||||
{
|
||||
$cpage = Context::get('cpage');
|
||||
}
|
||||
|
||||
// Get a list of comments
|
||||
$oCommentModel = &getModel('comment');
|
||||
$output = $oCommentModel->getCommentList($this->document_srl, $cpage, $is_admin);
|
||||
|
|
@ -526,6 +539,7 @@
|
|||
// Create commentItem object from a comment list
|
||||
// If admin priviledge is granted on parent posts, you can read its child posts.
|
||||
$accessible = array();
|
||||
$comment_list = array();
|
||||
foreach($output->data as $key => $val) {
|
||||
$oCommentItem = new commentItem();
|
||||
$oCommentItem->setAttribute($val);
|
||||
|
|
@ -538,6 +552,7 @@
|
|||
$comment_list[$val->comment_srl] = $oCommentItem;
|
||||
}
|
||||
// Variable setting to be displayed on the skin
|
||||
Context::set($cpageStr, $output->page_navigation->cur_page);
|
||||
Context::set('cpage', $output->page_navigation->cur_page);
|
||||
if($output->total_page>1) $this->comment_page_navigation = $output->page_navigation;
|
||||
|
||||
|
|
@ -725,16 +740,21 @@
|
|||
return $this->get('uploaded_count')? true : false;
|
||||
}
|
||||
|
||||
function getUploadedFiles() {
|
||||
if(!$this->document_srl) return;
|
||||
function getUploadedFiles($sortIndex = 'file_srl')
|
||||
{
|
||||
if(!$this->document_srl) return;
|
||||
|
||||
if($this->isSecret() && !$this->isGranted()) return;
|
||||
if(!$this->get('uploaded_count')) return;
|
||||
if($this->isSecret() && !$this->isGranted()) return;
|
||||
if(!$this->get('uploaded_count')) return;
|
||||
|
||||
$oFileModel = &getModel('file');
|
||||
$file_list = $oFileModel->getFiles($this->document_srl, $is_admin);
|
||||
return $file_list;
|
||||
}
|
||||
if(!$this->uploadedFiles[$sortIndex])
|
||||
{
|
||||
$oFileModel = &getModel('file');
|
||||
$this->uploadedFiles[$sortIndex] = $oFileModel->getFiles($this->document_srl, array(), $sortIndex);
|
||||
}
|
||||
|
||||
return $this->uploadedFiles[$sortIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return Editor html
|
||||
|
|
@ -831,5 +851,23 @@
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function getTranslationLangCodes()
|
||||
{
|
||||
$obj->document_srl = $this->document_srl;
|
||||
// -2 is an index for content. We are interested if content has other translations.
|
||||
$obj->var_idx = -2;
|
||||
$output = executeQueryArray('document.getDocumentTranslationLangCodes', $obj);
|
||||
|
||||
if (!$output->data)
|
||||
{
|
||||
$output->data = array();
|
||||
}
|
||||
// add original page's lang code as well
|
||||
$origLangCode->lang_code = $this->getLangCode();
|
||||
$output->data[] = $origLangCode;
|
||||
|
||||
return $output->data;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,18 @@
|
|||
return $_SESSION['own_document'][$document_srl];
|
||||
}
|
||||
|
||||
function getDocumentExtraVarsFromDB($documentSrls)
|
||||
{
|
||||
if(!is_array($documentSrls) || count($documentSrls) == 0)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$args->document_srl = $documentSrls;
|
||||
$output = executeQueryArray('document.getDocumentExtraVars', $args);
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief extra variables for each article will not be processed bulk select and apply the macro city
|
||||
**/
|
||||
|
|
@ -36,8 +48,8 @@
|
|||
// If the document number, return detected
|
||||
if(!count($document_srls)) return;
|
||||
// Expand variables mijijeongdoen article about a current visitor to the extension of the language code, the search variable
|
||||
$obj->document_srl = implode(',',$document_srls);
|
||||
$output = executeQueryArray('document.getDocumentExtraVars', $obj);
|
||||
//$obj->document_srl = implode(',',$document_srls);
|
||||
$output = $this->getDocumentExtraVarsFromDB($document_srls);
|
||||
if($output->toBool() && $output->data) {
|
||||
foreach($output->data as $key => $val) {
|
||||
if(!isset($val->value)) continue;
|
||||
|
|
@ -60,6 +72,7 @@
|
|||
// Expand the variable processing
|
||||
if(count($extra_keys)) {
|
||||
foreach($extra_keys as $idx => $key) {
|
||||
$extra_keys[$idx] = clone($key);
|
||||
$val = $vars[$idx];
|
||||
if(isset($val[$user_lang_code])) $v = $val[$user_lang_code];
|
||||
else if(isset($val[$document_lang_code])) $v = $val[$document_lang_code];
|
||||
|
|
@ -329,7 +342,6 @@
|
|||
}
|
||||
// Return if no result or an error occurs
|
||||
if(!$output->toBool()||!count($output->data)) return $output;
|
||||
|
||||
$idx = 0;
|
||||
$data = $output->data;
|
||||
unset($output->data);
|
||||
|
|
@ -417,6 +429,51 @@
|
|||
$obj->sort_index = 'var_idx';
|
||||
$obj->order = 'asc';
|
||||
$output = executeQueryArray('document.getDocumentExtraKeys', $obj);
|
||||
|
||||
// correcting index order
|
||||
$isFixed = FALSE;
|
||||
if(is_array($output->data))
|
||||
{
|
||||
$prevIdx = 0;
|
||||
foreach($output->data as $no => $value)
|
||||
{
|
||||
// case first
|
||||
if($prevIdx == 0 && $value->idx != 1)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $value->idx;
|
||||
$args->new_idx = 1;
|
||||
executeQuery('document.updateDocumentExtraKeyIdx', $args);
|
||||
executeQuery('document.updateDocumentExtraVarIdx', $args);
|
||||
$prevIdx = 1;
|
||||
$isFixed = TRUE;
|
||||
continue;
|
||||
}
|
||||
|
||||
// case others
|
||||
if($prevIdx > 0 && $prevIdx + 1 != $value->idx)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $value->idx;
|
||||
$args->new_idx = $prevIdx + 1;
|
||||
executeQuery('document.updateDocumentExtraKeyIdx', $args);
|
||||
executeQuery('document.updateDocumentExtraVarIdx', $args);
|
||||
$prevIdx += 1;
|
||||
$isFixed = TRUE;
|
||||
continue;
|
||||
}
|
||||
|
||||
$prevIdx = $value->idx;
|
||||
}
|
||||
}
|
||||
|
||||
if($isFixed)
|
||||
{
|
||||
$output = executeQueryArray('document.getDocumentExtraKeys', $obj);
|
||||
}
|
||||
|
||||
$oExtraVar->setExtraVarKeys($output->data);
|
||||
$keys = $oExtraVar->getExtraVars();
|
||||
if(!$keys) $keys = array();
|
||||
|
|
@ -572,6 +629,7 @@
|
|||
else $args->regdate = $oDocument->get('regdate');
|
||||
break;
|
||||
case 'voted_count' :
|
||||
case 'blamed_count' :
|
||||
case 'readed_count' :
|
||||
case 'comment_count' :
|
||||
case 'title' :
|
||||
|
|
@ -586,6 +644,34 @@
|
|||
$args->sort_index = $opt->sort_index;
|
||||
$args->order_type = $opt->order_type;
|
||||
|
||||
if($opt->statusList) $args->statusList = $opt->statusList;
|
||||
else
|
||||
{
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->is_admin == 'Y' && !$args->module_srl)
|
||||
{
|
||||
$args->statusList = array($this->getConfigStatus('secret'), $this->getConfigStatus('public'), $this->getConfigStatus('temp'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->statusList = array($this->getConfigStatus('secret'), $this->getConfigStatus('public'));
|
||||
}
|
||||
}
|
||||
|
||||
// Category is selected, further sub-categories until all conditions
|
||||
if($opt->category_srl)
|
||||
{
|
||||
$categoryList = $this->getCategoryList($opt->module_srl);
|
||||
|
||||
if(array_key_exists($opt->category_srl, $categoryList))
|
||||
{
|
||||
$categoryInfo = $categoryList[$opt->category_srl];
|
||||
|
||||
$args->categorySrlList = $categoryInfo->childs;
|
||||
array_push($args->categorySrlList, $opt->category_srl);
|
||||
}
|
||||
}
|
||||
|
||||
// Guhanhu total number of the article search page
|
||||
$output = executeQuery('document.getDocumentPage', $args);
|
||||
$count = $output->data->count;
|
||||
|
|
@ -816,7 +902,7 @@
|
|||
$extra_keys = $this->getExtraKeys($module_srl);
|
||||
Context::set('extra_keys', $extra_keys);
|
||||
$security = new Security();
|
||||
$security->encodeHTML('extra_keys..name','extra_keys..eid');
|
||||
$security->encodeHTML('extra_keys..eid');
|
||||
|
||||
// Get information of module_grants
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
|
@ -880,7 +966,6 @@
|
|||
// tpl template file directly compile and will return a variable and puts it on.
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$tpl = $oTemplate->compile('./modules/document/tpl', 'category_info');
|
||||
$tpl = str_replace("\n",'',$tpl);
|
||||
// Changing user-defined language
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->replaceDefinedLangCode($tpl);
|
||||
|
|
@ -983,6 +1068,7 @@
|
|||
case 'member_srl' :
|
||||
case 'readed_count' :
|
||||
case 'voted_count' :
|
||||
case 'blamed_count' :
|
||||
case 'comment_count' :
|
||||
case 'trackback_count' :
|
||||
case 'uploaded_count' :
|
||||
|
|
@ -1065,7 +1151,7 @@
|
|||
{
|
||||
$sortIndex = $obj->sort_index;
|
||||
$isExtraVars = false;
|
||||
if(!in_array($sortIndex, array('list_order','regdate','last_update','update_order','readed_count','voted_count','comment_count','trackback_count','uploaded_count','title','category_srl')))
|
||||
if(!in_array($sortIndex, array('list_order','regdate','last_update','update_order','readed_count','voted_count','blamed_count','comment_count','trackback_count','uploaded_count','title','category_srl')))
|
||||
{
|
||||
// get module_srl extra_vars list
|
||||
if ($load_extra_vars)
|
||||
|
|
@ -1145,6 +1231,9 @@
|
|||
case 'uploaded_count' :
|
||||
$args->{"s_".$search_target} = (int)$search_keyword;
|
||||
break;
|
||||
case 'blamed_count' :
|
||||
$args->{"s_".$search_target} = (int)$search_keyword * -1;
|
||||
break;
|
||||
case 'regdate' :
|
||||
case 'last_update' :
|
||||
case 'ipaddress' :
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<value xml:lang="en"><![CDATA[Documents List]]></value>
|
||||
<value xml:lang="jp"><![CDATA[ドキュメントリスト]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[主题列表]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[主題列表]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[文章列表]]></value>
|
||||
<value xml:lang="fr"><![CDATA[Liste des Documents]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Список документов]]></value>
|
||||
<value xml:lang="es"><![CDATA[Document list]]></value>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
<value xml:lang="en"><![CDATA[Crop (to a specific size)]]></value>
|
||||
<value xml:lang="jp"><![CDATA[トリミングする]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[裁减(按指定大小裁剪图片)]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[裁減]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[裁切]]></value>
|
||||
<value xml:lang="fr"><![CDATA[Rogner]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Обрезать]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Kırpılmış]]></value>
|
||||
|
|
@ -248,7 +248,7 @@
|
|||
<value xml:lang="en"><![CDATA[Invert Selection]]></value>
|
||||
<value xml:lang="jp"><![CDATA[選択項目反転]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[反选]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[反選]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[反向選擇]]></value>
|
||||
<value xml:lang="fr"><![CDATA[Renverser les choisis]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Перевернуть выбранные объекты]]></value>
|
||||
<value xml:lang="es"><![CDATA[Invertir los elementos seleccionados]]></value>
|
||||
|
|
@ -272,7 +272,7 @@
|
|||
<value xml:lang="en"><![CDATA[I want to]]></value>
|
||||
<value xml:lang="jp"><![CDATA[この書き込みを..]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[将把此主题..]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[將此主題..]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[將此文章..]]></value>
|
||||
<value xml:lang="fr"><![CDATA[Vous voudriez..]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Эту запись...]]></value>
|
||||
<value xml:lang="es"><![CDATA[Usted ..]]></value>
|
||||
|
|
@ -320,7 +320,7 @@
|
|||
<value xml:lang="en"><![CDATA[%d article(s) was(were) deleted.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[%d個の書き込みが削除されました。]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[删除了%d个文章。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[刪除%d個文章。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[刪除 %d 個文章。]]></value>
|
||||
<value xml:lang="fr"><![CDATA[%d article(s) est(sont) supprimé(s)]]></value>
|
||||
<value xml:lang="ru"><![CDATA[%d записей удалено]]></value>
|
||||
<value xml:lang="es"><![CDATA[Total de %d documentos han sido eliminados]]></value>
|
||||
|
|
@ -489,12 +489,15 @@
|
|||
<value xml:lang="tr"><![CDATA[Oylama Sayısı (over)]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Lượt bình chọn]]></value>
|
||||
</item>
|
||||
<item name="blamed_count">
|
||||
<value xml:lang="ko"><![CDATA[비추천 수 (이상)]]></value>
|
||||
</item>
|
||||
<item name="comment_count ">
|
||||
<value xml:lang="ko"><![CDATA[댓글 수 (이상)]]></value>
|
||||
<value xml:lang="en"><![CDATA[Number of Comments (over)]]></value>
|
||||
<value xml:lang="jp"><![CDATA[コメント数(以上)]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[评论数(以上)]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[評論數(以上)]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[回覆數(以上)]]></value>
|
||||
<value xml:lang="fr"><![CDATA[Commentaires (surplus)]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Количество записей (свыше)]]></value>
|
||||
<value xml:lang="es"><![CDATA[Número de comentarios (sobre)]]></value>
|
||||
|
|
@ -554,7 +557,7 @@
|
|||
<value xml:lang="en"><![CDATA[IP Address]]></value>
|
||||
<value xml:lang="jp"><![CDATA[IPアドレス]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[IP 地址]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[IP位址]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[IP 位址]]></value>
|
||||
<value xml:lang="fr"><![CDATA[Adresse IP]]></value>
|
||||
<value xml:lang="ru"><![CDATA[IP-Адрес]]></value>
|
||||
<value xml:lang="es"><![CDATA[Dirección IP]]></value>
|
||||
|
|
@ -566,6 +569,7 @@
|
|||
<value xml:lang="ko"><![CDATA[별칭(Alias)]]></value>
|
||||
<value xml:lang="en"><![CDATA[Alias]]></value>
|
||||
<value xml:lang="jp"><![CDATA[アリアス(Alias)]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[別名]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Diğer Adıyla]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Bí danh]]></value>
|
||||
</item>
|
||||
|
|
@ -604,7 +608,7 @@
|
|||
<value xml:lang="en"><![CDATA[Recycle Bin]]></value>
|
||||
<value xml:lang="jp"><![CDATA[ゴミ箱]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[回收箱]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[垃圾桶]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[回收桶]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Корзина]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Çöp Kutusu]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Thùng rác]]></value>
|
||||
|
|
@ -634,7 +638,7 @@
|
|||
<value xml:lang="en"><![CDATA[Recycle Bin]]></value>
|
||||
<value xml:lang="jp"><![CDATA[ゴミ箱]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[回收箱]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[垃圾桶]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[回收桶]]></value>
|
||||
<value xml:lang="ru"><![CDATA[Корзина]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Çöp Kutusu]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Thùng rác]]></value>
|
||||
|
|
@ -778,7 +782,7 @@
|
|||
<value xml:lang="en"><![CDATA[Successfully moved to Recycle Bin.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[ごみ箱に移動しました。]]></value>
|
||||
<value xml:lang="zh-CN"><![CDATA[已成功移除到回收箱。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[成功地移到垃圾桶]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[成功地移到回收桶]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Başarıyla silindi]]></value>
|
||||
<value xml:lang="vi"><![CDATA[Đã chuyển tới thùng rác thành công.]]></value>
|
||||
</item>
|
||||
|
|
@ -786,72 +790,85 @@
|
|||
<value xml:lang="ko"><![CDATA[선택된 문서가 없습니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[There are no selected articles.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[選択された書き込みがありません。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[尚未選擇主題]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[尚未選擇文章]]></value>
|
||||
<value xml:lang="tr"><![CDATA[Hiçbir makale seçilmedi.]]></value>
|
||||
</item>
|
||||
<item name="status">
|
||||
<value xml:lang="ko"><![CDATA[상태]]></value>
|
||||
<value xml:lang="en"><![CDATA[Status]]></value>
|
||||
<value xml:lang="jp"><![CDATA[状態]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[狀態]]></value>
|
||||
</item>
|
||||
<item name="status_name_list" type="array">
|
||||
<item name="PRIVATE">
|
||||
<value xml:lang="ko"><![CDATA[비공개]]></value>
|
||||
<value xml:lang="en"><![CDATA[Private]]></value>
|
||||
<value xml:lang="jp"><![CDATA[非公開]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[不公開]]></value>
|
||||
</item>
|
||||
<item name="PUBLIC">
|
||||
<value xml:lang="ko"><![CDATA[공개]]></value>
|
||||
<value xml:lang="en"><![CDATA[Public]]></value>
|
||||
<value xml:lang="jp"><![CDATA[公開]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[公開]]></value>
|
||||
</item>
|
||||
<item name="SECRET">
|
||||
<value xml:lang="ko"><![CDATA[비밀]]></value>
|
||||
<value xml:lang="en"><![CDATA[Secret]]></value>
|
||||
<value xml:lang="jp"><![CDATA[非公開]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[秘密]]></value>
|
||||
</item>
|
||||
<item name="TEMP">
|
||||
<value xml:lang="ko"><![CDATA[임시]]></value>
|
||||
<value xml:lang="en"><![CDATA[Temporary]]></value>
|
||||
<value xml:lang="jp"><![CDATA[テンポラリ]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[暫存]]></value>
|
||||
</item>
|
||||
</item>
|
||||
<item name="document_manager">
|
||||
<value xml:lang="ko"><![CDATA[선택한 글 관리]]></value>
|
||||
<value xml:lang="en"><![CDATA[Manage selected articles]]></value>
|
||||
<value xml:lang="jp"><![CDATA[選択した書き込みを管理]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[管理所選主題]]></value>
|
||||
</item>
|
||||
<item name="selected_document">
|
||||
<value xml:lang="ko"><![CDATA[선택한 글]]></value>
|
||||
<value xml:lang="en"><![CDATA[Selected articles]]></value>
|
||||
<value xml:lang="jp"><![CDATA[選択した書き込み]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[已選文章數]]></value>
|
||||
</item>
|
||||
<item name="selected_document_move">
|
||||
<value xml:lang="ko"><![CDATA[선택한 글을 다음 위치로 옮기거나 복사할 수 있습니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[You can move or copy the selected articles to the following position.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[選択した書き込みを次の位置へ移動したり、コピーしたりできます。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[可移動或複製所選擇的文章到下列位置。]]></value>
|
||||
</item>
|
||||
<item name="select_module">
|
||||
<value xml:lang="ko"><![CDATA[모듈을 선택하세요.]]></value>
|
||||
<value xml:lang="en"><![CDATA[Select a module.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[モジュールを選択してください。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[選擇模組]]></value>
|
||||
</item>
|
||||
<item name="select_module_id">
|
||||
<value xml:lang="ko"><![CDATA[모듈 아이디를 선택하세요.]]></value>
|
||||
<value xml:lang="en"><![CDATA[Select a module ID.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[モジュールIDを選択してください。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[選擇模組 ID.]]></value>
|
||||
</item>
|
||||
<item name="select_category">
|
||||
<value xml:lang="ko"><![CDATA[분류를 선택하세요.]]></value>
|
||||
<value xml:lang="en"><![CDATA[Select a category.]]></value>
|
||||
<value xml:lang="jp"><![CDATA[カテゴリを選択してください。]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[選擇分類]]></value>
|
||||
</item>
|
||||
<item name="category_description">
|
||||
<value xml:lang="ko"><![CDATA[카테고리 설명]]></value>
|
||||
<value xml:lang="en"><![CDATA[Category Description]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[分類說明]]></value>
|
||||
</item>
|
||||
<item name="no_title_document">
|
||||
<value xml:lang="ko"><![CDATA[제목이 없는 문서입니다.]]></value>
|
||||
<value xml:lang="en"><![CDATA[No title in this document.]]></value>
|
||||
<value xml:lang="zh-TW"><![CDATA[此文章無標題。]]></value>
|
||||
</item>
|
||||
</lang>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
<condition operation="equal" column="member_srl" var="s_member_srl" pipe="and" />
|
||||
<condition operation="more" column="readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
<condition operation="equal" column="member_srl" var="s_member_srl" pipe="and" />
|
||||
<condition operation="more" column="readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
<condition operation="equal" column="member_srl" var="s_member_srl" pipe="or" />
|
||||
<condition operation="more" column="readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<query id="getDocumentList" action="select">
|
||||
<query id="getDocumentListExtraSort" action="select">
|
||||
<tables>
|
||||
<table name="documents" alias="d" />
|
||||
<table name="document_extra_vars" alias="ev" />
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
<condition operation="in" column="d.category_srl" var="category_srl" pipe="and" />
|
||||
<condition operation="equal" column="d.is_notice" var="s_is_notice" pipe="and" />
|
||||
<condition operation="equal" column="d.member_srl" var="member_srl" filter="number" pipe="and" />
|
||||
<condition operation="in" column="d.status" var="statusList" pipe="and" />
|
||||
<group pipe="and">
|
||||
<condition operation="more" column="d.list_order" var="division" pipe="and" />
|
||||
<condition operation="below" column="d.list_order" var="last_division" pipe="and" />
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
<condition operation="equal" column="d.member_srl" var="s_member_srl" pipe="or" />
|
||||
<condition operation="more" column="d.readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="d.voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="d.blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="d.comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="d.trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="d.uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<query id="getDocumentList" action="select">
|
||||
<query id="getDocumentListUseIndex" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
<condition operation="in" column="category_srl" var="category_srl" pipe="and" />
|
||||
<condition operation="equal" column="is_notice" var="s_is_notice" pipe="and" />
|
||||
<condition operation="equal" column="member_srl" var="member_srl" filter="number" pipe="and" />
|
||||
<condition operation="in" column="status" var="statusList" pipe="and" />
|
||||
<group pipe="and">
|
||||
<condition operation="more" column="list_order" var="division" pipe="and" />
|
||||
<condition operation="below" column="list_order" var="last_division" pipe="and" />
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
<condition operation="equal" column="member_srl" var="s_member_srl" pipe="or" />
|
||||
<condition operation="more" column="readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
<condition operation="equal" column="extra_vars.module_srl" default="documents.module_srl" pipe="and" />
|
||||
<condition operation="equal" column="extra_vars.document_srl" default="documents.document_srl" pipe="and" />
|
||||
<condition operation="equal" column="extra_vars.var_idx" var="var_idx" notnull="notnull" pipe="and" />
|
||||
<condition operation="in" column="documents.status" var="statusList" pipe="and" />
|
||||
<condition operation="like" column="extra_vars.value" var="var_value" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<condition operation="equal" column="documents.category_srl" var="category_srl" pipe="and" />
|
||||
<condition operation="equal" column="documents.document_srl" default="comments.document_srl" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="documents.member_srl" var="member_srl" filter="number" pipe="and" />
|
||||
<condition operation="in" column="documents.status" var="statusList" pipe="and" />
|
||||
<group pipe="and">
|
||||
<condition operation="more" column="documents.list_order" var="division" pipe="and" />
|
||||
<condition operation="below" column="documents.list_order" var="last_division" pipe="and" />
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<condition operation="equal" column="documents.member_srl" var="member.member_srl" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="documents.module_srl" var="module_srl" filter="number" pipe="and" />
|
||||
<condition operation="equal" column="documents.category_srl" var="category_srl" pipe="and" />
|
||||
<condition operation="in" column="status" var="statusList" pipe="and" />
|
||||
<condition operation="in" column="documents.status" var="statusList" pipe="and" />
|
||||
<group pipe="and">
|
||||
<condition operation="like" column="documents.title" var="s_title" />
|
||||
<condition operation="like" column="documents.content" var="s_content" pipe="or" />
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
<condition operation="equal" column="documents.member_srl" var="s_member_srl" pipe="or" />
|
||||
<condition operation="more" column="documents.readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="documents.voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="documents.blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="documents.comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="documents.trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="documents.uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -7,10 +7,13 @@
|
|||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" />
|
||||
<condition operation="in" column="category_srl" var="categorySrlList" pipe="and" />
|
||||
<condition operation="more" column="comment_count" var="comment_count" filter="number" pipe="and" />
|
||||
<condition operation="less" column="comment_count" var="rev_comment_count" filter="number" pipe="and" />
|
||||
<condition operation="more" column="voted_count" var="voted_count" filter="number" pipe="and" />
|
||||
<condition operation="less" column="voted_count" var="rev_voted_count" filter="number" pipe="and" />
|
||||
<condition operation="less" column="blamed_count" var="blamed_count" filter="number" pipe="and" />
|
||||
<condition operation="more" column="blamed_count" var="rev_blamed_count" filter="number" pipe="and" />
|
||||
<condition operation="more" column="readed_count" var="readed_count" filter="number" pipe="and" />
|
||||
<condition operation="less" column="readed_count" var="rev_readed_count" filter="number" pipe="and" />
|
||||
<condition operation="less" column="list_order" var="list_order" filter="number" pipe="and" />
|
||||
|
|
@ -34,6 +37,7 @@
|
|||
<condition operation="equal" column="member_srl" var="s_member_srl" pipe="or" />
|
||||
<condition operation="more" column="readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
12
modules/document/queries/getDocumentTranslationLangCodes.xml
Normal file
12
modules/document/queries/getDocumentTranslationLangCodes.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="getDocumentTranslationLangCodes" action="select">
|
||||
<tables>
|
||||
<table name="document_extra_vars" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="DISTINCT(lang_code)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="document_srl" var="document_srl" notnull="notnull" />
|
||||
<condition operation="equal" column="var_idx" var="var_idx" default="-2" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -33,6 +33,7 @@
|
|||
<condition operation="equal" column="documents.member_srl" var="s_member_srl" pipe="or" />
|
||||
<condition operation="more" column="documents.readed_count" var="s_readed_count" pipe="or" />
|
||||
<condition operation="more" column="documents.voted_count" var="s_voted_count" pipe="or" />
|
||||
<condition operation="less" column="documents.blamed_count" var="s_blamed_count" pipe="or" />
|
||||
<condition operation="more" column="documents.comment_count" var="s_comment_count" pipe="or" />
|
||||
<condition operation="more" column="documents.trackback_count" var="s_trackback_count" pipe="or" />
|
||||
<condition operation="more" column="documents.uploaded_count" var="s_uploaded_count" pipe="or" />
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
</tables>
|
||||
<columns>
|
||||
<column name="title" var="title" />
|
||||
<column name="description" var="description" />
|
||||
<column name="description" var="description" default=""/>
|
||||
<column name="list_order" var="list_order" />
|
||||
<column name="last_update" var="last_update" default="curdate()" />
|
||||
<column name="expand" var="expand" />
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<column name="var_type" var="var_type" notnull="notnull" />
|
||||
<column name="var_is_required" var="var_is_required" default="N" notnull="notnull" />
|
||||
<column name="var_search" var="var_search" default="N" notnull="notnull" />
|
||||
<column name="var_default" var="var_default" />
|
||||
<column name="var_default" var="var_default" default="" />
|
||||
<column name="var_desc" var="var_desc" />
|
||||
<column name="eid" var="eid" notnull="notnull" />
|
||||
</columns>
|
||||
|
|
|
|||
12
modules/document/queries/updateDocumentExtraKeyIdxOrder.xml
Normal file
12
modules/document/queries/updateDocumentExtraKeyIdxOrder.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="updateDocumentExtraKeyIdxOrder" action="update">
|
||||
<tables>
|
||||
<table name="document_extra_keys" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="var_idx" default="minus(1)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="excess" column="var_idx" var="var_idx" filter="number" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
12
modules/document/queries/updateDocumentExtraVarIdxOrder.xml
Normal file
12
modules/document/queries/updateDocumentExtraVarIdxOrder.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<query id="updateDocumentExtraVarIdxOrder" action="update">
|
||||
<tables>
|
||||
<table name="document_extra_vars" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="var_idx" default="minus(1)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="excess" column="var_idx" var="var_idx" filter="number" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
<tr>
|
||||
<th scope="row">{$lang->category_color}</th>
|
||||
<td>
|
||||
<input type="text" name="category_color" value="{htmlspecialchars($category_info->color)}" class="color-indicator inputTypeText" />
|
||||
<input type="text" name="category_color" value="{htmlspecialchars($category_info->color)}" class="color-indicator" />
|
||||
<p>{$lang->about_category_color}</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
<tr>
|
||||
<th scope="row">{$lang->category_description}</th>
|
||||
<td >
|
||||
<textarea name="category_description" id="category_description" >{htmlspecialchars($category_info->description)}</textarea>
|
||||
<textarea name="category_description" id="category_description" rows="8" cols="42">{htmlspecialchars($category_info->description)}</textarea>
|
||||
<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','category_description')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
|
||||
<p>{$lang->about_category_description}</p>
|
||||
</td>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
<!--%load_js_plugin("ui.tree")-->
|
||||
|
||||
<load target="js/document_category.js" usecdn="true" />
|
||||
<load target="css/document.css" usecdn="true" />
|
||||
<!--%load_js_plugin("ui.colorpicker")-->
|
||||
<script type="text/javascript">
|
||||
var category_title = "{$lang->category}";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<!--%import("filter/manage_checked_document.xml")-->
|
||||
<load target="js/document_admin.js" usecdn="true" />
|
||||
<load target="css/document.css" usecdn="true" />
|
||||
<h1 class="h1">{$lang->cmd_manage_document}</h1>
|
||||
<form action="./" method="get" id="fo_management">
|
||||
<input type="hidden" name="module" value="document" />
|
||||
|
|
@ -39,7 +38,7 @@
|
|||
<tr>
|
||||
<th scope="row">{$lang->cmd_send_message}</th>
|
||||
<td>
|
||||
<textarea name="message_content" cols="45" rows="5"></textarea>
|
||||
<textarea name="message_content" rows="8" cols="42"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -28,22 +28,22 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->writer}</th>
|
||||
<th scope="col">{$lang->cmd_declare}</th>
|
||||
<th scope="col">{$lang->readed_count}</th>
|
||||
<th scope="col">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col">{$lang->date}</th>
|
||||
<th scope="col" class="nowr">{$lang->writer}</th>
|
||||
<th scope="col" class="nowr">{$lang->cmd_declare}</th>
|
||||
<th scope="col" class="nowr">{$lang->readed_count}</th>
|
||||
<th scope="col" class="nowr">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col" class="nowr">{$lang->date}</th>
|
||||
<th scope="col"><input type="checkbox" data-name="cart" title="Check All" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->writer}</th>
|
||||
<th scope="col">{$lang->cmd_declare}</th>
|
||||
<th scope="col">{$lang->readed_count}</th>
|
||||
<th scope="col">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col">{$lang->date}</th>
|
||||
<th scope="col" class="nowr">{$lang->writer}</th>
|
||||
<th scope="col" class="nowr">{$lang->cmd_declare}</th>
|
||||
<th scope="col" class="nowr">{$lang->readed_count}</th>
|
||||
<th scope="col" class="nowr">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col" class="nowr">{$lang->date}</th>
|
||||
<th scope="col"><input type="checkbox" data-name="cart" title="Check All" /></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
|
@ -51,11 +51,11 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<!--@foreach($document_list as $no => $oDocument)-->
|
||||
<tr>
|
||||
<td class="title"><a href="{getUrl('','document_srl',$oDocument->document_srl)}" target="_blank">{$oDocument->getTitle()}</a></td>
|
||||
<td><a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</a></td>
|
||||
<td>{$oDocument->get('declared_count')}</td>
|
||||
<td>{$oDocument->get('readed_count')}</td>
|
||||
<td>{$oDocument->get('voted_count')}/{$oDocument->get('blamed_count')}</td>
|
||||
<td>{$oDocument->getRegdate("Y-m-d H:i")}</td>
|
||||
<td class="nowr"><a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</a></td>
|
||||
<td class="nowr">{$oDocument->get('declared_count')}</td>
|
||||
<td class="nowr">{$oDocument->get('readed_count')}</td>
|
||||
<td class="nowr">{$oDocument->get('voted_count')}/{$oDocument->get('blamed_count')}</td>
|
||||
<td class="nowr">{$oDocument->getRegdate("Y-m-d H:i")}</td>
|
||||
<td><input type="checkbox" name="cart" value="{$oDocument->document_srl}" /></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
|
@ -79,8 +79,8 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->writer}</th>
|
||||
<th scope="col">{$lang->status}</th>
|
||||
<th scope="col" class="nowr">{$lang->writer}</th>
|
||||
<th scope="col" class="nowr">{$lang->status}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -109,7 +109,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
</div>
|
||||
<p class="q"><label for="message">{$lang->message_notice}</label></p>
|
||||
<p>
|
||||
<textarea cols="42" rows="3" name="message_content" id="message" style="width:98%"></textarea>
|
||||
<textarea rows="8" cols="42" name="message_content" id="message" style="width:98%"></textarea>
|
||||
</p>
|
||||
<div class="btnArea">
|
||||
<span class="btn"><button type="submit" name="type" value="trash">{$lang->cmd_trash}</button></span>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<!--#include("header.html")-->
|
||||
<load target="css/document.css" usecdn="true" />
|
||||
<!--%import("filter/delete_alias.xml")-->
|
||||
|
||||
<form ruleset="deleteAlias" id="deleteForm" action="./" method="post">
|
||||
|
|
|
|||
|
|
@ -37,24 +37,24 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->writer}</th>
|
||||
<th scope="col">{$lang->readed_count}</th>
|
||||
<th scope="col">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col">{$lang->date}</th>
|
||||
<th scope="col">{$lang->ipaddress}</th>
|
||||
<th scope="col">{$lang->status}</th>
|
||||
<th scope="col" class="nowr">{$lang->writer}</th>
|
||||
<th scope="col" class="nowr">{$lang->readed_count}</th>
|
||||
<th scope="col" class="nowr">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col" class="nowr">{$lang->date}</th>
|
||||
<th scope="col" class="nowr">{$lang->ipaddress}</th>
|
||||
<th scope="col" class="nowr">{$lang->status}</th>
|
||||
<th scope="col"><input type="checkbox" data-name="cart" title="Check All" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->writer}</th>
|
||||
<th scope="col">{$lang->readed_count}</th>
|
||||
<th scope="col">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col">{$lang->date}</th>
|
||||
<th scope="col">{$lang->ipaddress}</th>
|
||||
<th scope="col">{$lang->status}</th>
|
||||
<th scope="col" class="nowr">{$lang->writer}</th>
|
||||
<th scope="col" class="nowr">{$lang->readed_count}</th>
|
||||
<th scope="col" class="nowr">{$lang->cmd_vote}(+/-)</th>
|
||||
<th scope="col" class="nowr">{$lang->date}</th>
|
||||
<th scope="col" class="nowr">{$lang->ipaddress}</th>
|
||||
<th scope="col" class="nowr">{$lang->status}</th>
|
||||
<th scope="col"><input type="checkbox" data-name="cart" title="Check All" /></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
|
@ -62,12 +62,12 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<!--@foreach($document_list as $no => $oDocument)-->
|
||||
<tr>
|
||||
<td class="title"><a href="{getUrl('','document_srl',$oDocument->document_srl)}" target="_blank"><!--@if(trim($oDocument->getTitle()))-->{$oDocument->getTitle()}<!--@else--><em>{$lang->no_title_document}</em><!--@end--></a></td>
|
||||
<td><a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</a></td>
|
||||
<td>{$oDocument->get('readed_count')}</td>
|
||||
<td>{$oDocument->get('voted_count')}/{$oDocument->get('blamed_count')}</td>
|
||||
<td>{$oDocument->getRegdate("Y-m-d H:i")}</td>
|
||||
<td><a href="{getUrl('search_target','ipaddress','search_keyword',$oDocument->get('ipaddress'))}">{$oDocument->get('ipaddress')}</a></td>
|
||||
<td>{$status_name_list[$oDocument->get('status')]}</td>
|
||||
<td class="nowr"><a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</a></td>
|
||||
<td class="nowr">{$oDocument->get('readed_count')}</td>
|
||||
<td class="nowr">{$oDocument->get('voted_count')}/{$oDocument->get('blamed_count')}</td>
|
||||
<td class="nowr">{$oDocument->getRegdate("Y-m-d H:i")}</td>
|
||||
<td class="nowr"><a href="{getUrl('search_target','ipaddress','search_keyword',$oDocument->get('ipaddress'))}">{$oDocument->get('ipaddress')}</a></td>
|
||||
<td class="nowr">{$status_name_list[$oDocument->get('status')]}</td>
|
||||
<td><input type="checkbox" name="cart" value="{$oDocument->document_srl}" /></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
|
@ -91,8 +91,8 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->title}</th>
|
||||
<th scope="col">{$lang->writer}</th>
|
||||
<th scope="col">{$lang->status}</th>
|
||||
<th scope="col" class="nowr">{$lang->writer}</th>
|
||||
<th scope="col" class="nowr">{$lang->status}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -121,7 +121,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
|||
</div>
|
||||
<p class="q"><label for="message">{$lang->message_notice}</label></p>
|
||||
<p>
|
||||
<textarea cols="42" rows="3" name="message_content" id="message" style="width:98%"></textarea>
|
||||
<textarea rows="8" cols="42" name="message_content" id="message" style="width:98%"></textarea>
|
||||
</p>
|
||||
<div class="btnArea">
|
||||
<span class="btn"><button type="submit" name="type" value="trash">{$lang->cmd_trash}</button></span>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<tr>
|
||||
<th>{$lang->column_name}</th>
|
||||
<td >
|
||||
<input type="text" name="name" value="{$selected_var->name}" id="name" /><a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','name')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
|
||||
<input type="text" name="name" value="{htmlspecialchars($selected_var->name)}" id="name" /><a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','name')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -99,7 +99,7 @@
|
|||
<td rowspan="3">
|
||||
<!--@if($val->idx>1)--><a href="#" onclick="moveVar('up','{$module_srl}','{$val->idx}'); return false;" class="buttonSet buttonUp"><span>{$lang->cmd_move_up}</span></a><!--@end-->
|
||||
<a cond="count($extra_keys) > $val->idx" href="#" onclick="moveVar('down','{$module_srl}','{$val->idx}');return false;" class="buttonSet buttonDown">{$lang->cmd_move_down}</a>
|
||||
<a href="{getUrl('selected_var_idx',$val->idx)}" class="buttonSet buttonSetting"><span>{$lang->cmd_modify}</span></a>
|
||||
<a href="{getUrl('selected_var_idx',$val->idx)}" class="buttonSet buttonSetting"><span>{$lang->cmd_modify}...</span></a>
|
||||
<a href="#" onclick="return doDeleteExtraKey('{$module_srl}','{$val->idx}');" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ function doManageDocument(type) {
|
|||
/* 선택된 글의 삭제 또는 이동 후 */
|
||||
function completeManageDocument(ret_obj) {
|
||||
if(opener) {
|
||||
opener.window.location.href = opener.window.current_url.setQuery('document_srl','');
|
||||
opener.window.location.href = opener.window.current_url.setQuery('document_srl', '');
|
||||
}
|
||||
alert(ret_obj['message']);
|
||||
window.close();
|
||||
|
|
@ -141,8 +141,8 @@ function completeGetDocumentList(ret_obj, response_tags)
|
|||
var objDocument = document_list[x];
|
||||
htmlListBuffer += '<tr>' +
|
||||
'<td class="title">'+ objDocument.variables.title +'</td>' +
|
||||
'<td>'+ objDocument.variables.nick_name +'</td>' +
|
||||
'<td>'+ statusNameList[objDocument.variables.status] +'</td>' +
|
||||
'<td class="nowr">'+ objDocument.variables.nick_name +'</td>' +
|
||||
'<td class="nowr">'+ statusNameList[objDocument.variables.status] +'</td>' +
|
||||
'</tr>'+
|
||||
'<input type="hidden" name="cart[]" value="'+objDocument.document_srl+'" />';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<load target="./js/document_admin.js" usecdn="true" />
|
||||
<load target="./css/document.css" usecdn="true" />
|
||||
{$content}
|
||||
<div class="btnArea">
|
||||
<span class="btn"><button type="button" onclick="window.close();return false;">{$lang->cmd_close}</button></span>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<load target="./js/document_admin.js" usecdn="true" />
|
||||
<load target="./css/document.css" usecdn="true" />
|
||||
<h1 class="h1">{$oDocument->getTitleText()}</h1>
|
||||
<a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')}">{$oDocument->get('nick_name')}</a>
|
||||
{$oDocument->getRegdate()}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<load target="css/default.css" usecdn="true" />
|
||||
<h1 class="h1">{$lang->cmd_view_saved_document}</h1>
|
||||
<!-- 목록 -->
|
||||
<div class="table">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue