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

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 88 lines · 66 code · 22 blank · 0 comment · 9 complexity · a3f83b64a6b4e5a23a3c7a09b16c86a9 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">Edit Post</h1>
  20. <form class="edit" action="<?=site_url('admin/blog/edit/'.$post['id'])?>" 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. <label for="title">Page Title:</label>
  32. <input type="text" name="title" value="<?=$post['title']?>" id="title" class="input-text" /><br />
  33. <label for="uri">SEF adress:</label>
  34. <input type="text" name="uri" value="<?=$post['uri']?>" id="uri" class="input-text" /><br />
  35. <label for="status">Status:</label>
  36. <select name="status" id="status" class="input-select">
  37. <option <?php if ($post['status'] == 'draft'):?>selected="selected" <?php endif;?>value="draft">Draft</option>
  38. <option <?php if ($post['status'] == 'published'):?>selected="selected" <?php endif;?>value="published">Published</option>
  39. </select><br />
  40. <label for="body">Post Content:</label>
  41. <textarea name="body" class="input-textarea"><?=$post['body']?></textarea><br />
  42. <label for="body">Post Extended:</label>
  43. <textarea name="ext_body" class="input-textarea"><?=$post['ext_body']?></textarea><br />
  44. </div>
  45. <div id="two">
  46. <label for="meta_keywords">Post keywords:</label>
  47. <input type="text" name="meta_keywords" value="<?=$post['meta_keywords']?>" id="meta_keywords" class="input-text" /><br />
  48. <label for="meta_description">Post description:</label>
  49. <input type="text" name="meta_description" value="<?=$post['meta_description']?>" id="meta_description" class="input-text" /><br />
  50. <label for="tags">Tags:</label>
  51. <input type="text" name="tags" value="<?=$post['tags_string']?>" id="tags" class="input-text" /><br />
  52. <label for="discussion">Discussion:<label>
  53. <div id="discussion">
  54. <input <?php if ($post['allow_comments'] == '1'):?>checked="checked" <?php endif; ?>type="checkbox" name="allow_comments" value="1" id="allow_comments" /> Allow Comments?<br />
  55. <input <?php if ($post['allow_pings'] == '1'):?>checked="checked" <?php endif; ?>type="checkbox" name="allow_pings" value="1" id="allow_pings" /> Allow Trackbacks/Pings?<br />
  56. </div><br />
  57. </div>
  58. </form>
  59. <script>
  60. var tabs = new Control.Tabs('tabs',{
  61. defaultTab: 'last'
  62. })
  63. tabs.setActiveTab('one');
  64. </script>
  65. </div>
  66. <!-- [Content] end -->