<!--%%IF is_json--><!--%%IF EXISTS(accounts)--><!--%%FORALL account in accounts-->
   <li><a href="user?listowner=%%account[]%%@%%listowner%%">%%account[]%%@%%listowner%%</a></li>
<!--%%ENDFOR account--><!--%%ELIF EXISTS(accountmatches)--><!--%%FORALL account in accountmatches-->%%account[]%%@%%listowner%%
<!--%%ENDFOR account-->
<!--%%ENDIF-->
<!--%%ELSE--><!--%%INCLUDE "i_defaulthead.incl" ("Domains and users")-->
   <fieldset><legend>Domains and users</legend>
      <p class="explain">Select the domain or user for which you want to modify the settings or view the user list.</p>
      <p class="explain">For performance reasons, the user list is fetched on the CGP server no more than once every 15 minutes.</p>

      <ul><!--%%FORALL domain in domains-->
         <li><a href="listselector?listowner=%%domain[]%%">%%domain[]%%</a><!--%%IF EQUALS(listowner AND domain[])--><br>
         <ul>
            <li><a href="user?listowner=%%listowner%%" style="font-weight:bold">This domain's defaults</a></li><!--%%IF EXISTS(accounts)--><!--%%FORALL account in accounts-->
            <li><a href="user?listowner=%%account[]%%@%%listowner%%">%%account[]%%@%%listowner%%</a></li><!--%%ENDFOR account--><!--%%ELSE-->
            <li><form method="get" action="user">Search user in this domain: <input type="text" id="searchone" name="listowner" size="40"> <input type="submit" value="Open"></form></li>
            <li><a href="#" onclick="return GetAccountList(this, '%%listowner%%')">Get full list (%%accountscount%% entries)</a></li><!--%%ENDIF-->
         </ul><!--%%ENDIF-->
         </li><!--%%ENDFOR domain-->
      </ul>
   </fieldset><!--%%IF NOT(EQUALS(listowner AND "")) & NOT(EXISTS(accounts))-->
   <script type="text/javascript">listowner = "%%JAVASCRIPT:listowner%%"</script><!--%%ENDIF-->
<!--%%INCLUDE "i_defaultfoot.incl"-->
<!--%%ENDIF-->
