% set f [ns_conn form] set file [ns_set get $f img] regsub -all {\\([^\\])} $file {\1} file regsub "^.*/" $file {} name regsub {^[0-9]+_} $name {} name regsub {^[0-9]+-[0-9]+[a-z]?_} $name {} name regsub {\.(gif|jpg)$} $name {} name regsub -all {_} $name { } name %>
<% ns_puts "$name" %> <% #ns_puts "$name ($x x $y)" %>
<% ns_puts "$name" %> <% #ns_puts "$name ($x x $y)" %>
<% if {[ns_set get $f size] != {full}} { ns_puts "\[ Click here for full size image \]" } else { ns_puts "\[ Click here for half size image \]" } %>