修改了项目负责人字段的名称,在线申请表中也添加了项目负责人字段
This commit is contained in:
parent
c5503be20a
commit
b2a756cd87
|
@ -1304,6 +1304,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$datas['project_id'] = $rows['project_id'];
|
$datas['project_id'] = $rows['project_id'];
|
||||||
$datas['project_type'] = $rows['project_type'];
|
$datas['project_type'] = $rows['project_type'];
|
||||||
$datas['project_title'] = $rows['project_title'];
|
$datas['project_title'] = $rows['project_title'];
|
||||||
|
$datas['project_leader'] = $rows['project_leader'];
|
||||||
$this->view->info = $datas;
|
$this->view->info = $datas;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1325,6 +1326,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$datas['project_id'] = $this->_request->getParam('projectid');
|
$datas['project_id'] = $this->_request->getParam('projectid');
|
||||||
$datas['project_type'] = $this->_request->getParam('projecttype');
|
$datas['project_type'] = $this->_request->getParam('projecttype');
|
||||||
$datas['project_title'] = $this->_request->getParam('projecttitle');
|
$datas['project_title'] = $this->_request->getParam('projecttitle');
|
||||||
|
$datas['project_leader'] = $this->_request->getParam('projectleader');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1377,7 +1379,8 @@ class DataController extends Zend_Controller_Action
|
||||||
'email' =>$datas['email'],
|
'email' =>$datas['email'],
|
||||||
'project_id'=>$datas['project_id'],
|
'project_id'=>$datas['project_id'],
|
||||||
'project_title'=>$datas['project_title'],
|
'project_title'=>$datas['project_title'],
|
||||||
'project_type'=>$datas['project_type']
|
'project_type'=>$datas['project_type'],
|
||||||
|
'project_leader'=>$datas['project_leader']
|
||||||
);
|
);
|
||||||
|
|
||||||
if($this->db->insert('onlineapp',$data))
|
if($this->db->insert('onlineapp',$data))
|
||||||
|
@ -1420,7 +1423,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$datas['project_id'] = $rows['project_id'];
|
$datas['project_id'] = $rows['project_id'];
|
||||||
$datas['project_type'] = $rows['project_type'];
|
$datas['project_type'] = $rows['project_type'];
|
||||||
$datas['project_title'] = $rows['project_title'];
|
$datas['project_title'] = $rows['project_title'];
|
||||||
|
$datas['project_leader'] = $rows['project_leader'];
|
||||||
echo $this->creatform($datas);
|
echo $this->creatform($datas);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
@ -1436,7 +1439,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$datas['project_id'] = $rows['project_id'];
|
$datas['project_id'] = $rows['project_id'];
|
||||||
$datas['project_type'] = $rows['project_type'];
|
$datas['project_type'] = $rows['project_type'];
|
||||||
$datas['project_title'] = $rows['project_title'];
|
$datas['project_title'] = $rows['project_title'];
|
||||||
|
$datas['project_leader'] = $rows['project_leader'];
|
||||||
echo $this->creatform($datas);
|
echo $this->creatform($datas);
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,6 +111,12 @@
|
||||||
<input class="input-block-level" type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" />
|
<input class="input-block-level" type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="control-group ">
|
||||||
|
<label class="control-label">项目负责人</label>
|
||||||
|
<div class="controls">
|
||||||
|
<input class="input-block-level" type="text" name="project_leader" value="<?php echo empty($this->info['project_leader']) ? "":$this->info['project_leader']; ?>" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">数据用途</label>
|
<label class="control-label">数据用途</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="leader">项目负责人</label>
|
<label class="control-label" name="leader">项目负责人</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="leader" id="leader" value="<?= empty($this->formData['leader']) ? "":$this->formData['leader']?>" helper="formText" class="input">
|
<input type="text" name="project_leader" id="leader" value="<?= empty($this->formData['project_leader']) ? "":$this->formData['project_leader']?>" helper="formText" class="input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ class PdfForm implements \Order\listener\PdfFormEvents
|
||||||
return "请填写项目标题";
|
return "请填写项目标题";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($formData['leader']))
|
if(empty($formData['project_leader']))
|
||||||
{
|
{
|
||||||
return "请填写项目负责人";
|
return "请填写项目负责人";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue