<?
$sub_menu = "300200";
include_once("./_common.php");

check_demo();

auth_check($auth[$sub_menu], "w");

check_token();

for ($i=0; $i<count($chk); $i++) 
{
    // 传送实际数值
    $k = $chk[$i];

    $sql = " update $g4[group_table]
                set gr_subject    = '{$_POST[gr_subject][$k]}',
                    gr_admin      = '{$_POST[gr_admin][$k]}',
                    gr_use_access = '{$_POST[gr_use_access][$k]}'
              where gr_id         = '{$_POST[gr_id][$k]}' ";
    if ($is_admin != "super")
        $sql .= " and gr_admin    = '{$_POST[gr_admin][$k]}' ";
    sql_query($sql);
}

goto_url("./boardgroup_list.php?$qstr");
?>
