use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");if ( !$C->{GlobalCTX}{priv_js} ) {$this->out("\n");$C->{GlobalCTX}{priv_js} = "1";$this->out("\n<script>\nfunction OnClickAll(field, checked)\n{\n	document.getElementById(field + \'_limit\').value = \'\';\n	document.getElementById(field + \'_seaonly\').checked = checked;\n	document.getElementById(field + \'_add\').checked = checked;\n	document.getElementById(field + \'_edit\').checked = checked;\n	document.getElementById(field + \'_delete\').checked = checked;\n}\n</script>\n\n");}$this->out("\n");if ( IIb39071a48a82a07eeb9256f406abebc5::IIIIllIllIlIIIlI($IIb39071a48a82a07eeb9256f406abebc5::llIllIlIllIIIIlI{$II982446f8950cc3dc59e487adba22df54::IlIllIIIlllIlIll},20,$IIb39071a48a82a07eeb9256f406abebc5::llIllIlIllIIIIlI{$II8dae0e141ee45f5daba6a74e4a7c3b6f::IlIlllllIllIIlIl})->isOptionsField($C->{Field}) ) {$this->out("\n");$C->{Options} = do { $C->{Object}->getOptions($C->{Field}); };$this->out("\n<td align=center>\n	ALL\n");$C->{checked} = $C->{Options}{all} ? 'checked' : '';$this->out("	<input type=\"checkbox\" name=\"$C->{Field}_all\" value=\"1\" $C->{checked} onClick=\"OnClickAll(\'$C->{Field}\', this.checked)\">\n	<input type=\"hidden\" name=\"$C->{Field}_all\" value=\"\">\n</td>\n<td align=center>\n	LR\n	<input type=\"text\" size=\"5\" name=\"$C->{Field}_limit\" id=\"$C->{Field}_limit\" value=\"$C->{Options}{limit}\">\n</td>\n<td align=center>\n	RS\n");$C->{checked} = $C->{Options}{seaonly} ? 'checked' : '';$this->out("	<input type=\"checkbox\" name=\"$C->{Field}_seaonly\" id=\"$C->{Field}_seaonly\" value=\"1\" $C->{checked}>\n	<input type=\"hidden\" name=\"$C->{Field}_seaonly\" value=\"\">\n</td>\n<td align=center>\n	A\n");$C->{checked} = $C->{Options}{add} ? 'checked' : '';$this->out("	<input type=\"checkbox\" name=\"$C->{Field}_add\" id=\"$C->{Field}_add\" value=\"1\" $C->{checked}>\n	<input type=\"hidden\" name=\"$C->{Field}_add\" value=\"\">\n</td>\n<td align=center>\n	E\n");$C->{checked} = $C->{Options}{edit} ? 'checked' : '';$this->out("	<input type=\"checkbox\" name=\"$C->{Field}_edit\" id=\"$C->{Field}_edit\" value=\"1\" $C->{checked}>\n	<input type=\"hidden\" name=\"$C->{Field}_edit\" value=\"\">\n</td>\n<td align=center>\n	D\n");$C->{checked} = $C->{Options}{delete} ? 'checked' : '';$this->out("	<input type=\"checkbox\" name=\"$C->{Field}_delete\" id=\"$C->{Field}_delete\" value=\"1\" $C->{checked}>\n	<input type=\"hidden\" name=\"$C->{Field}_delete\" value=\"\">\n</td>\n\n");} else {$this->out("<td align=right colspan=6>\n");$C->{checked} = $C->{Options}{all} ? 'checked' : '';$this->out("	<input type=\"checkbox\" name=\"$C->{Field}_all\" value=\"1\" $C->{checked}>\n	<input type=\"hidden\" name=\"$C->{Field}_all\" value=\"\">\n</td>\n");}$this->out("");}