PageRenderTime 344ms CodeModel.GetById 141ms app.highlight 2ms RepoModel.GetById 199ms app.codeStats 0ms

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

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 32 lines | 25 code | 7 blank | 0 comment | 2 complexity | 07e1319d6eb8255d6243c2b05ff47246 MD5 | raw file
 1<?php if ($errors = validation_errors()): ?>
 2	<div class="error clear">
 3		<?php echo $errors; ?>
 4	</div>
 5<?php endif; ?>
 6
 7<form method="post" action="<?php echo $this->uri->uri_string(); ?>" enctype="multipart/form-data" class="default" style="width: 450px; float: left;">
 8
 9	<label for="fileRef">Reference:</label>
10	<?php echo @form_input('fileRef', $data['fileRef'], 'class="formelement" id="fileRef"'); ?>
11	<br class="clear" />
12
13	<label for="folderID">Folder: <small>[<a href="/admin/files/folders" onclick="return confirm('You will lose any unsaved changes.\n\nContinue anyway?')">update</a>]</small></label>
14	<?php
15		$options[0] = 'No Folder';
16		if ($folders):
17			foreach ($folders as $folderID):
18				$options[$folderID['folderID']] = $folderID['folderName'];
19			endforeach;
20		endif;
21			
22		echo @form_dropdown('folderID',$options,set_value('folderID', $data['folderID']),'id="folderID" class="formelement"');
23	?>	
24	<br class="clear" /><br />
25
26	<input type="submit" value="Save Changes" class="button nolabel" id="submit" />
27	<a href="<?php echo $this->session->userdata('lastPage'); ?>" class="button cancel grey">Cancel</a>
28	<br class="clear" />
29	
30</form>
31
32<br class="clear" />