增加项目类型、编号、标题的自动提取功能

This commit is contained in:
wlx 2012-06-07 10:17:10 +00:00
parent bee9d5063f
commit 504abe8ddf
1 changed files with 19 additions and 13 deletions

View File

@ -832,18 +832,18 @@ class DataController extends Zend_Controller_Action
<tr><td class="first">联系地址</td><td><input type="text" name="address" value="'.$datas['address'].'"/></td></tr>
<tr><td class="first">邮政编码</td><td><input type="text" name="postcode" value="'.$datas['postcode'].'"/></td></tr>
<tr><td class="first">电子邮箱</td><td><input type="text" name="email" value="'.$datas['email'].'"/></td></tr>
<tr><td class="first">项目编号</td><td><input type="text" name="projectid" /></td></tr>
<tr><td class="first">项目名称</td><td><input type="text" name="projecttitle" /></td></tr>
<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="国家973计划项目课题">国家973计划项目课题</option>
<option value="国家863计划课题">国家863计划课题</option>
<option value="国家级科技支撑课题">国家级科技支撑课题</option>
<option value="国家级科技重大专项">国家级科技重大专项</option>
<option value="国家级国家重大工程">国家级国家重大工程</option>
<option value="国家级国家自然科学基金">国家级国家自然科学基金</option>
<option value="国际合作项目">国际合作项目</option>
<option value="省部级项目">省部级项目</option>
<option value="其他项目工程">其他项目工程</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>
<option value="国家级科技重大专项" '.($datas['project_type']=='国家级科技重大专项'?'selected="selected"':'').'>国家级科技重大专项</option>
<option value="国家级国家重大工程" '.($datas['project_type']=='国家级国家重大工程'?'selected="selected"':'').'>国家级国家重大工程</option>
<option value="国家级国家自然科学基金" '.($datas['project_type']=='国家级国家自然科学基金'?'selected="selected"':'').'>国家级国家自然科学基金</option>
<option value="国际合作项目" '.($datas['project_type']=='国际合作项目'?'selected="selected"':'').'>国际合作项目</option>
<option value="省部级项目" '.($datas['project_type']=='省部级项目'?'selected="selected"':'').'>省部级项目</option>
<option value="其他项目工程" '.($datas['project_type']=='其他项目工程'?'selected="selected"':'').'>其他项目工程</option>
</select></td></tr>
<tr><td class="first">项目说明</td><td><textarea name="project" class="half">'.$datas['project'].'</textarea></td></tr>
</table>
@ -983,9 +983,12 @@ class DataController extends Zend_Controller_Action
$datas['unit'] = $rows['unit'];
$datas['phone'] = $rows['phone'];
$datas['address'] = $rows['address'];
//$datas['postcode'] = $rows['postcode'];
$datas['postcode'] = $rows['postcode'];
$datas['email'] = $rows['email'];
$datas['project'] = $rows['project'];
$datas['project_id'] = $rows['project_id'];
$datas['project_type'] = $rows['project_type'];
$datas['project_title'] = $rows['project_title'];
echo $this->creatform($datas);
exit();
@ -999,6 +1002,9 @@ class DataController extends Zend_Controller_Action
$datas['postcode'] = $rows['postcode'];
$datas['email'] = $rows['email'];
$datas['project'] = $rows['project'];
$datas['project_id'] = $rows['project_id'];
$datas['project_type'] = $rows['project_type'];
$datas['project_title'] = $rows['project_title'];
echo $this->creatform($datas);
exit();