<%@ page contentType="text/html; charset=GBK" session="false"%>
<%@ taglib uri="/cmsTag" prefix="cms"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
		<link href="../style/blue/css/main.css" type="text/css" rel="stylesheet" />
		<link href="../style/blue/css/reset-min.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../javascript/commonUtil_src.js"></script>
		<script type="text/javascript" src="../common/js/jquery-1.7.gzjs"></script>

		<script>  
		  var api = frameElement.api, W = api.opener; 
         
         
        	
      </script>
	</head>
	<body>


	 
		<form id="flowStepForm" name="flowStepForm" method="post">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td align="left" valign="top">

						<!--main start-->
						<div class="auntion_tagRoom" style="margin-top:2px">
							<ul>
								<%--<li id="two1" onclick="setTab2('two',1,3)" class="selectTag">
									<a href="javascript:;"><img src="../style/icons/balance.png" width="16" height="16" />参与审核机构&nbsp;</a>
								</li>
								<li id="two2" onclick="setTab2('two',2,3)">
									<a href="javascript:;"><img src="../style/icons/users.png" width="16" height="16" />参与审核角色&nbsp;</a>
								</li>
								--%><li id="two1" onclick="setTab2('two',1,1)">
									<a href="javascript:;"><img src="../style/icons/user-green.png" width="16" height="16" />系统管理员&nbsp;</a>
								</li>
							</ul>
						</div>

						<div class="auntion_tagRoom_Content">


							<!-- 第四部分：用户 -->
						<div id="g3_two_1" class="auntion_Room_C_imglist" style="display:block;">
							<div style="height:10px;"></div>
							<ul>
								<li>
									<div class="DataGrid">
										<table class="listtable" width="100%" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td id="uid_td25" style="padding: 2px 6px;">
													<div class="DataGrid">
														<table class="listdate" width="100%" cellpadding="0" cellspacing="0">
															<tr class="datahead">
																<td width="1%" height="30">
															 	</td>
																<td width="2%" height="30">
																	<strong>Id</strong>
																</td>
																<td width="8%">
																	<strong>用户名称</strong>
																</td>
																<td width="8%">
																	<strong>真实名称</strong>
																</td>
															</tr>
																 
														  			<cms:QueryData objName="SysUser" service="cn.com.mjsoft.cms.security.service.SecurityService" method="retrieveSiteHaveHisOrgAllUserForTag" >
																 
																	<tr>
																		<td>
																			<input  id="checkedUserId-${SysUser.userId}" name="checkedUserId" value="${SysUser.userId}" type="radio" />
																		</td>
																		<td>
																			${SysUser.userId}
																		</td>
																		<td>
																			${SysUser.userName}
																		</td>
																		<td>
																			${SysUser.userTrueName}
																		</td>
																	</tr>

																    </cms:QueryData>
															 
														</table>
													</div>
													</li>
													</ul>
													</div>
													<div style="height:40px;"></div>
													<div class="breadnavTab"  >
														<table width="100%" border="0" cellpadding="0" cellspacing="0">
															<tr class="btnbg100">
																<td class="input-title" width="76%"></td>
																<td class="td-input">
																	<a href="javascript:selectReMan();"  class="btnwithico"><img src="../style/icons/tick.png" width="16" height="16"><b>确认&nbsp;</b> </a>

																	<a href="javascript:close();"  class="btnwithico"><img src="../style/icon/close.png" width="16" height="16"><b>关闭&nbsp;</b> </a>



																</td>
															</tr>
														</table>
													</div>

												</td>
											</tr>
										</table>
									</div>
								</li>
							</ul>
						</div>
						</div>
					</td>
				</tr>
			</table>
			<!-- hidden -->
		 
			<input type="hidden" id="checkUserIds" name="checkUserIds" />
			 
		</form>
		<!--[if lt IE 7]>
        <script type="text/javascript" src="js/unitpngfix.js"></script>
<![endif]-->
</html>
<script type="text/javascript">
  
function close()
{
	api.close();
}

function selectReMan()
{
	var userId = $('[name=checkedUserId]:checked').val();
	
	if(  typeof(userId) == 'undefined')
	{
	   W.$.dialog.tips('没有指定任何用户...',1); 
	   return;
	}
	
	 var url = "<cms:BasePath/>guestbook/sendReplyMsg.cmd?userId="+userId+"&gbId=${param.gbId}";
 		
 		//$("#content").val(text);
		 	
 		$.ajax({
      		type: "POST",
       		url: url,
       		data:'',
   
       		success: function(msg)
            {     
               if('success' == msg)
               {
               		//showMsg('回复留言成功!');
               		W.$.dialog.tips('发送消息成功...',1,'32X32/succ.png'); 
               		
               } 	
               else
               {
               	    W.$.dialog.tips('发送随便...',1); 
               }   
              
            }
     	});
	
	
 
	//close();
}


</script>

