区分不同的错误

This commit is contained in:
wlx 2009-12-24 14:04:59 +00:00
parent 620afdfaec
commit 22b93335cb
1 changed files with 4 additions and 1 deletions

View File

@ -754,7 +754,10 @@ class DataController extends Zend_Controller_Action
$sql=$this->db->quoteInto("select title,uuid from metadata where uuid=?",$uuid); $sql=$this->db->quoteInto("select title,uuid from metadata where uuid=?",$uuid);
$this->view->md=$this->db->fetchRow($sql); $this->view->md=$this->db->fetchRow($sql);
} else { } else {
$this->view->msg="错误:您正在进行的离线申请的数据数已经超过系统允许的最大值,请在完成本次离线申请后再进行操作!或者您申请的数据已经在数据蓝中。"; if ($r1['datacount']>=1)
$this->view->msg="错误:您申请的数据已经在数据蓝中!";
else
$this->view->msg="错误:您正在进行的离线申请的数据数已经超过系统允许的最大值,请在完成本次离线申请后再进行操作!";
} }
} elseif ($del) { } elseif ($del) {
//删除数据申请 //删除数据申请