<div class="admin_right_top"><{$lang.sub_scribe}></div>
<form name="subscrib" action="?action=admin_subscribe" method="POST">
<table class="admin_table">
    <tr>
        <td class="td"><{$lang.ktype}></td>
        <td>
        <select class="select" name="ktype" id="ktype">
        <option value="2" <{if $de.ktype==2}>selected<{/if}>><{$lang.offer}></option>
        <option value="3" <{if $de.ktype==3}>selected<{/if}>><{$lang.exh}></option>
        <option value="5" <{if $de.ktype==5}>selected<{/if}>><{$lang.news}></option>
        </select>
        </td>
    </tr>
    <tr>
        <td class="td"><{$lang.keywords}></td>
        <td><input name='keycon' type='text' id="keycon" value="<{$de.keywords}>" /></td>
    </tr>
    <tr>
        <td class="td"><{$lang.remail}></td>
        <td><input name="email" value="<{$de.email}>" type="text" /><br />
    </td>
    <tr>
        <td class="td"><{$lang.recfre}></td>
        <td>
        <select name="frequency" id="frequency">
        <option value="1" <{if $de.validity==1}>selected<{/if}>><{$lang.oday}></option>
        <option value="7" <{if $de.validity==7}>selected<{/if}>><{$lang.oweek}></option>
        <option value="14" <{if $de.validity==14}>selected<{/if}>><{$lang.tweek}></option>
        <option value="30" <{if $de.validity==30}>selected<{/if}>><{$lang.omonth}></option>
        </select>
    </td>
    </tr>
    <tr>
        <td class="td"><{$lang.vloid_time}></td>
        <td>
        <select name="validity" id="validity">
        <option value="30" <{if $de.validity==30}>selected<{/if}>><{$lang.osmonth}></option>
        <option value="60" <{if $de.validity==60}>selected<{/if}>><{$lang.tmonth}></option>
        <option value="180" <{if $de.validity==180}>selected<{/if}>><{$lang.smonth}></option>
        <option value="360" <{if $de.validity==360}>selected<{/if}>><{$lang.oyear}></option>
        </select>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <input name="addid" type="submit" value="<{if $de.id==''}><{$lang.add}><{else}><{$lang.edit}><{/if}>" onclick="return checkvalue();"/>
            <input name="seditid" type="hidden" value="<{$de.id}>"/>
            <input type="hidden" name="catids" id="catids" value="<{$de.p_catids}>"/>
            <input type="hidden" name="cats" id='cats' value="<{$de.p_cats}>"/>
        </td>
    </tr>
</table>
<table class="admin_table tab-list nbt">
    <tr class="sheader"> 
        <td><{$lang.remail}></td>
        <td width="100"><{$lang.keywords}></td>
        <td width="60"><{$lang.keytype}></td>
        <td width="70"><{$lang.subtime}></td>
        <td width="60"><{$lang.recfre}></td>
        <td width="60"><{$lang.vloid_time}></td>	  
        <td width="50"><{$lang.option}></td>
    </tr>
	<{foreach item=slist from=$subscribe}>
	<tr> 
        <td><{$slist.email}></td>
        <td><{$slist.keywords}></td>
        <td>
            <{if $slist.ktype==1}><{$lang.pro}><{/if}>
            <{if $slist.ktype==2}><{$lang.offer}><{/if}>
            <{if $slist.ktype==3}><{$lang.exh}><{/if}>
            <{if $slist.ktype==4}><{$lang.project}><{/if}>
            <{if $slist.ktype==5}><{$lang.news}><{/if}>
        </td>
        <td><{$slist.uptime|date_format}></td>
        <td>
            <{if $slist.frequency==1}><{$lang.oday}><{/if}>
            <{if $slist.frequency==7}><{$lang.oweek}><{/if}>
            <{if $slist.frequency==14}><{$lang.tweek}><{/if}>
            <{if $slist.frequency==30}><{$lang.omonth}><{/if}>
        </td>
        <td><{$slist.validity}><{$lang.dmonth}></td>
        <td>
            <p><a href="?action=admin_subscribe&editid=<{$slist.id}>"><{$lang.edit}></a></p>
            <p><a href="?action=admin_subscribe&delid=<{$slist.id}>" onclick="return confirm('<{$lang.suredel}>');"><{$lang.delete}></a></p>
        </td>
    </tr>
	<{/foreach}>
</table>
</form>