<!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" />
<title>获取代码</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/jquery.min.js" type="text/javascript"></script>	
<script type="text/javascript" src="js/admin.jquery.configuration.js"></script>

<script language="javascript" src="js/global.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>

</head>
<body>
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<?php include(DEDEADMIN.'/templets/menu.htm'); ?>
<script language="javascript">
$("#plus").addClass("current");$("#vote_main").addClass("current");</script>				

	<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>获取代码</h3>
					
					<ul class="content-box-tabs">

					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
<div class="tab-content  default-tab" id="tab1">				
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" >

<tr>
    <td height="200" valign="top"><table width="80%" border="0" cellspacing="2" cellpadding="2">
        <tr> 
          <td width="100%">在封面或主页模板中使用的标记：</td>
        </tr>
        <tr> 
          <td valign="top"> 
            <table width="600" border="0" cellspacing="0" cellpadding="0">
         <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
         <input type="hidden" name="showsource" value="no">
			  <tr> 
                  <td width="370" height="153" align="center"> 
                    <textarea name="partcode" cols="45" rows="6" id="partcode">{dede:vote id='<?php echo $aid?>' lineheight='22'
tablewidth='100%' titlebgcolor='#EDEDE2'
titlebackground='' tablebgcolor='#FFFFFF'}
{/dede:vote}</textarea>
                  </td>
                <td width="230" rowspan="2">
                 <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
				</td>
              </tr>
              <tr>
                  <td height="53" align="center" valign="top"> 
                  <input class="button" name="Submit" type="submit" value="提交测试" />
                    
                  </td>
              </tr>
			  </form>
            </table> 
          </td>
        </tr>
		<tr>
		<td>在封面或主页模板中使用的JS：</td>
		</tr>
		<tr>
		<td height="200" valign="top">
            <textarea name="htmlf" cols="60" rows="5" id="htmlf"><script language="javascript" src="<?php echo $cfg_basehost.'/data/vote/vote_'.$aid.'.js' ?>"></script></textarea>
		</td>
		</tr>
        <tr> 
          <td>默认生成的表单HTML：</td>
        </tr>
        <tr> 
          <td height="200" valign="top"> 
            <textarea name="htmlf" cols="60" rows="10" id="htmlf"><?php
			$vt = new DedeVote($aid);
			echo $vt->GetVoteForm();
			$vt->Close();
			?></textarea>
          </td>
        </tr>
      </table> </td>
</tr>
</table>
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
           <?php include(DEDEADMIN.'/templets/footer.htm'); ?>
			
		</div> <!-- End #main-content -->	
	</div>
</body>
</html>