Index: openacs-4/contrib/packages/simulation/lib/messages.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/messages.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/simulation/lib/messages.adp 18 Nov 2003 09:44:30 -0000 1.1
+++ openacs-4/contrib/packages/simulation/lib/messages.adp 16 Dec 2003 14:16:28 -0000 1.2
@@ -1 +1,2 @@
+
Index: openacs-4/contrib/packages/simulation/lib/messages.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/messages.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/simulation/lib/messages.tcl 18 Nov 2003 09:44:30 -0000 1.1
+++ openacs-4/contrib/packages/simulation/lib/messages.tcl 16 Dec 2003 14:16:28 -0000 1.2
@@ -5,23 +5,28 @@
@creation-date 2003-11-12
@cvs-id $Id$
} {
- party_id {
+ user_id {
default_value ""
}
}
set package_id [ad_conn package_id]
set elements {
+ case_name {
+ label "Case"
+ }
+ from {
+ label "From"
+ }
subject {
+ link_url_col
+ message_url
label "Subject"
}
date {
label "Date"
}
- from {
- label "From"
- }
attachment_count {
label "Attachments"
}
@@ -33,8 +38,11 @@
-no_data "You don't have any messages." \
-elements $elements
-db_multirow messages select_messages "
- select title as subject,
+# TODO: make case_name be a combo of simulation name and case #
+db_multirow -extend { message_url } messages select_messages "
+ select sm.message_id,
+ sm.title as subject,
+ sm.case_id as case_name,
creation_date as date,
(select p.first_names || ' ' || p.last_name
from persons p
@@ -43,5 +51,12 @@
from cr_item_rels
where item_id = item_id
and relation_tag = 'attachment') as attachment_count
- from sim_messagesi
-"
\ No newline at end of file
+ from sim_messagesx sm,
+ workflow_case_role_party_map wcrmp,
+ party_approved_member_map pamm
+ where pamm.member_id = :user_id
+ and wcrmp.party_id = pamm.party_id
+ and wcrmp.case_id = sm.case_id
+" {
+ set message_url [export_vars -base "[apm_package_url_from_id $package_id]simplay/message" { message_id }]
+}
\ No newline at end of file
Index: openacs-4/contrib/packages/simulation/lib/tasks.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/tasks.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/contrib/packages/simulation/lib/tasks.adp 16 Dec 2003 14:16:28 -0000 1.1
@@ -0,0 +1 @@
+
Index: openacs-4/contrib/packages/simulation/lib/tasks.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/lib/Attic/tasks.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/contrib/packages/simulation/lib/tasks.tcl 16 Dec 2003 14:16:28 -0000 1.1
@@ -0,0 +1,47 @@
+simulation::include_contract {
+ Displays a list of tasks for a given user_id
+
+ @author Joel Aufrecht
+ @creation-date 2003-11-12
+ @cvs-id $Id: tasks.tcl,v 1.1 2003/12/16 14:16:28 joela Exp $
+} {
+ user_id {
+ default_value ""
+ }
+}
+
+set package_id [ad_conn package_id]
+
+set elements {
+ case_name {
+ label "Case"
+ }
+ name {
+ link_url_col task_url
+ label "Task"
+ }
+}
+
+template::list::create \
+ -name tasks \
+ -multirow tasks \
+ -no_data "You don't have any tasks." \
+ -elements $elements
+
+# TODO: make case_name be a combo of simulation name and case #
+db_multirow -extend { task_url } tasks select_tasks "
+ select wcea.enabled_action_id,
+ wa.pretty_name as name,
+ wcea.case_id
+ from workflow_case_enabled_actions wcea,
+ workflow_case_role_party_map wcrmp,
+ workflow_actions wa,
+ party_approved_member_map pamm
+ where pamm.member_id = :user_id
+ and wcrmp.party_id = pamm.party_id
+ and wcrmp.case_id = wcea.case_id
+ and wcrmp.role_id = wa.assigned_role
+ and wa.action_id = wcea.action_id
+" {
+ set task_url [export_vars -base "[apm_package_url_from_id $package_id]simplay/task-detail" { enabled_action_id }]
+}
\ No newline at end of file
Index: openacs-4/contrib/packages/simulation/sql/postgresql/simulation-content-types-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/sql/postgresql/Attic/simulation-content-types-create.sql,v
diff -u -r1.13 -r1.14
--- openacs-4/contrib/packages/simulation/sql/postgresql/simulation-content-types-create.sql 28 Nov 2003 12:55:45 -0000 1.13
+++ openacs-4/contrib/packages/simulation/sql/postgresql/simulation-content-types-create.sql 16 Dec 2003 14:16:28 -0000 1.14
@@ -261,6 +261,7 @@
----------------------------------------------------------------------
-- sim_message
----------------------------------------------------------------------
+-- # TODO: conststrain to_role_id and from_role_id
select content_type__create_type(
'sim_message', -- content_type
@@ -285,37 +286,26 @@
select content_type__create_attribute(
'sim_message', -- content_type
- 'to_case_id', -- attribute_name
+ 'from_role_id', -- attribute_name
'integer', -- datatype
- 'To case_id', -- pretty_name
- 'To case_ids', -- pretty_plural
+ 'From role_id', -- pretty_name
+ 'From rase_ids', -- pretty_plural
2, -- sort_order
null, -- default_value
'integer' -- column_spec
);
select content_type__create_attribute(
'sim_message', -- content_type
- 'from_role_id', -- attribute_name
+ 'case_id', -- attribute_name
'integer', -- datatype
- 'From role_id', -- pretty_name
- 'From role_ids', -- pretty_plural
+ 'Case ID', -- pretty_name
+ 'case IDs', -- pretty_plural
3, -- sort_order
null, -- default_value
'integer' -- column_spec
);
-select content_type__create_attribute(
- 'sim_message', -- content_type
- 'from_case_id', -- attribute_name
- 'integer', -- datatype
- 'From case_id', -- pretty_name
- 'From case_ids', -- pretty_plural
- 1, -- sort_order
- null, -- default_value
- 'integer' -- column_spec
-);
-
select content_type__register_relation_type (
'sim_message', -- content_type
'sim_prop', -- target_type
Index: openacs-4/contrib/packages/simulation/www/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/Attic/index.adp,v
diff -u -r1.26 -r1.27
--- openacs-4/contrib/packages/simulation/www/index.adp 11 Dec 2003 13:21:52 -0000 1.26
+++ openacs-4/contrib/packages/simulation/www/index.adp 16 Dec 2003 14:16:28 -0000 1.27
@@ -2,43 +2,40 @@
@page_title;noquote@
@context;noquote@
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+ Log in to see your active cases.
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Log in to see your active cases.
-
-
-
-
-
-
+
Index: openacs-4/contrib/packages/simulation/www/map-master.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/Attic/map-master.adp,v
diff -u -r1.4 -r1.5
--- openacs-4/contrib/packages/simulation/www/map-master.adp 18 Nov 2003 13:31:33 -0000 1.4
+++ openacs-4/contrib/packages/simulation/www/map-master.adp 16 Dec 2003 14:16:28 -0000 1.5
@@ -2,30 +2,18 @@
@title;noquote@
@context;noquote@
-
-
+
+
-
+
+
+
+
+ |
+
+
+ Placeholder for flash map
+ |
+
+
+
Index: openacs-4/contrib/packages/simulation/www/yellow-pages.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/Attic/yellow-pages.adp,v
diff -u -r1.4 -r1.5
--- openacs-4/contrib/packages/simulation/www/yellow-pages.adp 2 Dec 2003 13:46:53 -0000 1.4
+++ openacs-4/contrib/packages/simulation/www/yellow-pages.adp 16 Dec 2003 14:16:28 -0000 1.5
@@ -1,4 +1,4 @@
-
+
@page_title;noquote@
@context;noquote@
Index: openacs-4/contrib/packages/simulation/www/doc/data-model.dia
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/doc/Attic/data-model.dia,v
diff -u -r1.8 -r1.9
--- openacs-4/contrib/packages/simulation/www/doc/data-model.dia 11 Dec 2003 13:21:52 -0000 1.8
+++ openacs-4/contrib/packages/simulation/www/doc/data-model.dia 16 Dec 2003 14:16:28 -0000 1.9
@@ -1,94 +1,104 @@
� �}�s�8����
-E�e7�B A���٘鉉=��ll�^� %Z�$*Hz\�|���ɔ��R��該1 �/d�|���m���+-�,����y�n��"�,����}*?��?��"K���[�z�ޱ)�O�|����~���ʤ���H������*�Y
-���?M&o/�H�D�n�ۤ�����J'�d����6�]��f��7�Wy1�W����Ow��>�����{�9q�m�Lo�4�z��T�/��\z���]o�2SC���!G����͘ݨR
-�,���_���[����Zm7z�H�N�e�yoG}6��`�A���:������W��x�U�d�{�y�J�Mc�.Y��pC��Վ.R��T�_���"-;��1G�t��sק~8��i~u�e�M�����]����������7�B~���M��*�,�b1�N������Q;�l�������pB�bʇ��|���C4e, ���""���w�q{{h�P�H6�U�ƌ�V|1�JF�7̧D3���u<ϋ��=ʨ���z�G� ¤�<���>�sU}������چѹ�3�F�٘��N 8��>�[��x+���"{(��x�o~� y0��5��h��M�Ŷ��XcG��G��qN"�w
-p�)� \0��w�D�m��|�+�y�ctS�ؙM%�ƶ�9��fg�*F��|�<`�z��[�I[���o�ixè$��}9
- ��^\���lxD�0R�c�á_�f��E=�l��*�N���w�yXϷ�7�8�sѕ���?:��r�C�Y%E'E�?^>U�nw¬/��������Ώi�m�������}B�&��|4��Q�|��?�2�WR�7�?�r���>O^_Vg�wpoy3۽Y9��w3�>FspS�q���xȂ���l1¥祉Z@�?��x}C>>���p�ԇ���Fq�_��{� =fkD�p���5s����f<"��9P��m�|�I�����1���0�'�}�����6@�G>�o��b�0ΗP�ߪ��у1GW�p@}9B|9��=���7U�!���]��VO�~�M�yRVO;oݼ���տ�*�'o�t�;ha��;��ȾnwP��+%I�<;s�(9J�z��!��U�ܬ����u�����]ƨ����Tp�����$jٔ�/�jʡ'
-�����L�K?"��ԓG�������tM�1�gM;�}��t��8��=�D�~q���0�gi6
-�fS�*�n�ǘ�٦���3슱+Ʈ�wŲ�`+��b�]�(�����oj��u��e��)Lj'�'?��Ǔ�Y�x��׳H=5��I֓4Y:��X���
-����9�2[��,�e������"���{̚� ���]?��q���Tr�ޛ�+W���a�-�'��P:7�o�"��ڮL=�Nj�.������{��ٹˋ�ٸu�^�ݗ
-��
-�&/��*>�!����M^n�y�~��k�Pdi1��3��܁Z'Ƹ�m�zZ���>���Qnb����ݷ��Q��v�����w"G�����ɺ�й�N�>k�,�˝����{4������'�ٔ��������ep���]����K�>���`���>��Xz�yu8+�i�VY�t�dkyPo�$f��4@�r��?��9��2UV��`�1��"-�E��g> �r������V_�n�c���aM=@
-P��p\ �p\Ƈ�����S1aSF����b� .���|Ϭf��l� 8 N�̓�p �^��+�5�@��:��UA�W�k ���뭂^�����~�[��ȺN4�/��u��-ͦR�h�Xc��_wlp� ,@`Y`A�tC��OXp�O��hl֍+%��n���Z�U�O�R8������Z<�6�!�������A��\-8,v�XB���m�=�u��HDXBϴ��z�s�@L���0�Bk_s"k�2O�Ch��˥4�m��(N�#,��`
-H�{A-�&!�w& lfߧ���.���wz=05Sg�����.����(�4YG���4�/:�ksN��A�#�m��e�� ��Õ�v�?�]/geʫ��j��R�]}�z������#i���Z%��f�H�B':�� �N(tB�
-��Q-A':�m[�m����i�5}��e��|��ER%�Q�~l�)���R��N0[n����Q�C�����&���Ny����(h���w��ҡ1k���G�ڔG<��٫mA�j���O���t�����y���cx
-yC���kH���K�{���ﷹ磴��H1��R�z�ӄ�R�)�W�J���E@��%�`5O#�,aN�����$�+�`oy��W@^y��Wh�q5��X �0�ŅA;�
-�x���=�����L5�ŗ�'��
-V�Ҹ�_W@\q�W@\q�W@\q�W��U_��d�[�I�"�=�J��>%�-sA���Δ�fS���l����zF���662V�5V�{��ځ��5 N��
-8��>��R�g��%��,,tU�:TF�������Z^:^����ۗ�&:? Cè[�>u�=Z�̞�,�����2��J{��8 {�7�X��b�d0A���9i�W� M���������Su��$Q�ћ ���ŧ�:��#�E�B��H0Bk;>Q�9mT���Fj��k�^�8�qJqr�����K߸%U^�U�^�X�K��URT��Cf}qw�÷F��!�A3�O���g��*'���x-n˝�w)#R��$�i�j���
-I
-�S3SD�\ʡF$�Ϡ6���aU��@n �jL`7X �� v�
-`7�����^���d8��=H 9\��>���(nZ�^?l�M��V@���C�<)u� �t �A�N��t @�/tƔEp �b��b�p �!��z� 6��њ���7y�Ƌ�B� �z@�a�L�*]ċ��8� �P�}�}58���H n��F.i�'��ya4{6+����=kC��_8&�ԗ�|�(5�����x
-������{kp>V��+D��\!R�m��U �I���j��y��n�?�(Aa
-CP�SD�4Ba
-CP����0�ԩ�y����� ��7�p�����r �1p�ɶ��� ȁL9ڟ7�W�d�5Y���� �r���+*� �ri9/�-��8� 9C���u��?��>sϾ��i���N oڐ�ؙMu�H3���b��g&��]�"3J��oɼ���
-�7p��}�
--��}�
-�7p��}���T0��|CRa9$�~\�#������p ���Gsu����ls���[ ! �|�Q�:��P������(�a�v�a'Î
-�ȓ��T��|��e)���c��6O���;8� <��=�@�t�"M�2/*T�:�X���ߺb!
-8�a�$R�.k�)ƞMy�l0"k�>'��.�2O��A������.�3 �P�peU��P���-�hE(Z@��#JP���\O�B�C<� �x�/k�
-��!ʌW[��l�3B�M��c�����C��|wM�b�q8���@:g!�@q�!gR֠���!�@���r@˾���A ��فu �k��y�X ۫����ٔ�Z��[2���L�ҭ�&�^(;.�o��z����m��F`�m��F`��t�& �����.QD�CB�p\����
-�7�
-��W�G�j��Am��g먶�A�fg[��,��]09;^�K���Fal���Fal���*�O��GXaD�>n�j.5�q(�lþ���U�Y$�b2�|ɖ_��o�&m�fK�hv�?n$t��fBqE$�i�(�YJp�>�g�~m�(1F)���qA�nT���E��=�)^c'^�J���*�]�e���[x��XX��OPB�f?6�8)�����Ʃ��U�Y��}ik��2�0�7��>�����W&����U����=��q�����ǎ����}��1��f�լd�T�ZY�I��g5C���v�Nr���8��tP�5��Ɔ/�/�/�狅�/��/�.3j��=>��7l�dw{&�t�.L\��@�d�d�d��c~��������%a�S���A>XFN�c����[d;o|�-���W�q�X� ;�[ly�7r���w��
-���E0Tl���G�Ƈ�8���8{�����"t�o�p�k?��̦R4?���Vΰ���nF@"�Z�||�2S��}�����f@6�?ݩ�Q�f@6��̀ld3N��?�!e�ކ�艞l/2}B�x1����@��tP�^ЖQ�1�8*��4�8��rQ@�Ʃ�lwT�vjfa9�G�?*7W[)�("�x�q��5�;���C<�8���;QP[G���C(�W)� � IN�n��׀�1dV�