58 行
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			58 行
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
 | 
						|
 | 
						|
<div class="container notes">
 | 
						|
<?php foreach ($note->result() as $row) { ?>
 | 
						|
<div class="card">
 | 
						|
  <div class="card-header">
 | 
						|
    <h2 class="card-title"><?php echo $this->lang->line('notes_edit_note'); ?></h2>
 | 
						|
	<ul class="nav nav-tabs card-header-tabs">
 | 
						|
	    <li class="nav-item">
 | 
						|
	    	<a class="nav-link" href="<?php echo site_url('notes'); ?>"><?php echo $this->lang->line('notes_menu_notes'); ?></a>
 | 
						|
	    </li>
 | 
						|
	    <li class="nav-item">
 | 
						|
	    	<a class="nav-link" href="<?php echo site_url('notes/add'); ?>"><?php echo $this->lang->line('notes_create_note'); ?></a>
 | 
						|
	    </li>
 | 
						|
	</ul>
 | 
						|
  </div>
 | 
						|
 | 
						|
  <div class="card-body">
 | 
						|
 | 
						|
  	<?php if (!empty(validation_errors())): ?>
 | 
						|
    <div class="alert alert-danger">
 | 
						|
        <a class="close" data-dismiss="alert" title="close">x</a>
 | 
						|
        <ul><?php echo (validation_errors('<li>', '</li>')); ?></ul>
 | 
						|
    </div>
 | 
						|
	<?php endif; ?>
 | 
						|
 | 
						|
	<form method="post" action="<?php echo site_url('notes/edit'); ?>/<?php echo $id; ?>" name="notes_add" id="notes_add">
 | 
						|
 | 
						|
	<div class="form-group">
 | 
						|
		<label for="inputTitle"><?php echo $this->lang->line('notes_input_title'); ?></label>
 | 
						|
		<input type="text" name="title" class="form-control" value="<?php echo $row->title; ?>" id="inputTitle">
 | 
						|
	</div>
 | 
						|
 | 
						|
	<div class="form-group">
 | 
						|
	   <label for="catSelect"><?php echo $this->lang->line('notes_input_category'); ?></label>
 | 
						|
	   <select name="category" class="form-control" id="catSelect">
 | 
						|
	    <option value="General" selected="selected"><?php echo $this->lang->line('notes_selection_general'); ?></option>
 | 
						|
		<option value="Antennas"><?php echo $this->lang->line('notes_selection_antennas'); ?></option>
 | 
						|
		<option value="Satellites"><?php echo $this->lang->line('notes_selection_satellites'); ?></option>
 | 
						|
	   </select>
 | 
						|
	</div>
 | 
						|
 | 
						|
	<div class="form-group">
 | 
						|
		<label for="inputTitle"><?php echo $this->lang->line('notes_input_notes_content'); ?></label>
 | 
						|
		<div id="quillArea"><?php echo $row->note; ?></div>
 | 
						|
		<textarea name="content" style="display:none" id="hiddenArea"></textarea>
 | 
						|
	</div>
 | 
						|
 | 
						|
	<input type="hidden" name="id" value="<?php echo $id; ?>" />
 | 
						|
	<button type="submit" value="Submit" class="btn btn-primary"><?php echo $this->lang->line('notes_input_btn_save_note'); ?></button>
 | 
						|
	</form>
 | 
						|
  </div>
 | 
						|
 | 
						|
  <?php } ?>
 | 
						|
</div>
 | 
						|
 | 
						|
</div>
 | 
						|
 |