コード例 #1
0
ファイル: posting_edit.php プロジェクト: DarneoStudio/bitrix
?>
</td>
		<td>
			<div class="adm-list">
				<div class="adm-list-item">
					<div class="adm-list-control"><input type="checkbox" id="GROUP_ID_ALL" name="GROUP_ID_ALL" value="Y" OnClick="CheckAll('GROUP_ID', true)"></div>
					<div class="adm-list-label"><label for="GROUP_ID_ALL"><?php 
echo GetMessage("MAIN_ALL");
?>
</label></div>
				</div>

		<?php 
$aPostGrp = array();
if ($ID > 0) {
    $post_grp = CPosting::GetGroupList($ID);
    while ($post_grp_arr = $post_grp->Fetch()) {
        $aPostGrp[] = $post_grp_arr["ID"];
    }
}
if (!is_array($GROUP_ID)) {
    $GROUP_ID = array();
}
$group = CGroup::GetList($by = "sort", $order = "asc");
while ($ar = $group->GetNext()) {
    ?>
				<div class="adm-list-item">
					<div class="adm-list-control"><input type="checkbox" id="GROUP_ID_<?php 
    echo $ar["ID"];
    ?>
" name="GROUP_ID[]" value="<?php