content_page.tpl.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');?>
  4. <div id="closeParentTime" style="display:none"></div>
  5. <SCRIPT LANGUAGE="JavaScript">
  6. <!--
  7. if(window.top.$("#current_pos").data('clicknum')==1) {
  8. parent.document.getElementById('display_center_id').style.display='';
  9. parent.document.getElementById('center_frame').src = '?m=content&c=content&a=public_categorys&type=add&menuid=<?php echo $_GET['menuid'];?>';
  10. window.top.$("#current_pos").data('clicknum',0);
  11. }
  12. $(document).ready(function(){
  13. setInterval(closeParent,3000);
  14. });
  15. function closeParent() {
  16. if($('#closeParentTime').html() == '') {
  17. window.top.$(".left_menu").addClass("left_menu_on");
  18. window.top.$("#openClose").addClass("close");
  19. window.top.$("html").addClass("on");
  20. $('#closeParentTime').html('1');
  21. window.top.$("#openClose").data('clicknum',1);
  22. }
  23. }
  24. //-->
  25. </SCRIPT>
  26. <div class="pad-lr-10">
  27. <div class="pad-10">
  28. <div class="content-menu ib-a blue line-x"><a href="javascript:;" class=on><em><?php echo L('page_manage');?></em></a><span>|</span> <a href="<?php if(strpos($category['url'],'http://')===false) echo siteurl($this->siteid);echo $category['url'];?>" target="_blank"><em><?php echo L('click_vistor');?></em></a> <span>|</span> <a href="?m=block&c=block_admin&a=public_visualization&catid=<?php echo $catid;?>&type=page"><em><?php echo L('visualization_edit');?></em></a>
  29. </div>
  30. </div>
  31. <form name="myform" action="?m=content&c=content&a=add" method="post" enctype="multipart/form-data">
  32. <div class="pad_10">
  33. <div style='overflow-y:auto;overflow-x:hidden' class='scrolltable'>
  34. <table width="100%" cellspacing="0" class="table_form contentWrap">
  35. <tr>
  36. <th width="80"> <?php echo L('title');?> </th>
  37. <td><input type="text" style="width:400px;" name="info[title]" id="title" value="<?php echo $title?>" style="color:<?php echo $style;?>" class="measure-input " onBlur="$.post('api.php?op=get_keywords&number=3&sid='+Math.random()*5, {data:$('#title').val()}, function(data){if(data && $('#keywords').val()=='') $('#keywords').val(data); })"/>
  38. <input type="hidden" name="style_color" id="style_color" value="<?php echo $style_color;?>">
  39. <input type="hidden" name="style_font_weight" id="style_font_weight" value="<?php echo $style_font_weight;?>">
  40. <img src="statics/images/icon/colour.png" width="15" height="16" onclick="colorpicker('title_colorpanel','set_title_color');" style="cursor:hand"/>
  41. <img src="statics/images/icon/bold.png" width="10" height="10" onclick="input_font_bold()" style="cursor:hand"/> <span id="title_colorpanel" style="position:absolute; z-index:200" class="colorpanel"></span> </td>
  42. </tr>
  43. <tr>
  44. <th width="80"> <?php echo L('keywords');?> </th>
  45. <td><input type="text" name="info[keywords]" id="keywords" value="<?php echo $keywords?>" size="50"> <?php echo L('explode_keywords');?></td>
  46. </tr>
  47. <tr>
  48. <th width="80"> <?php echo L('content');?> </th>
  49. <td>
  50. <textarea name="info[content]" id="content"><?php echo $content?></textarea>
  51. <?php echo form::editor('content','full','','','',1,1)?>
  52. </td></tr>
  53. </table>
  54. </div>
  55. <div class="bk10"></div>
  56. <div class="btn">
  57. <input type="hidden" name="info[catid]" value="<?php echo $catid;?>" />
  58. <input type="hidden" name="edit" value="<?php echo $title ? 1 : 0;?>" />
  59. <input type="submit" class="button" name="dosubmit" value="<?php echo L('submit');?>" />
  60. </div>
  61. </div>
  62. </form>
  63. </div>
  64. <script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>content_addtop.js"></script>
  65. <script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>colorpicker.js"></script>
  66. </body>
  67. </html>