* modify file delete code of module story, task, doc, bug, testcase.
This commit is contained in:
@@ -534,13 +534,6 @@ class bug extends control
|
||||
}
|
||||
}
|
||||
|
||||
/* 删除一个文件。*/
|
||||
public function deleteFile($fileID)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
|
||||
/* 保存模板。*/
|
||||
public function saveTemplate()
|
||||
{
|
||||
|
||||
@@ -298,18 +298,4 @@ class doc extends control
|
||||
die(js::locate($this->session->docList, 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
/* 删除一个文件。*/
|
||||
public function deleteFile($fileID, $confirm = 'no')
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->doc->confirmDelete, inlink('deleteFile', "fileID=$fileID&confirm=yes")));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,5 +65,4 @@ $lang->doc->types['url'] = 'Link';
|
||||
$lang->doc->types['text'] = 'Html';
|
||||
|
||||
$lang->doc->confirmDeleteLib = " Are you sure to delete this doc library?";
|
||||
$lang->doc->confirmDelete = " Are you sure to delete this doc?";
|
||||
$lang->doc->errorEditSystemDoc = "System doc library needn't edit";
|
||||
|
||||
@@ -65,5 +65,4 @@ $lang->doc->types['url'] = 'リンク';
|
||||
$lang->doc->types['text'] = 'HTML形式';
|
||||
|
||||
$lang->doc->confirmDeleteLib = "あなたは、このドキュメントライブラリを削除しますか?";
|
||||
$lang->doc->confirmDelete = "あなたはこのドキュメントを削除しますか?";
|
||||
$lang->doc->errorEditSystemDoc = "システムドキュメントライブラリは必要はない編集";
|
||||
|
||||
@@ -65,5 +65,4 @@ $lang->doc->types['url'] = '링크';
|
||||
$lang->doc->types['text'] = 'html로';
|
||||
|
||||
$lang->doc->confirmDeleteLib = "당신이 의사 라이브러리를 삭제하시겠습니까?";
|
||||
$lang->doc->confirmDelete = "당신이 의사를 삭제하시겠습니까?";
|
||||
$lang->doc->errorEditSystemDoc = "시스템 의사 도서관은 필요 없어 편집";
|
||||
|
||||
@@ -65,5 +65,4 @@ $lang->doc->types['url'] = '链接';
|
||||
$lang->doc->types['text'] = '网页';
|
||||
|
||||
$lang->doc->confirmDeleteLib = " 您确定删除该文档库吗?";
|
||||
$lang->doc->confirmDelete = " 您确定删除该文档吗?";
|
||||
$lang->doc->errorEditSystemDoc = "系统文档库无需修改。";
|
||||
|
||||
@@ -65,5 +65,4 @@ $lang->doc->types['url'] = '鏈接';
|
||||
$lang->doc->types['text'] = '網頁';
|
||||
|
||||
$lang->doc->confirmDeleteLib = " 您確定刪除該文檔庫嗎?";
|
||||
$lang->doc->confirmDelete = " 您確定刪除該文檔嗎?";
|
||||
$lang->doc->errorEditSystemDoc = "系统文档库不需要修改";
|
||||
|
||||
@@ -92,4 +92,18 @@ class file extends control
|
||||
echo $csvData;
|
||||
die();
|
||||
}
|
||||
|
||||
/* 删除一个文件。*/
|
||||
public function deleteFile($fileID, $confirm = 'no')
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->file->confirmDelete, inlink('deleteFile', "fileID=$fileID&confirm=yes")));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,6 @@
|
||||
$lang->file->common = '附件';
|
||||
$lang->file->download = '下载附件';
|
||||
$lang->file->export2CSV = '导出CSV';
|
||||
$lang->file->label = '标题:';
|
||||
$lang->file->label = '标题:';
|
||||
|
||||
$lang->file->confirmDelete = " 您确定删除该附件吗?";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
function deleteFile(fileID)
|
||||
{
|
||||
if(!fileID) return;
|
||||
hiddenwin.location.href =createLink('doc', 'deleteFile', 'fileID=' + fileID);
|
||||
hiddenwin.location.href =createLink('file', 'deleteFile', 'fileID=' + fileID);
|
||||
}
|
||||
/* 下载文件。*/
|
||||
function downloadFile(fileID){
|
||||
|
||||
@@ -223,13 +223,6 @@ class story extends control
|
||||
}
|
||||
}
|
||||
|
||||
/* 删除一个文件。*/
|
||||
public function deleteFile($fileID)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
|
||||
/* 评审一条需求。*/
|
||||
public function review($storyID)
|
||||
{
|
||||
|
||||
@@ -303,13 +303,6 @@ class task extends control
|
||||
}
|
||||
}
|
||||
|
||||
/* 删除一个文件。*/
|
||||
public function deleteFile($fileID)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
|
||||
/* 发送邮件。*/
|
||||
private function sendmail($taskID, $actionID)
|
||||
{
|
||||
|
||||
@@ -255,13 +255,6 @@ class testcase extends control
|
||||
}
|
||||
}
|
||||
|
||||
/* 删除一个文件。*/
|
||||
public function deleteFile($fileID)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_FILE)->where('id')->eq($fileID)->exec();
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
|
||||
/* 确认需求变动。*/
|
||||
public function confirmStoryChange($caseID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user