#388 修改Ajax验证时的bug
This commit is contained in:
parent
15e2cfb8f2
commit
873b29d9dd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue