
<style>

	.property_where { border-bottom:1px dashed  #cde7fb}
	
	.property_where_top_band { height:30px ; font-size:14px; background-image:url-('image/bg_18.gif'); font-weight:normal; }
	
	.property_normal { border:0 ; color:black;  float:left ; width:10px;height:16px;padding:1px;}
	.property_normal { border:0 ; color:black;  float:left ; width:10px;height:16px;padding:1px;}
	<!--常规的关键字输入框 -->
	.property_normalkey { border:1px solid  #a0a0ff ; color:black;   width:100%; padding:1px;}
	.property_numberkey { border:1px solid  #a0a0ff ; color:black;   width:80px; padding:1px;}
	
	.property_datetimekey { border:1px solid  #a0a0ff ; color:black;   padding:1px;}
	
	<!--条件过滤时，选择的条件内容在提示中显示的样式 -->
	.property_where_key_tip{background-color:#b0ffb0; }
	
	.property_selected { border:1px solid  #dedede;  background-color:#246dff ; color:white ; float:left ; width:10px; height:16px;padding:1px; }
	.property_selected  td { color:white }
	.orderby_selected { background-image:url('image/band1.jpg'); border-left :1px solid lightgrey;border-right :1px solid lightgrey; }
	
	
</style>


   
 <FORM   name=frmSearch  id=frmSearch action='subject.jsp?subjectid=<c:out value="${param.subjectid}"/>' method="GET" >
                 
		<input type="hidden"  id="viewstyle" name="viewstyle" value="<c:out value='${type}'/>">
 		<input type="hidden"  id="page" name="page" value="1">
 		<input type="hidden"  id="subjectid" name="subjectid" value="<c:out value="${param.subjectid}"/>">
 
		 
		<div style="display:none;">
		<div id=SFHN_<c:out value="${param.subjectid}"/>_visible></div>     
		</div>	     
		  <%
		  //如果是集成第三方数据，那么不要显示whichContainer
             int SubjectID=wiseoa.util.FF.GetIntFromRequest(request,"subjectid",0);
             boolean integrate_third= wiseoa.util.FF.getIntFromMap( wiseoa.news.jstl.SubjectInfoCache.getSubjectConfig(null, SubjectID) ,"integrate_third",0)==1 ;
             
             wiseoa.news.jstl.SubjectInfo  nh = new wiseoa.news.jstl.SubjectInfo(request, SubjectID,"", null, true ,true);
              
             
         %>
         
            <%=nh.searchPanelHTML.toString()%>
		
	     	<%=nh.searchFormHTML.toString() %>
	
            <%
             if( integrate_third) {
             %>
                <div  style="padding-left:20px;padding-right:20px;">
				<%=wiseoa.util.FF.getStringFromMap( wiseoa.news.jstl.SubjectInfoCache.getSubjectConfig(null, SubjectID) ,"integrate_wheretip","")%>
			</div>
             <%}%>
             
           <p align="center"><INPUT class='flatbox'  size=25   name=keys  value='<%=FF.GetStringFromRequest(request, "keys", "")%>'></p>  
         
            <p align="center"  id=whichContainer  >
			 
			<INPUT type=radio CHECKED value="title"   name=which>标题 
			<INPUT type=radio value="content" name=which>内容 
            <INPUT type=radio value="author" name=which>作者 
             </p>
             <%
             if( integrate_third) {
             %>
             <script language="javascript">document.getElementById('whichContainer').style.display='none';  </script>
             <%}%>
             
             
 			<p align="center"> 
                     <SCRIPT language="javascript">
		 				function cb_search_onclick()
						{
							 
						   $E('frmSearch').submit();
						}
					   var cb =new zbutton('cb_search','&nbsp;搜索','image/zoom.gif');

					   var objs=document.getElementsByName("which");
					   var lastWhich="<%=FF.GetStringFromRequest(request,"which","title")%>";
					   
			 
						  for( i=0;i<objs.length ;i++)
						  {  
					 		if( objs[i].value ==lastWhich)  objs[i].checked=true;
						  }

						 //分页跳转 
						function  gotoPage(page)
						{
							$E('page').value=page;
							$E('frmSearch').submit();
						}
        			</SCRIPT>
         </p>
        </FORM><!-- 搜索栏结束 -->



<script language="javascript">


function $E(id)
{

		var obj= document.getElementById(id);
		if(obj) return obj;
		if (!obj)
		{
			var objs= document.getElementsByName(id);
			if ( objs.length>0) return objs[0];
		}
		 
		return null;

}

 

	
function setSubjectHTML( id)
{
		var obj1=$E(id) ;
		var obj2=$E(id+"_visible") ;
	 
		if ( obj1!=null  &&obj2!=null )
		{
			var t=obj1.innerHTML;
			if ( t!='')
			{ 
				obj1.innerHTML ="";
				obj2.innerHTML=  t;
			}	
		}
} 


setSubjectHTML('SFHN_<c:out value="${param.subjectid}"/>' )  ;
 
						
</script>

