<html>
<head>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<link href="../CSS/Base.css" rel=stylesheet>
<link href="../CSS/SurveyList.css" rel="stylesheet" type="text/css"/>
<link href="../CSS/Common.css" rel="stylesheet" type="text/css"/>
<LINK href="../CSS/Window.css" type=text/css rel=stylesheet>
<style>
 td { padding:2px 5px 2px 5px;}
 table { margin-bottom:4px;}

 .code{ margin: 0.5em; line-height: 1em; }
 .code { color: #666; font: 12px "verdana", Courier, monospace; display: block; padding: 5px; }
</style>
<script language=javascript src="../JS/AjaxGetSurveyCode.js.php"></script>
<script>
function copycode(obj) {
        var rng = document.body.createTextRange();
        rng.moveToElementText(obj);
        rng.scrollIntoView();
        rng.select();
        rng.execCommand("Copy");
        rng.collapse(false);
		alert("复制内容到剪贴板成功!");
}
function gId(_sId){
	return document.getElementById(_sId);
}
</script>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body style="background-color:#244d8f;" onload="javascript:AjaxChangeRequest('GetSurveyCode.php?Action=GetCode&surveyID={surveyID}');">
<div style="line-height:10px">&nbsp;</div>
<div id="menu">
  <span style="float:left;padding-left:26px;"><div class="navmenu">我的问卷 &raquo; {surveyTitle}</div></span>
  <span style="float:right">
  <ul><li><a href="ShowMain.php">我的问卷</a>
	  <li style="display:{isAdmin6}"><a href="ShowSurveyList.php?Action=Edit&surveyID={surveyID}">属性</a></li>
	  <li class="current" style="display:{isDeployStat}"><a href="GetSurveyCode.php?Action=Edit&surveyID={surveyID}">分发</a></li>
	  <li><a href="ShowSurveyList.php?Action=EditUser&surveyID={surveyID}">用户</a></li>
	  <li style="display:{haveTask}"><a href="{taskURL}">任务</a></li>
	  <li style="display:{havePlan}"><a href="{planURL}">计划</a></li>
  </ul></span>
</div>
<a name="top" href="javascript:void(0);"></a>
<div class="wrap q_clear" id=wrap>
<div>
<div class=content>
<div class=q_clear id=mysurvey><h1>调查问卷分发代码</h1><br/></div>
<div id=myname>选择不同的调查问卷发布方式，并获取其对应方式的代码，仅执行状态的问卷方能进行回复</div>
<div class="datalist">
 
   <table width=100% style="border:0px;margin:0px;padding:0px">
     <tr><td width=50% valign=top style="border:0px">
	   <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
		 <tr><td bgcolor="#f5f5f5">
			 <span style="float:left"><b>问卷URL链接代码</b></span>
			 <span style="float:right"><a href="javascript:void(0)" onclick="copycode(gId('code0'));">复制内容到剪贴板</a>&nbsp;</span>		 
		 </td></tr>
		 <tr><td height=60 valign=top><code id="code0" class="code"></code></td></tr>
	   </table>

	   <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
		 <tr><td bgcolor="#f5f5f5">
			 <span style="float:left"><b>页面IFrame嵌套代码</b></span>
			 <span style="float:right"><a href="javascript:void(0)" onclick="copycode(gId('code1'));">复制内容到剪贴板</a>&nbsp;</span>		 
		 </td></tr>
		 <tr><td height=70 valign=top><code id="code1" class="code"></code></td></tr>
	   </table>

	   <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
		 <tr><td bgcolor="#f5f5f5">
			 <span style="float:left"><b>页面内置弹出窗口代码</b></span>
			 <span style="float:right"><a href="javascript:void(0)" onclick="copycode(gId('code3'));">复制内容到剪贴板</a>&nbsp;</span>		 
		 </td></tr>
		 <tr><td height=160 valign=top><code id="code3" class="code"></code></td></tr>
	   </table>
   </td>
   <td width=50% valign=top style="border:0px">
	   <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
		 <tr><td bgcolor="#f5f5f5">
			 <span><b>问卷页面静态HTML代码</b>&nbsp;(下载的HTML文件可重新编辑)</span>
		 </td></tr>
		 <tr><td height=60 valign=top><code id="code2" class="code"></code></td></tr>
	   </table>

	   <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
		 <tr><td bgcolor="#f5f5f5">
			 <span><b>向调研对象发送电子邮件邀请</b></span>
		 </td></tr>
		 <tr><td height=70 valign=top><code id="code5" class="code"><a href="SendSurveyEmail.php?surveyID={surveyID}&surveyTitle={survey_URLTitle}"><b>发送问卷邀请邮件</b></a></code></td></tr>
	   </table>

	   <table style="LINE-HEIGHT: 150%;border-collapse:collapse;" cellSpacing=0 cellPadding=0 width="100%" borderColor=#b5cfd9 border=1>
		 <tr><td bgcolor="#f5f5f5">
			 <span><b>二维码</b>&nbsp;(鼠标右键选择"图片另存为...")</span>
		 </td></tr>
		 <tr><td height=160 valign=top><code id="code4" class="code" style="padding:2px;margin:0px">{QR_Code}</code></td></tr>
	   </table>
   </td></tr></table>
</div>
</div></div></div>
<script type="text/javascript" src="../JS/Browser.js.php"></script>
<script>adjustMenuWarpSize();</script>
</body></html>
