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:
devjin 2012-03-20 08:03:02 +00:00
parent 6c23751ef8
commit c727926d9e
382 changed files with 6855 additions and 3603 deletions

View file

@ -26,7 +26,7 @@
<title xml:lang="es">File</title>
<title xml:lang="ru">File</title>
<title xml:lang="fr">File</title>
<title xml:lang="zh-TW">File</title>
<title xml:lang="zh-TW">附加檔案</title>
<title xml:lang="vi">File</title>
<title xml:lang="mn">File</title>
<title xml:lang="tr">File</title>
@ -39,7 +39,7 @@
<title xml:lang="es">File Upload</title>
<title xml:lang="ru">File Upload</title>
<title xml:lang="fr">File Upload</title>
<title xml:lang="zh-TW">File Upload</title>
<title xml:lang="zh-TW">檔案上傳</title>
<title xml:lang="vi">File Upload</title>
<title xml:lang="mn">File Upload</title>
<title xml:lang="tr">File Upload</title>

View file

@ -121,7 +121,7 @@
$sid = Context::get('sid');
$logged_info = Context::get('logged_info');
// Get file information from the DB
$columnList = array('file_srl', 'sid', 'isvalid', 'source_filename', 'module_srl', 'uploaded_filename', 'file_size', 'member_srl', 'upload_target_srl');
$columnList = array('file_srl', 'sid', 'isvalid', 'source_filename', 'module_srl', 'uploaded_filename', 'file_size', 'member_srl', 'upload_target_srl', 'upload_target_type');
$file_obj = $oFileModel->getFile($file_srl, $columnList);
// If the requested file information is incorrect, an error that file cannot be found appears
if($file_obj->file_srl!=$file_srl || $file_obj->sid!=$sid) return $this->stop('msg_file_not_found');

View file

@ -139,11 +139,15 @@
else
{
$fileList = array();
foreach($output->data AS $key=>$value)
if(is_array($output->data))
{
$file = $value;
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
array_push($fileList, $file);
foreach($output->data as $key=>$value)
{
$file = $value;
$file->download_url = $this->getDownloadUrl($file->file_srl, $file->sid);
array_push($fileList, $file);
}
}
return $fileList;
}
@ -152,9 +156,9 @@
/**
* @brief Return all files which belong to a specific document
**/
function getFiles($upload_target_srl, $columnList = array()) {
function getFiles($upload_target_srl, $columnList = array(), $sortIndex = 'file_srl') {
$args->upload_target_srl = $upload_target_srl;
$args->sort_index = 'file_srl';
$args->sort_index = $sortIndex;
$output = executeQuery('file.getFiles', $args, $columnList);
if(!$output->data) return;

View file

@ -153,16 +153,16 @@
<value xml:lang="vi"><![CDATA[Dung lượng file đính kèm]]></value>
</item>
<item name="allowed_filetypes">
<value xml:lang="ko"><![CDATA[허용 확장자만 첨부할 수 있습니다.(관리자는 제외)]]></value>
<value xml:lang="en"><![CDATA[Only allowed extentsions can be attached. (Exclude Administrators)]]></value>
<value xml:lang="jp"><![CDATA[ここで指定された種類のファイルのみ添付できます。(管理者は制限無し)]]></value>
<value xml:lang="zh-CN"><![CDATA[只允许上传指定的扩展名。 (管理员不受此限制)]]></value>
<value xml:lang="zh-TW"><![CDATA[設定允許上傳的檔案類型。 (管理員不受此限制)]]></value>
<value xml:lang="fr"><![CDATA[Extensions consentis seulement peuvent etre attaches. (Exclure Administrateurs)]]></value>
<value xml:lang="ru"><![CDATA[Только файлы с разрешенными расширениями могут быть вложены. (Исключая администраторов)]]></value>
<value xml:lang="es"><![CDATA[Puede definir las extensiones de los archivos permitidos. (exceptuando el administrador)]]></value>
<value xml:lang="tr"><![CDATA[Sadece izin verilen uzantılar iliştirilebilir. (Yöneticilerin tercihleri sınırlandırılmaz)]]></value>
<value xml:lang="vi"><![CDATA[Chỉ được phép đính kèm những File có đuôi được liệt kê trong danh sách. (Ngoại trừ Administrators)]]></value>
<value xml:lang="ko"><![CDATA[허용 확장자]]></value>
<value xml:lang="en"><![CDATA[Allowed extentsions]]></value>
<value xml:lang="jp"><![CDATA[ここで指定された種類のファイルのみ添付できます。]]></value>
<value xml:lang="zh-CN"><![CDATA[只允许上传指定的扩展名。></value>
<value xml:lang="zh-TW"><![CDATA[設定允許上傳的檔案類型。]]></value>
<value xml:lang="fr"><![CDATA[Extensions consentis seulement peuvent etre attaches.]]></value>
<value xml:lang="ru"><![CDATA[Только файлы с разрешенными расширениями могут быть вложены.]]></value>
<value xml:lang="es"><![CDATA[Puede definir las extensiones de los archivos permitidos.]]></value>
<value xml:lang="tr"><![CDATA[Sadece izin verilen uzantılar iliştirilebilir.]]></value>
<value xml:lang="vi"><![CDATA[Chỉ được phép đính kèm những File có đuôi được liệt kê trong danh sách.]]></value>
</item>
<item name="enable_download_group">
<value xml:lang="ko"><![CDATA[다운로드 가능 그룹]]></value>
@ -236,7 +236,7 @@
<value xml:lang="en"><![CDATA[To allow an extension, use "*.[extention]". To allow multiple extensions, use ";" between each extension. ex) *.* or *.jpg;*.gif; ]]></value>
<value xml:lang="jp"><![CDATA["*.拡張子"で指定し、 ";"で区切って任意の拡張子を追加して指定できます。ex) *.* or *.jpg;*.gif; ]]></value>
<value xml:lang="zh-CN"><![CDATA[可以用"*.扩展名"来指定或用 ";"来 区分多个扩展名 例) *.* or *.jpg;*.gif;]]></value>
<value xml:lang="zh-TW"><![CDATA[可以用"*.副檔名"來指定或用分號";"來區隔多個副檔名。 例) *.* or *.jpg; *.gif;]]></value>
<value xml:lang="zh-TW"><![CDATA[可以用 "*.副檔名" 來指定或用分號 ";" 來區隔多個副檔名。 例) *.* or *.jpg; *.gif;]]></value>
<value xml:lang="fr"><![CDATA[Pour consentir une extension, utilisez "*.[extention]". Pour consentir plusieurs extensions, utilisez ";" entre chaque extension. ex) *.* ou *.jpg;*.gif;]]></value>
<value xml:lang="ru"><![CDATA[Чтобы разрешить расширение, ипользуйте "*.расширение". Чтобы разрешить несколько расширений, используйте ";" между ними. например: *.* или *.jpg;*.gif;]]></value>
<value xml:lang="es"><![CDATA[Para permitir una extensión use "*.extensión". Para permitir más de una extensión use ";". ej) *.* o *.jpg;*.gif;etc.]]></value>
@ -294,8 +294,8 @@
<value xml:lang="ko"><![CDATA[삭제할 파일을 선택해주세요.]]></value>
<value xml:lang="en"><![CDATA[Please select a file(s) to delete.]]></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-CN"><![CDATA[请选择要删除的文件。]]></value>
<value xml:lang="zh-TW"><![CDATA[請選擇要刪除的檔案。]]></value>
<value xml:lang="fr"><![CDATA[Choisissez un(des) fichier(s) a supprimer]]></value>
<value xml:lang="ru"><![CDATA[Выберите файл, который Вы хотите удалить]]></value>
<value xml:lang="es"><![CDATA[Seleccione el archivo a eliminar]]></value>
@ -458,7 +458,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>
@ -469,6 +469,7 @@
<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>
<item name="msg_not_allowed_outlink">
@ -488,6 +489,7 @@
<value xml:lang="en"><![CDATA[Failed to create a file or directory.]]></value>
<value xml:lang="jp"><![CDATA[ファイルまたはディレクトリを生成できません。]]></value>
<value xml:lang="zh-CN"><![CDATA[无法生成文件或文件夹。]]></value>
<value xml:lang="zh-TW"><![CDATA[無法建立檔案或目錄。]]></value>
<value xml:lang="tr"><![CDATA[Dosya veya dizin oluşturma hatası.]]></value>
</item>
<item name="msg_file_upload_error">
@ -495,21 +497,25 @@
<value xml:lang="en"><![CDATA[An error has occurred during uploading.]]></value>
<value xml:lang="jp"><![CDATA[ファイルのアップロードに失敗しました。]]></value>
<value xml:lang="zh-CN"><![CDATA[上传文件发生出错。]]></value>
<value xml:lang="zh-TW"><![CDATA[檔案上傳失敗。]]></value>
<value xml:lang="tr"><![CDATA[Karşıya yükleme esnasında bir hata oluştu.]]></value>
</item>
<item name="no_files">
<value xml:lang="ko"><![CDATA[파일이 없습니다.]]></value>
<value xml:lang="en"><![CDATA[No Files]]></value>
<value xml:lang="jp"><![CDATA[ファイルがありません。]]></value>
<value xml:lang="zh-TW"><![CDATA[無任何附檔。]]></value>
</item>
<item name="file_manager">
<value xml:lang="ko"><![CDATA[선택한 파일 관리]]></value>
<value xml:lang="en"><![CDATA[Manage selected files]]></value>
<value xml:lang="jp"><![CDATA[選択ファイル管理]]></value>
<value xml:lang="zh-TW"><![CDATA[管理所選附檔]]></value>
</item>
<item name="selected_file">
<value xml:lang="ko"><![CDATA[선택한 파일]]></value>
<value xml:lang="en"><![CDATA[Selected files]]></value>
<value xml:lang="jp"><![CDATA[選択ファイル]]></value>
<value xml:lang="zh-TW"><![CDATA[所選擇的附檔]]></value>
</item>
</lang>

View file

@ -24,7 +24,7 @@
<li style="display:none"|cond="$config->allow_outlink == 'N'" class="_outLink">
<p class="q">{$lang->allow_outlink_site}</p>
<p class="a">
<textarea type="text" name="allow_outlink_site">{$config->allow_outlink_site}</textarea>
<textarea type="text" name="allow_outlink_site" rows="8" cols="42">{$config->allow_outlink_site}</textarea>
<p>{$lang->about_allow_outlink_site}</p>
</p>
</li>

View file

@ -29,7 +29,7 @@
<tr>
<th scope="col">{$lang->allow_outlink_site}</th>
<td class="text">
<textarea name="allow_outlink_site" class="fullWidth">{$config->allow_outlink_site}</textarea>
<textarea name="allow_outlink_site" rows="8" cols="42">{$config->allow_outlink_site}</textarea>
<p>{$lang->about_allow_outlink_site}</p>
</td>
</tr>

View file

@ -30,24 +30,24 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<thead>
<tr>
<th scope="col" class="text">{$lang->file}</th>
<th scope="col">{$lang->file_size}</th>
<th scope="col">{$lang->cmd_download}</th>
<th scope="col">{$lang->author}</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->file_size}</th>
<th scope="col" class="nowr">{$lang->cmd_download}</th>
<th scope="col" class="nowr">{$lang->author}</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="text">{$lang->file}</th>
<th scope="col">{$lang->file_size}</th>
<th scope="col">{$lang->cmd_download}</th>
<th scope="col">{$lang->author}</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->file_size}</th>
<th scope="col" class="nowr">{$lang->cmd_download}</th>
<th scope="col" class="nowr">{$lang->author}</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>
@ -88,18 +88,18 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<!-- one document end -->
<tr>
<td class="text"><a href="{$val->download_url}">{htmlspecialchars($val->source_filename)}</a></td>
<td>{FileHandler::filesize($val->file_size)}</td>
<td>{$val->download_count}</td>
<td>
<td class="nowr">{FileHandler::filesize($val->file_size)}</td>
<td class="nowr">{$val->download_count}</td>
<td class="nowr">
<!--@if($val->upload_target_type == 'doc' && $document_list[$document_srl])-->
<a href="#popup_menu_area" class="member_{$document_list[$document_srl]->get('member_srl')}">{$document_list[$document_srl]->getNickName()}</a>
<!--@elseif($val->upload_target_type == 'com' && $comment_list[$val->upload_target_srl])-->
<a href="#popup_menu_area" class="member_{$comment_list[$val->upload_target_srl]->get('member_srl')}">{$comment_list[$val->upload_target_srl]->getNickName()}</a>
<!--@end-->
</td>
<td>{zdate($val->regdate,"Y-m-d H:i")}</td>
<td><a href="{getUrl('search_target','ipaddress','search_keyword',$val->ipaddress)}">{$val->ipaddress}</a></td>
<td><!--@if($val->isvalid=='Y')-->{$lang->is_valid}<!--@else-->{$lang->is_stand_by}<!--@end--></td>
<td class="nowr">{zdate($val->regdate,"Y-m-d H:i")}</td>
<td class="nowr"><a href="{getUrl('search_target','ipaddress','search_keyword',$val->ipaddress)}">{$val->ipaddress}</a></td>
<td class="nowr"><!--@if($val->isvalid=='Y')-->{$lang->is_valid}<!--@else-->{$lang->is_stand_by}<!--@end--></td>
<td>
<input type="checkbox" name="cart" value="{$val->file_srl}" />
</td>
@ -124,9 +124,8 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<thead>
<tr>
<th scope="col" class="text">{$lang->file}</th>
<th scope="col">{$lang->file_size}</th>
<th scope="col">{$lang->nick_name}</th>
<th scope="col">{$lang->status}</th>
<th scope="col" class="nowr">{$lang->file_size}</th>
<th scope="col" class="nowr">{$lang->status}</th>
</tr>
</thead>
<tbody>

View file

@ -34,9 +34,8 @@ function completeGetFileList(ret_obj, response_tags)
var objFile = file_list[x];
htmlListBuffer += '<tr>' +
'<td class="text">'+objFile.source_filename+'</td>' +
'<td>'+objFile.human_file_size+'</td>' +
'<td></td>' +
'<td>'+objFile.validName+'</td>' +
'<td class="nowr">'+objFile.human_file_size+'</td>' +
'<td class="nowr">'+objFile.validName+'</td>' +
'</tr>' +
'<input type="hidden" name="cart[]" value="'+objFile.file_srl+'" />';
}