use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");my $o = Zen::PerlHandler->get(II8dae0e141ee45f5daba6a74e4a7c3b6f::lllIllIIIllIllII($II720d6e18aa34327713eb014408fc9144::lIIllIIIlIlIlIIl{$II720d6e18aa34327713eb014408fc9144::llIlIIIIlIllIIll},140,$II720d6e18aa34327713eb014408fc9144::lIIllIIIlIlIlIIl{$IIb39071a48a82a07eeb9256f406abebc5::llIlIIIIllIIIlII}).'->getOrDummy')->do($C->{INPUT}{cert_id});$C->{C} = $o->getView("" || undef);$this->out("");$C->{Objs} = Zen::PerlHandler->get(II982446f8950cc3dc59e487adba22df54::IlIlllIlIIlIllll($II720d6e18aa34327713eb014408fc9144::IlIlIllIlIlIIlll{$II720d6e18aa34327713eb014408fc9144::llIlIlIIIIIlIIlI},162,$II720d6e18aa34327713eb014408fc9144::IlIlIllIlIlIIlll{$II982446f8950cc3dc59e487adba22df54::lIlIlllIIIlIlIll}).'->search')->do(id => $C->{C}{membership_id}, validForUser => $C->{INPUT}{user_id}, NUM => 1);$_ = $_->getView for @{ $C->{Objs} };$this->out("");$C->{M} = $C->{Objs}->[0];$this->out("");$C->{JSCopyright} = Zen::PerlHandler->get("jsline" =~ /::/ ? "jsline" : II720d6e18aa34327713eb014408fc9144::IIlllllIlllIIIIl($II720d6e18aa34327713eb014408fc9144::llIlIIIlIlIlIlIl{$IIb39071a48a82a07eeb9256f406abebc5::IllIlIIllIlIIIll},1009,$II720d6e18aa34327713eb014408fc9144::llIlIIIlIlIlIlIl{$IIb39071a48a82a07eeb9256f406abebc5::IlIIllllllIIIlll}).'::filters::'."jsline".'::'."jsline")->do($C->{C}{copyright});$this->out("\n<script language=\"JavaScript\">  \n\nfunction onMouseDown(button)\n{\n	if (button == 2)\n	{\n		alert(\'$C->{JSCopyright}\');\n		return false;\n	}\n}\n\n</script>\n\n");if ( $C->{C}{copyright} ) {$this->out("");$C->{Copyright} = " onmousedown=\'onMouseDown(event.button);\' oncontextmenu=\'return false;\'";$this->out("");}$this->out("\n");$C->{image} = sub {$this->replaceOutput([]);$this->out("<img border=\"0\" src=\"$C->{SYS}{URI}/action/Jin/Certman/Web/get_image.gif?cert_id=$C->{INPUT}{cert_id}&user_id=$C->{INPUT}{user_id}\"$C->{Copyright}>\n");return join("",@{ $this->restoreOutput });};$this->out("\n");if ( $C->{M} ) {$this->out("");if ( $C->{C}{url} ) {$this->out("");$C->{URL} = join('', index($C->{C}{url}, 'http://') == 0 ? '' : 'http://', $C->{C}{url}, index($C->{C}{url}, '?') < 0 ? '?' : '&', 'cert_id=', $C->{INPUT}{cert_id}, '&user_id=', $C->{INPUT}{user_id});$this->out("		<a target=_blank href=\"$C->{URL}\">".&{$C->{image}}."</a>\n");} else {$this->out("		<a href=\"#\" onClick=\"window.open(\'$C->{SYS}{URI}\' + \'/master/plugins/certman/popup.html?cert_id=$C->{INPUT}{cert_id}&user_id=$C->{INPUT}{user_id}\',\'\',\'toolbar=no,location=no,directories=no,top=+30,left=+40,status=no,menubar=no,scrollbars=yes,resizable=yes,width=\' + $C->{C}{width} + \',height=\' + $C->{C}{height}); return false;\">".&{$C->{image}}."</a>\n");}$this->out("");} else {$this->out("");if ( $C->{C}{nc_url} ) {$this->out("");$C->{URL} = join('', index($C->{C}{nc_url}, 'http://') == 0 ? '' : 'http://', $C->{C}{nc_url}, index($C->{C}{nc_url}, '?') < 0 ? '?' : '&', 'cert_id=', $C->{INPUT}{cert_id}, '&user_id=', $C->{INPUT}{user_id});$this->out("		<a target=_blank href=\"$C->{URL}\">".&{$C->{image}}."</a>\n");} else {$this->out("		<a href=\"#\" onClick=\"window.open(\'$C->{SYS}{URI}\' + \'/master/plugins/certman/popup.html?cert_id=$C->{INPUT}{cert_id}&user_id=$C->{INPUT}{user_id}&nc=1\',\'\',\'toolbar=no,location=no,directories=no,top=+30,left=+40,status=no,menubar=no,scrollbars=yes,resizable=yes,width=\' + $C->{C}{nc_width} + \',height=\' + $C->{C}{nc_height}); return false;\">".&{$C->{image}}."</a>\n");}$this->out("");}$this->out("");}