<?
$menu_code = '411';
require_once (APPPATH.'views/skin/admin/_content_comm.php');

?>



<form name="input_form" id="input_form" method="post" action="/admin/member/member_setting_reg_proc/4">
    
    
<div class="common_table">
<table>
    <tr>
        <th>항목</th>
        <th>기능사용여부</th>
        <th>필수체크</th>
    </tr>   
    
<?
if(count($list)==0) {
?>
   <tr><td colspan="3">등록된 내용이 없습니다.</td></tr>
<?
} else {
    foreach($list as $key=>$val) {
        $idx                = $val['idx'];
        $item_title 	    = $val['item_title'];
        $is_use 	        = $val['is_use'];
        $is_required 	    = $val['is_required'];
        $is_default 	    = $val['is_default'];
?>
   
        <tr>
            <? if($is_default == 'N') { ?>
                <input type="hidden" name="idx[<?=$key?>]" class="input00" size="30" value="<?=$idx?>">
            <?}?>
            <td><? if($idx > 10) { ?><input type="text" name="item_title[<?=$key?>]" class="input00" size="30" value="<?=$item_title?>"> <? } else { ?><?=$item_title?><? if($is_default == 'N') { ?><input type="hidden" name="item_title[<?=$key?>]" value="<?=$item_title?>"><? }?><?}?></td>
            <td><? if($is_default == 'N') { ?><input type="checkbox" name="is_use[<?=$key?>]" value="Y" <? if($is_use == 'Y') { echo 'checked';}?>><? }?></td>
            <td><? if($is_default == 'N') { ?><input type="checkbox" name="is_required[<?=$key?>]" value="Y" <? if($is_required == 'Y') { echo 'checked';}?>><? }?></td>
        </tr>
      
<?

    }
}
?>

</table>
</div>


<div class="write_btn tc">
    <a href="javascript:member_setting_reg_proc()">저장하기</a>

</div>

    


<script type="text/javascript">
function member_setting_reg_proc(){
	$("#input_form").submit();
}
</script>