<!--#include file="Conn.asp"-->
<!--#include file="sd_myfunction.asp"-->
<!--#include file="sd_site.asp"-->
<%
id=request.QueryString("id")
if id="" then
response.write "<script>alert('id不能为空！');window.location.href='/';</script>"
end if
page=request.QueryString("page")
if page="" then
page=1
end if
dim userip
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") 
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")

id=request("id")
Set rs=Server.CreateObject("ADODB.RecordSet") 
sql="update sd_show set sd_hits=sd_hits+1 where id="&cstr(request("id"))
conn.execute sql
sql="select * from sd_show where sd_shenhe=1 and id="&id
rs.Open sql,conn,1,1
id=rs("id")
psd=rs("sd_sd")
pxj=rs("sd_xj")
pfw=rs("sd_fw")
paq=rs("sd_aq")
pzp=rs("sd_zp")
if rs.eof and rs.bof then
response.Write("<script language=javascript>alert('没有该医院或该医院资料未审核！');this.location.href='index.asp';</script>")
else
%>
<!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="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><%=rs("sd_name")%>好不好_<%=rs("sd_namejx")%>技术怎么样_<%=rs("sd_name")%>官方网址<%=replace(rs("sd_url"),"http://","")%> - <%=sd_hostname%></title> 
<meta name="keywords" content="<%=rs("sd_name")%>好不好,<%=rs("sd_namejx")%>的联系方式,<%=rs("sd_namejx")%>地址,<%=rs("sd_name")%>收费贵不贵">
<meta name="description" content="<%=rs("sd_name")%>的客观评价<%=rs("sd_name")%>的服务好不好以及治疗技术和收费是否合理，<%=rs("sd_namejx")%>，<%=rs("sd_yewufanwei")%> - <%=rs("sd_content")%>">
<link href="sd_style.css" rel="stylesheet" type="text/css" />
<LINK href="sd_validator.css" type=text/css rel=stylesheet>
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/full-validator.js"></script>
<SCRIPT type="text/javascript" src="js/roating.js"></script>
<SCRIPT type=text/javascript>
function setradioselect(v){
	
	var radioes = document.getElementsByName('sd_tj');
	
	for(var i=0;i<radioes.length;i++)
	{
		if(radioes[i].value == v){
			radioes[i].checked = true;
		}
		else{
			radioes[i].checked = false;
		}	
	}
	if (v == 1) {
		document.getElementById('crecommend_a').style.color = '#FF0000';
		document.getElementById('crecommend_b').style.color = '#000000';
	}
	else {
		document.getElementById('crecommend_b').style.color = '#FF0000';
		document.getElementById('crecommend_a').style.color = '#000000';
	}
}
</SCRIPT>
<SCRIPT type=text/javascript>
/*<![CDATA[*/
Validator.setup({
	form : 'demo',	//指定要验证的表单的id
	configs : 'tag'	//指定表单验证规则的配置方式
});
/*]]>*/
</SCRIPT>
</HEAD>
<BODY>
<div id="container" class="wrapper">
<!--#include file="sd_top.asp"-->
  <div id="main">
    <div class="sidebar1">
      <div class="title"><span style="width:939px;"><h3><a href='index.asp'><%=sd_hostname%></a> - <%=rs("sd_namejx")%></h3></span></div>
      <div class="content">
      	<div style="float:left;width:74%;margin-top:10px;">
        <div style="display: block;">
        <table border="0" cellpadding="0" cellspacing="0" class="idcintro" width="98%">
          <tr>
            <th width="12%">医院名称:</th>
            <td style="font-size:14px; font-weight:bold;"><%=rs("sd_name")%><span style="font-size:12px;font-weight:normal;padding-left:10px;">(<a href="#evaluation_area" style="color:#C00;">医院评测</a>)</span></td>
            <th width="10%">医院简称:</th>
            <td width="25%"><%=rs("sd_namejx")%></td>
          </tr>
          <tr>
            <th class="s1">医院简介:</th>
            <td colspan="3"><%=rs("sd_content")%></td>
          </tr>
          <tr>
            <th>医院地址:</th>
            <td colspan="3">
<%
set rre=server.createobject("adodb.recordset")
rre.open "select * from sd_yys where id="&rs("sd_classid"),conn,1,3
response.write "<a href='sd_fox.asp?fox="&rre("id")&"' target='_blank'>"&rre("sd_title")&"</a>"
set rre=nothing
%>&nbsp;<%=rs("sd_dishi")%></td>
          </tr>
          <tr>
            <th>详细地址:</th>
            <td colspan="3"><%=rs("sd_address")%></td>
          </tr>
          <tr>
            <th>邮政编码:</th>
            <td><%=rs("sd_zipcode")%></td>
            <th>联系人:</th>
            <td><%=rs("sd_lianxiren")%></td>
          </tr>
          <tr>
            <th>电    话:</th>
            <td style="color:#C00; font-weight:bold;"><%=rs("sd_tel")%></td>
            <th>传    真:</th>
            <td><%=rs("sd_fax")%></td>
          </tr>
          <tr>
            <th>医院网站:</th>
            <td><a href="<%=rs("sd_url")%>" target="_blank" style="color:#0FA8DB;font-weight:bold;font-size:14px;"><%=rs("sd_url")%></a> </td>
            <th>邮    件:</th>
            <td><%=rs("sd_email")%></td>
          </tr>
          <tr>
            <th>治疗范围:</th>
            <td colspan="3"><%=rs("sd_yewufanwei")%></td>
          </tr>
          <tr>
            <th>医院种别:</th>
            <td colspan="3"><%
sPic = rs("sd_xianlu")
sPic = split(sPic, ", ")
for i=0 to ubound(sPic)
   response.write "<a href='sd_xianlu.asp?xianlu="&sPic(i)&"'><img src='images/xianlu"&sPic(i)&".gif'></a>&nbsp;&nbsp;"
next 
%></td>
          </tr>
          <tr>
            <th>客服联系:</th>
            <td colspan="3"><img src="images/QQ.gif" width="15" height="16" /><%=rs("sd_qq")%></td>
          </tr>
          <tr>
            <th>医保性质:</th>
            <td colspan="3"><%=rs("sd_jifang")%></td>
          </tr>
          <tr>
            <th>主推专家:</th>
            <td colspan="3"><%=rs("sd_kehu")%></td>
          </tr>
          <tr>
            <th class="s1">所获荣誉:</th>
            <td colspan="3"><%=rs("sd_rongyu")%></td>
          </tr>
          <tr>
            <th>设备/技术:</th>
            <td colspan="3"><%=rs("sd_icp")%></td>
          </tr>
          <tr>
            <th class="s1">医院级别:</th>
            <td colspan="3"><%=rs("sd_isp")%></td>
          </tr>
          <tr>
            <th>特别声明:</th>
            <td colspan="3">以上<strong><%=rs("sd_name")%>(<%=rs("sd_namejx")%>)</strong>网址及联系方式等资料来源于其官网或者由用户自行提交。<br />
	    <a href="sd_about.asp?id=5" target="_blank">如有错误或遗漏请联系我们进行更正，<font color="#FF0000">点此修改</font>。</a><br>收录提示：<a href="sd_add.asp" target="_blank" style="color:#FF0000">新医院申请收录请直接在线提交表单。</a></td>
          </tr>
        </table>
         </div>
        </div>
       <div style="float:right;width:235px;margin-top:20px;margin-right:6px;">
<div style="line-height:14px;border:1px #EEEEEE solid;padding:6px 6px 6px 10px;margin:0px 0px 0px 7px;background-color:#F5F5F5;"><a href="sd_newsclass.asp" title="IDC资讯"><strong>资讯推荐</strong></a></div>
<div class="recommend_news"><ul>
<%
Set rslist = Server.CreateObject("ADODB.Recordset")
sql="select top 10 * from sd_article where sd_hot=1 order by id desc"
rslist.open sql,conn,1,3
do while not rslist.eof
%>
<li>·<a href="sd_news.asp?id=<%=rslist("id")%>" target="_blank"><%=rslist("sd_title")%></a></li>
<%
rslist.movenext 
loop
rslist.close
set rslist=nothing
%>
</ul></div>
<div style="line-height:20px;border:1px #EEEEEE solid;padding:6px;margin-left:7px;"><span id="ggad1"></span>
<div align="right" style="font-weight:bold;color:#333;padding-right:15px;">淮企动力提供的广告 </div>
</div>
</div>
<div style="clear:both;"></div>
      </div>
      <div class="bottom"><span style="width:952px;"></span></div>
    </div>

    <div class="sidebar1">
      <div class="title"><span style="width:939px;"><h3 id="evaluation_area">用户综合评价</h3></span></div>
      <div class="content">
        <div id="opinion">
        <span style="color:#930;"><a href="index.asp" title="医院综合评测">医院综合评测</a>：您觉得<%=rs("sd_name")%>(<%=rs("sd_namejx")%>)怎么样？服务质量及医院的治疗费用、性价比、安全性如何？</span>
          <form action="sd_request.asp?id=<%=id%>" name="demo" id="demo" method="post">
            <table width="650" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th>昵称：</th>
                <td><div style="float:left"><input id="cname" onClick="this.value = ''" value="匿名" size="15" name="cname">
		<ui:v for="cname" rule="Limit" min="2" max="8" empty="昵称不允许为空" warn="只允许字数在2-8字内" pass="验证成功" /></div>           
                <div style="float:left; margin-left:80px;">
		<input name="sd_tj" type="radio" value="1" checked="checked"><span id="crecommend_a">推荐就诊 </span>
                <input name="sd_tj" type="radio" value="0"><span id="crecommend_b">不推荐就诊</span>
		</div>
                </td>
              </tr>
              <tr>
                <th>评分：</th>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="vote">
                    <tr>
                      <td><h5>费用合理性</h5>
<a onclick="demo.p1.checked=true;"> 
<script>
if (document.getElementById)
	{
	// Support for Class A.
	_ratings_proj1_ = new yg_Ratings("_ratings_proj1_", false, "proj1", 0, "star");
	}
else
	{
	// Support for poor DOM (low grade).	
	document.write('<input type="radio" name="proj1" value="1">');
	document.write('<input type="radio" name="proj1" value="2">');
	document.write('<input type="radio" name="proj1" value="3">');
	document.write('<input type="radio" name="proj1" value="4">');
	document.write('<input type="radio" name="proj1" value="5">');
	}
</script></a>
<input type="hidden" name="p1" id="p1" value="1">
<ui:v for="p1" rule="Group" min="1" pass="&nbsp;" warn="&nbsp;"></td>
                      <td><h5>服务质量度</h5>
<a onclick="demo.p2.checked=true;"> 
<script>
if (document.getElementById)
	{
	// Support for Class A.
	_ratings_proj2_ = new yg_Ratings("_ratings_proj2_", false, "proj2", 0, "star");
	}
else
	{
	// Support for poor DOM (low grade).	
	document.write('<input type=radio name="proj2" value="1">');
	document.write('<input type=radio name="proj2" value="2">');
	document.write('<input type=radio name="proj2" value="3">');
	document.write('<input type=radio name="proj2" value="4">');
	document.write('<input type=radio name="proj2" value="5">');
	}
</script></a>
<input type="hidden" name="p2" id="p2" value="1">
<ui:v for="p2" rule="Group" min="1" pass="&nbsp;" warn="&nbsp;"></td>
                      <td><h5>综合性价比</h5>
<a  onclick="demo.p3.checked=true;">
<script>
if (document.getElementById)
	{
	// Support for Class A.
	_ratings_proj3_ = new yg_Ratings("_ratings_proj3_", false, "proj3", 0, "star");
	}
else
	{
	// Support for poor DOM (low grade).	
	document.write('<input type=radio name="proj3" value="1">');
	document.write('<input type=radio name="proj3" value="2">');
	document.write('<input type=radio name="proj3" value="3">');
	document.write('<input type=radio name="proj3" value="4">');
	document.write('<input type=radio name="proj3" value="5">');
	}
</script></a>
<input type="hidden" name="p3" id="p3" value="1">
<ui:v for="p3" rule="Group" min="1" pass="&nbsp;" warn="&nbsp;"></td>
                      <td><h5>治疗安全性</h5>
<a  onclick="demo.p4.checked=true;">
<script>
if (document.getElementById)
	{
	// Support for Class A.
	_ratings_proj4_ = new yg_Ratings("_ratings_proj4_", false, "proj4", 0, "star");
	}
else
	{
	// Support for poor DOM (low grade).	
	document.write('<input type=radio name="proj4" value="1">');
	document.write('<input type=radio name="proj4" value="2">');
	document.write('<input type=radio name="proj4" value="3">');
	document.write('<input type=radio name="proj4" value="4">');
	document.write('<input type=radio name="proj4" value="5">');
	}
</script></a>
<input type="hidden" name="p4" id="p4" value="1">
<ui:v for="p4" rule="Group" min="1" pass="&nbsp;" warn="&nbsp;"></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <th>标题：</th>
                <td><input id="csubject" value="评价<%=rs("sd_name")%>" size="40" name="csubject">
<ui:v for="csubject" rule="Limit" min="2" max="50" empty="标题不允许为空" warn="只允许字数在2-50字内" pass="验证成功" /></td>
              </tr>
              <tr>
                <th valign="top">内容：</th>
                <td><textarea name="ccontent" cols="50" rows="3" id="ccontent"></textarea>
<ui:v for="ccontent" rule="Limit" min="10" max="300" empty="内容不允许为空" warn="只允许字数在10-300字内" pass="验证成功" /></td>
               </tr>
               <tr>
                <th></th>
                <td>
                <div id="evaluation_notice" style="color:#F00"></div>
		<input name="belong" type="hidden" id="belong" value="11" />
		<input type="submit"  name="button" id="button" value="提交" class="inputbtn">
                  <h6>*恶意评论和灌水广告等经本站查明后管理员会将其删除，请网友注意评论者IP，以防被骗。</h6></td>
              </tr>
            </table>
          </form>
        </div>
        <div id="chart">
          <h3>综合评价比例图</h3>
          <table border="0" cellSpacing="0" cellPadding="0" class="box">
            <tr>
               <td style="border-bottom: solid 1px #EEE;" vAlign="bottom" width="20%" align="middle" height="150"><table border="0" cellSpacing="0" cellPadding="0" class="bar"><tr><td><%=psd%></td></tr><tr>
		<%if psd<>0 then
		sd_height=100+formatnumber((psd*10),0)
		else
		sd_height=psd
		end if%>
              <td width="28" valign="bottom"><img src="images/chart01.gif" height="<%=sd_height%>" width="24" /></td></tr></table></td>

              <td style="border-bottom: solid 1px #EEE;" vAlign="bottom" width="20%" align="middle"><table border="0" cellSpacing="0" cellPadding="0" class="bar"><tr><td><%=pfw%></td></tr><tr>
		<%if pfw<>0 then
		fw_height=100+formatnumber((pfw*10),0)
		else
		fw_height=pfw
		end if%>
              <td width="28" valign="bottom"><img src="images/chart03.gif" height="<%=fw_height%>" width="24" /></td></tr></table></td>

              <td style="border-bottom: solid 1px #EEE;" vAlign="bottom" width="20%" align="middle"><table border="0" cellSpacing="0" cellPadding="0" class="bar"><tr><td><%=pxj%></td></tr><tr>
		<%if pxj<>0 then
		xj_height=100+formatnumber((pxj*10),0)
		else
		xj_height=pxj
		end if%>
              <td width="28" valign="bottom"><img src="images/chart02.gif" height="<%=xj_height%>" width="24" /></td></tr></table></td>

              <td style="border-bottom: solid 1px #EEE;" vAlign="bottom" width="20%" align="middle"><table border="0" cellSpacing="0" cellPadding="0" class="bar"><tr><td><%=paq%></td></tr><tr>
		<%if paq<>0 then
		aq_height=100+formatnumber((paq*10),0)
		else
		aq_height=paq
		end if%>
              <td width="28" valign="bottom"><img src="images/chart04.gif" height="<%=aq_height%>" width="24" /></td></tr></table></td>

              <td style="border-bottom: solid 1px #EEE;" vAlign="bottom" width="20%" align="middle"><table border="0" cellSpacing="0" cellPadding="0" class="bar"><tr><td><%=pzp%></td></tr><tr>
		<%if pzp<>0 then
		zp_height=100+formatnumber((pzp*10),0)
		else
		zp_height=pzp
		end if%>
              <td width="28" valign="bottom"><img src="images/chart05.gif" height="<%=zp_height%>" width="24" /></td></tr></table></td>
            </tr>
            <tr>
              <td height="30" align"=middle">费用合理性</td>
              <td align="middle">服务质量</td>
              <td align="middle">性价比</td>
              <td align="middle">安全性</td>
              <td align="middle">总体评价</td>
            </tr>
          </table>
          <div>
<% 
end if
rs.close
set rs=nothing
%>
<%
Set TJCount=Server.CreateObject("Adodb.Recordset")
TJ_Sql="Select * from sd_pinglun where sd_show_id="&id&" and sd_tj=1"
TJCount.open TJ_Sql,conn,1,1

Set BTJCount=Server.CreateObject("Adodb.Recordset")
BTJ_Sql="Select * from sd_pinglun where sd_show_id="&id&" and sd_tj=0"
BTJCount.open BTJ_Sql,conn,1,1
%>
<span class="anniu1" onclick="javascript:setradioselect(1)">推荐就诊 <%=TJCount.RecordCount%></span>
<span class="anniu2" onclick="javascript:setradioselect(0)" style="float:right">不推荐就诊 <%=BTJCount.RecordCount%></span>
<%
TJCount.close 
Set TJFCount = Nothing
BTJCount.close 
Set BTJCount = Nothing
%>
</div>
        </div>

        <div id="comments">
          <ul id="evaluation_list">
<%
set rspl=server.createobject("adodb.recordset")
sql="select * from sd_pinglun where sd_show_id="&id&" order by id desc"
rspl.open sql,conn,1,1
if not rspl.eof then 
myPagesize=5
myPages rspl,myPagesize
line=myPagesize
i=0                                  
do while not rspl.eof and line>0
i=i+1
%>
            <li>
              <div class="c1">
                <dl class="tit">
                  <dt><a href="index.asp"><%=sd_hostname%></a></dt>
                  <dd><%=rspl("sd_biaoti")%></dd>
                </dl>
                <dl class="userinfo">
                  <dt>用户：</dt>
                  <dd><%=rspl("sd_name")%></dd>
                  <dt>时间：</dt>
                  <dd><%=rspl("sd_datas")%></dd>
                  <dt>地区：</dt>
                  <dd><%=rspl("sd_dq")%> (<%
ipstr= rspl("sd_ip")
ipstr=split(ipstr,".",-1,1)
ipstrout=ipstr(0)&"."&ipstr(1)&"."&ipstr(2)&".*"
response.write ipstrout
%>)</dd>
                </dl>
              </div>
              <div class="c2">
                <dl id="score">
                  <dt>费用合理性：</dt>
                  <dd><%=rspl("sd_sd")%>分</dd>
                  <dt>服务质量度：</dt>
                  <dd><%=rspl("sd_fu")%>分</dd>
                  <dt>综合性价比：</dt>
                  <dd><%=rspl("sd_xj")%>分</dd>
                  <dt>治疗安全性：</dt>
                  <dd><%=rspl("sd_aq")%>分</dd>
                  <dt>推荐就诊：</dt>
                  <dd><%if rspl("sd_tj")=1 then%>推荐<%else%><font color="#FF0000">不推荐</font><%end if%></dd>
                </dl>
                <div class="content"><%=rspl("sd_content")%></div>
              </div>
            </li>
<%rspl.movenext
   line=line-1
loop
end if%>
          </ul>
        </div>
        <div class="pagehead"><%listpages("&id="&id&"")%>　　　&nbsp;</div>
      </div>
      <div class="bottom"><span style="width:952px;"></span></div>
    </div>
    <div class="clear"></div>
  </div>
<!--#include file="sd_bottom.asp"-->
</div>
<span id=span_ggad1><script src="sd_dy.asp?id=1&menu=js" language="JavaScript" charset="gb2312"></script></span>
<script language="javascript">ggad1.innerHTML=span_ggad1.innerHTML;span_ggad1.innerHTML="";</script>
</body></HTML>
