{BEGIN searchPanel}
<style>
<!--

.searchOptions div{
	/*margin: 10px 0px 10px 10px;*/
	padding: 10px 0px 10px 10px;
}



#addOption{$id}{
	/*padding: 1px 5px 13px 5px !important;*/
}

.addOptionLink{
	margin: 1px 5px 13px 5px !important;
}

#bottomSearchButt{$id}{
	padding: 13px 1px 5px 1px !important;
}
#controlChooseMenu{$id}{
	position: absolute;			
	display: none;	
	width: auto;
	text-align: left;
	
}	

#controlsBlock_{$id}{
	/*display:table;*/
	width: 180px;
}

.srchPanelTable, .srchPanelRow{
	padding:0px !important;
}

.srchPanelRow{
	overflow: hidden;
	width: 180px;
	margin: 0px !important;
}

.srchPanelCell{
	/*padding: 2px !important;*/
	/*margin: 2px 0px 2px 2px !important;*/
	padding: 2px 0px 2px 2px !important;
	float: left; !important;	
}

.srchPanelCell2{
	/*width: 100%;*/
	width: 170px; 
	/*margin-left: 17px !important;*/
	padding-left: 17px !important;
}
.winTable{	
	/*border-collapse: collapse;*/
	border-collapse: separate;	
}

.delButt{
	visibility: hidden;
}



.addSearchControl{
	margin: 5px;
}

.critCont{
	margin: 10px 0px 0px 0px; 
}
-->
</style>



<div id="searchOptions{$id}" class="searchOptions bottomPanelBorder" {$srchOpt_attrs}>
	<!-- Search panel content -->
	<div id="srchCritTop{$id}" class="critCont" style="display: none;">
		Criteria:&nbsp;
    	<input type="radio" name="srchType" {$all_checkbox}>{BEGIN all_checkbox_label}all{END all_checkbox_label}
		&nbsp;&nbsp;&nbsp;
		<input type="radio" name="srchType" {$any_checkbox}>{BEGIN any_checkbox_label}any{END any_checkbox_label}
	</div>
	<div id="addOption{$id}" class="addOption">
      	<a id="showHideControlChooseMenu{$id}"  class="tablelinkssearch" {$showHideCtrls_attrs}>Add field</a>&nbsp;&nbsp;&nbsp;
		<a id="showHideSearchType{$id}"  class="tablelinkssearch" {$showHideCtrlsOpt_attrs}>{$showHideOpt_mess}</a>		
	</div>
	<!-- choose controls div -->
	<div id="controlChooseMenu{$id}" class="controlChooseMenu" {$controlChooseMenuDiv_attrs}>
		{BEGIN addSearch_LBOMID}
			<a id="addSearchControl_LBOMID" class="addSearchControl" {$addSearchControl_LBOMID_attrs}>LBOMID</a>
		{END addSearch_LBOMID}
		{BEGIN addSearch_Lead_ID}
			<a id="addSearchControl_Lead_ID" class="addSearchControl" {$addSearchControl_Lead_ID_attrs}>Lead ID</a>
		{END addSearch_Lead_ID}
		{BEGIN addSearch_Material_Category}
			<a id="addSearchControl_Material_Category" class="addSearchControl" {$addSearchControl_Material_Category_attrs}>Material Category</a>
		{END addSearch_Material_Category}
		{BEGIN addSearch_Material_Code}
			<a id="addSearchControl_Material_Code" class="addSearchControl" {$addSearchControl_Material_Code_attrs}>Material Code</a>
		{END addSearch_Material_Code}
		{BEGIN addSearch_Quantity}
			<a id="addSearchControl_Quantity" class="addSearchControl" {$addSearchControl_Quantity_attrs}>Quantity</a>
		{END addSearch_Quantity}
		{BEGIN addSearch_SPC_REQ_BY}
			<a id="addSearchControl_SPC_REQ_BY" class="addSearchControl" {$addSearchControl_SPC_REQ_BY_attrs}>SPC REQ BY</a>
		{END addSearch_SPC_REQ_BY}
		{BEGIN addSearch_Target_Price}
			<a id="addSearchControl_Target_Price" class="addSearchControl" {$addSearchControl_Target_Price_attrs}>Target Price</a>
		{END addSearch_Target_Price}
		{BEGIN addSearch_SPC_Status}
			<a id="addSearchControl_SPC_Status" class="addSearchControl" {$addSearchControl_SPC_Status_attrs}>SPC Status</a>
		{END addSearch_SPC_Status}
		{BEGIN addSearch_Special_Price}
			<a id="addSearchControl_Special_Price" class="addSearchControl" {$addSearchControl_Special_Price_attrs}>Special Price</a>
		{END addSearch_Special_Price}
		{BEGIN addSearch_SPC_Approved_By}
			<a id="addSearchControl_SPC_Approved_By" class="addSearchControl" {$addSearchControl_SPC_Approved_By_attrs}>SPC Approved By</a>
		{END addSearch_SPC_Approved_By}
		{BEGIN addSearch_List_Price}
			<a id="addSearchControl_List_Price" class="addSearchControl" {$addSearchControl_List_Price_attrs}>List Price</a>
		{END addSearch_List_Price}
		{BEGIN addSearch_MDP}
			<a id="addSearchControl_MDP" class="addSearchControl" {$addSearchControl_MDP_attrs}>MDP</a>
		{END addSearch_MDP}
		{BEGIN addSearch_Last_Updated_on}
			<a id="addSearchControl_Last_Updated_on" class="addSearchControl" {$addSearchControl_Last_Updated_on_attrs}>Last Updated on</a>
		{END addSearch_Last_Updated_on}
		{BEGIN addSearch_Last_Updated_by}
			<a id="addSearchControl_Last_Updated_by" class="addSearchControl" {$addSearchControl_Last_Updated_by_attrs}>Last Updated by</a>
		{END addSearch_Last_Updated_by}
		{BEGIN addSearch_Target_Amt}
			<a id="addSearchControl_Target_Amt" class="addSearchControl" {$addSearchControl_Target_Amt_attrs}>Target Amt</a>
		{END addSearch_Target_Amt}
		{BEGIN addSearch_SPC_Amt}
			<a id="addSearchControl_SPC_Amt" class="addSearchControl" {$addSearchControl_SPC_Amt_attrs}>SPC Amt</a>
		{END addSearch_SPC_Amt}
	</div>
	<!-- search window controls block, make it visible in window mode and hidden in panel -->
	<table id="controlsBlock_{$id}_win" class="winTable" style="display: none;" CELLPADDING="3">
	{BEGIN searchCtrlBlock_win}			
		<tr class="winRow" {$filterRow_attrs}>	
			<td class="srchWinCell"></td>		
			<td class="srchWinCell"></td>
			<td class="srchWinCell" {$srchTypeCont_attrs_win}></td>
			<td class="srchWinCell"></td>
			<td class="srchWinCell"></td>			
		</tr>
	{END searchCtrlBlock_win}
	</table>
	<!-- add for each for get predefined fields for list search panel, not adv search, visible in panel mode and hidden in window -->	
	<div id="controlsBlock_{$id}" class="srchPanelTable">		
	{BEGIN searchCtrlBlock}			
		<div class="srchPanelRow blockBorder" {$filterDiv_attrs}>	
			<div class="srchPanelCell">{$delCtrlButt}</div>		
			<div class="srchPanelCell">{$fLabel}:&nbsp;</div>
			<div class="srchPanelCell srchPanelCell2" {$srchTypeCont_attrs}>{$searchtype}</div>
			<div class="srchPanelCell srchPanelCell2" >{$searchcontrol}</div>
			<div class="srchPanelCell srchPanelCell2" {$secCtrlCont_attrs}>{$searchcontrol1}</div>			
		</div>
	{END searchCtrlBlock}
	</div>
	<div id="bottomSearchButt{$id}" align="center" {$bottomSearchButt_attrs}>
		<span class=buttonborder><input type=button class="button" value="Search" {$searchbutton_attrs}></span> 
	</div>
</div>
{END searchPanel}