$meshedfile = $pathofmayo . "/attorney/classes/meshed.php"; require_once $meshedfile; $getdata = new Meshed(); ?> <h1>Latest Message</h1> <div class="dr_message_sides"> <?php $temp_message = mysql_query("SELECT * FROM `message_sent` order by message_id desc limit 0,100") or die(mysql_error()); if (mysql_num_rows($temp_message) > 0) { while ($message = mysql_fetch_object($temp_message)) { ?> <div class="dr_message_side_row"> <div class="dr_message_side_left"> <label> <?php $cide = $getdata->GetInfoPlantiffInformation('case_type', $message->form_id); switch ($cide) { case "1": echo "<a href='/mayo-admin/welcome/ortho-case/index.php?cid=1&fid=" . $message->form_id . "&uid=" . $message->user_id . "#messages'><b>" . ucwords($getdata->GetInfoPlantiffInformation('plantiff_name', $message->form_id)) . "</b></a>"; break; case "2": echo "<a href='/mayo-admin/welcome/mesh-case/index.php?cid=2&fid=" . $message->form_id . "&uid=" . $message->user_id . "#messages'><b>" . ucwords($getdata->GetInfoPlantiffInformation('plantiff_name', $message->form_id)) . "</b></a>"; break; case "3": echo "<a href='/mayo-admin/welcome/pain-management-case/index.php?cid=3&fid=" . $message->form_id . "&uid=" . $message->user_id . "#messages'><b>" . ucwords($getdata->GetInfoPlantiffInformation('plantiff_name', $message->form_id)) . "</b></a>"; break; case "4": echo "<a href='/mayo-admin/welcome/general-surgery-case/index.php?cid=4&fid=" . $message->form_id . "&uid=" . $message->user_id . "#messages'><b>" . ucwords($getdata->GetInfoPlantiffInformation('plantiff_name', $message->form_id)) . "</b></a>"; break; case "5": echo "<a href='/mayo-admin/welcome/neurology-case/index.php?cid=5&fid=" . $message->form_id . "&uid=" . $message->user_id . "#messages'><b>" . ucwords($getdata->GetInfoPlantiffInformation('plantiff_name', $message->form_id)) . "</b></a>";
require_once $meshedfile; $getdata = new Meshed(); ?> Latest Message <div class="dr_message_side"> <?php $temp_message = mysql_query("SELECT * FROM `message_sent` order by message_id desc limit 0,100") or die(mysql_error()); if (mysql_num_rows($temp_message) > 0) { while ($message = mysql_fetch_object($temp_message)) { ?> <div class="dr_message_side_row"> <div class="dr_message_side_left"> <label> <?php echo '<b>' . ucwords($getdata->GetInfoPlantiffInformation('plantiff_name', $message->form_id)) . '</b><br/>'; $a_mess = $message->date_message; echo date('m-d-Y', strtotime($a_mess)) . " "; echo date('h:m:s a', strtotime($a_mess)); ?> </label> </div> <div class="dr_message_side_right"> <label> <?php $tempmessages = $message->message; echo $messages = substr($tempmessages, 0, 90); ?> <br/> <?php $cide = $getdata->GetInfoPlantiffInformation('case_type', $message->form_id);
require_once($path); include('header.php'); require_once($config); $functionsfile = $_SERVER['DOCUMENT_ROOT']."/classes/functions.php"; include($functionsfile); include('attorney/classes/meshed.php'); $temp_profile = new meshed(); $a_username = $_SESSION['username']; $a = $_SESSION['username']; $meshednew = new Meshed(); $att_ids = $meshednew->getIdByUname(); ?> <section class="row"> <div class="container dashboard_bg"> <?php if(isset($_REQUEST['fid'])){?> <p class="plantiff_name"><?php echo $pName = $meshednew->GetInfoPlantiffInformation("plantiff_name",$_REQUEST['fid']); ?></p> <?php }?> <div class="upload_clients_document"> <h1>Uploaded Client Documents</h1> <div class="attorney_row"> <div class="attorney_documents_left"> <form name="upload-form" method="post" enctype="multipart/form-data" id="uploadForm" action=""> <div class="attorney_row"> <label>Document Type</label> <select name="relate_to" required> <option value="">...Select...</option> <option value="Medical Bill">Medical Bill</option> <option value="Medical Record">Medical Record</option> <option value="Police Record">Police Record</option> <option value="Product Label">Product Label</option> <option value="Release of Medical Records">Release of Medical Records</option>
} elseif ($c_type == '6') { $getdata->MedicalView($row); echo "</div>"; } else { $getdata->meshedView($row); } ?> </div> </div> <div class="tabbertab" id="documents"> <div class="back_btn_area"> <a href="index.php"><input name="" type="button" class="back_btn" value="<<Back"/></a> </div> <div class="back_btn_area"> <a href="#"><input name="" type="button" class="back_btn" value="<?php echo $getdata->GetInfoPlantiffInformation("plantiff_name", $_REQUEST['fid']); ?> "/></a> </div> <div class="attorney_client_info"><h1>Documents</h1></div> <div class="dashbord_client"> <div class="update_status_botom"> <div class="view_client_row"> <div class="dashbord_client"> <div class="client_box_bg"> <?php $admin = $_SESSION['username']; $admin_id = $getdata->GetDetailsByUsername($admin, "id"); ?>
<div class="slide_right"> <?php if (isset($_REQUEST['action'])) { if (isset($_REQUEST['fid'])) { $id = $_REQUEST['fid']; } $temp_query = mysql_query("SELECT * FROM `documents_messages` WHERE `main_user_id`='{$att_ids}' && user_id='" . $id . "'") or die(mysql_error()); $documents = mysql_fetch_object($temp_query); ?> <div class="upload_clients_document"> <h1>Uploaded Client Documents</h1> <?php if (isset($_REQUEST['fid'])) { ?> <p class="plantiff_name"><?php echo $pName = ucwords($meshednew->GetInfoPlantiffInformation("plantiff_name", $_REQUEST['fid'])); ?> </p> <?php } ?> <div class="attorney_row"> <div class="attorney_documents_left"> <form name="upload-form" method="post" enctype="multipart/form-data" id="uploadForm" action=""> <div class="attorney_row"> <label>Document Type</label> <select name="relate_to"> <option value="...Select...">...Select...</option> <option value="Medical Bill">Medical Bill</option> <option value="Medical Record">Medical Record</option>
$meshedfile = $pathofmayo . "/attorney/classes/meshed.php"; require_once $meshedfile; $getdata = new Meshed(); $admin = $_SESSION['username']; $admin_id = $getdata->GetDetailsByUsername($admin, "id"); $status = $_REQUEST['status']; $form_s_id = $_REQUEST['fid']; $use_id = $_REQUEST['uid']; $statusArea = $_REQUEST['statusComment']; $query = mysql_query("INSERT INTO `status_update` (`form_id`,`user_id`,`main_user_id`,`status_messages`,`status_notes`,`date_status`) \n\tVALUES ('{$form_s_id}','{$use_id}','{$admin_id}','{$status}','{$statusArea}',now())") or die(mysql_error()); $hiresId = $getdata->getHiredStaff($form_s_id); /* Get information from the hire staff to send the status update emails to all of them */ // Insert Status in the latest Messages $clientName = $getdata->GetInfoPlantiffInformation("plantiff_name", $form_s_id); $messageSent = $clientName . " has changed Status to " . $status; $notification = mysql_query("INSERT INTO `notifications` (`user_id`,`form_id`,`main_id`,`message`) VALUES ('{$use_id}','{$form_s_id}','{$admin_id}','{$messageSent}')") or die(mysql_error()); $insertStatus = mysql_query("INSERT INTO `message_sent` (`form_id`,`user_id`,`sent_by`,`main_user_id`,`message`,`date_message`) VALUES ('{$form_s_id}','{$use_id}','{$admin_id}','{$hiresId}','{$messageSent}',now())") or die(mysql_error()); if ($query) { echo "<div class='thank_message'>Status is Successfully Updated</div>"; } else { echo "<div class='thank_message'>There is some problem</div>"; } ?> <div class="update_status_botom"> <div class="update_status_row_heading"> <div class="update_status_span_1">Date</div> <div class="update_status_span_2">Update By</div> <div class="update_status_span_3">Status</div> </div>
include 'header.php'; require_once $config; include '../classes/login-functions.php'; if (loggedin()) { $a_username = $_SESSION['username']; $a = $_SESSION['username']; $meshednew = new Meshed(); $att_ids = $meshednew->getIdByUname(); ?> <section class="row"> <div class="container dashboard_bg"> <?php if (isset($_REQUEST['fid'])) { ?> <p class="plantiff_name"><?php echo $meshednew->GetInfoPlantiffInformation("plantiff_name", $_REQUEST['fid']); ?> </p> <?php } ?> <div class="upload_clients_document"> <h1>Upload Client Documents</h1> <div class="attorney_row"> <div class="attorney_documents_left"> <form name="upload-form" method="post" enctype="multipart/form-data" id="uploadForm" action=""> <div class="attorney_row"> <label>Document Type</label> <select name="relate_to"> <option value="...Select...">...Select...</option> <option value="Medical Bill">Medical Bill</option>
echo "</div>"; } else { $getdata->meshedView($row); } ?> </div> </div> <div class="tabbertab"> <h2>Documents</h2> <div class="back_btn_area"> <a href="index.php"><input name="" type="button" class="back_btn" value="<<Back"/></a> </div> <div class="back_btn_area"> <a href="#"><input name="" type="button" class="back_btn" value="<?php echo $getdata->GetInfoPlantiffInformation("plantiff_name",$_REQUEST['fid']); ?>"/></a> </div> <div class="attorney_client_info"><h1>Documents</h1></div> <div class="dashbord_client"> <div class="update_status_botom"> <div class="view_client_row"> <div class="dashbord_client"> <div class="client_box_bg"> <?php $admin = $_SESSION['username']; $admin_id = $getdata->GetDetailsByUsername($admin,"id"); ?> <form name="documentsmissing" method="post" action=""> <div class="dashboard_row">