Index: openacs-4/packages/lab-report/lab-report.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/lab-report.info,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/lab-report.info 11 May 2006 11:11:36 -0000 1.1 @@ -0,0 +1,28 @@ + + + + + Lab Report + Lab Reports + f + f + + + Nick Carroll + Lab report writing tool for students. + This package is a lab report writing tool for students. It depends on the lab report templates created by lab instructors in Lab Report Central. Lab Report Central is a centralised place for creating lab report templates. The Lab Report package is the student's space for writing their reports for specific labs, based on the templates in Lab Report Central. Separating this into two packages allows for the Lab Report package to be mounted at several subsites, as would be the case if it were to be integrated into dotFOLIO. + 0 + + + + + + + + + + + + + + Index: openacs-4/packages/lab-report/catalog/lab-report.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/catalog/lab-report.en_US.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/catalog/lab-report.en_US.ISO-8859-1.xml 11 May 2006 11:11:36 -0000 1.1 @@ -0,0 +1,19 @@ + + + + Admin + Author + Author already exists. You cannot add another author. + Author Group + Description + Edit + for + Select an author from the list. + Lab reports for + Labs + Overview + This application requires an author to be set in order to write lab reports. Please inform your site administrator that an author needs to be set for this application. + Reports for + Search + View + Index: openacs-4/packages/lab-report/sql/postgresql/lab-report-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/sql/postgresql/lab-report-create.sql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/sql/postgresql/lab-report-create.sql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,47 @@ +-- $Id: lab-report-create.sql,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ + +-- +-- Create some privileges. +-- +begin; + select acs_privilege__create_privilege('lab_report_author'); + select acs_privilege__create_privilege('lab_report_write'); + select acs_privilege__create_privilege('lab_report_read'); +end; + +-- +-- Define hierarchy of privileges. +-- +begin; + select acs_privilege__add_child('lab_report_author','lab_report_read'); + select acs_privilege__add_child('lab_report_author','lab_report_write'); + select acs_privilege__add_child('read', 'lab_report_read'); + select acs_privilege__add_child('write', 'lab_report_write'); +end; + + +-- +-- Create tables +-- +create table lr_author ( + author_id integer + constraint lr_author_author_id_fk + references users (user_id) + on delete cascade, + package_id integer + constraint lr_author_package_id_fk + references apm_packages (package_id) + on delete cascade +); + +create table lr_author_group ( + group_id integer + constraint lr_author_group_grou_id_fk + references groups (group_id) + constraint lr_author_group_pk + primary key, + package_id integer + constraint lr_author_group_package_id_fk + references apm_packages (package_id) + on delete cascade +); Index: openacs-4/packages/lab-report/tcl/install-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/tcl/install-procs-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/tcl/install-procs-postgresql.xql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,13 @@ + + + + postgresql7.4 + + + + INSERT INTO lr_author_group (group_id, package_id) + VALUES (:group_id, :package_id) + + + + Index: openacs-4/packages/lab-report/tcl/install-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/tcl/install-procs.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/tcl/install-procs.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,42 @@ +ad_library { + + Lab Report Install library + + Procedures that deal with installing, instantiating, mounting. + + @creation-date 2006-04-17 + @author Nick Carroll + @cvs-id $Id: install-procs.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} + + +namespace eval lab_report::install {} + +ad_proc -private lab_report::install::package_instantiate { + -package_id:required +} { + Package instantiation callback proc. +} { + db_transaction { + lab_report::install::create_author_group -package_id $package_id + } +} + +ad_proc -private lab_report::install::create_author_group { + -package_id:required +} { + Creates the author group for this package instance +} { + set group_id [group::new -group_name [_ lab-report.author_group]] + + # Insert group_id and package_id. + db_dml insert {} + + # Retrieve group_id for instructors. + set instr_group_id [lab_report_central::instructor_group_id] + + # Give instructors permission to author this package. + permission::grant -party_id $instr_group_id \ + -object_id $package_id \ + -privilege "lab_report_author" +} Index: openacs-4/packages/lab-report/tcl/lab-report-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/tcl/lab-report-procs-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/tcl/lab-report-procs-postgresql.xql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,55 @@ + + + + postgresql7.4 + + + + SELECT author_id FROM lr_author WHERE package_id = :package_id + + + + + + INSERT INTO lr_author (author_id, package_id) + VALUES (:author_id, :package_id) + + + + + + SELECT DISTINCT group_id + FROM lr_author_group + WHERE package_id = :package_id + + + + + + SELECT author_id from lr_author + WHERE package_id = :package_id + LIMIT 1 + + + + + + SELECT distinct u.first_names || ' ' || u.last_name || ' (' || u.email || ')' as name, u.user_id + FROM cc_users u + WHERE lower(coalesce(u.first_names || ' ', '') || + coalesce(u.last_name || ' ', '') || + u.email || ' ' || + coalesce(u.screen_name, '')) like lower('%'||:value||'%') + ORDER BY name + + + + + + SELECT distinct u.first_names || ' ' || u.last_name || ' (' || u.email || ')' as name, u.user_id + FROM cc_users u + ORDER BY name + + + + Index: openacs-4/packages/lab-report/tcl/lab-report-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/tcl/lab-report-procs.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/tcl/lab-report-procs.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,70 @@ +ad_library { + + Lab Report library + + @creation-date 2006-05-07 + @author Nick Carroll + @cvs-id $Id: lab-report-procs.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} + + +namespace eval lab_report {} + + +ad_proc -public lab_report::get_author_id { + -package_id:required +} { + Retrieves the author_id for the specified lab report package instance. + + @param package_id The package ID of a lab report instance. + @return Returns the ID of the author for a specific lab report instance. +} { + return [db_string select_author {}] +} + +ad_proc -public lab_report::has_author { + -package_id:required +} { + Verifies that the specified instance of lab report has an author. + + @param package_id The package ID of a lab report instance. + @return Returns 1 if there is an author for the package instance of + lab report, otherwise 0 is returned. +} { + return [db_0or1row select_author {}] +} + + +ad_proc -public lab_report::add_author { + -author_id:required + -package_id:required +} { + Adds the user as an author to the specified lab report package instance. + + @param author_id The user ID of an author. + @param package_id The package ID of a lab report instance. +} { + db_dml add_author {} + + # Select author group. + db_1row author_group {} + + # Add author to author group for this package. + group::add_member -group_id $group_id -user_id $author_id + + # Give user author privileges. + permission::grant -party_id $author_id \ + -object_id $package_id \ + -privilege "lab_report_author" +} + + +ad_proc -public lab_report::get_users_options {} { + Retrieves an options list of users. +} { + set users_list [db_list_of_lists users {}] + set users_list [concat [list [list [_ lab-report.search] ":search:"]] \ + $users_list] + + return $users_list +} Index: openacs-4/packages/lab-report/www/index-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/index-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/index-postgresql.xql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,17 @@ + + + + postgresql7.4 + + + + SELECT l.lab_id, l.name, l.instructor_id, + to_char(l.start_date, 'YYYY') AS year + FROM lrc_lab l, lrc_lab_student_map s + WHERE s.lab_id = l.lab_id + AND s.user_id = :author_id + ORDER BY l.start_date DESC, l.name ASC + + + + Index: openacs-4/packages/lab-report/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/index.adp 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,26 @@ + +@title@ +@context@ +[#lab-report.admin#] + + + + + + + + + @lab.year@ + + + + @lab.name@ + #lab-report.view# + + + + + + + + \ No newline at end of file Index: openacs-4/packages/lab-report/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/index.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/index.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,42 @@ +ad_page_contract { + Index page. Displays list of lab report templates available to student, + as well as list of completed lab reports. + + @author Nick Carroll (nick.c@rroll.net) + @creation-date 2006-04-17 + @cvs-id $Id: index.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} + +set package_id [ad_conn package_id] +set user_id [ad_conn user_id] + +# Check if this package has an author. If not, then redirect admin user +# to page for adding an author from a list of users. +if { ![lab_report::has_author -package_id $package_id] } { + # If the user is an administrator, then user can add author. Otherwise + # display notice that administrator is required to add an author. + if { [permission::permission_p -party_id $user_id -object_id $package_id \ + -privilege admin] } { + set return_url "../." + ad_returnredirect [export_vars -url -base "admin/add-author" {return_url}] + ad_script_abort + } else { + ad_returnredirect "need-author" + ad_script_abort + } +} + +# Otherwise retrieve list of lab reports for the designated author. +set author_id [lab_report::get_author_id -package_id $package_id] +db_multirow -extend {view_url} lab select_labs {} { + set view_url [export_vars -url -base view-lab {lab_id}] +} + +set author_p [permission::permission_p -party_id $user_id \ + -object_id $package_id \ + -privilege "lab_report_author"] + +set title [_ lab-report.labs] +set context [list $title] + +ad_return_template Index: openacs-4/packages/lab-report/www/need-author.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/need-author.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/need-author.adp 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,7 @@ + +[#lab-report.admin#] + + + + +#lab-report.please_inform_administrator_need_author# Index: openacs-4/packages/lab-report/www/view-lab-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-lab-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/view-lab-postgresql.xql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,27 @@ + + + + postgresql7.4 + + + + SELECT l.lab_id, l.name AS lab_name, l.instructor_id, + to_char(l.start_date, 'YYYY') AS year + FROM lrc_lab l, lrc_lab_student_map s + WHERE s.lab_id = l.lab_id + AND l.lab_id = :lab_id + AND s.user_id = :author_id + + + + + + SELECT t.template_id, t.name, + t.description AS template_desc + FROM lrc_template t, lrc_lab_template_map m + WHERE m.lab_id = :lab_id + AND m.template_id = t.template_id + + + + Index: openacs-4/packages/lab-report/www/view-lab.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-lab.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/view-lab.adp 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,21 @@ + +@title@ +@context@ +[#lab-report.admin#] + + + + + + + + + + @report.name@ + #lab-report.view# + + + + + + Index: openacs-4/packages/lab-report/www/view-lab.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-lab.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/view-lab.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,30 @@ +ad_page_contract { + Displays a list of reports to be completed for a specific lab. + + @author Nick Carroll (nick.c@rroll.net) + @creation-date 2006-05-10 + @cvs-id $Id: view-lab.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} { + lab_id +} + +set package_id [ad_conn package_id] +set user_id [ad_conn user_id] + +set author_p [permission::permission_p -party_id $user_id \ + -object_id $package_id \ + -privilege "lab_report_author"] + +# Otherwise retrieve list of lab reports for the designated author. +set author_id [lab_report::get_author_id -package_id $package_id] + +db_1row lab_details {} + +db_multirow -extend {view_url} report select_reports {} { + set view_url [export_vars -url -base view-report {lab_id template_id}] +} + +set title "[_ lab-report.lab_reports_for] $lab_name" +set context [list $title] + +ad_return_template Index: openacs-4/packages/lab-report/www/view-report-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-report-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/view-report-postgresql.xql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,34 @@ + + + + postgresql7.4 + + + + SELECT l.lab_id, l.name AS lab_name, l.instructor_id, + to_char(l.start_date, 'YYYY') AS year + FROM lrc_lab l, lrc_lab_student_map s + WHERE s.lab_id = l.lab_id + AND l.lab_id = :lab_id + AND s.user_id = :author_id + + + + + + SELECT name AS template_name, description AS template_desc + FROM lrc_template + WHERE template_id = :template_id + + + + + + SELECT section_id, name AS section_name, description AS section_desc + FROM lrc_section + WHERE template_id = :template_id + ORDER BY section_id + + + + Index: openacs-4/packages/lab-report/www/view-report.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-report.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/view-report.adp 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,37 @@ + +@title@ +@context@ +[#lab-report.admin#] + + + + + + + + + + + + #lab-report.overview# + + @sections.section_name;noquote@ + + + + + + + + #lab-report.description# @template_desc;noquote@ + + + + @sections.section_name@ + + + + + + + Index: openacs-4/packages/lab-report/www/view-report.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/view-report.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/view-report.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,35 @@ +ad_page_contract { + Displays a list of reports to be completed for a specific lab. + + @author Nick Carroll (nick.c@rroll.net) + @creation-date 2006-05-10 + @cvs-id $Id: view-report.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} { + lab_id + template_id +} + +set package_id [ad_conn package_id] +set user_id [ad_conn user_id] + +set author_p [permission::permission_p -party_id $user_id \ + -object_id $package_id \ + -privilege "lab_report_author"] + +# Otherwise retrieve list of lab reports for the designated author. +set author_id [lab_report::get_author_id -package_id $package_id] + +# Retrieve lab details. +db_1row lab_details {} + +# Retrieve template details. +db_1row template_details {} +set template_desc [template::util::richtext::get_property \ + html_value $template_desc] + +db_multirow sections select_sections {} + +set title "$template_name [_ lab-report.for] $lab_name" +set context [list $title] + +ad_return_template Index: openacs-4/packages/lab-report/www/admin/add-author-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/admin/add-author-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/admin/add-author-postgresql.xql 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,12 @@ + + + + postgresql7.4 + + + + + + + + Index: openacs-4/packages/lab-report/www/admin/add-author.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/admin/add-author.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/admin/add-author.adp 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,8 @@ + +[#lab-report.admin#] + + + + + + Index: openacs-4/packages/lab-report/www/admin/add-author.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/admin/add-author.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/admin/add-author.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,39 @@ +ad_page_contract { + Index page. Displays list of lab report templates available to student, + as well as list of completed lab reports. + + @author Nick Carroll (nick.c@rroll.net) + @creation-date 2006-04-17 + @cvs-id $Id: add-author.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} { + {return_url "."} +} + +set package_id [ad_conn package_id] +set user_id [ad_conn user_id] + +permission::require_permission -party_id $user_id -object_id $package_id \ + -privilege admin + +if { [lab_report::has_author -package_id $package_id] } { + ad_returnredirect -message [_ lab-report.author_already_exists] $return_url +} + +ad_form -name author -cancel_url $return_url -form { + {return_url:text(hidden) {value $return_url}} + {author_id:search + {result_datatype integer} + {label "[_ lab-report.author]"} + {help_text "[_ lab-report.help_select_author]"} + {options "[lab_report::get_users_options]"} + {search_query {[db_map dbqd.lab-report.tcl.lab-report-procs.author_search]}} + } +} -after_submit { + # Add author_id as author for this package instance. + lab_report::add_author -author_id $author_id -package_id $package_id + + ad_returnredirect $return_url + ad_script_abort +} + +ad_return_template Index: openacs-4/packages/lab-report/www/resources/lab-report.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/resources/lab-report.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/resources/lab-report.css 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,240 @@ +/* Global styles */ +.spacer { + clear: both; +} + +.notice { + border: 3px solid #FF6600; + margin: 0px auto; + margin-top: 2em; + padding: 5px; + width: 280px; + text-align: center; + background-color: #FF9966; + font-size: 12px; +} + + +/* Report Lab Container */ +#lr-lab-list-container { + margin-left: 30px; +} + +#lr-lab-list-container ul { + margin: 0; + padding: 0; + list-style-type: none; + font-family: verdana, arial, sans-serif; +} + +#lr-lab-list-container li { + margin: 0; +} + +/* Year */ +#lr-lab-list-container ul li { + color: #686868; + font-size: 18px; + font-weight: bold; + padding-top: 20px; + padding-bottom: 6px; +} + +#lr-lab-list-container ul ul { + margin-left: 30px; + padding: 0; + list-style-type: none; +} + +/* Report */ +#lr-lab-list-container ul ul.report { + margin-top: 1em; +} + +#lr-lab-list-container ul ul.report li { + color: #000; + font-size: 12px; + display: block; + border-left: 1em solid #686868; + border-bottom: 1px solid #686868; + padding: 4px 8px; + width: 50em; + margin-bottom: 5px; +} + +#lr-lab-list-container ul ul.report li img { + vertical-align: bottom; + border: 0; + text-decoration: none; + margin-right: 3px; + margin-left: 3px; +} + +#lr-lab-list-container ul ul.report li span.label { + margin-left: 3em; + float:left; +} + +#lr-lab-list-container ul ul.report li span.options { + float: right; +} + +#lr-lab-list-container ul ul li.notice { + border: 3px solid #FF6600; + margin: 0px auto; + margin-top: 2em; + padding: 5px; + width: 280px; + text-align: center; + background-color: #FF9966; + font-size: 12px; +} + + +/* Report Container */ +#lr-report-list-container { + margin-left: 30px; +} + +#lr-report-list-container ul { + margin: 0; + padding: 0; + list-style-type: none; + font-family: verdana, arial, sans-serif; +} + +#lr-report-list-container li { + margin: 0; +} + +/* Report */ +#lr-report-list-container ul.report { + margin-top: 1em; +} + +#lr-report-list-container ul.report li { + color: #000; + font-size: 12px; + display: block; + border-left: 1em solid #686868; + border-bottom: 1px solid #686868; + padding: 4px 8px; + width: 50em; + margin-bottom: 5px; +} + +#lr-report-list-container ul.report li img { + vertical-align: bottom; + border: 0; + text-decoration: none; + margin-right: 3px; + margin-left: 3px; +} + +#lr-report-list-container ul.report li span.label { + margin-left: 3em; + float:left; +} + +#lr-report-list-container ul.report li span.options { + float: right; +} + + +/* Nav container*/ +/* Listamatic: IE HACK for Eric Meyer's strengthening the links. */ +ul#navlist { + width: 158px; + padding: 0px; + border: 1px solid #808080; + border-top: 0px; + margin: 0px; + font: bold 12px verdana,helvetica,arial,sans-serif; + background: #808080; +} + +ul#navlist li { + list-style: none; + margin: 0px; + border: 0px; + border-top: 1px solid #808080; +} + +ul#navlist li a { + display: block; + width: 122px; + padding: 4px 8px 4px 8px; + border: 0px; + border-left: 20px solid #686868; + background: #F0F0F0; + text-decoration: none; + text-align: right; +} + +ul#navlist li a:link { + color: #666677; +} + +ul#navlist li a:visited { + color: #666677; +} + +ul#navlist li a:hover { + border-color: #ff9000; + color: #000; + background: #CCCCCC; +} + +ul#navlist li a#current { + border-color: #ff9000; + color: #000; + background: #F0F0F0; +} + + +/* Report Container */ +div#report-container { + width: 100%; +} + +div#report-container table tr td { + margin: 1em; + padding: 1em; +} + +div#report-container table tr td.nav { + vertical-align: top; + margin: 0; + padding: 0; + padding-right: 1em; + padding-top: 1em; +} + +div#report-container table tr td.content { + padding: 0; + width: 100%; + vertical-align: top; + line-height: 150%; +} + +div#report-container table tr td.content ul { + margin: 0; + padding: 0; + list-style-type: none; + font-family: verdana, arial, sans-serif; +} + +div#report-container table tr td.content ul li.description { + padding: 5px; + margin-bottom: 1em; + border: 1px solid #000; +} + +div#report-container table tr td.content ul li.content { + padding: 5px; + border: 1px solid #000; +} + +div#report-container h3 { + color: #686868; +} \ No newline at end of file Index: openacs-4/packages/lab-report/www/resources/main-portal.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/resources/main-portal.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/resources/main-portal.adp 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,34 @@ + +@title@ +@context;noquote@ + +@header_stuff;noquote@ + + + + + + + + + + + + + + + @admin_options;noquote@ + + + + @user_options;noquote@ + + + + + + + + + + Index: openacs-4/packages/lab-report/www/resources/main-portal.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/resources/main-portal.css,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/resources/main-portal.css 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,39 @@ +.portletOptions { + display: inline; + font-size: 10px; + font-weight: normal; + float:right; + padding: 1px; +} + +.visualClear { + display: block; + clear: both; +} + +#portal-columns { + width: 100% !important; + border-collapse: collapse; + border-spacing: 0; +} + +#portal-column-content { + vertical-align: top; + margin: 0; + padding: 0; +} + +/* Padding for the columns */ +#portal-column-content .visualPadding { + /*padding: 0em 2em 1em 2em;*/ + padding: 0em 1em 1em 1em; +} + +.documentBorder { + border: 1px solid #666; + background: White; +} + +.documentContent { + padding: 1em !important; +} Index: openacs-4/packages/lab-report/www/resources/main-portal.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lab-report/www/resources/main-portal.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lab-report/www/resources/main-portal.tcl 11 May 2006 11:11:37 -0000 1.1 @@ -0,0 +1,48 @@ +ad_page_contract { + + Simple portal page featuring a main portlet. + + @author Nick Carroll (nick.c@rroll.net) + @creation-date 2005-03-24 + @cvs-id $Id: main-portal.tcl,v 1.1 2006/05/11 11:11:37 ncarroll Exp $ +} { + +} + + +if { ![info exists title] } { + set title {} +} + +if { ![info exists context] } { + set context {} +} + +if { ![info exists header_stuff] } { + set header_stuff {} +} + +if { ![info exists admin_options] } { + set admin_options {} +} + +if { ![info exists staff_options] } { + set staff_options {} +} + +if { ![info exists user_options] } { + set user_options {} +} + +set user_id [ad_conn user_id] + +set package_id [ad_conn package_id] + +set admin_p [permission::permission_p -object_id $package_id -privilege admin] + +set css [parameter::get_from_package_key \ + -parameter "LabReportCSS" \ + -package_key "lab-report" \ + -default "/resources/lab-report/main-portal.css"] + +ad_return_template \ No newline at end of file
+