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);
        $caseClosed = $getdata->GetObjectFromPCTI('case_closed', $message->form_id);
        $admin_approved = $getdata->GetObjectFromPCTI('admin_approved', $message->form_id);
        if ($caseClosed == 0 && $admin_approved == 1) {
            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;
Beispiel #2
0
            ?>
"><?php 
            echo $email_f->name_email;
            ?>
</option>
										<?php 
        }
        ?>
									</select>
									<div id="email_formats"></div>
									<input type="hidden" name="user_id" value="<?php 
        echo $id = $row['id'];
        ?>
">
									<input type="hidden" name="main_user_id" value="<?php 
        echo $att_id = $getdata->GetObjectFromPCTI("attorney_id", $_REQUEST['fid']);
        ?>
">
									<?php 
        //getting client email and attorney/casemanager email
        //$user_email_id=$getdata->GetObjectById($_REQUEST['fid'],"email_id");
        $att_email_ids = $getdata->GetObjectFromPCTI("attorney_id", $_REQUEST['fid']);
        $att_email_id = $getdata->GetObjectById($att_email_ids, "email_id");
        ?>
								</div>
								<div class="dashboard_row">
									<input type="submit" name="documentsd" id="" value="Submit"/>
								</div>
							</form>
							<?php 
        $datetime = date("Y-m-d H:i:s a");
Beispiel #3
0
									<label>Message</label>
									<select name="email_format" onchange="getEmailsFormat(this.value);">
										<option value="">Please Select Email Type</option>
										<?php
											$sql = mysql_query("SELECT * FROM `email_formats`") or die(mysql_error());
											while($email_f=mysql_fetch_object($sql))
											{
										?>
											<option value="<?php echo $email_f->id; ?>"><?php echo $email_f->name_email; ?></option>
										<?php
											}
										?>
									</select>
									<div id="email_formats"></div>
									<input type="hidden" name="user_id" value="<?php echo $id = $row['id']; ?>">
									<input type="hidden" name="main_user_id" value="<?php echo $att_id = $getdata->GetObjectFromPCTI("attorney_id",$_REQUEST['fid']); ?>">
									<?php
										//getting client email and attorney/casemanager email
										//$user_email_id=$getdata->GetObjectById($_REQUEST['fid'],"email_id");
										$att_email_ids=$getdata->GetObjectFromPCTI("attorney_id",$_REQUEST['fid']);
										$att_email_id=$getdata->GetObjectById($att_email_ids,"email_id");
									?>
								</div>
								<div class="dashboard_row">
									<input type="submit" name="documentsd" id="" value="Submit"/>
								</div>
							</form>
							<?php
								
								$datetime     = date("Y-m-d H:i:s a");