use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{ListerControlsIncidence}++;$this->out("\n");$this->out(Zen::PerlHandler->get("IIe941599074ed6b7092c1cfdcdb167300->mnt_extints_list")->do($this->{C}));$this->out("\n<select name=\"ExtIntsAddSelector$C->{ListerControlsIncidence}\">\n<option value=\"\"> Select an external integration option type to add...\n");my $in = $C->{ExtIntsList};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{t} = -1;for my $f (@$loop) {$C->{ITERATION}{t}++;$C->{t} = $f;$this->out("<option value=\"$C->{t}{type}\"> $C->{t}{title}\n");}$this->out("</select>\n\n<input type=button class=\"btn btn-primary\" value=\"Add\" onClick=\"var f = document.forms[\'Lister\']; var sel = f.ExtIntsAddSelector$C->{ListerControlsIncidence}; var pgt = sel.options[sel.selectedIndex].value; if (pgt == null || pgt == \'\') { alert(\'You should choose a payment option type to add\') } else { f.elements[\'TabCustom1\'].value = pgt; f.elements[\'TabAct\'].value = \'edit\'; f.submit() }\">\n");}