@main[] $now[^date::now[]] ^now.roll[TZ;MSK-3MSD] ^if(def $form:id){ $lim(5) ^if(def $form:lim){ $lim($form:lim) } ^connect[$mysql_connect]{ $items[^table::sql{SELECT * FROM transactions WHERE Account=$form:id ORDER BY DateTime DESC LIMIT $lim}] } ^items.menu{ $datetime[^date::create[$items.DateTime]] } }
^if(($datetime.yearday==$now.yearday)&&($datetime.year==$now.year)){${datetime.hour}:${datetime.minute}:${datetime.second}}{${datetime.day}.${datetime.month}.${datetime.year}} $items.Text