PageRenderTime 427ms CodeModel.GetById 125ms app.highlight 81ms RepoModel.GetById 130ms app.codeStats 0ms

/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
 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">Edit Post</h1>
26
27<form class="edit" action="<?=site_url('admin/blog/edit/'.$post['id'])?>" 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			<label for="title">Page Title:</label>
45			<input type="text" name="title" value="<?=$post['title']?>" id="title" class="input-text" /><br />
46			
47			<label for="uri">SEF adress:</label>
48			<input type="text" name="uri" value="<?=$post['uri']?>" id="uri" class="input-text" /><br />
49			
50			<label for="status">Status:</label>
51			<select name="status" id="status" class="input-select">
52				<option <?php if ($post['status'] == 'draft'):?>selected="selected" <?php endif;?>value="draft">Draft</option>
53				<option <?php if ($post['status'] == 'published'):?>selected="selected" <?php endif;?>value="published">Published</option>
54			</select><br />
55			
56			<label for="body">Post Content:</label>
57			<textarea name="body" class="input-textarea"><?=$post['body']?></textarea><br />
58			
59			<label for="body">Post Extended:</label>
60			<textarea name="ext_body" class="input-textarea"><?=$post['ext_body']?></textarea><br />
61		
62		</div>
63		<div id="two">
64		
65			<label for="meta_keywords">Post keywords:</label>
66			<input type="text" name="meta_keywords" value="<?=$post['meta_keywords']?>" id="meta_keywords" class="input-text" /><br />
67		
68			<label for="meta_description">Post description:</label>
69			<input type="text" name="meta_description" value="<?=$post['meta_description']?>" id="meta_description" class="input-text" /><br />
70			
71			<label for="tags">Tags:</label>
72			<input type="text" name="tags" value="<?=$post['tags_string']?>" id="tags" class="input-text" /><br />
73			
74			<label for="discussion">Discussion:<label>
75			<div id="discussion">
76				<input <?php if ($post['allow_comments'] == '1'):?>checked="checked" <?php endif; ?>type="checkbox" name="allow_comments" value="1" id="allow_comments" /> Allow Comments?<br />
77				<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 />
78			</div><br />
79		</div>
80	</form>
81<script>
82	var tabs = new Control.Tabs('tabs',{
83		defaultTab: 'last'
84	})
85	tabs.setActiveTab('one');
86</script>
87</div>
88<!-- [Content] end -->