#388 修改Ajax验证时的bug

This commit is contained in:
Li Jianxuan 2012-09-06 02:32:45 +00:00
parent 15e2cfb8f2
commit 873b29d9dd
1 changed files with 7 additions and 7 deletions

View File

@ -881,7 +881,7 @@ class DataController extends Zend_Controller_Action
<tr><td class="first">项目编号</td><td><input type="text" name="projectid" value="'.$datas['project_id'].'"/></td></tr>
<tr><td class="first">项目名称</td><td><input type="text" name="projecttitle" value="'.$datas['project_title'].'"/></td></tr>
<tr><td class="first">项目类型</td><td><select name="projecttype">
<option value="" '.($datas['project_type']==''?'selected="selected"':'').'></option>
<option value="0" '.($datas['project_type']==''?'selected="selected"':'').'></option>
<option value="国家973计划项目课题" '.($datas['project_type']=='国家973计划项目课题'?'selected="selected"':'').'>国家973计划项目课题</option>
<option value="国家863计划课题" '.($datas['project_type']=='国家863计划课题'?'selected="selected"':'').'>国家863计划课题</option>
<option value="国家级科技支撑课题" '.($datas['project_type']=='国家级科技支撑课题'?'selected="selected"':'').'>国家级科技支撑课题</option>
@ -962,7 +962,7 @@ class DataController extends Zend_Controller_Action
foreach($datas as $k=>$v)
{
if(empty($v))
if($v == '')
{
echo $form.'<script>alert("每一项内容都需要填写")</script>';
exit();
@ -1163,14 +1163,14 @@ class DataController extends Zend_Controller_Action
} elseif (!$updateftp1 && $p['host']=='ftp1.westgis.ac.cn')
{
//添加FTP1帐号信息以及时间控制信息只更新一次
$updateftp1=true;
$proftp=new Proftp();
//proftp离线用户名和g6的用户名稍有不同
$this->view->username='westdc_'.Zend_Auth::getInstance()->getIdentity()->id;
$updateftp1=true;
$proftp=new Proftp();
//proftp离线用户名和g6的用户名稍有不同
$this->view->username='westdc_'.Zend_Auth::getInstance()->getIdentity()->id;
$uu=(object)array("id"=>$userid,
"username"=>$this->view->username,
"password"=>$this->view->userpass,
"host"=>'ftp1.westgis.ac.cn',
"host"=>'ftp1.westgis.ac.cn',
"param"=>"onlineappid=".$onlineappid,
"maxdata"=>$this->view->config->download->max,
"time"=>$this->view->ftptime,