/[scire]/trunk/scire/.smarty/templates/jobs.tpl
Gentoo

Contents of /trunk/scire/.smarty/templates/jobs.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 352 - (show annotations) (download) (as text)
Wed Jan 16 02:46:18 2008 UTC (6 years, 7 months ago) by codeman
File MIME type: application/vnd.groove-tool-template
File size: 1375 byte(s)
fixing up the jobs stuff.  halfway there i'd say.

1 {include file="header.tpl" title="Jobs"}
2 <form action="" method="post" name="jobsform">
3 <p>
4 <strong>Search filter:
5 <input type="text" name="searchfield">
6 </strong>
7 </p>
8 {if $jobs}
9 <table class="box" width="100%" border="1" cellpadding="0" cellspacing="0">
10 <tr><td class="boxtitle">Jobs</td></tr>
11 <tr><td>
12
13 <table class="table" width="100%" border="1" cellspacing="0" cellpadding="0">
14 <tr>
15 {foreach from=$fields item=i key=k}
16 <th>
17 <a href="jobs.php{if $f_attr[$i].sortable}?sorton={$i}&sortdir={if $sorton eq $i and $sortdir eq "desc"}asc{else}desc{/if}{/if}">{$f_attr[$i].name}</a> {if $f_attr[$i].sortable}<img src="images/sort_{if $sorton eq $i and $sortdir eq "desc"}desc{else}asc{/if}.png">{/if}
18 </th>
19 {/foreach}
20
21 <th>Actions</th>
22 </tr>
23 {section name=jobs loop=$jobs}
24 <tr>
25 {foreach from=$fields item=item key=key}
26 {if $item eq "hostname"}
27 <td><a href="job.php?jobid={$jobs[jobs].jobid}&Action=edit">{$jobs[jobs].hostname}</a></td>
28 {else}
29 <td>{$jobs[jobs].$item}</td>
30 {/if}
31 {/foreach}
32 <td>
33 <a href="job.php?jobid={$jobs[jobs].jobid}&Action=view">View Details</a>
34 <a href="job.php?jobid={$jobs[jobs].jobid}&Action=edit">Edit</a>
35 <a href="job.php?jobid={$jobs[jobs].jobid}&Action=delete">Delete</a>
36
37 </td>
38 </tr>
39 {/section}
40
41 </td></tr>
42
43 </table>
44 {/if}
45 </form>
46 {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20