kopia lustrzana https://github.com/magicbug/Cloudlog
[Labels] Added papertypes to dropdown for editing labels
rodzic
206c10f80a
commit
a043060a8c
|
@ -322,6 +322,8 @@ class Labels extends CI_Controller {
|
|||
|
||||
$data['label'] = $this->labels_model->getLabel($cleanid);
|
||||
|
||||
$data['papertypes'] = $this->labels_model->fetchPapertypes($this->session->userdata('user_id'));
|
||||
|
||||
$data['page_title'] = "Edit Label";
|
||||
|
||||
$this->load->view('interface_assets/header', $data);
|
||||
|
|
|
@ -28,8 +28,16 @@
|
|||
<label class="col-sm-2 col-form-label" for="paperType">Paper Type</label>
|
||||
<div class="col-sm-4">
|
||||
<select name="paper_type" class="form-control" id="paperType">
|
||||
<option value="a3" <?php if($label->paper_type == "a3") { echo "selected=\"selected\""; } ?>>A3</option>
|
||||
<option value="a4" <?php if($label->paper_type == "a4") { echo "selected=\"selected\""; } ?>>A4</option>
|
||||
<option value="a5" <?php if($label->paper_type == "a5") { echo "selected=\"selected\""; } ?>>A5</option>
|
||||
<option value="letter" <?php if($label->paper_type == "letter") { echo "selected=\"selected\""; } ?>>Letter</option>
|
||||
<option value="legal" <?php if($label->paper_type == "legal") { echo "selected=\"selected\""; } ?>>Legal</option>
|
||||
<?php
|
||||
foreach($papertypes as $paper){
|
||||
echo '<option value=' . $paper->paper_name . '>' . ucwords(strtolower(($paper->paper_name))) . '</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue