use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<form name=\"FunnelForm\" method=\"POST\" action=\"$C->{SELF_URL_NO_QS}\">\n<input type=\"hidden\" name=\"TabCustom1\" value=\"$C->{INPUT}{TabCustom1}\">\n<input type=\"hidden\" name=\"TabCustom2\" value=\"$C->{INPUT}{TabCustom2}\">\n<input type=\"hidden\" name=\"action\" value=\"\">\n\n<table border=0 cellpadding=0 cellspacing=1 class=atkMainTable width=\"230\">\n<tr>\n	<td class=atkHeader>Funnel</td>\n</tr>\n<tr><td><table class=atkInnerTable cellpadding=4 cellspacing=3 width=\"100\%\">\n	<tr>\n		<td class=\"atkEditorRight\">\n			\n");if ( $C->{HasSteps} ) {$this->out("				<div style=\"margin:10px\"\"><i>\n");my $in = $C->{Steps};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{s} = -1;for my $f (@$loop) {$C->{ITERATION}{s}++;$C->{s} = $f;$this->out("");if ( $C->{s}{id} eq $C->{INPUT}{TabCustom2} ) {$this->out("						<div><li><b>$C->{s}{title}</b></li></div>\n");} else {$this->out("						<div><a href=\"#\" onClick=\"var frm = document.forms[\'FunnelForm\']; frm.TabCustom2.value=$C->{s}{id}; frm.submit(); return false;\">$C->{s}{title}</a></div>\n");}$this->out("");}$this->out("				</i></div>\n");} else {$this->out("				<div align=\"center\" style=\"margin:10px\"\"><i>$C->{msg_no_steps}</i></div>\n");}$this->out("\n		</td>\n	</tr>\n</table></td></tr>\n<tr>\n	<td class=atkEditorControl>\n		<input type=\"text\" size=\"15\" name=\"new_step_title\">&nbsp;<input class=\"\"btn btn-primary\"\" type=\"button\" value=\"Add step\" onClick=\"var frm = document.forms[\'FunnelForm\']; if (frm.new_step_title.value == \'\') alert(\'Please enter new step title\'); else { frm.action.value=\'add_step\'; frm.submit(); }\">\n	</td>\n</tr>\n</table>\n\n</form>\n");}