项目来源管理功能代码优化。

This commit is contained in:
Li Heng 2014-09-25 06:32:34 +00:00
parent 84cc8d6db9
commit 302ebbc2fb
2 changed files with 4 additions and 4 deletions

View File

@ -1659,7 +1659,7 @@ class Admin_DataController extends Zend_Controller_Action
else if($do == 'edit' && !empty($id)) else if($do == 'edit' && !empty($id))
{ {
if(!empty($_POST['submit'])) if(!empty($_POST['submit']) and $_POST['submit']==1)
{ {
try{ try{
$title = $this->_request->getParam('title'); $title = $this->_request->getParam('title');
@ -1688,6 +1688,7 @@ class Admin_DataController extends Zend_Controller_Action
# print_r($sql); # print_r($sql);
# exit(); # exit();
if($this->db->exec($sql)) if($this->db->exec($sql))
{ {
$this->messenger->addMessage('修改来源信息成功'); $this->messenger->addMessage('修改来源信息成功');
$this->_redirect("/admin/data/source/do/edit/id/$id"); $this->_redirect("/admin/data/source/do/edit/id/$id");

View File

@ -72,11 +72,10 @@
</div> </div>
<?php if(!empty($this->info['admin_email'])) { <?php if(!empty($this->info['admin_email'])) {
# 去除数组数据中的{}
$emailarry = explode(',',substr($this->info['admin_email'],1,-1)); $emailarry = explode(',',substr($this->info['admin_email'],1,-1));
$uuidarry = explode(',',substr($this->info['exclude_data'],1,-1)); $uuidarry = explode(',',substr($this->info['exclude_data'],1,-1));
# print_r($emailarry);
# exit();
?> ?>
<?php foreach($emailarry as $email):?> <?php foreach($emailarry as $email):?>