|
22 | 22 | <c:if test="${zone.zone.id == thisZone.zone.id}"> |
23 | 23 | <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<c:url value="/admin/taxZone/${thisTaxZone.id}/zone/${zone.id}"/>'"> |
24 | 24 | <td class="dataTableContent">${zone.zoneCountry.name}</td> |
25 | | - <td class="dataTableContent">${zone.zone.name}</td> |
| 25 | + <c:choose> |
| 26 | + <c:when test="${zone.zone == null}"> |
| 27 | + <td class="dataTableContent">All Zones</td> |
| 28 | + </c:when> |
| 29 | + <c:otherwise> |
| 30 | + <td class="dataTableContent"><:out value="${zone.zone.name}"/></td> |
| 31 | + </c:otherwise> |
| 32 | + </c:choose> |
26 | 33 | <td class="dataTableContent" align="right"><img src="resources/admin/images/icon_arrow_right.gif" border="0" alt="" /> </td> |
27 | 34 | </tr> |
28 | 35 | </c:if> |
29 | 36 | <c:if test="${zone.zone.id != thisZone.zone.id}"> |
30 | 37 | <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<c:url value="/admin/taxZone/${thisTaxZone.id}/zone/${zone.id}"/>'"> |
31 | 38 | <td class="dataTableContent">${zone.zoneCountry.name}</td> |
32 | | - <td class="dataTableContent">${zone.zone.name}</td> |
| 39 | + <c:choose> |
| 40 | + <c:when test="${zone.zone == null}"> |
| 41 | + <td class="dataTableContent">All Zones</td> |
| 42 | + </c:when> |
| 43 | + <c:otherwise> |
| 44 | + <td class="dataTableContent"><:out value="${zone.zone.name}"/></td> |
| 45 | + </c:otherwise> |
| 46 | + </c:choose> |
33 | 47 | <td class="dataTableContent" align="right"><a href="<c:url value="/admin/taxZone/${thisTaxZone.id}/zone/${zone.zone.id}"/>"><img src="resources/admin/images/icon_info.gif" border="0" alt="Info" title="Info" /></a> </td> |
34 | 48 | </tr> |
35 | 49 | </c:if> |
|
43 | 57 | </table></td> |
44 | 58 | </tr> |
45 | 59 | <tr> |
46 | | - <td class="smallText" align="right" colspan="3"><span class="tdbLink"><a id="tdb1" href="<c:url value="/admin/taxZones/${thisTaxZone.id}"/>">Back</a></span><script type="text/javascript">$("#tdb1").button({icons:{primary:"ui-icon-triangle-1-w"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script><span class="tdbLink"><a id="tdb2" href="http://shadowfax/oscommerce2/admin/geo_zones.php?zpage=1&zID=2&action=list&spage=1&sID=2&saction=new&osCAdminID=r9ji9b4276mi3itiavgakf9lb5">Insert</a></span><script type="text/javascript">$("#tdb2").button({icons:{primary:"ui-icon-plus"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script></td> |
| 60 | + <td class="smallText" align="right" colspan="3"><span class="tdbLink"><a id="tdb1" href="<c:url value="/admin/taxZones/${thisTaxZone.id}"/>">Back</a></span><script type="text/javascript">$("#tdb1").button({icons:{primary:"ui-icon-triangle-1-w"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script><span class="tdbLink"><a id="tdb2" href="<c:url value="/admin/taxZone/${thisTaxZone.id}/insert"/>">Insert</a></span><script type="text/javascript">$("#tdb2").button({icons:{primary:"ui-icon-plus"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script></td> |
47 | 61 | </tr> |
48 | 62 | </table> |
49 | 63 | </td> |
50 | 64 | <c:if test="${zones.size() > 0}"> |
51 | 65 | <td width="25%" valign="top"> |
52 | 66 | <table border="0" width="100%" cellspacing="0" cellpadding="2"> |
53 | 67 | <tr class="infoBoxHeading"> |
54 | | - <td class="infoBoxHeading"><strong>${thisZone.zone.name}</strong></td> |
| 68 | + <td class="infoBoxHeading"><strong>${thisZone.zoneCountry.name}</strong></td> |
55 | 69 | </tr> |
56 | 70 | </table> |
57 | 71 | <table border="0" width="100%" cellspacing="0" cellpadding="2"> |
|
0 commit comments