<?
switch($GLOBALS['setSign']){
	case 'Dhtml'://编辑器图片显示开始
	print <<<EOT

<table style=" text-align:left;float:left;width:480px" cellpadding="2" cellspacing="2"  border="0">
  <tr class="yToolbar" >
	<td class="Dvbbs_Btn" title="{$lang['tpl.str114']}" language="javascript" onclick="insertSpecialChar();this.className='Dvbbs_TabOn';" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';><img  class="Dvbbs_Ico" src="images/post/specialchar.gif" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str115']}" language="javascript" onclick="Dvbbs_replace();this.className='Dvbbs_TabOn';" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';><img  class="Dvbbs_Ico" src="images/post/replace.gif" width="16" height="16"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str116']}" language="javascript" onclick="Dvbbs_CleanCode();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';><img  class="Dvbbs_Ico" src="images/post/cleancode.gif" width="16" height="16"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str117']}" language="javascript" onclick="openEditScript('smiley.php',450,250);this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';><img  class="Dvbbs_Ico" src="images/post/smiley.gif" ></td>
	<td><img  src="images/post/separator.gif"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str118']}" language="javascript" onclick="Dvbbs_help();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';><img  class="Dvbbs_Ico" src="images/post/help.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str123']}" language="javascript" onclick="FormatText('undo');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/undo.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str124']}" language="javascript" onclick="FormatText('redo');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/redo.gif" width="16" height="16" unselectable="on" /></td>
	<td><img  src="images/post/separator.gif"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str125']}" language="javascript" onclick="Dvbbs_UserDialog('CreateLink');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/wlink.gif" width="18" height="18" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str126']}" language="javascript" onclick="FormatText('Unlink');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/unlink.gif" width="16" height="16" unselectable="on" /></td> 
	<td class="Dvbbs_Btn" title="{$lang['tpl.str127']}" language="javascript" onclick="Dvbbs_UserDialog('InsertImage');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/img.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str128']}" language="javascript" onclick="FormatText('InsertHorizontalRule', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/hr.gif" width="16" height="16" unselectable="on" /></td>
	<td><img  src="images/post/separator.gif"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str134']}" language="javascript" onclick="Dvbbs_forswf();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/swf.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str135']}" language="javascript" onclick="Dvbbs_forwmv();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/wmv.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str136']}" language="javascript" onclick="Dvbbs_forrm();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/rm.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str154']}" language="javascript" onclick="Dvbbs_UserDialog('InsertAlipay');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/icon_alipay.gif" unselectable="on" /></td>
</tr>
</table>

<table style=" text-align:left;float:left;width:480px" cellpadding="2" cellspacing="2" border="0">
  <tr class="yToolbar" >
	<td class="Dvbbs_Btn" title="{$lang['tpl.str129']}" language="javascript" onclick="Dvbbs_fortable();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/table.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str130']}" language="javascript" onclick="Dvbbs_InsertRow();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/insertrow.gif" width="16" height="16"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str131']}" language="javascript" onclick="Dvbbs_DeleteRow();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/deleterow.gif" width="16" height="16"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str132']}" language="javascript" onclick="Dvbbs_InsertColumn();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/insertcolumn.gif" width="16" height="16"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str133']}" language="javascript" onclick="Dvbbs_DeleteColumn();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/deletecolumn.gif" width="16" height="16"></td>
	<td><img  src="images/post/separator.gif"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str140']}" language="javascript" onclick="FormatText('superscript', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/superscript.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str141']}" language="javascript" onclick="FormatText('subscript', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/subscript.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str142']}" language="javascript" onclick="FormatText('strikethrough', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/strikethrough.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str143']}" language="javascript" onclick="FormatText('RemoveFormat', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/removeformat.gif" width="16" height="16" unselectable="on" /></td>
	<td><img  src="images/post/separator.gif"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str147']}" language="javascript" onclick="FormatText('insertorderedlist', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/numlist.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str148']}" language="javascript" onclick="FormatText('insertunorderedlist', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/bullist.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str149']}" language="javascript" onclick="FormatText('outdent', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/outdent.gif" width="16" height="16" unselectable="on" /></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str150']}" language="javascript" onclick="FormatText('indent', '');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/indent.gif" width="16" height="16" unselectable="on" /></td>
	<td><img  src="images/post/separator.gif"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str152']}" language="javascript" onclick="Dvbbs_specialtype('<div class=quote>','</div>');this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; >
	<img  class="Dvbbs_Ico" src="images/post/quote.gif" width="16" height="16"></td>
	<td class="Dvbbs_Btn" title="{$lang['tpl.str153']}" language="javascript" onclick="Dvbbs_code();this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn'; ><img  class="Dvbbs_Ico" src="images/post/code.gif" width="16" height="16"></td>
EOT;
global  $ccvideo;
if($ccvideo['enabledccvideo']){print <<<EOT
	<!--cc视频-->
	<td width='8'></td>
	<td>
	<div id="dvcc"></div>
	<SCRIPT LANGUAGE="JavaScript">
	<!--
		var strcc = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="72" height="24"><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://union.bokecc.com/flash/plugin/{$ccvideo['ccvideobtn']}.swf?userID={$ccvideo['ccvideoid']}&type=dvphp2" /><embed src="http://union.bokecc.com/flash/plugin/{$ccvideo['ccvideobtn']}.swf?userID={$ccvideo['ccvideoid']}&type=dvphp2" type="application/x-shockwave-flash" width="72" height="24" allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ></embed></object>';
		document.getElementById("dvcc").innerHTML=strcc;
	//-->
	</SCRIPT>
	</td>
	<!--END cc视频-->
EOT;
}
print <<<EOT
  </tr>
</table>
@@@

@@@
EOT;
break;//编辑器图片显示结束
case 'PicTab'://编辑器图片上传显示开始
print <<<EOT
<table  style="margin:0" width="400" cellspacing="0" cellpadding="0" >
  <tr>
	<th class="AjaxCss_t" style="cursor:move;" onmousedown="ObjAJAX.AJAXmove(event,'showAjaxPic');"><span class="AjaxCssClose_t" onclick="ObjAJAX.AJAXclose('showAjaxPic');"><img src="{$imgurl}close.gif" /></span>{$strings11}</th>
  </tr>
  <tr>
	<td align="center" >
	<iframe name="addif" id="addif" frameborder="0" width="100%" height="120"  scrolling="no" src="post_upload.php?boardid={$boardid}&t=2"  ></iframe>
	</td>
  </tr>
</table>
EOT;
break;//编辑器图片显示结束
case 'Emot'://图片表情显示开始

print <<<EOT
	<table style="margin:0" width="200" cellspacing="0" cellpadding="0" >
	  <tr>
	    <th class="AjaxCss_t" style="cursor:move;" onmousedown="ObjAJAX.AJAXmove(event,'showAjaxPic');"><span class="AjaxCssClose_t" onclick="ObjAJAX.AJAXclose('showAjaxPic');"><img src="{$imgurl}close.gif" /></span>
	   </th>
	   </tr>
	   <tr>
		<td align="center" >
		   <iframe name="addEmot" id="addEmot" frameborder="0" width="100%" height="200"  scrolling="no" src="dv_ajax_ifr.php?setSign={$GLOBALS['setSign']}"  ></iframe>
		</td>
		</tr>
	</table>
EOT;
break;//图片表情显示结束

case 'Eagicframe'://魔法表情显示开始

print <<<EOT
<SCRIPT LANGUAGE="JavaScript">
<!--
	function magic(){
		if (magicface.checked){
			document.getElementById("tmagicface").value = 1;
		}
		else{
			document.getElementById("tmagicface").value = 0;
		}
	}
//-->
</SCRIPT>

	<table style="margin:0" width="400" cellspacing="0" cellpadding="0">
	  <tr>
	    <th class="AjaxCss_t" style="cursor:move;" onmousedown="ObjAJAX.AJAXmove(event,'showAjaxPic');"><span class="AjaxCssClose_t" onclick="ObjAJAX.AJAXclose('showAjaxPic');"><img src="{$imgurl}close.gif" /></span>
		<input name="magicface" value="1" type="checkbox" onclick="magic()" class="chkbox" {$isselect} />{$str34}
		
		&nbsp;{$str35}<font id="magicmoney" color="red">{$magicmoney}</font>
	    &nbsp;{$str36}<font id="magicticket" color="red">{$magicticket}</font>
	   </th>
	   </tr>
	   <tr>
		<td align="center">
			 <iframe class="magicframe" src="plus_tools_magiclist.php?boardid={$boardid}&s=0" width="400" height="310" frameborder="0" scrolling="no">
			</iframe>
		</td>
		</tr>
	</table>
EOT;

break;//魔法表情显示结束
case 'DownLoad'://DownLoad效果广告显示开始

	function str_rf($s){
		$s=str_replace(
			array('\\','\\\\','&quot;','&#39;','&lt;','&gt;','',' ','&nbsp;'),
			array('','','"','\'','<','>','\r','&nbsp;',' '),$s);
		return $s;
	}

	function showFile($act, $w, $h, $url){
		global $arrdb;
		if (intval($act) === 1)
		{
			$GetDBText = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'.$w.'" height="'.$h.'"><param name=movie value="'.$url.'"><PARAM NAME=wmode VALUE=opaque><param name=quality value=autolow><embed src="'.$url.'" quality=autolow pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'.$w.'" height="'.$h.'" wmode="opaque"></embed></object>';
		}
		elseif (intval($act) === 2)
		{
			//DrawImage(this,'.$arrdb[DB_width].','.$arrdb[DB_height].')
			if (!empty($arrdb[DB_linkurl]) and $arrdb[DB_linkurl]!='http://')$GetDBText .= '<A HREF="'.$arrdb[DB_linkurl].'" target="_blank">';
			$GetDBText .= '<img  src="'.$url.'" height="'.$h.'" widht="'.$w.'" border="0" alt="'.$arrdb[DB_name].'" >';
			if (!empty($arrdb[DB_linkurl]) and $arrdb[DB_linkurl]!='http://')$GetDBText .= '</A>';
		}
		return $GetDBText;
	}
	if (intval($arrdb[DB_type]) === 1)
	{
		if (strtolower($arrdb[DB_File_type]) == 'swf'){
			$act = 1;
		}elseif (strtolower($arrdb[DB_File_type]) == 'gif' || strtolower($arrdb[DB_File_type]) == 'jpg'){
			$act = 2;
		}
		$DB_HTML=showFile($act,$arrdb[DB_width],$arrdb[DB_height],$arrdb[DB_File]);
	}
	else if(intval($arrdb[DB_type]) === 2) 
	{
		$DB_HTML = str_rf($arrdb[DB_HTML]);
		if (false!==strpos($DB_HTML,'[/img]')){
			$DB_HTML=preg_replace('/\[img=(.+?),(.+?)\](.+?)\[\/img\]/ise','showFile("2","$1","$2","$3")',$DB_HTML);
		}
		if (false!==strpos($DB_HTML,'[/flash]')){
			$DB_HTML=preg_replace('/\[flash=(.+?),(.+?)\](.+?)\[\/flash\]/ise','showFile("1","$1","$2","$3")',$DB_HTML);
		}
	}
print <<<EOT
<SCRIPT LANGUAGE="JavaScript">
<!--
setTimeout("ObjAJAX.AJAXclose('showAjaxPic')",{$arrdb[DB_second]}*1000);
//-->
</SCRIPT>
	<table style="margin:0" width="$arrdb[DB_width]" cellspacing="0" cellpadding="0">
	  <tr>
	    <th class="AjaxCss_t" style="cursor:move;" onmousedown="ObjAJAX.AJAXmove(event,'showAjaxPic');"><span class="AjaxCssClose_t" style="margin-top:2px;cursor:pointer" onclick="ObjAJAX.AJAXclose('showAjaxPic');"><img src="{$imgurl}close.gif" /></span>
		<B><A HREF="{$arrdb[DB_linkurl]}" target="new">{$arrdb[DB_name]}</A></B>
	   </th>
	   </tr>
	   <tr>
		<td align="center">
		<div style="padding: 4px;margin:0;width:{$arrdb[DB_width]}px;height:{$arrdb[DB_height]}px;">
		{$DB_HTML}
		</div>
		</td>
		</tr>
	</table>
EOT;

break;//魔法表情显示结束
}

?>