
    
<?php if($type == 'announce' || $type == 'system'){?>
    <?php 
     $data_info['subject'] = isset($data_info['subject']) ? $data_info['subject'] : '';
     $data_info['creattime'] = isset($data_info['creattime']) ? $data_info['creattime'] : '';
     $data_info['message'] = isset($data_info['message']) ? $data_info['message'] : '';
    
     
    ?>
<div id="centre" class="layout">
	<div class="centreInner ">
		<div class="mainInner radius5 "> 
			
			<!---->
			
			<div class="neighborhoodExpert">
				<div class="branchCommon radius5">
					<div class="newsInnerBox">
					<div class="clearfix ">
						<h3 class="h3"><?=$data_info['subject']?></h3>
						
					
						
					</div>
						<div class="clearfix nameAndTime">
                                                        <?php if($type=='system'){ ?><div class="name">作者：系统消息 </div><?php } ?>
                                                        <div class="time"><?php if($data_info['creattime']){ echo date("Y年m月d日 H:i:s",$data_info['creattime']); }?></div>
						</div>
						<div class="inner"> <?=$data_info['message']?> </div>
						<div class="bottom"> <a href="javascript:history.go(-1);" class=" btn btnCon radius5" >返回</a> </div>
					</div>
				</div>
			</div>
			
			<!----> 
			
		</div>
	</div>
</div>
<?php }elseif ($type == 'shop') {?>
    <?php 
    $data_info['content'] = isset($data_info['content'])  ? $data_info['content'] : '';
    $data_info['username'] = isset($data_info['username']) ? $data_info['username'] : '';
    $data_info['telno'] = isset($data_info['telno']) ? $data_info['telno'] : '';
    $data_info['creattime'] = isset($data_info['creattime']) ? $data_info['creattime'] : '';
    $data_info['reply'] = isset($data_info['reply']) ? $data_info['reply'] : '';
 
    ?>
    <div id="centre" class="layout">
	<div class="centreInner ">
		<div class="mainInner radius5 "> 
			
			<!---->
			<form name = 'search_form' id='search_form' method='get' action ='' > 
			<div class="neighborhoodExpert">
				<div class="branchCommon radius5">
					<div class="newsInnerBox">
						<div class="clearfix ">
							<?php echo $data_info['content'];?>
						</div>
						<div class="clearfix nameAndTime">
							<div class="name"><?=$data_info['username']?>&nbsp;&nbsp;<?=$data_info['telno']?> </div>
                                                        <div class="time time2"><?php if( $data_info['creattime']){echo date('Y-m-d H:i', $data_info['creattime']); }?> </div>
						</div>
						<?php if ($data_info['reply']) { ?>
						<div class="inner">
							<div class="time">我的回复：<span class="timeFG"><?=$data_info['reply']?></span></div>
						</div>
						<?php } else { ?>
						<div class="inner clearfix">
							<div class="time time2">回复：</div>
							<div class="forms">
								<textarea class="textarea" id="jsNewsHF" name="reply"></textarea>
								<div class="fields ">
									<a href="####" class="btn btnCon radius5" id="submitBtn">回复</a>
									<p class="textFg textFg6">剩余<span class="colorN" id="jsNewsHFNum">100</span>个字</p>
								</div>
							</div>
						</div>
						<?php }?>
						<div class="bottom"> <a href="javascript:location.href='/ucenter_message/index/?type=shop'" class=" btn btnCon radius5" >返回</a> </div>
					</div>
				</div>
			</div>
					<input type="hidden" name="type" value="shop">
					<input type="hidden" name="action" value="reply">
					<input type="hidden" name="id" value="<?=$id?>">
                                        <input type="hidden" name="phone" value="<?=$data_info['telno']?>">
				 </form>
			<!----> 
			
		</div>
	</div>
</div>

 <?php   }elseif ($type=='house') {?>
        <form name = 'search_form' id='search_form' method='get' action ='' > 
	<div id="centre" class="layout">
		<div class="centreInner ">
			<div class="mainInner radius5 "> 
		
				<div class="neighborhoodExpert">
					<div class="branchCommon radius5">
						<div class="newsInnerBox">
						<div class="clearfix ">
							<h3 class="h3"><?=$data_info['title']?></h3>
							<?php if ($data_info['state'] == 1) { ?>
							<a class="btnTop btnConColor radius5"  href="####" id="submitBtn" title="标记为已处理">已处理</a>
							<?php } else { ?>
							<span class="h3"><img alt="" src="http://esf.s.house365.com/zsb/images/v1.0/ycl.png" /></span>
							<?php } ?>
							</div>
							<div class="clearfix nameAndTime">
								<div class="name"><?php echo $data_info['name'] . $order_sex[$data_info['sex']]; ?>&nbsp;&nbsp;<?=$data_info['telno']?> </div>
								<div class="time time2"><?php echo date('Y-m-d H:i', $data_info['dateline']); ?> </div>
							</div>
							<div class="inner">
								<div class="time">时间：<span class="timeFG"><?=$order_day[$data_info['day']]?></span>时段：<span class="timeFG"><?=$order_time[$data_info['time']]?></span></div>
								<?=$data_info['remark']?></div>
							<div class="bottom"> <a href="javascript:location.href='/ucenter_message/index/?type=house'" class=" btn btnCon radius5" >返回</a> </div>
						</div>
					</div>
				</div>
				<input type="hidden" name="action" value="apply" id="action">
				<!----> 
				
			</div>
		</div>
	</div>
	<input type="hidden" name="type" value="house">
        <input type="hidden" name="id" value="<?=$data_info['id']?>">
	<input type="hidden" name="action" value="apply">
	</form>
    
    
    <?php }?> 
    
    
 <div id="jsDialogSave" class="dialog radius5" style="width:300px;">
	<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='http://esf.s.house365.com/zsb/js/v1.0/js2.js'></script>
<script type="text/javascript" src='http://esf.s.house365.com/zsb/js/v1.0/jquery.validate.min.js'></script> 
<script type="text/javascript">
	$(function() {
		$('#submitBtn').bind('click', function() {
			if ($('#action').val() == 'apply') {
				openWin('jsDialogSave');
			} else {
				$("#search_form").validate({
					/*errorPlacement:function(error,element) 
					{ 
						error.appendTo(element.parents(".jsFgInput").siblings(".textFgErroy"))
					},*/
					rules: 
					{
						reply:
						{
							required: true
						}
					},
					messages: 
					{
						reply:
						{
							required:"回复内容不能为空"
						}
					}
				});
				$('#search_form').submit();
			}
		});
		$('#saveBtn').bind('click', function() {
			$('#search_form').submit();
		});
	});
</script>
</body>
</html>
