国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
3.2KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>获取代码</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. </head>
  10. <body background="../static/web/img/allbg.gif" leftmargin="8" topmargin="8">
  11. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table maintable mt-3">
  12. <tr>
  13. <td height="26" background="../static/web/img/tbg.gif"><a href="vote_main.php">投票管理</a> &gt; 获取代码
  14. </td>
  15. </tr>
  16. <tr>
  17. <td height="200" bgcolor="#ffffff" valign="top">
  18. <table width="80%" border="0" cellspacing="2" cellpadding="2">
  19. <tr bgcolor="#EBF2DB">
  20. <td width="100%" bgcolor="#EBF2DB">在封面或主页模板中使用的标记:</td>
  21. </tr>
  22. <tr>
  23. <td valign="top">
  24. <table width="600" border="0" cellspacing="0" cellpadding="0">
  25. <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
  26. <input type="hidden" name="showsource" value="no">
  27. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>">
  28. <tr>
  29. <td width="370" height="153" align="center">
  30. <textarea name="partcode" cols="45" rows="6" id="partcode">{dede:vote id='<?php echo $aid?>' lineheight='26' tablewidth='100%' titlebgcolor='#EDEDE2' titlebackground='' tablebgcolor='#ffffff'}{/dede:vote}</textarea>
  31. </td>
  32. <td width="230" rowspan="2">
  33. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td height="53" align="center" valign="top">
  38. <button type="submit" name="Submit" class="btn btn-success">提交测试</button>
  39. </td>
  40. </tr>
  41. </form>
  42. </table>
  43. </td>
  44. </tr>
  45. <tr bgcolor="#EBF2DB">
  46. <td bgcolor="#EBF2DB">在封面或主页模板中使用的JS:</td>
  47. </tr>
  48. <tr>
  49. <td height="200" valign="top">
  50. <textarea name="htmlf" cols="60" rows="5" id="htmlf"><script language="javascript" src="<?php echo $cfg_basehost.'/data/vote/vote_'.$aid.'.js' ?>"></script></textarea>
  51. </td>
  52. </tr>
  53. <tr bgcolor="#EBF2DB">
  54. <td bgcolor="#EBF2DB">默认生成的表单HTML:</td>
  55. </tr>
  56. <tr>
  57. <td height="200" valign="top">
  58. <textarea name="htmlf" cols="60" rows="10" id="htmlf">
  59. <?php
  60. $vt = new DedeVote($aid);
  61. echo $vt->GetVoteForm();
  62. $vt->Close();
  63. ?>
  64. </textarea>
  65. </td>
  66. </tr>
  67. </table>
  68. </td>
  69. </tr>
  70. </table>
  71. </body>
  72. </html>