This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$newdata = array( | |
'username' => 'johndoe', | |
'email' => '[email protected]', | |
'logged_in' => TRUE | |
); | |
$this->session->set_userdata($newdata); | |
//In PHP, we can remove data stored in session using the unset() function as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function () { | |
/** Email Validation ******/ | |
$("#email_id").focusout(function(){ | |
var email_to_check = $(this).val(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Android_api extends CI_Controller { | |
public function index() | |
{ | |
$this->load->view('login'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// after login get patient details so make API for Patient Detail using table name tbl_patient_detail | |
public function patient_details() | |
{ | |
$query = $this->db->query("SELECT * from tbl_patient_details where is_deleted='N' "); | |
if($query->num_rows()>0) | |
{ | |
//echo "Pass"; | |
echo json_encode($query->result()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function patient_details_search() | |
{ | |
$patient_id=$_POST['patient_id']='1'; | |
$first_name=$_POST['first_name']="parimal"; | |
$phone=$_POST['phone']='9527070792'; | |
$query = $this->db->query("SELECT * from tbl_patient_details where id ='".$patient_id."' or first_name ='".$first_name."' or phone ='".$phone."' and is_deleted='N'"); | |
//echo $this->db->last_query(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function Appointment_details_search() | |
{ | |
$appointment_search=$_POST['appointment_search']; | |
$query = $this->db->query("SELECT * from tbl_appointment_details where patient_id like('".$appointment_search."%') or patient_name like('".$appointment_search."%') or referral_contact like('".$appointment_search."%') and is_deleted='N'"); | |
//echo $this->db->last_query(); | |
if($query->num_rows()>0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function Appointment_details_search() | |
{ | |
$appointment_search=$_POST['appointment_search']='4'; | |
$query = $this->db->query("SELECT appoint.*,patient.*,appoint.patient_id as patient_id from tbl_appointment_details as appoint, tbl_patient_details as patient where appoint.patient_id like('".$appointment_search."%') or appoint.patient_name like('".$appointment_search."%') or appoint.referral_contact like('".$appointment_search."%') and appoint.is_deleted='N' and appoint.patient_id=patient.patient_id group by appoint.patient_id"); | |
//echo $this->db->last_query(); | |
if($query->num_rows()>0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({ placement : 'bottom' }); }); | |
<select required id="disability" class="form-control" data-toggle="tooltip" title="If you have disability yes then write it in About me field." onchange="checkOther(this)" > | |
<option value="">Select</option> | |
<option value="Yes">Yes </option> | |
<option value="No">No </option> | |
</select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dob = wholedata[4]; | |
if(dob.length==0) | |
{ | |
AgeYear=0; | |
$("#user_age").val(AgeYear); | |
} | |
else | |
{ | |
BirthDate=dob.split("-"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
following code paste in Master.php controller | |
public function reception() | |
{ | |
try { | |
$table1='tbl_master_reception'; | |
$where1=array('is_deleted'=>'N'); | |