<!-- ------ #External_Search ------ -->
<!--S.External_Search-->
<!-- Title -->
<ul class="extTitle">
<li class="extTitle0"><span class="FStrong">查询<?php echo ($tmpDefault->sMetaTitle); ?></span> -
<span class="FBlack4">请输入您要查询的条件，并点击查询按钮</span></li>
<li class="extTitle1"><a href="#Here" class="Link1 FGreen1" onclick="hiddenExternalSearch();">关闭弹窗</a></li>
<li class="DClear"></li></ul>
<!-- Search -->
<div class="Search">
<?php
$tmpSTR='';
$tmpFlag='External_Search_Search';
$tmpDataCollection0=$tmpDefault->sUiDescription_External_Search_Search;
$Coun0=0;
foreach ($tmpDataCollection0 as $Row0){
	$tmpAR0=array();
	$tmpSTR.=$Row0['stcotName'].$tmpDefault->sysSPLIT2; #Set search box value
	$Row0['Value']=$tmpDefault->sSearchData[$Coun0]; #Set value by P:sSearchData
	$Row0['NameExtend']=$tmpFlag; #Spell name extend
	$tmpDefault->DefUiPanel($Row0,$tmpFlag); #Set column by UI panel function
	$tmpDefault->DefUiSearchLine($Coun0); #Set TR
	if($tmpDefault->DefUiCustom($Row0,$tmpFlag)==0){
		$tmpControls->getSearch($Row0); #Get control
	}
	$Coun0++;
}
?>
<div class="SearchCell_Search"><div class="SearchTitle">&nbsp;</div><div class="But1"><a href="#Here" onclick="onAjaxSearch('<?php echo ($tmpDefault->sysPage); ?>','<?php echo ($tmpDefault->sExtendParameter); ?>');" class="Link2 FWhite1">查询</a></div><input id="External_Search_SearchBox" name="External_Search_SearchBox" type="hidden" value="<?php echo ($tmpSTR); ?>" /></div>
<div class="DClear"></div></div>
<!-- List -->
<table class="List" cellpadding="0" cellspacing="1">
<tr class="ListTitle">
<?php
$tmpDefault->sPAjaxButton->showSort($tmpDefault->sSortButton[0]);
$tmpDefault->sPAjaxButton->showSort($tmpDefault->sSortButton[1]);

$tmpFlag='External_Search_List';
$tmpDataCollection0=$tmpDefault->sUiDescription_External_Search_List;
$Coun0=0;
foreach ($tmpDataCollection0 as $Row0){
	$tmpAR0=array();
	$tmpDefault->DefUiPanel($Row0,$tmpFlag);
	$tmpDefault->sPAjaxButton->showSort($Row0);
	$Coun0++;
}
?>
<td class="ListTitle0">操作</td>
</tr>
<!--S.List-->
<?php
$Coun0=0;
foreach ($tmpDefault->sListData as $Row0){
	$tmpLineStyle='ListCell';
	$tmpINT=$Coun0+1;
	if($tmpINT%2==0){
		$tmpLineStyle='ListCell0';
	}
?>
<tr class="<?php echo ($tmpLineStyle); ?>" onmouseover="this.className='ListCell1';" onmouseout="this.className='<?php echo ($tmpLineStyle); ?>';">
<td class="ListCellID"><?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'ID']); ?><input id="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>ID<?php echo ($Coun0); ?>TxtList" name="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>ID<?php echo ($Coun0); ?>TxtList" type="hidden" value="<?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'ID']); ?>" /></td>
<td class="ListCellTitle"><a href="#Here" class="Link1" onclick="chooseIn('<?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'ID']); ?>','<?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'Name']); ?>','<?php echo ($tmpDefault->sExternal_SearchData[0]); ?>',<?php echo ($tmpDefault->sExternal_SearchData[1]); ?>);"><?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'Name']); ?></a></td>
<?php
$tmpSTR='';
$tmpFlag='External_Search_List';
$tmpDataCollection1=$tmpDefault->sUiDescription_External_Search_List;
$Coun1=0;
foreach ($tmpDataCollection1 as $Row1){
	$tmpAR0=array();
	$Row1['Value']=$Row0[$Row1['stcotName']];
	$Row0['NameExtend']=$tmpFlag;
	$tmpDefault->DefUiPanel($Row1,$tmpFlag);
	$Row1['stcotName']=$Row1['stcotName'].$Coun0;
	if($tmpDefault->DefUiCustom($Row1,$tmpFlag)==0){
		$tmpControls->getList($Row1);
	}
	$Coun1++;
}
?>
<td class="ListCellOption">
<a href="#Here" class="Link1 FRed1" onclick="chooseIn('<?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'ID']); ?>','<?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'Name']); ?>','<?php echo ($tmpDefault->sExternal_SearchData[0]); ?>',<?php echo ($tmpDefault->sExternal_SearchData[1]); ?>);">选入</a>
<a href="<?php echo ($tmpDefault->sysPage); ?>?ActionType=Normal&Normal=<?php echo ($Row0[$tmpDefault->sTable[0]['sttColumnHead'].'ID']); ?>,0" class="Link1 FBlue1" target="_blank">查看</a>
</td>
</tr>
<?php
	$Coun0++;
}
?>
<!--E.List-->
</table>
<!-- Button -->
<?php $tmpDefault->sPAjaxButton->showPage(); ?>
<!--sendRequest--><!--E.External_Search-->