donb
committed
on 13 Jun 03
Fixed syntax error in query ...
openacs-4/.../lib/user-curriculums.adp (+7 -7)
1 1 <if @elements:rowcount@ not nil>
2 2 <p>
3 3   [
4     <a href="@url@start-over">Refresh all curriculums</a>
  4   <a href="@url@start-over?@return_url_export@">Refresh all curriculums</a>
5 5 <if @logged_in_p@>
6 6   |
7     <a href="@url@remove-from-bar">Remove all curriculums</a>
  7   <a href="@url@remove-from-bar?@return_url_export@">Remove all curriculums</a>
8 8 </if>
9 9   ]
10 10 </p>
11 11 <table border="0" width="100%">
12 12   <tr bgcolor="#cccccc" border="0" cellpadding="0" cellspacing="1" width="100%">
13 13     <th width="25%">Name</th>
14 14     <th width="50%">Description</th>
15 15     <th width="10%">Status</th>
16 16     <th width="15%">Options</th>
17 17   </tr>
18 18 </table>
19 19 <multiple name="elements">
20 20 <br>
21 21 <table bgcolor="#cccccc" border="0" cellpadding="2" cellspacing="0" width="100%">
22 22   <tr>
23 23     <td width="25%">
24 24       <a href="@url@curriculum-ave?curriculum_id=@elements.curriculum_id@" title="Detailed information">@elements.curriculum_name@</a>
25 25     </td>
26 26     <td width="50%">@elements.curriculum_desc@</td>
27 27     <td width="10%">
28 28     <if @logged_in_p@>
29 29       <if @elements.undesired_p@>
30 30         <if @elements.completed_p@>Removed</if><else>Dropped</else>
31 31     </td>
32 32     <td width="15%">
33 33       <if @elements.completed_p@>
34           <a href="@url@add-to-bar?curriculum_id=@elements.curriculum_id@&refresh_p=1">Retake</a>
  34         <a href="@url@add-to-bar?curriculum_id=@elements.curriculum_id@&refresh_p=1&@return_url_export@">Retake</a>
35 35       </if>
36 36       <else>
37           <a href="@url@add-to-bar?curriculum_id=@elements.curriculum_id@">Resume</a>
  37         <a href="@url@add-to-bar?curriculum_id=@elements.curriculum_id@&@return_url_export@">Resume</a>
38 38       </else>
39 39       </if>
40 40       <else>
41 41         <if @elements.completed_p@>Completed</if><else>Ongoing</else>
42 42     </td>
43 43     <td width="15%">
44           <a href="@url@start-over?curriculum_id=@elements.curriculum_id@">Refresh</a>
  44         <a href="@url@start-over?curriculum_id=@elements.curriculum_id@&@return_url_export@">Refresh</a>
45 45         |
46           <a href="@url@remove-from-bar?curriculum_id=@elements.curriculum_id@">
  46         <a href="@url@remove-from-bar?curriculum_id=@elements.curriculum_id@&@return_url_export@">
47 47           <if @elements.completed_p@>Remove</if><else>Drop</else>
48 48         </a>
49 49       </else>
50 50     </if>
51 51     <else>
52 52       <if @elements.completed_p@>Completed</if><else>Ongoing</else>
53 53     </td>
54 54     <td width="15%">
55         <a href="@url@start-over?curriculum_id=@elements.curriculum_id@">Refresh</a>
  55       <a href="@url@start-over?curriculum_id=@elements.curriculum_id@&@return_url_export@">Refresh</a>
56 56     </else>
57 57     </td>
58 58   </tr>
59 59   <tr>
60 60     <td colspan="4">
61 61
62 62 <table border="0" cellpadding="2" cellspacing="1" width="100%">
63 63 <if @elements.element_id@ not nil>
64 64   <group column="curriculum_id">
65 65   <if @elements.groupnum@ even><tr bgcolor="#eeeedd"></if><else><tr bgcolor="#eeeeee"></else>
66 66     <td>
67 67       <li>
68 68         <a href="@url@element-ave?curriculum_id=@elements.curriculum_id@&element_id=@elements.element_id@" title="Detailed information">@elements.element_name@</a>
69 69       </li>
70 70     </td>
71 71     <td width="50%">@elements.element_desc;noquote@</td>
72 72     <td width="10%">
73 73     <if @elements.checked_p@>
74 74       Visited
75 75     </td>