国内流行的内容管理系统(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.

71 lines
3.1KB

  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>
  11. <table width="98%" border="0" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  12. <tr>
  13. <td height="26" background="../static/web/img/tbg.gif"><a href="vote_main.php">投票管理</a> &gt; 获取代码</td>
  14. </tr>
  15. <tr>
  16. <td height="200">
  17. <table width="80%" border="0" cellspacing="2" cellpadding="2">
  18. <tr bgcolor="#EBF2DB">
  19. <td width="100%" bgcolor="#EBF2DB">在封面或主页模板中使用的标记:</td>
  20. </tr>
  21. <tr>
  22. <td>
  23. <table width="900" border="0" cellspacing="0" cellpadding="0">
  24. <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
  25. <input type="hidden" name="showsource" value="no">
  26. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>">
  27. <tr>
  28. <td width="370" height="153" align="center">
  29. <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>
  30. </td>
  31. <td width="230" rowspan="2">
  32. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td height="53" align="center">
  37. <button type="submit" name="Submit" class="btn btn-success btn-sm">提交测试</button>
  38. </td>
  39. </tr>
  40. </form>
  41. </table>
  42. </td>
  43. </tr>
  44. <tr bgcolor="#EBF2DB">
  45. <td bgcolor="#EBF2DB">在封面或主页模板中使用的JS:</td>
  46. </tr>
  47. <tr>
  48. <td height="200">
  49. <textarea name="htmlf" cols="60" rows="5" id="htmlf"><script language="javascript" src="<?php echo $cfg_basehost.'/data/vote/vote_'.$aid.'.js' ?>"></script></textarea>
  50. </td>
  51. </tr>
  52. <tr bgcolor="#EBF2DB">
  53. <td bgcolor="#EBF2DB">默认生成的表单HTML:</td>
  54. </tr>
  55. <tr>
  56. <td height="200">
  57. <textarea name="htmlf" cols="60" rows="10" id="htmlf">
  58. <?php
  59. $vt = new DedeVote($aid);
  60. echo $vt->GetVoteForm();
  61. $vt->Close();
  62. ?>
  63. </textarea>
  64. </td>
  65. </tr>
  66. </table>
  67. </td>
  68. </tr>
  69. </table>
  70. </body>
  71. </html>