<div style="position:relative">
	<div id="loading"></div>
	<div>
		<!--{if 'showdel' == $mode && empty($info) }--><div><span class="yellow b">当前在垃圾箱。</span></div><!--{/if}-->
		<!--{if 'showdel' == $mode || 'recover' == $mode}-->
			<div style="display:inline-block;width:160px"></div>
			<input type="button" class="b_button bc_black" value="返回邮箱" onclick="$('mode').value='showmail';postCmd('message_cmd', 'messages.php');this.disabled=true;" />&nbsp;&nbsp;&nbsp;
			<!--{if !empty($messages)}-->
				<input type="button" class="b_button bc_black" value="全选/反选" onclick="jQuery('.message_sl').each(function(){this.click();});" />&nbsp;
				<input type="button" class="b_button bc_black" style="width:114px" value="恢复" onclick="
					var recflag=0;
					jQuery('.message_sl').each(function(){
						if(this.checked)recflag=1;
						this.value=this.checked?1:0;
					});
					if(recflag){
						if($('mode').value!='recover') {
							$('rec_confirm').style.display='inline';
							$('del2_confirm').style.display='none';
							this.value='确认恢复';
							$('mode').value='recover';
						}else{
							$('rec_confirm').style.display='none';
							postCmd('message_cmd', 'messages.php');this.disabled=true;
							$('mode').value='';
						}
					}
				" />&nbsp;
				<input type="button" class="b_button bc_black" style="width:114px" value="彻底删除" onclick="
					var del2flag=0;
					jQuery('.message_sl').each(function(){
						if(this.checked)del2flag=1;
						this.value=this.checked?1:0;
					});
					if(del2flag){
						if($('mode').value!='del2') {
							$('del2_confirm').style.display='inline';
							$('rec_confirm').style.display='none';
							this.value='确认删除';
							$('mode').value='del2';
						}else{
							$('del2_confirm').style.display='none';
							postCmd('message_cmd', 'messages.php');this.disabled=true;
							$('mode').value='';
						}
					}
				" />
				
			<!--{/if}-->
			<div style="display:inline-block;width:160px">
				<span class="yellow b" id="rec_confirm" style="display:none">每条{$message_rec_cost}切糕，确认恢复？</span>
				<span class="yellow b" id="del2_confirm" style="display:none">确认彻底删除？</span>
			</div>
		<!--{else}-->
			<div style="display:inline-block;width:80px"></div>
			<input type="button" class="b_button bc_black" value="查看已删邮件" onclick="$('mode').value='showdel';postCmd('message_cmd', 'messages.php');this.disabled=true;" />&nbsp;&nbsp;&nbsp;
			<!--{if !empty($messages)}-->
				<input type="button" class="b_button bc_black" value="全选/反选" onclick="jQuery('.message_sl').each(function(){this.click();});" />
				<input type="button" class="b_button bc_black" value="查收附件" onclick="$('mode').value='check';postCmd('message_cmd', 'messages.php');this.disabled=true;" />
				<input type="button" class="b_button bc_black" style="width:114px" value="删除" onclick="
					var delflag=0;
					jQuery('.message_sl').each(function(){
						if(this.checked)delflag=1;
						this.value=this.checked?1:0;
					});
					if(delflag){
						if($('mode').value!='del') {
							$('del_confirm').style.display='inline';
							this.value='确认删除';
							$('mode').value='del';
						}else{
							$('del_confirm').style.display='none';
							postCmd('message_cmd', 'messages.php');this.disabled=true;
							$('mode').value='';
						}
					}
				" />
				
			<!--{/if}-->
			<div style="display:inline-block;width:80px"><span class="yellow b" id="del_confirm" style="display:none">确认删除？</span></div>
		<!--{/if}-->

	</div>
	<div class="scroll-pane" style="max-width:1210px;max-height:640px;overflow:hidden;vertical-align:top">
		<!--{if empty($messages)}-->
		<span class="grey b">一条信息都没有呢</span>
		<!--{else}-->
			<!--{eval $i=0;}-->
			<!--{loop $messages $mi $mv}-->
			<!--{if $i%4==0}--><div class="message_line"><!--{/if}-->
				<div class="message_ib">
					<div class="message_box" onclick="$('message_sl$mi').click();if($('message_sl$mi').checked) {$('sign$mi').style.display='block';} else {$('sign$mi').style.display='none';}">
						<div class="message_title_bar">
							<img id="sign$mi" class="message_sign" src="img/message_sl_sign.png">
							<input type="checkbox" name="sl$mi" id="message_sl$mi" style="display:none" class="message_sl" value="0" />
							<span class="message_title">$mv['title']</span> <div class="message_hint">$mv['hint']</div>
						</div>
						<div class="message_cont"><span>$mv['content']</span></div>
						<hr class="message_hr">
						<div class="message_encl">
							<div class="message_encl_hint">$mv['encl_hint']</div>
							<div style="text-align:center">
								<span>$mv['encl_disp']</span>
							</div>
						</div>
						<hr class="message_hr">
						<div class="grey b message_date">
							<!--{if isset($mv['del_time_disp'])}-->
								<span>删除时间: $mv['del_time_disp']</span>
							<!--{else}-->
								<span>$mv['time_disp']</span>
							<!--{/if}-->
						</div>
					</div>
				</div>
			<!--{if $i%4==3 || $i==count($messages)-1}--></div><!--{/if}-->
			<!--{eval $i++;}-->
			<!--{/loop}-->
		<!--{/if}--> 
	</div>
	<!--<img type="hidden" style="display:none" src="img/blank.png" onload="jQuery(function() { jQuery('.scroll-pane').jScrollPane(); });">--> 
</div>