⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sentmessages.tpl

📁 太烦了
💻 TPL
字号:
{strip}
<script type="text/javascript" src="javascript/check.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
{literal}
function checkAll(form,name,val){
	for( i=0 ; i < form.length ; i++)
		if( form.elements[i].type == 'checkbox' && form.elements[i].name == name )
			form.elements[i].checked = val;
}
function confdel(form,errmsg){
	for(i=0;i < form.length;i++){
		if(form.elements[i].type=='checkbox' && form.elements[i].checked == true){
			selected = true;
			break;
		}
		else {
			selected = false;
		}
	}
	if(!selected) {
		alert(errmsg);
		return false;
	}else{
		form.submit();
		return true;
	}
}
{/literal}
/* ]]> */
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td class="module_detail" width="100%">
			{assign var="page_hdr01_text" value="{lang mkey='mail_messages'}"}
			{include file="page_hdr01.tpl"}

			<table border="0" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" width="100%">
				<tr>
					<td width="100%" align="center">

						<table class="table" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" border="0" width="50%">
							<tr>
								<td width="33%"><a href="mailmessages.php" >{lang mkey='inbox'}</a></td>
								<td width="33%">{lang mkey='sent'}</td>
								<td width="33%"><a href="deletemessages.php" >{lang mkey='trashcan'}({$deletemsg})</a></td>
							</tr>
						</table>

						<table width="550" border="0" cellpadding="0" cellspacing="0" >
							<tr>
								<td class="module_detail_inside" width="100%">

									<table width="100%" border="0" cellpadding="0" cellspacing="0">
										<tr>
											<td class="module_head" width="6"></td>
											<td class="module_head">
												{lang mkey='sent'|capitalize}
												</td>
											<td width="28"><img src="{$image_dir}blue_hor2.jpg" width="28" height="23" alt="" /></td>
										</tr>
									</table>
									<table width="100%" border="0">
										<tr>
											<td width="100%">
                        <form name="frmGroupMail" action="?sort={$smarty.get.sort}&amp;type={$smarty.get.type}"
                        method="post" onsubmit="javascript: return confdel(this,'{lang mkey='admin_js_error_msgs[1]}');">
                        <input type="hidden" name="frm" value="frmGroupMail" />
												<table class="table" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" width="98%" border="0" align="center">
													<tbody>
													<tr class="table_head">
														<th width="25"><input type="checkbox" name="chkall" value="" onclick="checkAll(this.form,'txtcheck[]',this.checked)" /></th>
														<th width="25">{lang mkey='col_head_srno'}</th>
														<th width="200"><a href="?sort={lang mkey='col_head_subject'}&amp;type={$sort_type}">{lang mkey='col_head_subject'}</a></th>
														<th width="100"><a href="?sort={lang mkey='col_head_username'}&amp;type={$sort_type}">{lang mkey='col_head_username'}</a></th>
														<th width="100"><a href="?sort={lang mkey='col_head_sendtime'}&amp;type={$sort_type}">{lang mkey='col_head_sendtime'}</a></th>
													</tr>
													{assign var="mcount" value="0"}
												{foreach item=item key=key from=$data}
												{math equation="$mcount+1" assign="mcount"}
													<tr>
														<td><input type="checkbox" name="txtcheck[]" value="{$item.id}" /></td>
														<td>{$mcount}</td>
														<td><a href="showmessage.php?id={$item.id}&amp;messages=sent">{$item.subject}</a></td>
														<td><a href="showprofile.php?{if $config.seo_username == 'Y'}username={$item.username}{else}id={$item.recipientid}{/if}" target="_blank">{$item.username}</a></td>
														<td>{$item.sendtime|date_format:$smarty.const.DATE_TIME_FORMAT}</td>
													</tr>
												{/foreach}
													<tr><td colspan="9">&nbsp;</td></tr>
													<tr>
														 <td colspan="9"><img src="images/arrow_ltr.png" alt="" />{lang mkey='with_selected'}&nbsp;
															<input type="submit" class="formbutton" value="{lang mkey='delete'}" name="groupaction" />
														 </td>
													</tr>
													</tbody>
												</table>
                        </form>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
{/strip}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -