(new Gallery).addStage("ticketAdvice",{header:{prevStage:"monitorBox",backWhole:!1,title:"抢飞机票"},temp:!0,init:function(){$("#adviceOK").click(function(){Statistics.trigger(36,1);(new Gallery).goTo("monitorBox",!1)});$("#adviceCancel").click(function(){Statistics.trigger(36,2);window.close()})},prepare:function(n){Statistics.trigger(36,0);var i=[],t;Filler.fill($("#adviceMessage"),n);for(t in n.errors)i.push({flight:(new FlightMonitorBox).get(n.errors[t].flightId).flight,status:n.errors[t].status});Filler.loop($("#adviceErrors"),i,{dateExpression:function(n){var t=n.flight.query.date;return t[0]==t[1]?Util.date.formatToShort(t[0]):Util.date.formatToShort(t[0])+"-"+Util.date.formatToShort(t[1])}})}})