标签:
<tr>
<td>
<p class="short-input ue-clear">
<label>安监员ID:</label>
<input type="text" id="saferid" name="saferid" readonly/>
</p>
</td>
<td>
<p class="short-input ue-clear">
<label>安监员姓名:</label>
<select class="l-select" name="safername" id="safername">
<?php echo Ousuclass::all_html_option($saferofferlist,‘id‘, ‘fullname‘) ?>
</select>
<span><em>*</em></span> //*号标记
</p>
</td>
</tr>
$("select[name=safername]").change(function(){
$("input[name=saferid]").val($("select[name=safername]").val());
})
<?php
public function getSafetyOfficerList()
{
$sql = "select * from sysusers where accounttype = ‘安监员‘ and isenable = ‘Y‘";
$query = $this->db->query($sql);
return $query->result_array();
}
$data[‘saferofferlist‘] =$this->getSafetyOfficerlist()
?>
标签:
原文地址:http://www.cnblogs.com/lqw4/p/4653855.html