奖罚编辑部分字段只读

master
zhengchanglong 5 years ago
parent 5949542b70
commit c6a0f87dfe

@ -68,20 +68,20 @@
<input type="hidden" name="id" value="{$data.id}" />
<li>
<label>奖惩类型</label>
<?php if ($data):?>
<?php if ($_GET['id']):?>
<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;?>>
<select id="reward_type" name="reward_type" class="select_gallery" <?php if ($_GET['id']):?> disabled<?php endif;?>>
<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>
</select>
</li>
<li>
<label>公司类型</label>
<?php if ($data):?>
<?php if ($_GET['id']):?>
<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;?>>
<select id="company_type" name="company_type" class="select_gallery" onchange="companyTypeChange()" <?php if ($_GET['id']):?> disabled<?php endif;?>>
<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>
</select>

Loading…
Cancel
Save