Viewing File: /usr/local/cpanel/base/frontend/jupiter/mail/fwds.html.tt
[%
USE Api2;
SET CPANEL.CPVAR.dprefix = "../";
IF FORM.item('itemsperpage');
SET CPANEL.CPVAR.itemsperpage = FORM.item('itemsperpage');
END;
IF (!( FORM.item('itemsperpage')) || !( CPANEL.CPVAR.item('itemsperpage')));
SET CPANEL.CPVAR.itemsperpage = "10";
END;
SET api2_result_StatsBar_stat = [];
SET api2_result_Email_listforwards = [];
SET api2_result_Email_listdomainforwards = [];
IF CPANEL.feature('forwarders');
SET api2_result_StatsBar_stat = Api2.exec("StatsBar", "stat", {
"warnings"=>"1",
"infinitylang"=>"true",
"warninglevel"=>"80",
"display"=>"forwarders"
});
SET api2_result_Email_listforwards = Api2.exec("Email", "listforwards", {
"api2_paginate_size"=>CPANEL.CPVAR.itemsperpage.html,
"domain"=>(RAW_FORM.domain),
"api2_paginate"=>"1",
"regex"=>(RAW_FORM.item('searchregex')),
"api2_paginate_start"=>(FORM.item('api2_paginate_start'))
});
END;
IF CPANEL.feature('emaildomainfwd');
SET api2_result_Email_listdomainforwards = Api2.exec("Email", "listdomainforwards", { "domain"=>RAW_FORM.domain } );
END;
%]
[% js_code = PROCESS js_block %]
[% WRAPPER '_assets/master.html.tt'
page_js = js_code
app_key = 'forwarders'
-%]
<div class="body-content">
[% IF CPANEL.feature('forwarders') %]
[% IF !(ExpVar.expand('$appname') == "webmail") %]
[% INCLUDE "managelist.html.tt" %]
[% END %]
<div class="section">
<h2 id="hdrForwarder">[% locale.maketext("Create an Email Account Forwarder") %]</h2>
<a class="btn btn-primary" id="btn_AddForwarder" href="addfwd.html">[% locale.maketext("Add Forwarder") %]</a>
[% IF !(ExpVar.expand('$appname') == "webmail") %]
[% IF CPANEL.feature('emaildomainfwd') %]
<a class="btn btn-primary" id="btn_AddDomainForwarder" href="adddfwd.html">[% locale.maketext("Add Domain Forwarder") %]</a>
[% END %]
[% END %]
</div>
<div class="section">
<h2>[% locale.maketext("Email Account Forwarders") %]</h2>
[% FOREACH hashref IN api2_result_StatsBar_stat %]
<p class="caution">
[% locale.maketext("[output,strong,Warning]: You currently use [numf,_1] out of [numf,_2]", hashref.count, hashref.max) %]
</p>
[% END %]
<p class="description" id="txt_forwarders-description">
[% locale.maketext("Send a copy of any incoming email from one address to another. For example, forward [output,strong,joe@example.com] to [output,strong,joseph@example.com] so that you only have one inbox to check. For more information, read the [output,url,_1,documentation,target,_2,id,_3].", "//go.cpanel.net/Forwarders", "_blank", "lnkForwardersDocumentation") %]
</p>
<div id="search-panel_forwarders">
<form method="get" action="">
<div class="form-group">
<div class="row">
<div class="col-xs-8 col-sm-6 col-md-6 col-lg-6">
<input type="text" class="form-control" id="input_forwarderSearchRegex" name="searchregex" value="[% FORM.searchregex %]" placeholder="[% locale.maketext("Search") %]" title="[% locale.maketext("Search") %]" />
</div>
<div class="col-xs-4">
<input type="hidden" name="itemsperpage" value="[% CPANEL.CPVAR.itemsperpage.html() %]" />
<input type="submit" id="btn_submitForwarderSearch" class="btn btn-primary" value="[% locale.maketext("Go") %]" />
</div>
</div>
</div>
</form>
</div>
<table id="mailtbl" class="sortable truncate-table table table-striped responsive-table">
<colgroup>
<col width="35%" />
<col width="35%" />
<col width="30%" />
</colgroup>
<tr>
<th id="tblHead_EmailAddress">[% locale.maketext("Email Address") %]</th>
<th id="tblHead_ForwardTo">[% locale.maketext("Forward To") %]</th>
<th id="tblHead_ForwarderFunctions" class="sorttable_nosort">[% locale.maketext("Actions") %]</th>
</tr>
[% IF api2_result_Email_listforwards.size(); %]
[% FOREACH hashref IN api2_result_Email_listforwards; %]
<tr>
<td class="truncate nobrd-left" data-title="[% locale.maketext('Email Address') %]">
[% hashref.item('dest').html() %]
</td>
<td class="truncate" data-title="[% locale.maketext("Forward To") %]">
[% hashref.item('forward').html() %]
</td>
<td class="nobrd" data-title="[% locale.maketext('Actions') %]">
<a class="btn btn-link" href="showroute.html?fwd=1&domain=[% FORM.domain %]&email=[% hashref.item('uri_dest') %]">
<span class="glyphicon glyphicon-search"></span>
[% locale.maketext("Trace") %]
</a>
<a class="btn btn-link" href="dodelfwdconfirm.html?domain=[% FORM.item('domain') %]&email=[% hashref.item('uri_dest') %]&emaildest=[% hashref.item('uri_forward') %]">
<span class="glyphicon glyphicon-trash"></span> [% locale.maketext("Delete") %]
</a>
</td>
</tr>
[% END %]
[% ELSE %]
<tr>
<td colspan="3" class="info empty-row">
[% locale.maketext("There are no forwarders configured for the current domain.") %]
</td>
</tr>
[% END %]
</table>
[% INCLUDE _assets/paginate.html.tt %]
</div>
[% END %]<!-- end cpanelfeature forwarders -->
[% IF !(ExpVar.expand('$appname') == "webmail") %]
[% IF CPANEL.feature('emaildomainfwd') %]
<div class="section">
<h2>[% locale.maketext("Forward All Email for a Domain") %]</h2>
<p class="description" id='forwarders-domain-forward-description-text'>
[% locale.maketext("In addition to forwarding individual mail accounts, you can forward all email from one domain to another.") %]
</p>
<table id="dfwdmailtbl" class="sortable table table-striped responsive-table">
<thead>
<tr>
<th class="cell-end">[% locale.maketext("Domain") %]</th>
<th class="cell">[% locale.maketext("Forward To") %]</th>
<th class="cell-end sorttable_nosort">[% locale.maketext("Delete") %]</th>
</tr>
</thead>
<tbody>
[% IF api2_result_Email_listdomainforwards.size %]
[% FOREACH hashref IN api2_result_Email_listdomainforwards %]
<tr>
<td class="nobrd-left truncate" data-title="[% locale.maketext("Domain") %]">[% hashref.dest.html() %]</td>
<td class="truncate" data-title="[% locale.maketext("Forward To") %]">[% hashref.forward.html() %]</td>
<td data-title="[% locale.maketext("Delete") %]">
<a class="btn btn-link" href="dodeldfwdconfirm.html?domain=[% hashref.dest %]&redirectdomain=[% hashref.forward | uri | html %]"><span class="glyphicon glyphicon-trash"></span> [% locale.maketext("Delete") %]</a>
</td>
</tr>
[% END %]
[% ELSE %]
<tr>
<td colspan="3" class="info empty-row">
[% locale.maketext("There are no Domain Forwarders setup for this domain.") %]
</td>
</tr>
[% END %]
</tbody>
</table>
</div>
[% END %]<!-- end cpanelfeature emaildomainfwd -->
[% END %]
[% IF !(ExpVar.expand('$appname') == "webmail") %]
[% INCLUDE _assets/return_link.html.tt return_location='../index.html' return_link_text=locale.maketext('Go Back') %]
[% ELSE %]
[% INCLUDE _assets/return_link.html.tt return_location='../index.html' return_link_text=locale.maketext('Go Back') %]
[% END %]
</div>
[% END %]
[% BLOCK js_block %]
[% END %]
Back to Directory
File Manager