

<!---->
<div id="centre" class="layout">
	<div class="centreInner ">
            <form name = 'search_form' id='search_form' method='get' action ='' > 
		<div class="mainInner radius5 "> 
			
			<!---->
			
			<div class="titleTabBox">
				<div class="titleTab">
					<div class="titleTabB clearfix">
						<dl class="list">
                                                    <?php $announce_itemon = "";$system_itemon="";$shop_itemon="";
                                                    $guest_itemon="";$house_itemon="";
                                                    if($type =='announce'){
                                                        $announce_itemon = 'itemOn';
                                                    }elseif ($type == 'system') {
                                                        $system_itemon = 'itemOn';
                                                    }elseif ($type == 'shop') {
                                                        $shop_itemon = 'itemOn';
                                                    }
                                                    ?>
							<dd class="item <?=$announce_itemon?>"> <a class="link" href="?type=announce">公告</a> </dd>
							<dd class="item <?=$system_itemon?>"> <a class="link" href="?type=system"> 系统消息 </a></dd>
							<dd class="item <?=$shop_itemon?>"> <a class="link" href="?type=shop">店铺留言</a> </dd>							
							
						</dl>
					</div>
				</div>
			</div>
			
			<!----> 
			
			<!---->
			
			<div class="forms functionBox functionBox2">
				<dl class="list">
					<dd class="list_item clearfix">
						<div class="fields"> 
							<!---->
							<div class="fgInput jsFgInput" id="selectFun">
								<div class="imitateSelect">
									<div class="imitate imitateIe" >
										<input type="checkbox" class="jsSelectItem jsALLinput_c input_c" />
									</div>
									<div class="listImitate">
										<dl class="inner">
											<dd><a class="link" href="#" onClick="selectALL()">全选</a></dd>
											<dd><a class="link" href="#" onClick="selectALLf()">反选</a></dd>
											<dd><a class="link" href="#" onClick="selectALLn()">不选</a></dd>
										</dl>
									</div>
								</div>
							</div>
							<p class="textFg textFg2">&nbsp;</p>
							<div class="fgInput" > <a class="btn autoBtn btnCon submitBtn" href="####" method="del">删除</a> </div>
							
							<!---->
							<div class="fgInput f ">
								<p class="textFg">共<?=$total_count?>条信息(<?=$intNoRead?>条未读)</p>
							</div>
							
							<!---->
							
							<div class="fgInput fgInputRight nameInput "> 
								<!---->
								<div class="fgInput jsNameInput jsFgInput" style="margin-left:0;">
									<label id="jsHouseNume" for="jsNameInputNF" class="labelPrev labelPrevN jslabelPrev"></label>
									<?php
										if ($type == 'announce' || $type == 'system') { 
											$strTip = '请输入消息标题';
									     } else if ($type == 'shop') { 
											$strTip = '请输入留言内容';
										 }else{
                                                                                     $strTip = '';
                                                                                 }
                                                                                 
										 if ($keyword == '') {$keyword = $strTip;}
									?>
									<input  type="text" class="input_text w310 keyword" id="jsNameInputNF"  name="keyword" value="<?=$keyword?>"/>
								</div>
								<!---->
								
								<p class="textFg textFg2">&nbsp;</p>
								<div class="fgInput"> <a class="btn btnCon radius5 submitBtn" href="####" method="search">搜索</a> </div>
								<!----> 
								
								<!----> 
							</div>
						</div>
					</dd>
				</dl>
			</div>
			
			<!----> 
                        <?php if(isset($data_info)&&!empty($data_info)){ ?>
                        <?php foreach ($data_info as $key=>$value){
                            $truename = ""; $id = "";$title = "";$icon="";$telno="";$strTime="";
                            if($type == 'announce' || $type == 'system'){
                                $id = $value['announceid'];
				$title = $value['subject'];
                                if ($type != 'system') {
                                    $truename = '365网站';
                                }
                            }elseif ($type == 'shop') {
                                $id = $value['id'];
                                $icon = '';
                                if ($value['reply']) {
                                        $icon = '<img alt="" src='.STATIC_SOURCE_URL.'/zsb/images/v1.0/xYHF.png>';
                                }
                                $title = csubstr($value['content'], 70) . $icon;
                                $truename = $value['username'];
                                $telno = $value['telno'];
                                    
                            }

                            $strTime = date('Y-m-d H:i', $value['creattime']);
                            
                            if ($value['new']) {
                                 $style = ' ';
                                    $strStartIcon = '<img alt="" src='.STATIC_SOURCE_URL.'/zsb/images/v1.0/xwd2.png />';
                            } else {
                                 $style = ' h5Y';
                                 $strStartIcon = '<img alt="" src='.STATIC_SOURCE_URL.'/zsb/images/v1.0/xyd2.png />';
                            }
                            
                            
                            ?>
			<div class="itemInfoBach itemInfoBachNews radius4">
				<table class="table">
					<tr>
                                            <td class="td first"><input class="jsSelectItem jsNo" type="checkbox" name="rowid[]" value="<?=$id?>"/></td>
                                            <td class="td w40"><a class="jsLin jsNo" href="/ucenter_message/detail/?type=<?=$type?>&id=<?=$id?>"><?=$strStartIcon?></a></td>
						<td class="td "><div class="titleNews">
								<h5 class="h5 <?=$style?>"><a class="jsLin jsNo" href="/ucenter_message/detail/?type=<?=$type?>&id=<?=$id?>"><?=$title?></a></h5>
                                <?php if($truename!=""){ ?>
								<div class="come"><?php echo $truename!=""?$truename."&nbsp;&nbsp;":"";?><span class="tel"><?=$telno?></span></div>
                                <?php }?>
							</div></td>
						<td class="td time"><?=$strTime?></td>
					</tr>
				</table>
			</div>
                        <?php }?>
                        <?php }else{ ?>
                      <div class="itemInfoBach itemInfoBachNews radius4" style="text-align: center; line-height: 67px;">
				没有符合条件的记录
                      </div>
                      <?php } ?>
			<!----> 
			
			
			
			
			<!----> 
			
			<!---->
			
			<div class="forms functionBox ">
				<dl class="list">
					<dd class="list_item clearfix">
						<div class="fields"> 
							<!---->
							<div class="fgInput jsFgInput" id="selectFun2">
								<div class="imitateSelect">
									<div class="imitate imitateIe" >
										<input type="checkbox" class="jsSelectItem jsALLinput_c input_c" />
									</div>
									<div class="listImitate">
										<dl class="inner">
											<dd><a class="link" href="#" onClick="selectALL()">全选</a></dd>
											<dd><a class="link" href="#" onClick="selectALLf()">反选</a></dd>
											<dd><a class="link" href="#" onClick="selectALLn()">不选</a></dd>
										</dl>
									</div>
								</div>
							</div>
							<p class="textFg textFg2">&nbsp;</p>
							<div class="fgInput" > <a class="btn autoBtn btnCon submitBtn" href="####" method="del">删除</a> </div>
							
							<!---->
							
							<p class="textFg textFg2">&nbsp;</p>
							
							<!----> 
							
						</div>
					</dd>
				</dl>
			</div>
			
			<!--翻页-->
                    <?php if (!empty($pagination)) { ?>
                        <div class="picPreviewPagBox pagBoxBorderTop">
                            <div class="picPreviewPag">
                                <?php echo $pagination; ?>
                            </div>
                            
                        </div>
                    <?php } ?>
                        <input type='hidden' name='page' value='<?=$page?>'>
                        <input type="hidden" name="type" value="<?=$type?>">
		        <input type="hidden" name="method" value="<?=$method?>" id="method">
		</div>
	</div>            
               
		</form>
    
</div>



<div id="jsDialogSave" class="dialog radius5">
	<div class="hd">
		<h3 class="h3">提示</h3>
		<span title="关闭" class="close close-win">Χ</span> </div>
	<div class="mod">
		<div class="text" id="dialogSaveDiv">确定要删除选定的消息记录吗？</div>
		<div style="padding:20px 0 0 65px;"><a href="####" id="saveBtn" class="btn save btnConColor radius5 close-win">确定</a><a href="####" class="btn btnCon radius5 close-win">取消</a><input type="hidden" id="delhfp_tex" value=""></div>
	</div>
</div>


<script type='text/javascript' src='<?=STATIC_SOURCE_URL?>/zsb/js/v1.0/js2.js'></script>
<script type="text/javascript">
	$(function() {
		$('.submitBtn').bind('click', function() {
			$('#method').val($(this).attr('method'));
			if ($(this).attr('method') == 'del') {
                            
				arr = [];
				$("input:checked[name='rowid[]']").each(function(i) {
					arr[i]=$(this).val();
				});
				if (arr.length != 0) {
					openWin('jsDialogSave');
					return false;
				} else {
					alert('请选定信息');
					return false;
				}
			} else {
				$('#search_form').submit();
			}
		});
		$('#saveBtn').bind('click', function() {
			$('#search_form').submit();
			$('#method').val('');
		});
		$('#jsNameInputNF').bind('focus', function() {
			$(this).val('');
		});
	});
</script>
</body>
</html>
