discourse-legacysite-perl/site/glist/templates/gossamer/lst_subscribers.html
2024-06-17 22:24:05 +10:00

169 lines
9.9 KiB
HTML

<html>
<body>
<%include include_header.html%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
<tr>
<td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
<td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include lst_include_menu.html%></td>
<td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="97%" colspan="3" valign="top">
<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
<tr>
<td><img src="<%image_url%>/pics/1pixel.gif" width="1" height="3"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#336600" style="border: 1px solid #C5E1A3">
<tr>
<td class="bold_white" height="20"><img src="<%image_url%>/icons/list.gif" hspace="2" vspace="0">Subscribers</td>
<td class="body" align="right">
<%set mn_subscriber = 1%>
<%set isub_add = 1%>
<%set isub_import = 1%>
<%set iremove_sub = 1%>
<%include lst_include_icons.html%>
</td>
</tr>
</table><BR />
<form name="sub_search" action="glist.cgi" method=post>
<table border="0" cellspacing="2" cellpadding="3" align="center">
<tr>
<td class="body"><b>Search</b></td>
<td class="body">
<input type="text" name="search_val" value="<%if search_val%><%search_val%><%endif%>" class="object" size="20">
By&nbsp;
<select name="search_col" class="object">
<option value="sub_email" <%if search_col eq 'sub_email' or search_col eq ''%>selected<%endif%>>Email</option>
<option value="sub_name" <%if search_col eq 'sub_name'%>selected<%endif%>>Name</option>
</select>
in&nbsp;
<select name="sub_list_id_fk" class="object">
<option value="" <%ifnot search_in%>selected<%endif%>>All Lists</option>
<%GList::Tools::generate_list('sub_list_id_fk')%>
</select>
<input type="submit" class="button" name="sub_search" value="Search">
[ <a href="glist.cgi?do=lst_subscribers;form=1<%hidden_query%>" title="Search Subscriber">Advanced</a> ]
</td>
</tr>
<tr>
<td class="body"><b>Quick Search</b></td>
<td class="body"><%search_bar%></td>
</tr>
</table>
<input type="hidden" name="do" value="lst_subscribers" />
<%hidden_objects%>
</form>
<%if msg%><p class="body"><%msg%></p><%endif%>
<form name=myform action="glist.cgi" method=post>
<%if lst_user_id_fk and lst_user_id_fk ne $usr_username%>
<%set user_search = 1%>
<%elsif lst_user_id_fk eq $usr_username and lst_user_id_fk-opt eq '<>'%>
<%set user_search = 1%>
<%endif%>
<%if hits > $mh and $mh != -1%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="body">
<td class="body"><%include include_toolbar.html%></td>
<tr>
</table>
<%endif%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#007BA4">
<tr>
<td bgcolor="#7a9f54">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr class="body_bold">
<td width="30%" bgcolor="#256A19" class="body_bold">
<%ifnot hits%>Email
<%else%>
<a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%if mn_disable%>&mn_disable=1<%endif%><%hidden_query%>"><font color="#FFFFFF">Email</font></a>
<%ifnot sb%>
<img src="<%image_url%>/icons/<%if so eq 'ASC' or so eq ''%>down.gif<%else%>up.gif<%endif%>" border=0>
<%endif%>
<%endif%>
</td>
<td width="24%" bgcolor="#256A19" class="body_bold">
<%ifnot hits%>Name
<%else%>
<a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;sb=sub_name&so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%if mn_disable%>&mn_disable=1<%endif%><%hidden_query%>"><font color="#FFFFFF">Name</font></a>
<%if sb eq 'sub_name'%>
<img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>up.gif<%endif%>" border=0>
<%endif%>
<%endif%>
</td>
<td width="25%" bgcolor="#256A19" class="body_bold">
<%ifnot hits%>List
<%else%>
<a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;sb=sub_list_id_fk;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%><%hidden_query%>"><font color="#FFFFFF">List</font></a>
<%if sb eq 'sub_list_id_fk'%>
<img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
<%endif%>
<%endif%>
</td>
<td width="10%" bgcolor="#256A19" class="body_bold" align="center">
<%ifnot hits%>Validated
<%else%>
<a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;sb=sub_validated;so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%hidden_query%>"><font color="#FFFFFF">Validated</font></a>
<%if sb eq 'sub_validated'%>
<img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>up.gif<%endif%>" border=0>
<%endif%>
<%endif%>
</td>
<td width="10%" bgcolor="#256A19" class="body_bold" align="center">
<%ifnot hits%>Bounced
<%else%>
<a href="glist.cgi?do=lst_subscribers&<%if mn_disable%>;mn_disable=1<%endif%><%if query%><%query%><%endif%>;sb=sub_bounced;so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%hidden_query%>"><font color="#FFFFFF">Bounced</font></a>
<%if sb eq 'sub_bounced'%>
<img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>up.gif<%endif%>" border=0>
<%endif%>
<%endif%>
</td>
<td bgcolor="#256A19" align="center" width="1%"><input type=checkbox name=c_all value='1' onclick="check_all()" /></td>
</tr>
<%loop results%>
<input type="hidden" name="<%row_num%>-sub_id" value="<%sub_id%>" />
<tr bgcolor="<%if even%>#d9e4f2<%else%>#FFFFFF<%endif%>" class="body">
<td class="body"><a href="glist.cgi?do=lst_sub_modify;form=1;subid=<%sub_id%><%if users%>;users=1<%elsif user_search%>;users=1<%endif%>"><%sub_email%></a></td>
<td class="body"><%if sub_name%><%sub_name%><%else%>&nbsp;<%endif%></td>
<td class="body"><%GList::Tools::list_title($sub_list_id_fk)%></td>
<td align="center" class="body"><%if sub_validated%>Yes<%else%>No<%endif%></td>
<td align="center" class="body"><%if sub_bounced%><%sub_bounced%><%else%>0<%endif%></td>
<td align="center"><input type="checkbox" name="modify" value='<%row_num%>' onclick="check_item(this)"/></td>
</tr>
<%endloop%>
</table>
</td>
</tr>
</table>
<%if hits%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%if hits > $mh and $mh != -1%>
<tr class="body">
<td class="body"><%include include_toolbar.html%></td>
<tr>
<%endif%>
<tr>
<td align="right">
<input name="bdelete" type="button" value="Reset Bounced Emails" class="button" onclick="init_do('myform', 'lst_sub_unbounced', null, null, 'lst_', null, 1)" />
<input name="bdelete" type="button" value="Validate Subcribers" class="button" onclick="init_do('myform', 'lst_sub_validate', null, null, 'lst_', null, 1)" />
<input name="bdelete" type="button" value="Delete Subcribers" class="button" onclick="init_do('myform', 'lst_sub_delete', null, null, 'lst_', null, 1)" />
</td>
</tr>
</table>
<%endif%>
<input type="hidden" name="do" value="lst_sub_delete" />
<input type="hidden" name="sub_list_id_fk" value="<%if sub_list_id_fk%><%sub_list_id_fk%><%endif%>" />
<input type="hidden" name="users" value="<%if users%>1<%endif%>" />
<%hidden_objects%>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%include include_footer.html%>