| |
190 |
190 |
set complete_url [export_vars -base "${tasks_url}mark-completed" -url {task_id orderby {party_id $contact_id} return_url}] |
| |
191 |
191 |
if { $status_id == "2" } { |
| |
192 |
192 |
set done_p 1 |
| |
193 |
193 |
} else { |
| |
194 |
194 |
set done_p 0 |
| |
195 |
195 |
} |
| |
196 |
196 |
set task_url [export_vars -base "${tasks_url}task" -url {{party_id $contact_id} orderby status_id task_id}] |
| |
197 |
197 |
set task_plus_url [export_vars -base "${tasks_url}task-interval" -url {{action plus} {days 7} {party_id $contact_id} task_id status_id orderby return_url}] |
| |
198 |
198 |
set task_minus_url [export_vars -base "${tasks_url}task-interval" -url {{action minus} {days 7} {party_id $contact_id} task_id status_id orderby return_url}] |
| |
199 |
199 |
|
| |
200 |
200 |
regsub -all "\r|\n" $description {LiNeBrEaK} description |
| |
201 |
201 |
|
| |
202 |
202 |
set description_html [ad_html_text_convert \ |
| |
203 |
203 |
-from $mime_type \ |
| |
204 |
204 |
-to "text/html" \ |
| |
205 |
205 |
-truncate_len "400" \ |
| |
206 |
206 |
-more "<a href=\"${task_url}\">[_ tasks.more]</a>" \ |
| |
207 |
207 |
-- $description] |
| |
208 |
208 |
regsub -all {LiNeBrEaKLiNeBrEaK} $description_html {LiNeBrEaK} description_html |
| |
209 |
209 |
regsub -all {LiNeBrEaK} $description_html {\ \ \¶\ } description_html |
| |
210 |
|
|
| |
211 |
210 |
regsub -all " " $due_date {\ } due_date |
| |
212 |
211 |
regsub -all " " $completed_date {\ } completed_date |
| |
213 |
212 |
} |