<?php
$settings['cfg_extcredits'] = unserialize($settings['cfg_extcredits']);
?>
<table class="tab">
	<tr>
		<th>积分代号</th>
		<th>积分名称</th>
		<th>积分单位</th>
		<th>启用此积分</th>
	</tr>
	<tr>
		<td>extcredits1</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits1][title]', $settings['cfg_extcredits']['extcredits1']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits1][unit]', $settings['cfg_extcredits']['extcredits1']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits1][available]',isset($settings['cfg_extcredits']['extcredits1']));?></td>
	</tr>
	<tr>
		<td>extcredits2</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits2][title]', $settings['cfg_extcredits']['extcredits2']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits2][unit]', $settings['cfg_extcredits']['extcredits2']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits2][available]',isset($settings['cfg_extcredits']['extcredits2']));?></td>
	</tr>
	<tr>
		<td>extcredits3</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits3][title]', $settings['cfg_extcredits']['extcredits3']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits3][unit]', $settings['cfg_extcredits']['extcredits3']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits3][available]',isset($settings['cfg_extcredits']['extcredits3']));?></td>
	</tr>
	<tr>
		<td>extcredits4</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits4][title]', $settings['cfg_extcredits']['extcredits4']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits4][unit]', $settings['cfg_extcredits']['extcredits4']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits4][available]',isset($settings['cfg_extcredits']['extcredits4']));?></td>
	</tr>
	<tr>
		<td>extcredits5</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits5][title]', $settings['cfg_extcredits']['extcredits5']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits5][unit]', $settings['cfg_extcredits']['extcredits5']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits5][available]',isset($settings['extcredits']['extcredits5']));?></td>
	</tr>
	<tr>
		<td>extcredits6</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits6][title]', $settings['cfg_extcredits']['extcredits6']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits6][unit]', $settings['cfg_extcredits']['extcredits6']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits6][available]',isset($settings['cfg_extcredits']['extcredits6']));?></td>
	</tr>
	<tr>
		<td>extcredits7</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits7][title]', $settings['cfg_extcredits']['extcredits7']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits7][unit]', $settings['cfg_extcredits']['extcredits7']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits7][available]',isset($settings['cfg_extcredits']['extcredits7']));?></td>
	</tr>
	<tr>
		<td>extcredits8</td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits8][title]', $settings['cfg_extcredits']['extcredits8']['title'])?></td>
		<td><?php echo CHtml::textField('settings[cfg_extcredits][extcredits8][unit]', $settings['cfg_extcredits']['extcredits8']['unit'])?></td>
		<td><?php echo CHtml::checkBox('settings[cfg_extcredits][extcredits8][available]',isset($settings['cfg_extcredits']['extcredits8']));?></td>
	</tr>
</table>