项目来源管理功能代码优化。
This commit is contained in:
parent
84cc8d6db9
commit
302ebbc2fb
|
@ -1659,7 +1659,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
else if($do == 'edit' && !empty($id))
|
||||
{
|
||||
|
||||
if(!empty($_POST['submit']))
|
||||
if(!empty($_POST['submit']) and $_POST['submit']==1)
|
||||
{
|
||||
try{
|
||||
$title = $this->_request->getParam('title');
|
||||
|
@ -1688,6 +1688,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
# print_r($sql);
|
||||
# exit();
|
||||
if($this->db->exec($sql))
|
||||
|
||||
{
|
||||
$this->messenger->addMessage('修改来源信息成功');
|
||||
$this->_redirect("/admin/data/source/do/edit/id/$id");
|
||||
|
|
|
@ -72,11 +72,10 @@
|
|||
</div>
|
||||
|
||||
<?php if(!empty($this->info['admin_email'])) {
|
||||
|
||||
# 去除数组数据中的{}
|
||||
$emailarry = explode(',',substr($this->info['admin_email'],1,-1));
|
||||
$uuidarry = explode(',',substr($this->info['exclude_data'],1,-1));
|
||||
# print_r($emailarry);
|
||||
# exit();
|
||||
|
||||
?>
|
||||
|
||||
<?php foreach($emailarry as $email):?>
|
||||
|
|
Loading…
Reference in New Issue