#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();