function access_check( id, value ) { if (value == 'y'){ value = 1; } else { value = 0; } document.getElementById( 'access_mod' + '[' + id + ']' ).checked = value; document.getElementById( 'access_topic' + '[' + id + ']' ).checked = value; document.getElementById( 'access_write' + '[' + id + ']' ).checked = value; document.getElementById( 'access_read' + '[' + id + ']' ).checked = value; document.getElementById( 'access_upload' + '[' + id + ']' ).checked = value; document.getElementById( 'access_download' + '[' + id + ']' ).checked = value; } HTML; if ($forum_id) { $access_result = $db->query("SELECT * FROM " . PREFIX . "_forum_forums WHERE id = '$forum_id'"); while ($row = $db->get_row($access_result)) { $access_mod = $row['access_mod']; $access_topic = $row['access_topic']; $access_write = $row['access_write']; $access_read = $row['access_read']; $access_upload = $row['access_upload']; $access_download = $row['access_download']; } } $access_forum .= "
|
|
|
|
|
|
|