2011-08-29 22:34:26 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
|
|
|
package require cgi
|
|
|
|
source /mod/var/mongoose/lib/setup
|
2011-09-15 23:08:15 +00:00
|
|
|
require rsv.class system.class
|
2011-08-29 22:34:26 +00:00
|
|
|
|
|
|
|
puts "Content-Type: text/html"
|
|
|
|
puts ""
|
|
|
|
|
|
|
|
cgi_input
|
|
|
|
#cgi_dump
|
|
|
|
|
|
|
|
set slot [cgi_get slot 0]
|
|
|
|
set table [cgi_get table TBL_RESERVATION]
|
|
|
|
|
|
|
|
set event [rsv slot $table $slot]
|
|
|
|
|
|
|
|
if {$table eq "pending"} {
|
|
|
|
$event remove_pending
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
|
|
|
$event clear_ulslot
|
|
|
|
$event set_delete
|
|
|
|
$event insert
|
|
|
|
|
2011-09-15 23:08:15 +00:00
|
|
|
system restartpending
|
|
|
|
|