Added Orientation to views/controllers/model for paper

这个提交包含在:
int2001 2023-08-02 10:35:12 +00:00
父节点 f2272e9fb5
当前提交 d5b8204e57
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B
共有 3 个文件被更改,包括 26 次插入0 次删除

查看文件

@ -32,6 +32,7 @@ class Labels_model extends CI_Model {
'metric' => xss_clean($this->input->post('measurementType', true)),
'width' => xss_clean($this->input->post('width', true)),
'height' => xss_clean($this->input->post('height', true)),
'orientation' => xss_clean($this->input->post('orientation', true)),
'last_modified' => date('Y-m-d H:i:s'),
);
@ -182,6 +183,7 @@ class Labels_model extends CI_Model {
'metric' => xss_clean($this->input->post('measurementType', true)),
'width' => xss_clean($this->input->post('width', true)),
'height' => xss_clean($this->input->post('height', true)),
'orientation' => xss_clean($this->input->post('orientation', true)),
'last_modified' => date('Y-m-d H:i:s'),
);

查看文件

@ -33,6 +33,8 @@
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label" for="width">Width of paper</label>
<div class="col-sm-4">
@ -45,6 +47,17 @@
<input name="height" type="text" class="form-control" id="height" aria-describedby="heightHelp">
<small id="heightHelp" class="form-text text-muted">Total height of paper</small>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label" for="orientation">Orientation of paper</label>
<div class="col-sm-4">
<select name="orientation" class="form-control" id="orientation">
<option value="L">Landscape</option>
<option value="P">Portrait</option>
</select>
<small id="heightHelp" class="form-text text-muted">Orientation of paper</small>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> Save Paper Type</button>

查看文件

@ -47,6 +47,17 @@
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label" for="orientation">Orientation of paper</label>
<div class="col-sm-4">
<select name="orientation" class="form-control" id="orientation">
<option value="L"<?php if($paper->orientation == 'L') { echo " selected"; } ?>>Landscape</option>
<option value="P"<?php if($paper->orientation == 'P') { echo " selected"; } ?>>Portrait</option>
</select>
<small id="heightHelp" class="form-text text-muted">Orientation of paper</small>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> Save Paper Type</button>
</div>
</div>