Skip to content

Commit

Permalink
signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Oct 20, 2023
1 parent 3c1ffb2 commit c8e3a2b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ public function photoupload(){

}


public function imgupload(){
/* Get the name of the uploaded file */
$filename = str_replace(' ', '_', $_FILES['file']['name']);
Expand All @@ -838,7 +839,6 @@ public function imgupload(){
echo json_encode($response);
exit;
}

public function dynimg($id) {
$pointscore = $this->itindata_model->get_scoreforoutside($id);

Expand Down
14 changes: 14 additions & 0 deletions application/models/Itindata_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,19 @@ public function delsingleimg($imgid) {
$query = $this->db->delete('inspectionimg_tbl');
return;
}

public function set_signature($data) {
$this->db->insert('signatures_tbl', $data);
return $this->db->insert_id();
}
public function get_signature($where = null) {
if (isset($where)) {
$this->db->where($where);
}
$query = $this->db->get('signatures_tbl');
return $query->result_array();

}

}

14 changes: 13 additions & 1 deletion assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,16 @@ body {
position: absolute;
bottom: 0;
left: 15px;
}
}

.signature-pad {
border: 1px solid #ccc;
box-shadow: 1px 1px 0px #000;
width: 100%;
height:250px;
}

.disablediv {
pointer-events: none;
opacity: 0.4;
}

0 comments on commit c8e3a2b

Please sign in to comment.