* Fix bug.
This commit is contained in:
@@ -594,12 +594,11 @@ class doc extends control
|
||||
*/
|
||||
public function sort($type = '')
|
||||
{
|
||||
if($_POST)
|
||||
if($_SERVER['REQUEST_METHOD'] == 'POST')
|
||||
{
|
||||
foreach($_POST as $id => $order)
|
||||
{
|
||||
$this->dao->update(TABLE_DOCLIB)->set('order')->eq($order)->where('id')->eq($id)->exec();
|
||||
}
|
||||
if(empty($_POST)) $this->send(array('result' => 'fail', 'message' => $this->lang->doc->errorEmptyLib));
|
||||
foreach($_POST as $id => $order) $this->dao->update(TABLE_DOCLIB)->set('order')->eq($order)->where('id')->eq($id)->exec();
|
||||
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
$this->send(array('result' => 'success'));
|
||||
}
|
||||
|
||||
@@ -171,6 +171,7 @@ $lang->doc->noSearchedDoc = 'Nichts gesucht.';
|
||||
$lang->doc->noEditedDoc = 'Sie haben kein Dokument bearbeitet.';
|
||||
$lang->doc->noOpenedDoc = 'Sie haben kein Dokument erstellt.';
|
||||
$lang->doc->noCollectedDoc = 'Sie haben kein Dokument gesammelt.';
|
||||
$lang->doc->errorEmptyLib = 'No data in document library.';
|
||||
|
||||
$lang->doc->noticeAcl['lib']['product']['default'] = 'Users who can access the selected product can access it.';
|
||||
$lang->doc->noticeAcl['lib']['product']['custom'] = 'Users who can access the selected product or users in the whiltelist can access it.';
|
||||
|
||||
@@ -171,6 +171,7 @@ $lang->doc->noSearchedDoc = 'No documents found.';
|
||||
$lang->doc->noEditedDoc = 'You have not edited any documents.';
|
||||
$lang->doc->noOpenedDoc = 'You have not created any documents.';
|
||||
$lang->doc->noCollectedDoc = 'You have not favorited any documents.';
|
||||
$lang->doc->errorEmptyLib = 'No data in document library.';
|
||||
|
||||
$lang->doc->noticeAcl['lib']['product']['default'] = 'Users who can access the selected product can access it.';
|
||||
$lang->doc->noticeAcl['lib']['product']['custom'] = 'Users who can access the selected product or users in the whiltelist can access it.';
|
||||
|
||||
@@ -171,6 +171,7 @@ $lang->doc->noSearchedDoc = 'Aucun documents trouvé.';
|
||||
$lang->doc->noEditedDoc = "Vous n'avez pas mis à jour de documents.";
|
||||
$lang->doc->noOpenedDoc = "Vous n'avez pas ajouté de documents.";
|
||||
$lang->doc->noCollectedDoc = "Vous avez aucun document dans vos favoris.";
|
||||
$lang->doc->errorEmptyLib = 'No data in document library.';
|
||||
|
||||
$lang->doc->noticeAcl['lib']['product']['default'] = 'Les utilisateurs qui ont accès au Product peuvent y accéder.';
|
||||
$lang->doc->noticeAcl['lib']['product']['custom'] = 'Les utilisateurs qui ont accès au Product ou les utilisateurs de la Liste Blanche peuvent y accéder.';
|
||||
|
||||
@@ -136,11 +136,6 @@ $lang->doc->fastMenuList['byediteddate'] = 'Recent Edited';
|
||||
$lang->doc->fastMenuList['openedbyme'] = 'My tài liệu';
|
||||
$lang->doc->fastMenuList['collectedbyme'] = 'My Favorites';
|
||||
|
||||
$lang->doc->fastMenuList['byediteddate'] = 'Recent Edited';
|
||||
//$lang->doc->fastMenuList['visiteddate'] = 'Recently Visited';
|
||||
$lang->doc->fastMenuList['openedbyme'] = 'My tài liệu';
|
||||
$lang->doc->fastMenuList['collectedbyme'] = 'My Favorites';
|
||||
|
||||
$lang->doc->fastMenuIconList['byediteddate'] = 'icon-folder-upload';
|
||||
//$lang->doc->fastMenuIconList['visiteddate'] = 'icon-folder-move';
|
||||
$lang->doc->fastMenuIconList['openedbyme'] = 'icon-folder-account';
|
||||
@@ -149,8 +144,8 @@ $lang->doc->fastMenuIconList['collectedbyme'] = 'icon-folder-star';
|
||||
$lang->doc->customObjectLibs['files'] = 'Hiện Attachment thư viện';
|
||||
$lang->doc->customObjectLibs['customFiles'] = 'Hiện Custom thư viện';
|
||||
|
||||
$lang->doc->orderLib = 'Đánh giá Thiết lập';
|
||||
$lang->doc->customShowLibs = 'Display Thiết lập';
|
||||
$lang->doc->orderLib = 'Đánh giá Thiết lập';
|
||||
$lang->doc->customShowLibs = 'Display Thiết lập';
|
||||
$lang->doc->customShowLibsList['zero'] = 'Display Empty thư viện';
|
||||
$lang->doc->customShowLibsList['children'] = 'Display Child-category tài liệu';
|
||||
$lang->doc->customShowLibsList['unclosed'] = "Display Active {$lang->projectCommon} Only";
|
||||
@@ -176,6 +171,7 @@ $lang->doc->noSearchedDoc = 'Không có documents found.';
|
||||
$lang->doc->noEditedDoc = 'Bạn có not edited any documents.';
|
||||
$lang->doc->noOpenedDoc = 'Bạn chưa tạo any documents.';
|
||||
$lang->doc->noCollectedDoc = 'Bạn có not favorited any documents.';
|
||||
$lang->doc->errorEmptyLib = 'No data in document library.';
|
||||
|
||||
$lang->doc->noticeAcl['lib']['product']['default'] = 'Users who can access the selected product có thể truy cập nó.';
|
||||
$lang->doc->noticeAcl['lib']['product']['custom'] = 'Users who can access the selected product or users in the whiltelist có thể truy cập nó.';
|
||||
|
||||
@@ -171,6 +171,7 @@ $lang->doc->noSearchedDoc = '没有搜索到任何文档。';
|
||||
$lang->doc->noEditedDoc = '您还没有编辑任何文档。';
|
||||
$lang->doc->noOpenedDoc = '您还没有创建任何文档。';
|
||||
$lang->doc->noCollectedDoc = '您还没有收藏任何文档。';
|
||||
$lang->doc->errorEmptyLib = '文档库暂无数据。';
|
||||
|
||||
$lang->doc->noticeAcl['lib']['product']['default'] = '有所选产品访问权限的用户可以访问。';
|
||||
$lang->doc->noticeAcl['lib']['product']['custom'] = '有所选产品访问权限或白名单里的用户可以访问。';
|
||||
|
||||
@@ -148,7 +148,7 @@ $lang->doc->orderLib = '文檔庫排序';
|
||||
$lang->doc->customShowLibs = '顯示設置';
|
||||
$lang->doc->customShowLibsList['zero'] = '顯示空文檔的庫';
|
||||
$lang->doc->customShowLibsList['children'] = '顯示子分類的文檔';
|
||||
$lang->doc->customShowLibsList['unclosed'] = '只顯示未關閉的項目';
|
||||
$lang->doc->customShowLibsList['unclosed'] = '只顯示未關閉的' . $lang->projectCommon;
|
||||
|
||||
$lang->doc->mail = new stdclass();
|
||||
$lang->doc->mail->create = new stdclass();
|
||||
@@ -171,6 +171,7 @@ $lang->doc->noSearchedDoc = '沒有搜索到任何文檔。';
|
||||
$lang->doc->noEditedDoc = '您還沒有編輯任何文檔。';
|
||||
$lang->doc->noOpenedDoc = '您還沒有創建任何文檔。';
|
||||
$lang->doc->noCollectedDoc = '您還沒有收藏任何文檔。';
|
||||
$lang->doc->errorEmptyLib = '文檔庫暫無數據。';
|
||||
|
||||
$lang->doc->noticeAcl['lib']['product']['default'] = '有所選產品訪問權限的用戶可以訪問。';
|
||||
$lang->doc->noticeAcl['lib']['product']['custom'] = '有所選產品訪問權限或白名單裡的用戶可以訪問。';
|
||||
|
||||
Reference in New Issue
Block a user