~ubuntu-wanted-dev/ubuntu-wanted/devel

« back to all changes in this revision

Viewing changes to module/wanted/themes/wanted/wantedjob/default.php

  • Committer: Sense Hofstede
  • Date: 2008-08-31 12:51:18 UTC
  • mfrom: (7.1.2 devel)
  • Revision ID: sense@qense.nl-20080831125118-7cqdhuvgr5rhnioj
 * Using {baseurl}/task/{id} you can view a single task. Still very basic.
 * A basic UserDataModel is created. An array of uids(array($uid => '', $uid2 => '')) and an array of fields(array(name, mail)) can be passed on to limit the 
scope. The uid array is required.
 * The username of the poster is now displayed at wantedjoblist and wantedjob.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php 
 
2
/*
 
3
Copyright (C) 2008 Nicolas Deschildre <ndeschildre@gmail.com>
 
4
Copyright (C) 2008 Sense Hofstede <sense@qense.nl>
 
5
 
 
6
This program is free software; you can redistribute it and/or
 
7
modify it under the terms of the GNU General Public License
 
8
as published by the Free Software Foundation; either version 2
 
9
of the License, or (at your option) any later version.
 
10
 
 
11
This program is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with this program; if not, write to the Free Software
 
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
*/
 
20
 
 
21
 
 
22
 
 
23
?>      
 
24
 
 
25
<!-- Wanted starts here -->
 
26
<div class="wanted">
 
27
 
 
28
 
 
29
 
 
30
<b class="ubuntu_title">
 
31
<b class="ubuntu_title1"><b></b></b>
 
32
<b class="ubuntu_title2"><b></b></b>
 
33
<b class="ubuntu_title3"></b>
 
34
<b class="ubuntu_title4"></b>
 
35
<b class="ubuntu_title5"></b></b>
 
36
 
 
37
<table width="100%" class="ubuntu_title_main"><tr><td>
 
38
<h1 style="padding:10px 0px 0px 10px; margin: 0px 0px 0px 0px">
 
39
Task #<?php echo $data["wantedjob"]->id; ?>: <?php echo force_text_wrap(strip_tags_and_evil_attributes($data["wantedjob"]->title), 30); ?>
 
40
</h1><br />
 
41
 
 
42
</td></tr></table>
 
43
 
 
44
 
 
45
<b class="ubuntu_title">
 
46
<b class="ubuntu_title5"></b>
 
47
<b class="ubuntu_title4"></b>
 
48
<b class="ubuntu_title3"></b>
 
49
<b class="ubuntu_title2"><b></b></b>
 
50
<b class="ubuntu_title1"><b></b></b></b>
 
51
 
 
52
<table style="width:100%">
 
53
<tr><td>
 
54
 
 
55
 
 
56
</td>
 
57
<td style="text-align:right;">
 
58
 
 
59
 
 
60
</td></tr></table>
 
61
 
 
62
 
 
63
<table class="choicelisting" style="width: 100%;">
 
64
 
 
65
<tr>
 
66
 
 
67
<td>
 
68
 
 
69
 
 
70
<table style="border-spacing: 0px 0px; width:100%">
 
71
<tr><td>
 
72
 
 
73
 
 
74
 
 
75
</td>
 
76
 
 
77
 
 
78
</tr>
 
79
<tr><td style="font-size:x-small; padding-top:0; color:rgb(100,100,100); font-size:10px">
 
80
 
 
81
<span style="padding:0; margin:0"> Written by <a class="authorlink" href="<?php echo $GLOBALS['basemodule_url'] . "/contributor/" .$data['userdata'][$data['wantedjob']->userid]->name. "/"; ?>"><?php echo $data['userdata'][$data['wantedjob']->userid]->name; ?></a> the <?php echo date('j M y',strtotime($data["wantedjob"]->date)) . " at " . date('H:i',strtotime($data["wantedjob"]->date)); ?>. </span>
 
82
 
 
83
</td>
 
84
</tr>
 
85
<tr>
 
86
<td>
 
87
 
 
88
 
 
89
<?php
 
90
if($data["wantedjob"]->description != null)
 
91
        echo str_replace("\n", "<br />", strip_tags_and_evil_attributes($data["wantedjob"]->description, "<a>"));
 
92
else
 
93
        echo "[No description]";
 
94
?>
 
95
 
 
96
</a>
 
97
<br />
 
98
<br />
 
99
 
 
100
 
 
101
 
 
102
</td></tr>
 
103
</table>
 
104
 
 
105
</td>
 
106
</tr>
 
107
 
 
108
</table>
 
109
 
 
110
 
 
111
</div>
 
112
<!-- Wanted ends here -->
 
113