/halogy/application/modules/events/views/admin/create.php

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 90 lines · 68 code · 22 blank · 0 comment · 1 complexity · d62fc81efcf99ff3c603f52e4d6cbd8b MD5 · raw file

  1. <!-- [Left menu] start -->
  2. <div class="leftmenu">
  3. <h1 id="pageinfo">Blog Post</h1>
  4. <ul id="tabs" class="quickmenu">
  5. <li><a href="#one">Content</a></li>
  6. <li><a href="#two">Meta data</a></li>
  7. </ul>
  8. <div class="quickend"></div>
  9. </div>
  10. <!-- [Left menu] end -->
  11. <!-- [Content] start -->
  12. <div class="content slim">
  13. <script type="text/javascript">
  14. function change_parent() {
  15. selected = document.getElementById('parent').selectedIndex;
  16. document.getElementById('pre_uri').innerHTML = '/'+document.getElementById('parent').options[selected].value;
  17. }
  18. </script>
  19. <h1 id="edit">Create New Post</h1>
  20. <form class="edit" action="<?=site_url('admin/blog/create')?>" method="post" accept-charset="utf-8">
  21. <ul>
  22. <li><input type="submit" name="submit" value="Save post" class="input-submit" /></li>
  23. <li><a href="<?=site_url('admin/blog')?>" class="input-submit last">Cancel</a></li>
  24. </ul>
  25. <br class="clearfloat" />
  26. <hr />
  27. <?php if ($notice = $this->session->flashdata('notification')):?>
  28. <p class="notice"><?=$notice;?></p>
  29. <?php endif;?>
  30. <div id="one">
  31. <p>To create a new blog post, just fill in your content below and click 'Save Post'.<br />
  32. If you want to save your progress without publishing the page, make sure the 'Status' field is set to 'Draft'.</p>
  33. <label for="title">Page Title:</label>
  34. <input type="text" name="title" value="" id="title" class="input-text" /><br />
  35. <label for="uri">SEF adress:</label>
  36. <input type="text" name="uri" value="" id="uri" class="input-text" /><br />
  37. <label for="status">Status:</label>
  38. <select name="status" id="status" class="input-select">
  39. <option value="draft">Draft</option>
  40. <option value="published">Published</option>
  41. </select><br />
  42. <label for="body">Post Content:</label>
  43. <textarea name="body" class="input-textarea"></textarea><br />
  44. <label for="body">Post Extended:</label>
  45. <textarea name="ext_body" class="input-textarea"></textarea><br />
  46. </div>
  47. <div id="two">
  48. <label for="keywords">Post keywords:</label>
  49. <input type="text" name="keywords" value="" id="keywords" class="input-text" /><br />
  50. <label for="description">Post description:</label>
  51. <input type="text" name="description" value="" id="description" class="input-text" /><br />
  52. <label for="tags">Tags:</label>
  53. <input type="text" name="tags" value="" id="tags" class="input-text" /><br />
  54. <label for="discussion">Discussion:<label>
  55. <div id="discussion">
  56. <input checked="checked" type="checkbox" name="allow_comments" value="1" id="allow_comments" /> Allow Comments?<br />
  57. <input checked="checked" type="checkbox" name="allow_pings" value="1" id="allow_pings" /> Allow Trackbacks/Pings?<br />
  58. </div>
  59. </div>
  60. </form>
  61. <script>
  62. var tabs = new Control.Tabs('tabs',{
  63. defaultTab: 'last'
  64. })
  65. tabs.setActiveTab('one');
  66. </script>
  67. </div>
  68. <!-- [Content] end -->