1 <a class="big" href="javascript:void(0)" onclick="$('#new_host').slideToggle()"><img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/add.png" alt="<%[ Add ]%>" /> <%[ Add API host]%></a>
2 <com:Application.Common.Portlets.NewHost ID="AddNewHost" APIRequired="config" ClientMode="true" OnCallback="loadConfig" />
3 <div class="config_hosts">
4 <com:TActiveRepeater ID="RepeaterHosts" OnItemCreated="createHostListElement">
6 <com:TPanel ID="HostBox" CssClass="config_host">
7 <table class="host" onmousedown="$('div.config_host').removeClass('host_selected');(event.target||event.srcElement).id != '<%=$this->Host->ClientID%>' && (event.target||event.srcElement).id != '<%=$this->RemoveHost->ClientID%>' ? $('#<%=$this->Host->ClientID%>').trigger('click') : '';">
8 <tr onmouseover="$(this).find('a.action_link').addClass('host_selected');" onmouseout="$(this).find('a.action_link').removeClass('host_selected');">
9 <td><%[ Host: ]%> <com:TActiveLinkButton
11 ActiveControl.EnableUpdate="false"
12 OnCommand="SourceTemplateControl.getComponents"
13 ClientSide.OnLoading="BaculaConfig.loader_start(sender.options.ID);"
14 ClientSide.OnComplete="BaculaConfig.set_config_items(sender.options.ID);"
15 ClientSide.OnSuccess="$('#<%=$this->HostBox->ClientID%>').addClass('host_selected');"
16 Attributes.onclick="return BaculaConfig.unset_config_items(this.id);"
18 Text="<%=$this->DataItem%>"
20 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/ajax-loader-arrows.gif" alt="" style="display: none" />
22 <td><%[ IP Address/Hostname: ]%><span class="bold"> <%=$this->getParent()->getParent()->config[$this->DataItem]['address']%></span></td>
23 <td><%[ Port: ]%><span class="bold"> <%=$this->getParent()->getParent()->config[$this->DataItem]['port']%></span>
25 <td class="right"><com:TActiveLinkButton
27 OnCommand="SourceTemplateControl.removeHost"
28 CssClass="action_link"
30 <img src="<%=$this->getPage()->getTheme()->getBaseUrl()%>/icon_err.png" alt="<%[ Remove ]%>" /> <%[ Remove ]%>
31 </com:TActiveLinkButton>
36 <com:Application.Web.Portlets.BaculaConfigComponents />
39 </com:TActiveRepeater>