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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 361 - (show annotations) (download) (as text)
Mon Feb 18 05:12:29 2008 UTC (6 years, 9 months ago) by codeman
File MIME type: application/vnd.groove-tool-template
File size: 2488 byte(s)
adding a link to create a job.

1 {include file="header.tpl" title="Clients"}
2 <form action="" method="post" name="clientsform">
3 <p>
4 <strong>Search filter:
5 <input type="text" name="searchfield">
6 </strong>
7 {if check_access("View Pending Clients")}
8 <strong>Status Filter:
9 <select name="statusfilter" size="1">
10 {html_options values=$statusfilters output=$statusfilters selected=$View}
11 </select>
12 <input type="submit" name="submit" value="Update">
13 </strong>
14 {/if}
15 </p>
16 {if $clients}
17 <table class="box" width="100%" border="1" cellpadding="0" cellspacing="0">
18 <tr><td class="boxtitle">Clients</td></tr>
19 <tr><td>
20
21 <table class="table" width="100%" border="1" cellspacing="0" cellpadding="0">
22 <tr>
23 {foreach from=$fields item=i key=k}
24 <th>
25 <a href="clients.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}
26 </th>
27 {/foreach}
28
29 <th>Actions</th>
30 {if $View eq "Pending"}
31 <th>Approve/Deny</th>
32 {/if}
33 </tr>
34 {section name=clients loop=$clients}
35 <tr>
36 {foreach from=$fields item=item key=key}
37 {if $item eq "hostname"}
38 <td><a href="client.php?clientid={$clients[clients].clientid}&Action=edit">{$clients[clients].hostname}</a></td>
39 {else}
40 <td>{$clients[clients].$item}</td>
41 {/if}
42 {/foreach}
43 <td>
44 {if check_access("Run Job") }
45 <a href="job.php?clientid={$clients[clients].clientid}&Action=create">Create Job</a>
46 {/if}
47 {if check_access("Edit Client") }
48 <a href="client.php?clientid={$clients[clients].clientid}&Action=edit">Edit</a>
49 {/if}
50 {if ($View eq "Pending") and check_access("Approve/Reject Pending Clients")}
51 <a href="client.php?clientid={$clients[clients].clientid}&Action=assign">Assign</a>
52 {else}
53 <a href="client.php?clientid={$clients[clients].clientid}&Action=delete">Delete</a>
54 {/if}
55 </td>
56 {if $View eq "Pending" and check_access("Approve/Reject Pending Clients")}
57 <td>
58 <input type="checkbox" name="pending_ids[]" value="{$clients[clients].clientid}">
59 </td>
60 {/if}
61 </tr>
62 {/section}
63
64 </td></tr>
65
66 </table>
67 {if $View eq "Pending" and check_access("Approve/Reject Pending Clients")}
68 <tr>
69 <td align="right"><input type="submit" name="pend_approve" value="Approve">
70 <input type="submit" name="pend_reject" value="Reject"></td>
71 </tr>
72 {/if}
73 {/if}
74 </form>
75 {include file="footer.tpl"}

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20