event_template.htm 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <!--{subtemplate common/header}-->
  2. <!--{if $_GET[act]=='manage'}-->
  3. <div id="wp" class="wp">
  4. <div id="pt" class="bm cl">
  5. <div class="z"> <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em> <a href="plugin.php?id=xj_event:event_template&act=manage">{lang xj_event:huodong}</a> </div>
  6. </div>
  7. <div id="ct" class="ct2_a wp cl">
  8. <div class="mn">
  9. <table summary="" cellspacing="0" cellpadding="0" class="dt mtm">
  10. <caption>
  11. <h2 class="mbm xs2"> <a href="plugin.php?id=xj_event:event_template&act=add" class="xi2 xs1 xw0 y">{lang xj_event:tianjmb}</a>{lang xj_event:mobgl} </h2>
  12. </caption>
  13. <tr>
  14. <th>{lang xj_event:mobmc}</th>
  15. <th width="150">{lang xj_event:wangjianm}</th>
  16. <th width="150">{lang xj_event:caozuo}</th>
  17. </tr>
  18. <!--{loop $event_template $key $value}-->
  19. <tr>
  20. <td>$value[0]</td>
  21. <td>$value[1]</td>
  22. <td><a href="plugin.php?id=xj_event:event_template&act=delete&tpid=$key&formhash={$_G[formhash]}">{lang xj_event:delete}</a> <a href="plugin.php?id=xj_event:event_template&act=edit&tpid=$key">{lang xj_event:modify}</a></td>
  23. </tr>
  24. <!--{/loop}-->
  25. </table>
  26. </div>
  27. <div class="appl">
  28. <div class="tbn">
  29. <h2 class="mt bbda">{lang xj_event:huodong}</h2>
  30. <ul>
  31. <li class="a"><a href="plugin.php?id=xj_event:event_template&act=manage">{lang xj_event:huodmb}</a></li>
  32. </ul>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <!--{elseif $_GET[act]=='add' || $_GET[act]=='edit' }-->
  38. <div id="pt" class="wp"><a href="./">$_G[setting][bbname]</a> $navigation &rsaquo; <a href="plugin.php?id=xj_event:event_template&act=manage">{lang xj_event:mobgl}</a> &rsaquo; {lang xj_event:tianjmb}</div>
  39. <form id="etplform" method="post" autocomplete="off" onsubmit="$('{$editorid}_textarea').value = wysiwyg ? html2bbcode(getEditorContents()) : $('{$editorid}_textarea').value" action="plugin.php?id=xj_event:event_template<!--{if $_GET[act]=='add'}-->&act=addfull<!--{else}-->&act=editfull&tpid={$_GET[tpid]}<!--{/if}-->">
  40. <input type="hidden" name="etsubmit" value="true">
  41. <input type="hidden" name="formhash" value="{$_G[formhash]}" />
  42. <div class="pbt cl">
  43. <div class="z">
  44. {lang xj_event:mobmc}:<span><input type="text" name="tpname" id="subject" class="px" value="$tpname" onblur="if($('tags')){relatekw('-1','-1',function(){extraCheck(4)});doane();}" onkeyup="strLenCalc(this, 'checklen', 40);" style="width: 25em" tabindex="1" /></span>
  45. <span id="tpnamechk">{lang xj_event:haiksr} <strong id="checklen">40</strong> {lang xj_event:gezifu}</span>
  46. </div>
  47. </div>
  48. <div class="edt" id="{$editorid}_body">
  49. <div id="{$editorid}_controls" class="bar">
  50. <div class="y">
  51. <div class="b2r nbl nbr" id="{$editorid}_adv_5">
  52. <p> <a id="{$editorid}_undo" title="{lang e_undo}">Undo</a> </p>
  53. <p> <a id="{$editorid}_redo" title="{lang e_redo}">Redo</a> </p>
  54. </div>
  55. <div class="z"> <span class="mbn"><a id="{$editorid}_fullswitcher"></a><a id="{$editorid}_simple"></a></span>
  56. <label id="{$editorid}_switcher" class="bar_swch ptn">
  57. <input id="{$editorid}_switchercheck" type="checkbox" class="pc" name="checkbox" value="0" {if !$editor[editormode]}checked="checked"{/if} onclick="switchEditor(this.checked?0:1)" />
  58. CODE</label>
  59. </div>
  60. </div>
  61. <div id="{$editorid}_button" class="btn cl">
  62. <div class="b2r nbl nbr" id="{$editorid}_adv_s2"> <a id="{$editorid}_fontname" class="dp" title="{lang e_fontname}"><span id="{$editorid}_font">{lang e_font}</span></a> <a id="{$editorid}_fontsize" class="dp" title="{lang e_fontsize}"><span id="{$editorid}_size">{lang e_size}</span></a> <br id="{$editorid}_adv_1" />
  63. <a id="{$editorid}_bold" title="{lang e_bold}">B</a> <a id="{$editorid}_italic" title="{lang e_italic}">I</a> <a id="{$editorid}_underline" title="{lang e_underline}">U</a> <a id="{$editorid}_forecolor" title="{lang e_forecolor}">Color</a> <a id="{$editorid}_url" title="{lang e_url}">Url</a> <span id="{$editorid}_adv_8"> <a id="{$editorid}_unlink" title="{lang e_unlink}">Unlink</a> <a id="{$editorid}_inserthorizontalrule" title="{lang e_hr_title}">Hr</a> </span> </div>
  64. <div class="b2r nbl" id="{$editorid}_adv_2">
  65. <p id="{$editorid}_adv_3"> <a id="{$editorid}_tbl" title="{lang e_table}">Table</a> </p>
  66. <p> <a id="{$editorid}_removeformat" title="{lang e_removeformat}">Removeformat</a> </p>
  67. </div>
  68. <div class="b2r">
  69. <p> <a id="{$editorid}_justifyleft" title="{lang e_left}">Left</a> <a id="{$editorid}_justifycenter" title="{lang e_center}">Center</a> <a id="{$editorid}_justifyright" title="{lang e_right}">Right</a> </p>
  70. <p id="{$editorid}_adv_4"> <a id="{$editorid}_autotypeset" title="{lang e_autotypeset}">Autotypeset</a> <a id="{$editorid}_insertorderedlist" title="{lang e_orderedlist}">Orderedlist</a> <a id="{$editorid}_insertunorderedlist" title="{lang e_unorderedlist}">Unorderedlist</a> </p>
  71. </div>
  72. <div class="b1r" id="{$editorid}_adv_s1"> <a id="{$editorid}_sml" title="{lang e_smilies_title}">{lang e_smilies}</a>
  73. <div id="{$editorid}_imagen" style="display:none">!</div>
  74. <a id="{$editorid}_image" title="{lang e_image_title}">{lang e_image}</a> <a id="{$editorid}_aud" title="{lang e_audio_title}">{lang e_audio}</a> <a id="{$editorid}_vid" title="{lang e_video_title}">{lang e_video}</a> <a id="{$editorid}_fls" title="{lang e_flash_title}">{lang e_flash}</a> </div>
  75. <div class="b2r" id="{$editorid}_adv_6">
  76. <p> <a id="{$editorid}_code" title="{lang e_code_title}">{lang e_code}</a> </p>
  77. <p> <a id="{$editorid}_quote" title="{lang e_quote_title}">{lang e_quote}</a> </p>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="area">
  82. <textarea name="$editor[textarea]" id="{$editorid}_textarea" class="pt" tabindex="1" rows="15">$tpcontent</textarea>
  83. </div>
  84. <!--{subtemplate common/editor}-->
  85. </div>
  86. <div id="{$editorid}_menus" class="editorrow" style="overflow: hidden; margin-top: -5px; height: 0; border: none; background: transparent;">
  87. <!--{subtemplate common/editor_menu}-->
  88. </div>
  89. <div class="p_pof uploadfile" id="{$editorid}_image_menu" style="display: none" unselectable="on">
  90. <div class="p_opt popupfix" unselectable="on" id="{$editorid}_www">
  91. <table cellpadding="0" cellspacing="0" width="100%">
  92. <tr>
  93. <th width="74%">{lang e_img_inserturl}</th>
  94. <th width="13%">{lang e_img_width}</th>
  95. <th width="13%">{lang e_img_height}</th>
  96. </tr>
  97. <tr>
  98. <td><input type="text" id="{$editorid}_image_param_1" onchange="loadimgsize(this.value)" style="width: 95%;" value="" class="px" autocomplete="off" /></td>
  99. <td><input id="{$editorid}_image_param_2" size="1" value="" class="px p_fre" autocomplete="off" /></td>
  100. <td><input id="{$editorid}_image_param_3" size="1" value="" class="px p_fre" autocomplete="off" /></td>
  101. </tr>
  102. <tr>
  103. <td colspan="3" class="pns mtn"><button type="button" class="pn pnc" id="{$editorid}_image_submit"><strong>{lang submit}</strong></button>
  104. <button type="button" class="pn" onclick="hideMenu();"><em>{lang cancel}</em></button></td>
  105. </tr>
  106. </table>
  107. </div>
  108. </div>
  109. <div style=" height:40px;"> <br />
  110. <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode" />
  111. <input type="submit" id="testsubmit" />
  112. </div>
  113. <br />
  114. </form>
  115. <script type="text/javascript">
  116. var editorform = $('etplform');
  117. var editorsubmit = $('testsubmit');
  118. if(wysiwyg) {
  119. newEditor(1, bbcode2html(textobj.value));
  120. } else {
  121. newEditor(0, textobj.value);
  122. }
  123. </script>
  124. <!--{/if}-->
  125. <!--{subtemplate common/footer}-->