PageRenderTime 653ms CodeModel.GetById 282ms app.highlight 163ms RepoModel.GetById 201ms app.codeStats 0ms

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