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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>获取代码</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  13. <tr>
  14. <td height="26" background="../static/web/img/tbg.gif"><a href="vote_main.php">投票管理</a> &gt; 获取代码</td>
  15. </tr>
  16. <tr>
  17. <td>
  18. <table width="98%" cellspacing="2" cellpadding="2">
  19. <tr bgcolor="#EBF2DB">
  20. <td width="100%" bgcolor="#EBF2DB">在封面或主页模板中使用的标记:</td>
  21. </tr>
  22. <tr>
  23. <td>
  24. <table width="100%" 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>
  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 rowspan="2">
  33. <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td height="36" align="center">
  38. <button type="submit" name="Submit" class="btn btn-success btn-sm">提交测试</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>
  50. <textarea name="htmlf" cols="60" rows="5" id="htmlf"><script 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>
  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>