use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{HTMLTitle} = "Funnels / Split Test Stats";$this->out("\n");$this->out(Zen::PerlHandler->get("II632de5577077dd8ff86d3ccabaabac05->mnt_stats")->do($this->{C}));$this->out("\n<table border=0 cellpadding=0 cellspacing=1 class=atkMainTable>\n<tr><td class=atkHeader colspan=13>$C->{Splittest}{title} - Statistics</td></tr>\n\n<tr>\n	<td class=atkListerControl align=center colspan=13>\n		<input type=button class=\"btn btn-primary\" value=\"Return to the list of Tests\" onClick=\"document.location=\'$C->{SYS}{URI}/master/store/funnels/splittests.html?TabCustom1=$C->{INPUT}{TabCustom1}\'\">\n	</td>\n</tr>\n");if ( scalar(@{$C->{Data}}) ) {$this->out("<tr>\n	<td class=atkListerFieldnames>Split page</td>\n	<td class=atkListerFieldnames>Visitors</td>\n	<td class=atkListerFieldnames>Unique visitors</td>\n	<td class=atkListerFieldnames>Actions</td>\n	<td class=atkListerFieldnames>Conversion rate range<br>(conversion &plusmn; CI)</td>\n	<td class=atkListerFieldnames>Inital<br>Sales</td>\n	<td class=atkListerFieldnames>Inital<br>Revenue</td>\n	<td class=atkListerFieldnames>Total<br>Payments</td>\n	<td class=atkListerFieldnames>Total<br>Revenue</td>\n	<td class=atkListerFieldnames>Inital<br>Cost</td>\n	<td class=atkListerFieldnames>Profit</td>\n	<td class=atkListerFieldnames>VPV</td>\n</tr>\n");}$this->out("");my $in = $C->{Data};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{r} = -1;for my $f (@$loop) {$C->{ITERATION}{r}++;$C->{r} = $f;$this->out("");$C->{altrow} = $C->{ITERATION}{r} % 2 ? '' : 'class=atkListerAltRow';$this->out("<tr $C->{altrow}>\n	<td class=atkCell>\n");if ( $C->{r}{splitpage_title} ) {$this->out("			<a target=\"_blank\" href=\"$C->{StepStartURI}$C->{r}{splitpage_id}\">$C->{r}{splitpage_title}</a>\n");} else {$this->out("			[No title / Unknown] #$C->{r}{splitpage_id}\n");}$this->out("	</td>\n	<td class=atkCell>$C->{r}{nv}</td>\n	<td class=atkCell>$C->{r}{nuv}</td>\n	<td class=atkCell>$C->{r}{na}</td>\n	<td class=atkCell><b style=\"font-size:110\%\">$C->{r}{conv}</b> &plusmn; $C->{r}{ci}</td>\n	<td class=atkCell>$C->{r}{sales_num_init}</td>\n	<td class=atkCell>$C->{r}{sales_amt_init}</td>\n	<td class=atkCell>$C->{r}{sales_num_pay}</td>\n	<td class=atkCell>$C->{r}{sales_amt_all}</td>\n	<td class=atkCell>$C->{r}{sales_cost_init}</td>\n	<td class=atkCell>$C->{r}{profit}</td>\n	<td class=atkCell>$C->{r}{vpv}</td>\n</tr>\n");}$this->out("<tr>\n	<td class=atkListerControl align=center colspan=13>\n		&nbsp;\n	</td>\n</tr>\n</table>\n\n");{my $G = (ref $this)->get("/headfoot/hf_main.html", $this->{param}) or die "no skel /headfoot/hf_main.html";my $out1 = $this->getOutput;$C->{central_content} = join('', @$out1);@$out1 = ();my $out2 = $G->execute($C);$this->out(@$out2) if $out2;}$this->out("");}