Ejemplo n.º 1
0
<?php

echo $path = $_SERVER['DOCUMENT_ROOT'] . "/path.php";
echo require_once $path;
echo include $config;
$functions = $_SERVER['DOCUMENT_ROOT'] . "/classes/functions.php";
require_once $functions;
$getinformation = new Allfunctions();
echo $user_id = $_POST['id'];
$query = mysql_query("UPDATE `members` set `activated`='1' where `id` = '{$user_id}'");
$user_email_id = $getinformation->GetObjectById($user_id, "email_id");
$designation = $getinformation->GetObjectById($user_id, "designation");
if ($designation == 1 || $designation == 2 || $designation == 3 || $designation == 4 || $designation == 6 || $designation == 7) {
    $subject = "Welcome to Mayo Surgical";
    $message = "Your Account is Activated";
    $extravalues = array("Welcome" => "Welcome to Mayo Surgical. For On-line Update please Logged In your Account for further Updates", "Note" => "This is the Autogenerated Email. Please Don't Reply");
    $getinformation->SendEmail($user_email_id, $subject, $message, $extravalues);
}
echo "Updated";
Ejemplo n.º 2
0
        ?>

			<form name="documentsmissing" method="post" action="">
				<div class="dashboard_row">
					<label>Message</label>
					<textarea name="document_message" required></textarea>
					<input type="hidden" name="user_id" value="<?php 
        echo $id = $row['id'];
        ?>
">
					<input type="hidden" name="main_user_id" value="<?php 
        echo $att_id = $row['attorney_id'];
        ?>
">
					<?php 
        $user_email_id = $getinformation->GetObjectById($id, "email_id");
        $att_email_id = $getinformation->GetObjectById($att_id, "email_id");
        ?>
				</div>
				<div class="dashboard_row">
					<input type="submit" name="documents" id="" value="Submit"/>
				</div>
			</form>
			<?php 
        $datetime = date("Y-m-d H:i:s a");
        if (isset($_REQUEST['documents'])) {
            $main_user_ida = $_REQUEST['main_user_id'];
            $uid = $_REQUEST['user_id'];
            $message_docs = $_REQUEST['document_message'];
            $message = $_REQUEST['document_message'];
            $subject = "Message Sent from Mayo Department";
Ejemplo n.º 3
0
    $designationid = $getfunction->GetObjectByUsername("id", $a_username);
    ?>
<section class="row">
	<div class="container">
		<div class="search_bottom">
			<h1>Schedulling Post Consultation</h1>
			<div class="attorney_row">
				<div class="messages">
					<form name="form2" method="post" action="">
						<?php 
    $docmessages = mysql_query("SELECT * FROM `bill_forward_doctor` WHERE `user_id`='{$_REQUEST['uid']}' && `form_id`='{$_REQUEST['fid']}'") or die(mysql_error());
    if (mysql_num_rows($docmessages) > 0) {
        //echo $werrttt = "SELECT * FROM `message_doctor_billing` WHERE `user_id`='$_REQUEST[uid]' && `form_id`='$_REQUEST[fid]' && `id`='$_REQUEST[id]' and `main_id`='$doctor_id'";
        $wet = mysql_query("SELECT * FROM `message_doctor_billing` WHERE `user_id`='{$_REQUEST['uid']}' && `form_id`='{$_REQUEST['fid']}'") or die(mysql_error());
        while ($message_docs = mysql_fetch_object($wet)) {
            echo "<b>" . $getfunction->GetObjectById($message_docs->sent_by, "first_name") . '&nbsp</b>';
            echo "<b>" . $getfunction->GetObjectById($message_docs->sent_by, "last_name") . '&nbsp</b><br/>';
            echo "<b>" . $message_docs->date_time . '&nbsp</b><br/>';
            echo "<textarea>" . $message_docs->message . "</textarea>";
            ?>
									<input type="hidden" name="sentby" value="<?php 
            echo $message_docs->sent_by;
            ?>
"/>
						<?php 
        }
    } else {
        echo "error";
    }
    ?>
						<div class="dashboard_row">
Ejemplo n.º 4
0
	$("#addcpt").click(function()
	{
		$(".thank_message").fadeOut(3000);
	});
});
</script>
<section class="row">		
	<div class="container">
		<div class="form_section_content">
			<?php 
    if (isset($_POST['add-role'])) {
        $data = array('id' => $_POST['choose_provider'], 'user_desig' => $_POST['choose_type'], 'cpt_code' => $_POST['cpt'], 'description' => $_POST['description'], 'doctor_cost' => $_POST['d_cost'], 'doctor_price' => $_POST['d_price'], 'facility_cost' => $_POST['f_cost'], 'facility_price' => $_POST['f_price'], 'anes_cost' => $_POST['a_cost'], 'anes_price' => $_POST['a_price']);
        $tablename = "admin_billing";
        $desg->INSERT($data, $tablename);
        if ($desg) {
            $first_name = $desg->GetObjectById($_POST['choose_provider'], 'first_name');
            $last_name = $desg->GetObjectById($_POST['choose_provider'], 'last_name');
            $allinfo = ucwords($first_name) . "&nbsp;" . ucwords($last_name);
            echo "<div class='thank_message'>CPT Code " . $_POST['cpt'] . " Added Successfully for" . $allinfo . "</div>";
        }
    }
    ?>
		</div>
		<div class="form_section_content">
			<?php 
    if (isset($_REQUEST['ad_id']) && $_REQUEST['action'] == "edit") {
        $temp_getcpt = mysql_query("SELECT * FROM `admin_billing` WHERE `ad_id`='{$_REQUEST['ad_id']}' && `user_desig`='{$_REQUEST['user_desig']}'") or die(mysql_error());
        $getcpt = mysql_fetch_object($temp_getcpt);
        ?>
			<h1 class="add_user">Update CPT Codes</h1>
			<form name="updatecpt" method="post" action="" id="regform">
Ejemplo n.º 5
0
     $uqry = mysql_query($upqry) or die(mysql_error());
     if (mysql_affected_rows() == 1) {
         $msg = "<div class='thank_message'>Profile Updated Successfully.</div>";
     } else {
         $msg = "Mysql Error! Please check query again.";
     }
 }
 if (isset($_POST['updateemail']) && isset($_REQUEST['data'])) {
     $emailId = $_POST['email_id'];
     $checkEmail = mysql_query("select * from `members` where email_id='{$emailId}'") or die(mysql_error());
     if (mysql_num_rows($checkEmail) > 0) {
         echo "Error. Email ID already in Use. Please Choose other Email.";
     } else {
         $upqry = "UPDATE `members` SET email_id='{$emailId}' WHERE id = '{$_REQUEST['data']}' ";
         $update = mysql_query($upqry) or die(mysql_error());
         $designationss = $desg->GetObjectById($_REQUEST['data'], "designation");
         if ($designationss == 2 || $designationss == 7) {
             $upPlantiffinformation = mysql_query("UPDATE `plantiff_information` set `p_email_address`='{$emailId}' WHERE `id`= '{$_REQUEST['data']}' ") or die(mysql_error());
             $upPlantiCaseType = mysql_query("UPDATE `plantiff_case_type_info` set `att_email`='{$emailId}' WHERE `attorney_id`= '{$_REQUEST['data']}'") or die(mysql_error());
             echo "<div class='thank_message'>Email Id Updated Successfully</div>";
         }
     }
 }
 if (isset($_POST['delete']) && isset($_REQUEST['data'])) {
     $id = $_REQUEST['data'];
     $dltqry = "DELETE FROM `members` WHERE `members`.`id` = {$id} ";
     $dlry = mysql_query($dltqry) or die(mysql_error());
     if (mysql_affected_rows() == 1) {
         $msg = "<div class='thank_message'>Account Delted Successfully.</div>";
     } else {
         $msg = "Mysql Error! Please check query again.";
Ejemplo n.º 6
0
	<form>
		<div class="hire_left">
			<form name="documents_missing" method="get" action="">
				<div class="dashboard_row">
					<label>Message</label>
					<textarea name="document_message" required></textarea>
					<input type="hidden" name="user_id" value="<?php 
    echo $id = $row['id'];
    ?>
">
					<input type="hidden" name="main_user_id" value="<?php 
    echo $att_id = $row['attorney_id'];
    ?>
">
					<?php 
    echo $user_email_id = $getinformation->GetObjectById($id, "email_id");
    echo $att_email_id = $getinformation->GetObjectById($att_id, "email_id");
    ?>
				</div>
				<div class="dashboard_row">
					<input type="submit" name="documents_missing" id="" value="Submit"/>
				</div>
			</form>
		</div>
		<div class="hire_right">
				<h1>Accept Case</h1>
				<form name="accept_case" method="post" action="">
					<div class="dashboard_row">
						<label>Message</label>
						<textarea required></textarea>
					</div>