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

57 lines
2.1KB

  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 bgcolor="#f8f8f8"><a href="vote_main.php">投票管理</a> &gt; 获取代码</td>
  15. </tr>
  16. <tr>
  17. <td>
  18. <table width="100%" cellspacing="0" cellpadding="0">
  19. <form name="form1" action="tag_test_action.php" target="stafrm" method="post">
  20. <input type="hidden" name="showsource" value="no">
  21. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>">
  22. <tr>
  23. <td><textarea name="partcode" id="partcode" class="biz-textarea">{dede:vote id='<?php echo $aid?>'}{/dede:vote}</textarea></td>
  24. <td rowspan="2"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></td>
  25. </tr>
  26. <tr>
  27. <td align="center" class="py-2">
  28. <button type="submit" name="Submit" class="btn btn-success btn-sm">提交测试</button>
  29. </td>
  30. </tr>
  31. </form>
  32. </table>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td bgcolor="#f8f8f8">在封面或主页模板中使用的JS:</td>
  37. </tr>
  38. <tr>
  39. <td><textarea name="htmlf" id="htmlf" class="biz-textarea"><script src="<?php echo $cfg_basehost.'/data/vote/vote_'.$aid.'.js' ?>"></script></textarea></td>
  40. </tr>
  41. <tr>
  42. <td bgcolor="#f8f8f8">默认生成的表单HTML:</td>
  43. </tr>
  44. <tr>
  45. <td>
  46. <textarea name="htmlf" id="htmlf" class="biz-textarea">
  47. <?php
  48. $vt = new DedeVote($aid);
  49. echo $vt->GetVoteForm();
  50. $vt->Close();
  51. ?>
  52. </textarea>
  53. </td>
  54. </tr>
  55. </table>
  56. </body>
  57. </html>