奖罚编辑部分字段只读

master
zhengchanglong 5 years ago
parent 2361c6502a
commit e55bfcb2d8

@ -68,14 +68,20 @@
<input type="hidden" name="id" value="{$data.id}" /> <input type="hidden" name="id" value="{$data.id}" />
<li> <li>
<label>奖惩类型</label> <label>奖惩类型</label>
<select id="reward_type" name="reward_type" class="select_gallery"> <?php if ($data):?>
<input type="hidden" name="reward_type" value="{$data['reward_type']}">
<?php endif;?>
<select id="reward_type" name="reward_type" class="select_gallery" <?php if ($data):?> disabled<?php endif;?>>
<option value="1" <?php if ($data['reward_type'] == 1):?>selected<?php endif;?>>奖励</option> <option value="1" <?php if ($data['reward_type'] == 1):?>selected<?php endif;?>>奖励</option>
<option value="2" <?php if ($data['reward_type'] == 2):?>selected<?php endif;?>>惩罚</option> <option value="2" <?php if ($data['reward_type'] == 2):?>selected<?php endif;?>>惩罚</option>
</select> </select>
</li> </li>
<li> <li>
<label>公司类型</label> <label>公司类型</label>
<select id="company_type" name="company_type" class="select_gallery" onchange="companyTypeChange()"> <?php if ($data):?>
<input type="hidden" name="company_type" value="{$data['company_type']}">
<?php endif;?>
<select id="company_type" name="company_type" class="select_gallery" onchange="companyTypeChange()" <?php if ($data):?> disabled<?php endif;?>>
<option value="1" <?php if ($data['company_type'] == 1):?>selected<?php endif;?>>上游公司</option> <option value="1" <?php if ($data['company_type'] == 1):?>selected<?php endif;?>>上游公司</option>
<option value="2" <?php if ($data['company_type'] == 2):?>selected<?php endif;?>>下游公司</option> <option value="2" <?php if ($data['company_type'] == 2):?>selected<?php endif;?>>下游公司</option>
</select> </select>

Loading…
Cancel
Save