forked from chilek/lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customergrouplist.html
66 lines (66 loc) · 2.89 KB
/
customergrouplist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{include file="header.html"}
<!--// $Id$ //-->
<H1>{$layout.pagetitle}</H1>
<TABLE WIDTH="100%" CELLPADDING="3">
<TR class="dark">
<TD WIDTH="97%" CLASS="fleftu">
<IMG SRC="img/group.gif" ALT=""> <B>{trans("Name:")}</B><BR>
<IMG SRC="img/info1.gif" ALT=""> {trans("Description:")}
</TD>
<TD WIDTH="1%" CLASS="fbt" align="right">
{trans("ID:")}
</TD>
<TD WIDTH="1%" CLASS="fbt" align="right">
{trans("Members:")}
</TD>
<TD WIDTH="1%" CLASS="frightu" ALIGN="RIGHT" nowrap>
<B>{t a=$listdata.total|default:"0"}Total: $a{/t}</B>
</TD>
</TR>
{cycle values="light,lucid" print=false}
{section name=customergroups loop=$customergrouplist}
<TR class="{cycle}" onmouseover="addClass(this, 'highlight')" onmouseout="removeClass(this, 'highlight')">
<TD WIDTH="97%" CLASS="fleft" onClick="return self.location.href='?m=customergroupinfo&id={$customergrouplist[customergroups].id}';" class="fleft">
<IMG SRC="img/group.gif" ALT=""> <B>{$customergrouplist[customergroups].name}</B><BR>
{if $customergrouplist[customergroups].description}<IMG SRC="img/info1.gif" ALT=""> {$customergrouplist[customergroups].description}{/if}
</TD>
<TD WIDTH="1%" align="right" onClick="return self.location.href='?m=customergroupinfo&id={$customergrouplist[customergroups].id}';">
({$customergrouplist[customergroups].id|string_format:"%04d"})
</TD>
<TD WIDTH="1%" align="right" onClick="return self.location.href='?m=customergroupinfo&id={$customergrouplist[customergroups].id}';">
{$customergrouplist[customergroups].customerscount}
</TD>
<TD WIDTH="1%" CLASS="fright" ALIGN="right">
<NOBR>
{if $customergrouplist[customergroups].customers}
<A HREF="javascript:alert('{trans("Group with members cannot be deleted!")}');">
{else}
<A HREF="?m=customergroupdel&id={$customergrouplist[customergroups].id}" onClick="return confirmLink(this,'{trans("Are you sure, you want to remove this group?")}');">
{/if}<IMG SRC="img/delete.gif" alt="[ {trans("Delete")} ]" title="[ {trans("Delete")} ]"></A>
<A HREF="?m=customergroupedit&id={$customergrouplist[customergroups].id}"><IMG src="img/edit.gif" alt="[ {trans("Edit")} ]" title="[ {trans("Edit")} ]"></A>
<A HREF="?m=customergroupinfo&id={$customergrouplist[customergroups].id}"><IMG src="img/info.gif" alt="[ {trans("Info")} ]" title="[ {trans("Info")} ]"></A>
</NOBR>
</TD>
</TR>
{sectionelse}
<TR>
<TD COLSPAN="4" ALIGN="center" CLASS="fall">
<p> </p>
<p><B>{trans("There are no such groups in database.")}</B></p>
<p> </p>
</TD>
</TR>
{/section}
<TR CLASS="light">
<TD CLASS="fleftu" COLSPAN="2" WIDTH="98%" ALIGN="right">
<IMG SRC="img/info2.gif" ALT=""> <B>{trans("Total:")}</B>
</TD>
<TD CLASS="fbt" WIDTH="1%" ALIGN="right" NOWRAP>
<B>{$listdata.totalcount|default:"0"} </B>
</TD>
<TD CLASS="frightu" WIDTH="1%">
</TD>
</TR>
</TABLE>
{include file="footer.html"}