Index: openacs-4/contrib/packages/simulation/www/simplay/play-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/simplay/Attic/play-master.tcl,v diff -u -r1.4 -r1.4.2.1 --- openacs-4/contrib/packages/simulation/www/simplay/play-master.tcl 12 Jan 2004 13:43:14 -0000 1.4 +++ openacs-4/contrib/packages/simulation/www/simplay/play-master.tcl 29 Mar 2004 14:58:57 -0000 1.4.2.1 @@ -9,6 +9,25 @@ set role_id [ns_queryget role_id] } +# Get any simulation specific Stylesheet +# +set stylesheet_link "" +set stylesheet_name [db_string select_stylesheet { + select ci.name + from sim_simulations ss, + cr_items ci + where ss.stylesheet = ci.item_id + and ss.simulation_id = (select workflow_id + from workflow_cases + where case_id = :case_id) +} -default {}] +if { ![empty_string_p $stylesheet_name] } { + set stylesheet_url [simulation::object::content_url -name $stylesheet_name] + set stylesheet_link "" +} + if { [template::util::is_nil header_stuff] } { set header_stuff "" } + +append header_stuff "\n$stylesheet_link" \ No newline at end of file