<a href="javascript:" class="pull-right">
                            <button class="btn btn-primary" id="btnConfirmVisit">Confirm Visit</button>
                        </a>						
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- /.modal -->
<link href="<?php 
echo pub_url();
?>
css/daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<?php 
echo pub_url();
?>
js/daterangepicker/daterangepicker.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        function getCheckedCaregiversCalendar() {
            var arr = new Array();
            var array = $("#appointmentFilterBox .caregiver-checkbox");
            for (var i = 0; i < array.length; i++) {
                if ($(array[i]).is(":checked")) {
                    arr.push($(array[i]).val());
                }
            }
            return arr;
        }
Exemplo n.º 2
0
 public function upload_device_image()
 {
     $data = $this->session->userdata();
     if (isset($data['aud_employeetype']) && isset($data['aud_employeeid']) && isset($data['aud_displayname']) && isset($data['aud_profpic'])) {
         $imgpath = "";
         $imgnameprefix = "";
         if ($data['aud_employeetype'] == "SA") {
             $imgpath = "img/device/";
             $imgnameprefix = "AMDEV";
         } else {
             $imgpath = "img/practices/" . $data['aud_practice'] . "/device/";
             $imgnameprefix = $data['aud_practiceprefix'] . "DEV";
         }
         if (!empty($_FILES)) {
             $result = array("status" => "error");
             if (is_uploaded_file($_FILES['image']['tmp_name'])) {
                 $fname = $_FILES['image']['name'];
                 $fname = $imgnameprefix . date('YmdHis') . "." . substr($fname, strrpos($fname, ".") + 1);
                 while (file_exists(pub_url() . $imgpath . $fname)) {
                     $fname = $imgnameprefix . date('YmdHis') . mt_rand(1, 10000) . "." . substr(strrpos($fname, ".") + 1);
                 }
                 $sourcePath = $_FILES['image']['tmp_name'];
                 $targetPath = $imgpath . $fname;
                 if (move_uploaded_file($sourcePath, "pub/" . $targetPath)) {
                     $result['status'] = "success";
                     $result['filename'] = $targetPath;
                 } else {
                     $result['status'] = "error";
                     $result['msg'] = "File upload faild!";
                 }
             } else {
                 $result['status'] = "error";
                 $result['msg'] = "No file uploaded!";
             }
             echo json_encode($result);
         }
     }
 }
Exemplo n.º 3
0
        echo $employee->employeeid;
        ?>
', '<?php 
        echo $employee->profpic;
        ?>
')" 
                                                       class="btn btn-default btn-xs" title="<?php 
        echo $tooltipvar2;
        ?>
">
                                                        <i class="fa fa-trash-o"></i>
                                                    </a>
                                                </div>
                                                <div class="pull-left image">
                                                    <img src="<?php 
        echo pub_url() . ($employee->profpic != "" ? $employee->profpic : "img/profile.png");
        ?>
" 
                                                         class="img-circle" alt="Pa Image">
                                                </div>
                                                <div class="pull-left info">
                                                    <p><?php 
        if (in_array($employee->employeetype, $etypes)) {
            $ename = $employee->fname . ($employee->mname != "" ? " " . $employee->mname : "") . ($employee->lname != "" ? " " . $employee->lname : "");
            if (strlen($ename) > 15) {
                echo substr($ename, 0, 15);
            } else {
                echo $ename;
            }
        } else {
            $ename = $employee->fname . ($employee->mname != "" ? " " . $employee->mname : "") . ($employee->lname != "" ? " " . $employee->lname : "");
Exemplo n.º 4
0
                                                        <i class="fa fa-pencil-square-o"></i>
                                                    </a>
                                                    <a href="javascript:" onclick="deletePractice(this, '<?php 
        echo $practice->practiceid;
        ?>
','<?php 
        echo $practice->logo;
        ?>
')" 
                                                       class="btn btn-default btn-xs" title="Delete practice">
                                                        <i class="fa fa-trash-o"></i>
                                                    </a>
                                                </div>
                                                <div class="pull-left image">
                                                    <img src="<?php 
        echo pub_url() . $practice->logo;
        ?>
" 
                                                         class="img-circle" alt="Practice Image">
                                                </div>
                                                <div class="pull-left info">
                                                    <p><?php 
        if (strlen($practice->name) > 15) {
            echo substr($practice->name, 0, 15);
        } else {
            echo $practice->name;
        }
        ?>
</p>
                                                    <span class="dr-name">
                                                        <?php 
Exemplo n.º 5
0
                                                    <i class="fa fa-cloud-upload"></i>
                                                </div>
                                                <div class="label-error hidden"></div>
                                                <form action="<?php 
echo base_url();
?>
dashboard/upload_employee_image" 
                                                      method="post" enctype="multipart/form-data"
                                                      data="">
                                                    <input type="file" name="EmployeeImage"/>
                                                </form>
                                                <?php 
if (isset($emp_detail->profpic) && $emp_detail->profpic != "") {
    ?>
                                                    <img class="img-thumbnail" src="<?php 
    echo pub_url() . $emp_detail->profpic;
    ?>
" 
                                                         title="click to upload image"/>
                                                     <?php 
}
?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="professionalTab">
                                <div class="form-horizontal">
                                    <div class="row clearfix">
                                        <div class="col-md-6">
Exemplo n.º 6
0
?>
"/> 
            <ul class="nav navbar-nav">
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="glyphicon glyphicon-user"></i>
                        <span><span id="userdiplaname1"><?php 
echo $aud_displayname;
?>
</span><i class="caret"></i></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header bg-light-blue">
                            <img src="<?php 
echo pub_url() . $aud_profpic;
?>
" class="img-circle" id="userprofimage" alt="User Image" />
                            <p>
                                <span id="userdiplaname2"> <?php 
echo $aud_fname . ($aud_mname != "" ? " " . $aud_mname : "") . " " . $aud_lname;
?>
</span>
                                
                                <?php 
if ($aud_employeetype == "SA") {
    ?>
                                    <small>Super Admin (Owner)</small>
                                <?php 
} else {
    if ($aud_employeetype == "PA") {
Exemplo n.º 7
0
                                                        <div class="label-icon">
                                                            <i class="fa fa-cloud-upload"></i>
                                                        </div>
                                                        <div class="label-error hidden"></div>
                                                        <form action="<?php 
echo base_url();
?>
patient/upload_photo" 
                                                              method="post" enctype="multipart/form-data">
                                                            <input type="file" name="image"/>
                                                        </form>
                                                        <?php 
if (isset($patient->profileimage)) {
    ?>
                                                            <img src="<?php 
    echo pub_url() . $patient->profileimage;
    ?>
" class="img-thumbnail" 
                                                                 title="click to upload image"/>
                                                             <?php 
}
?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <hr class="no-margin" />
                                        <div class="spacer10"></div>
                                        <div class="clearfix">
                                            <div class="messageDiv pull-left"></div>
Exemplo n.º 8
0
                                                        <i class="fa fa-pencil-square-o"></i>
                                                    </a>
                                                    <a href="javascript:" onclick="deleteClinic(this, '<?php 
        echo $clinic->clinicid;
        ?>
','<?php 
        echo $clinic->logo;
        ?>
')" 
                                                       class="btn btn-default btn-xs" title="Delete clinic">
                                                        <i class="fa fa-trash-o"></i>
                                                    </a>
                                                </div>
                                                <div class="pull-left image">
                                                    <img src="<?php 
        echo pub_url() . $clinic->logo;
        ?>
" 
                                                         class="img-circle" alt="Clinic Image">
                                                </div>
                                                <div class="pull-left info">
                                                    <p><?php 
        if (strlen($clinic->name) > 15) {
            echo substr($clinic->name, 0, 15);
        } else {
            echo $clinic->name;
        }
        ?>
                                                    </p>
                                                    <span class="dr-name">
                                                        <?php 
Exemplo n.º 9
0
            echo $device->deviceid;
            ?>
', '<?php 
            echo $device->image;
            ?>
')" 
                                                           class="btn btn-default btn-xs" title="Delete device">
                                                            <i class="fa fa-trash-o"></i>
                                                        </a>
                                                    <?php 
        }
        ?>
                                                </div>
                                                <div class="pull-left image">
                                                    <img src="<?php 
        echo pub_url() . ($device->image != "" ? $device->image : "img/device.png");
        ?>
" 
                                                         class="img-circle" alt="Device Image">
                                                </div>
                                                <div class="pull-left info">
                                                    <p><?php 
        if (strlen($device->devicename) > 15) {
            echo substr($device->devicename, 0, 15);
        } else {
            echo $device->devicename;
        }
        ?>
</p>
                                                    <span class="dr-name">
                                                        <?php 
Exemplo n.º 10
0
 public function upload_logo()
 {
     if (!empty($_FILES)) {
         $result = array("status" => "error");
         if (is_uploaded_file($_FILES['image']['tmp_name'])) {
             $fname = $_FILES['image']['name'];
             $fname = "AMPR" . date('YmdHis') . "." . substr($fname, strrpos($fname, ".") + 1);
             while (file_exists(pub_url() . "/img/practices/" . $fname)) {
                 $fname = "AMPR" . date('YmdHis') . mt_rand(1, 10000) . "." . substr(strrpos($fname, ".") + 1);
             }
             $sourcePath = $_FILES['image']['tmp_name'];
             $targetPath = "img/practices/" . $fname;
             if (move_uploaded_file($sourcePath, "pub/" . $targetPath)) {
                 $result['status'] = "success";
                 $result['filename'] = $targetPath;
             } else {
                 $result['status'] = "error";
                 $result['msg'] = "File upload faild!";
             }
         } else {
             $result['status'] = "error";
             $result['msg'] = "No file uploaded!";
         }
         echo json_encode($result);
     }
 }
Exemplo n.º 11
0
//define ('K_PATH_MAIN', '');
/**
 * URL path to tcpdf installation folder (http://localhost/tcpdf/).
 * By default it is automatically set but you can also set it as a fixed string to improve performances.
 */
//define ('K_PATH_URL', '');
/**
 * Path for PDF fonts.
 * By default it is automatically set but you can also set it as a fixed string to improve performances.
 */
//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
/**
 * Default images directory.
 * By default it is automatically set but you can also set it as a fixed string to improve performances.
 */
define('K_PATH_IMAGES', pub_url());
/**
 * Deafult image logo used be the default Header() method.
 * Please set here your own logo or an empty string to disable it.
 */
//define ('PDF_HEADER_LOGO', '');
/**
 * Header logo image width in user units.
 */
//define ('PDF_HEADER_LOGO_WIDTH', 0);
/**
 * Cache directory for temporary files (full path).
 */
//define ('K_PATH_CACHE', '/tmp/');
/**
 * Generic name for a blank image.