Index: openacs-4/contrib/packages/simulation/www/simplay/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/www/simplay/Attic/index.adp,v
diff -u -r1.23.2.3 -r1.23.2.4
--- openacs-4/contrib/packages/simulation/www/simplay/index.adp	4 May 2004 09:19:11 -0000	1.23.2.3
+++ openacs-4/contrib/packages/simulation/www/simplay/index.adp	1 Jun 2004 14:46:42 -0000	1.23.2.4
@@ -1,433 +1,28 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-  <head>
-    <meta name="generator" content="OpenACS version 5.1.0d1">
-    <title>SimPlay</title>
-    
-        
-  <link rel="stylesheet" type="text/css" href="resources/under-construction.css" media="all">
-  
+<master src="/packages/simulation/www/simulation-master">
+  <property name="title">@title;noquote@</property>
+  <property name="context">@context;noquote@</property>
 
-    <link rel="stylesheet" type="text/css" href="/resources/acs-subsite/site-master.css" media="all">
-  
-    
-      <link rel="stylesheet" type="text/css" href="/resources/acs-templating/lists.css" media="all">
-    
-      <link rel="stylesheet" type="text/css" href="/resources/acs-templating/forms.css" media="all">
-
-    
-      <link rel="stylesheet" type="text/css" href="/resources/acs-subsite/default-master.css" media="all">
-    
-    <script src="/resources/acs-subsite/core.js" language="javascript"></script>
-    <textarea id="holdtext" style="display: none;"></textarea>
-
-  </head>
-  <body bgcolor="white" text="black">
-    
-
-
-<!-- Header -->
-
-<table cellspacing="0" cellpadding="0" width="100%" class="subsite-header" border="0">
-  <tr>
-
-    <td class="system-name">
-      <a href="http://132.229.155.224">Sieberdam Build Server</a>
-    </td>
-
-    <td align="center">
-      
-        Welcome, Lokman Tsui
-      
-    </td>
-
-    <td align="center" class="button-bar">
-      <a href="/shared/whos-online">1 user online</a>
-
-    </td>
-
-    <td align="right" style="padding-right: 8px;" class="button-bar">
-      
-        <a href="/acs-admin/" title="Site-wide administration">Admin</a>
-      
-        <a href="/pvt/home" title="Change password, email, portrait">Your Account</a>
-      
-        <a href="/register/logout" title="Logout from Sieberdam Build Server">Logout</a>
-      
-    </td>
-  </tr>
-
-</table>
-
-
-<div id="body">
-  <div id="navbar-body">
-    <div class="subsite-context-bar">
-      <div style="float: left"><a href="/">Main Site</a> : <a href="/simulation/">Simulation</a> : SimPlay</div>
-      <div style="float: right">[<a href="/simulation/citybuild">CityBuild</a> | <a href="/simulation/simbuild">SimBuild</a> | <a href="/simulation/siminst">SimInst</a> | <a href="/simulation/simplay">SimPlay</a> | <a href="/shared/parameters?package%5fid=618&return%5furl=%2fsimulation%2fsimplay%2f">Configuration</a> | <a href="/test/admin/index?by_package_key=simulation&view_by=testcase&quiet=0">Tests</a> | <a href="/doc/simulation">Doc</a>]</div>
-
-      <div style="clear: both;"></div>
-    </div>
-
-      <div id="subsite-name">
-        
-          <h1 class="subsite-page-title">SimPlay</h1>
-        
-      </div>
-      
-
-</if>
-
 <div class="simplay_index_cases">
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-            
-              Case
-            
-          </th>
-        
-          <th class="list">
-            
-              Simulation
-            
-          </th>
-        
-          <th class="list">
-            
-              Role
-            
-          </th>
-
-        
-          <th class="list">
-            
-              Status
-            
-          </th>
-        
-          <th class="list" align="right">
-            
-              Your Tasks
-            
-          </th>
-        
-      </tr>
-    
-    
-                <tr class="list-odd last">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/case?case%5fid=18&amp;role%5fid=123">Case #1</a>
-
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  Active
-                </td>
-
-              
-                <td class="list" align="right">
-                  
-            3
-        
-                </td>
-              
-            </tr>
-          
-        
-
-  </table>
+  <include src="/packages/simulation/lib/cases" party_id="@user_id@"/>
 </div>
 
-</p>
+<if @adminplayer_p@ true>
+  <h3>#simulation.Administration#</h3>
 
-<p></p>
+  <div class="simplay_index_cases_admin">
+    <h3>#simulation.lt_You_administer_these#</h3>
+    <include src="/packages/simulation/lib/cases-admin"/>
+  </div>
 
+  <div class="simplay_index_messages">
+    <h3>#simulation.All_Messages#</h3>
+    <include src="/packages/simulation/lib/messages" user_id="@user_id@">
+  </div>
 
-<h3>Administration</h3>
-<div class="simplay_index_cases_admin">
-  <h3>You administer these cases</h3>
-
-  
-
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-            
-                <a href="/simulation/simplay/?orderby=label%2casc" title="Sort the list by this column">Case</a>
-              
-          </th>
-        
-          <th class="list">
-
-            
-                <a href="/simulation/simplay/?orderby=pretty%5fname%2casc" title="Sort the list by this column">Simulation</a>
-              
-          </th>
-        
-      </tr>
-    
-    
-      <tr class="list-odd last">
-        <td class="list" colspan="2">
-          You are not administering any active simulation cases.
-        </td>
-      </tr>
-    
-
-  </table>
-</div>
-
-</p>
-
-  <p></p>
-
-<div class="simplay_index_messages">
-  <h3>All Messages</h3>
-
-  
-
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-
-            
-              From
-            
-          </th>
-        
-          <th class="list">
-            
-              To
-            
-          </th>
-        
-          <th class="list">
-            
-              Subject
-            
-          </th>
-        
-          <th class="list">
-            
-              Received
-            
-          </th>
-
-        
-          <th class="list" align="center">
-            
-              Attachments
-            
-          </th>
-        
-          <th class="list">
-            
-              Case
-            
-          </th>
-        
-          <th class="list">
-            
-              Simulation
-            
-          </th>
-        
-      </tr>
-
-    
-    
-                <tr class="list-odd last">
-              
-    
-                <td class="list">
-                  Consument
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  <a href="/simulation/simplay/message?case%5fid=18&amp;role%5fid=123&amp;item%5fid=1545"> fg hjf ghj</a>
-
-                </td>
-              
-                <td class="list">
-                  03/09/04 04:50 PM
-                </td>
-              
-                <td class="list" align="center">
-                  0
-                </td>
-              
-                <td class="list">
-                  Case #1
-                </td>
-
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-              
-            </tr>
-          
-        
-
-  </table>
-</div>
-
-</p>
-
-
-  <p></p>
-<div class="simplay_index_tasks">
-  <h3>All Tasks</h3>
-
-  
-
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-            
-              Task
-            
-          </th>
-        
-          <th class="list">
-            
-              Role
-            
-          </th>
-
-        
-          <th class="list">
-            
-              Case
-            
-          </th>
-        
-          <th class="list">
-            
-              Simulation
-            
-          </th>
-        
-      </tr>
-    
-    
-                <tr class="list-odd">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/task-detail?case%5fid=18&amp;enabled%5faction%5fid=65&amp;role%5fid=123">Vragen stellen
-                aan Consument</a>
-
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  Case #1
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-
-              
-            </tr>
-          
-        
-                <tr class="list-even">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/task-detail?case%5fid=18&amp;enabled%5faction%5fid=71&amp;role%5fid=123">Bibliotheek bezoeken.AdvConsument</a>
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-
-                  Case #1
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-              
-            </tr>
-          
-        
-                <tr class="list-odd last">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/task-detail?case%5fid=18&amp;enabled%5faction%5fid=70&amp;role%5fid=123">Advies schrijven.AdvConsument</a>
-
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  Case #1
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-
-              
-            </tr>
-          
-        
-
-  </table>
-</div>
-
-</p>
-
-  <p></p>
-
-
-      <div style="clear: both;"></div>
-
+  <div class="simplay_index_tasks">
+    <h3>#simulation.Your_Tasks#</h3>
+    <include src="/packages/simulation/lib/simulations-task-count">
   </div>
 
-</div>
+</if>
 
-
-
-    <a href="/acs-lang/admin">Install Locales</a>
-  
-  </body>
-</html>
Index: openacs-4/packages/simulation/www/simplay/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/simulation/www/simplay/index.adp,v
diff -u -r1.23.2.3 -r1.23.2.4
--- openacs-4/packages/simulation/www/simplay/index.adp	4 May 2004 09:19:11 -0000	1.23.2.3
+++ openacs-4/packages/simulation/www/simplay/index.adp	1 Jun 2004 14:46:42 -0000	1.23.2.4
@@ -1,433 +1,28 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-  <head>
-    <meta name="generator" content="OpenACS version 5.1.0d1">
-    <title>SimPlay</title>
-    
-        
-  <link rel="stylesheet" type="text/css" href="resources/under-construction.css" media="all">
-  
+<master src="/packages/simulation/www/simulation-master">
+  <property name="title">@title;noquote@</property>
+  <property name="context">@context;noquote@</property>
 
-    <link rel="stylesheet" type="text/css" href="/resources/acs-subsite/site-master.css" media="all">
-  
-    
-      <link rel="stylesheet" type="text/css" href="/resources/acs-templating/lists.css" media="all">
-    
-      <link rel="stylesheet" type="text/css" href="/resources/acs-templating/forms.css" media="all">
-
-    
-      <link rel="stylesheet" type="text/css" href="/resources/acs-subsite/default-master.css" media="all">
-    
-    <script src="/resources/acs-subsite/core.js" language="javascript"></script>
-    <textarea id="holdtext" style="display: none;"></textarea>
-
-  </head>
-  <body bgcolor="white" text="black">
-    
-
-
-<!-- Header -->
-
-<table cellspacing="0" cellpadding="0" width="100%" class="subsite-header" border="0">
-  <tr>
-
-    <td class="system-name">
-      <a href="http://132.229.155.224">Sieberdam Build Server</a>
-    </td>
-
-    <td align="center">
-      
-        Welcome, Lokman Tsui
-      
-    </td>
-
-    <td align="center" class="button-bar">
-      <a href="/shared/whos-online">1 user online</a>
-
-    </td>
-
-    <td align="right" style="padding-right: 8px;" class="button-bar">
-      
-        <a href="/acs-admin/" title="Site-wide administration">Admin</a>
-      
-        <a href="/pvt/home" title="Change password, email, portrait">Your Account</a>
-      
-        <a href="/register/logout" title="Logout from Sieberdam Build Server">Logout</a>
-      
-    </td>
-  </tr>
-
-</table>
-
-
-<div id="body">
-  <div id="navbar-body">
-    <div class="subsite-context-bar">
-      <div style="float: left"><a href="/">Main Site</a> : <a href="/simulation/">Simulation</a> : SimPlay</div>
-      <div style="float: right">[<a href="/simulation/citybuild">CityBuild</a> | <a href="/simulation/simbuild">SimBuild</a> | <a href="/simulation/siminst">SimInst</a> | <a href="/simulation/simplay">SimPlay</a> | <a href="/shared/parameters?package%5fid=618&return%5furl=%2fsimulation%2fsimplay%2f">Configuration</a> | <a href="/test/admin/index?by_package_key=simulation&view_by=testcase&quiet=0">Tests</a> | <a href="/doc/simulation">Doc</a>]</div>
-
-      <div style="clear: both;"></div>
-    </div>
-
-      <div id="subsite-name">
-        
-          <h1 class="subsite-page-title">SimPlay</h1>
-        
-      </div>
-      
-
-</if>
-
 <div class="simplay_index_cases">
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-            
-              Case
-            
-          </th>
-        
-          <th class="list">
-            
-              Simulation
-            
-          </th>
-        
-          <th class="list">
-            
-              Role
-            
-          </th>
-
-        
-          <th class="list">
-            
-              Status
-            
-          </th>
-        
-          <th class="list" align="right">
-            
-              Your Tasks
-            
-          </th>
-        
-      </tr>
-    
-    
-                <tr class="list-odd last">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/case?case%5fid=18&amp;role%5fid=123">Case #1</a>
-
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  Active
-                </td>
-
-              
-                <td class="list" align="right">
-                  
-            3
-        
-                </td>
-              
-            </tr>
-          
-        
-
-  </table>
+  <include src="/packages/simulation/lib/cases" party_id="@user_id@"/>
 </div>
 
-</p>
+<if @adminplayer_p@ true>
+  <h3>#simulation.Administration#</h3>
 
-<p></p>
+  <div class="simplay_index_cases_admin">
+    <h3>#simulation.lt_You_administer_these#</h3>
+    <include src="/packages/simulation/lib/cases-admin"/>
+  </div>
 
+  <div class="simplay_index_messages">
+    <h3>#simulation.All_Messages#</h3>
+    <include src="/packages/simulation/lib/messages" user_id="@user_id@">
+  </div>
 
-<h3>Administration</h3>
-<div class="simplay_index_cases_admin">
-  <h3>You administer these cases</h3>
-
-  
-
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-            
-                <a href="/simulation/simplay/?orderby=label%2casc" title="Sort the list by this column">Case</a>
-              
-          </th>
-        
-          <th class="list">
-
-            
-                <a href="/simulation/simplay/?orderby=pretty%5fname%2casc" title="Sort the list by this column">Simulation</a>
-              
-          </th>
-        
-      </tr>
-    
-    
-      <tr class="list-odd last">
-        <td class="list" colspan="2">
-          You are not administering any active simulation cases.
-        </td>
-      </tr>
-    
-
-  </table>
-</div>
-
-</p>
-
-  <p></p>
-
-<div class="simplay_index_messages">
-  <h3>All Messages</h3>
-
-  
-
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-
-            
-              From
-            
-          </th>
-        
-          <th class="list">
-            
-              To
-            
-          </th>
-        
-          <th class="list">
-            
-              Subject
-            
-          </th>
-        
-          <th class="list">
-            
-              Received
-            
-          </th>
-
-        
-          <th class="list" align="center">
-            
-              Attachments
-            
-          </th>
-        
-          <th class="list">
-            
-              Case
-            
-          </th>
-        
-          <th class="list">
-            
-              Simulation
-            
-          </th>
-        
-      </tr>
-
-    
-    
-                <tr class="list-odd last">
-              
-    
-                <td class="list">
-                  Consument
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  <a href="/simulation/simplay/message?case%5fid=18&amp;role%5fid=123&amp;item%5fid=1545"> fg hjf ghj</a>
-
-                </td>
-              
-                <td class="list">
-                  03/09/04 04:50 PM
-                </td>
-              
-                <td class="list" align="center">
-                  0
-                </td>
-              
-                <td class="list">
-                  Case #1
-                </td>
-
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-              
-            </tr>
-          
-        
-
-  </table>
-</div>
-
-</p>
-
-
-  <p></p>
-<div class="simplay_index_tasks">
-  <h3>All Tasks</h3>
-
-  
-
-  <table class="list" cellpadding="3" cellspacing="1">
-
-  
-      <tr class="list-header">
-        
-          <th class="list">
-            
-              Task
-            
-          </th>
-        
-          <th class="list">
-            
-              Role
-            
-          </th>
-
-        
-          <th class="list">
-            
-              Case
-            
-          </th>
-        
-          <th class="list">
-            
-              Simulation
-            
-          </th>
-        
-      </tr>
-    
-    
-                <tr class="list-odd">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/task-detail?case%5fid=18&amp;enabled%5faction%5fid=65&amp;role%5fid=123">Vragen stellen
-                aan Consument</a>
-
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  Case #1
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-
-              
-            </tr>
-          
-        
-                <tr class="list-even">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/task-detail?case%5fid=18&amp;enabled%5faction%5fid=71&amp;role%5fid=123">Bibliotheek bezoeken.AdvConsument</a>
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-
-                  Case #1
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-              
-            </tr>
-          
-        
-                <tr class="list-odd last">
-              
-    
-                <td class="list">
-                  <a href="/simulation/simplay/task-detail?case%5fid=18&amp;enabled%5faction%5fid=70&amp;role%5fid=123">Advies schrijven.AdvConsument</a>
-
-                </td>
-              
-                <td class="list">
-                  Advocaat Consument
-                </td>
-              
-                <td class="list">
-                  Case #1
-                </td>
-              
-                <td class="list">
-                  Testsimulatie voor Henk
-                </td>
-
-              
-            </tr>
-          
-        
-
-  </table>
-</div>
-
-</p>
-
-  <p></p>
-
-
-      <div style="clear: both;"></div>
-
+  <div class="simplay_index_tasks">
+    <h3>#simulation.Your_Tasks#</h3>
+    <include src="/packages/simulation/lib/simulations-task-count">
   </div>
 
-</div>
+</if>
 
-
-
-    <a href="/acs-lang/admin">Install Locales</a>
-  
-  </body>
-</html>