Ejemplo n.º 1
0
<?php

require "globals.php5";
require "cookies.php5";
$style = new OperPage('Reports', $UUID, 'reports', '');
$style->Output();
if ($UUID) {
    ?>
              <h1>Reports</h1>
              <p>Assorted reports, Statistics, Quality Control features and Data Export. Some reports are available only to certain access levels.</p>
              <ul>
                <li><a href="hotdocs.php">PhysicianCareer.com</a> weekly report</li>
                <li><a href="residentstats.php">Physician Database</a> Statistics by specialty</li>
				<li><a href="review.php">Review List</a></li>
				
<?php 
    if ($ACCESS >= 200) {
        ?>
                <li style="margin-top: 6px "><a href="customerstats.php">Customers Statistics</a> &amp; Expiration, <a href="customeract.php">Customer Activity</a> Report</li>
                <li><a href="export.php">Data Export</a> tools</li>
				<li>Job board <a href="jopprpt.php">Opportunities</a> Report</li>
				<li><a href="nexthotdoc.php">Tomorrow's HotDoc List</a></li>
<?php 
    }
    if ($ACCESS >= 50) {
        ?>
                <li style="margin-top: 6px "><a href="managerrpts.php">DB Manager Reports</a> are on a separate page</li>
<?php 
    }
    if ($ACCESS >= 450) {
        echo '<li style="margin-top: 6px "><a href="iplog.php">Login IP Log</a></li>';
Ejemplo n.º 2
0
  setTimeout("popshow()",60);
  document.formx.popte.disabled = true;
  return true;
}

function popshow() {
\tvar d = subwind.document;
\td.write("<html><head><title>Success</title></head><body><h1>Success</h1><p>Test Passed</p>",
\t\t"<p><a href='javascript:window.close()'>Close Window</a></p></body></html>");
\td.close();
\tsubwind.focus();
}

TryMe;
$scrip2 = "<script language=\"JavaScript\" type=\"text/JavaScript\"><!--\n" . $scrip . "// -->\n</script>\n";
$style->Output($scrip2);
?>
 
        <h3>User Login</h3>
        <?php 
if ($mesg) {
    echo "<p id='" . ($result ? 'warning' : 'error') . "_msg'>{$mesg}</p>";
}
?>
        <p>Please use your assigned user name and password to login. If you forgot 
          your user name, please try the user part of your email address, or  ask your manager.</p>
        <p>If you are unable to login (this page shows that you are logged in successfully and then redirects you back to the login form), please verify your browser's privacy settings. This site uses cookies to handle login information. Please adjust your browser settings to allow cookies, or make an exception for this site only. You can click on your browser name link to see sample cookie settings for <a href="http://fuzionhg.com/images/mozilla-cookie-help.jpg" title="Sample settings - Mozilla" target="_blank">Mozilla</a>, <a href="http://fuzionhg.com/images/firefox-cookie-help.jpg" title="Sample settings - Firefox" target="_blank">Firefox</a> and <a href="http://fuzionhg.com/images/ie-cookie-help.jpg" title="Sample settings - IE" target="_blank">Internet Explorer</a>, that will work.</p>
        <div id="formdiv"> 
          <form name="form1" method="post" action="login.php">
            <p> User name: <input name="username" type="text" maxlength="120" size="20">
			Password: <input name="password" type="password" id="password" maxlength="40" size="20">
Ejemplo n.º 3
0
                    throw new Exception('No available records', __LINE__);
                }
                // DEBUG?"$db->error : $sql":
            }
            // W
        } else {
            $sql = "select listid,name,description from custlistdesc where uid = {$UUID} and `year`=2005 order by name";
            $lists = $db->query($sql);
        }
    } catch (Exception $e) {
        $mesg = "Request failed: " . $e->getMessage() . ' (' . $e->getCode() . ')<br>';
    }
}
$style = new OperPage('Data Export', $UUID, 'reports', 'export');
$scrip = "<script language=\"JavaScript\" type=\"text/JavaScript\"><!--\r\nfunction selRadio(elem) {\r\n" . "\tdocument.getElementById(elem).checked = true;\r\n\treturn true;\r\n}\r\n// -->\r\n</script>\r\n";
$style->Output($scrip);
if ($UUID) {
    if ($ACCESS < 200) {
        echo '<h1>Access Denied</h1>';
    } else {
        ?>
              <h1>Data Export</h1>
<?php 
        if ($mesg) {
            echo "<p id='error_msg'>{$mesg}</p>";
        }
        ?>
              <p>Export  Customer List, Export list for customers, and the whole Residents DB into a CSV file, depending of the access level.<br>
                Export residents from your custom lists (in the form of the Export List, choice two below)..</p>
			  <div id="formdiv">
              <form action="export.php" method="post" name="formex" id="formex">
Ejemplo n.º 4
0
            }
        } elseif (!$opp) {
            $opp = new Opportunity($db, $ooid);
        }
    } catch (Exception $e) {
        $result = false;
        $mesg = "Request failed: " . $e->getMessage() . ' (' . $e->getCode() . ')<br>';
    }
}
if ($result && $redir) {
    header("Location: {$redir}");
    exit;
}
$style = new OperPage('Opportunities', $UUID, 'admin', 'opportunities');
$scrpt = "<script type=\"text/javascript\" src=\"calendarDateInput.js\"></script>\n\t\t<script type=\"text/javascript\" src=\"/ckeditor/ckeditor.js\"></script>\n\t\t<style type=\"text/css\">\n<!--\n.style1 {\n\tcolor: #000099;\n\tfont-weight: bold;\n\tfont-style: italic;\n}\n#maincontent p.nodescript {\n\tcolor: black; \n}\n-->\n</style>";
$style->Output($scrpt);
if ($UUID) {
    if ($mesg) {
        echo "<p id='" . ($result ? 'warning' : 'error') . "_msg'>{$mesg}</p>";
    }
    if ($ACCESS >= 200) {
        $stus = array('On Hold', 'Active', 'Placed', 'N/A', 'Deleted', 'N/A', 'N/A', 'N/A', 'Expired');
        if ($ooid) {
            ?>
        <h2>Modify the opportunity for <?php 
            $masl = $masid ? "custedit.php?cid={$masid}" : '#';
            echo "<a href=\"{$masl}\">{$cfirst} {$clast}</a> ({$cco})";
            ?>
</h2>
		<p class="nodescript">Please make sure contact information below is entered and correct.</p>
		<div id="formdiv">
Ejemplo n.º 5
0
            header("Location: results.php?id=244&ck=1&y=2005");
            exit;
        }
        $sql = "select x.uid_saved, x.range, sum(x.newreg) as newreg, sum(x.cnt) as cnt from (select uid_saved{$rangf1}, sum(0) as newreg, count(ph_id) as cnt from physicians where inactive=0 {$modex} {$rangex1} {$rangr} union select uid_saved{$rangf2}, count(ph_id) as newreg, sum(0) as cnt from physicians where inactive=0 {$modex} {$rangex2} {$rangr}) x group by uid_saved, range order by uid_saved, range";
        $res = $db->query($sql);
        if (!$res) {
            throw new Exception(DEBUG ? $db->error . ": {$sql}" : 'Can not get summary stats', __LINE__);
        }
        // ok: $opers and results.
    } catch (Exception $e) {
        $mesg = "Request failed: " . $e->getMessage() . ' (' . $e->getCode() . ')<br>';
    }
}
$style = new OperPage("{$vmodex} Records Summary", $UUID, 'reports', 'managerrpts');
$sty = "<style type=\"text/css\"><!--\r\n.hilitee {\r\n\tbackground-color:#CFEEDD;\r\n}\r\n-->\r\n</style>\r\n";
$style->Output($sty);
if ($UUID) {
    if ($ACCESS < 50) {
        echo '<h1>Access Denied</h1>';
    } else {
        ?>
              <h1><?php 
        echo "{$vrange} {$vmodex}";
        ?>
 Records Summary</h1>
<?php 
        if ($mesg) {
            echo "<p id='error_msg'>{$mesg}</p>";
        }
        //if( DEBUG ) echo "<p id='warning_msg'>$sql</p>";
        ?>
Ejemplo n.º 6
0
            $client->acct = $acct;
            $client->subaccts = $subaccts;
            $client->exp_date = $exp_date;
            $client->subscription = 3;
            $client->master_acct = 1;
            // all good so far
            $client->save_user($db);
            $success = true;
        }
    } catch (Exception $e) {
        $mesg = 'Attention: ' . $e->getMessage() . ' (' . $e->getCode() . ')<br>';
        //unset($oper);
    }
}
$style = new OperPage('New Customer', $UUID, 'admin', 'custnew', $success ? "1; URL=custedit.php?cid={$uid}" : NULL);
$style->Output('<script type="text/javascript" src="calendarDateInput.js"></script>');
if ($UUID) {
    if ($ACCESS < 300) {
        echo '<h1>Access Denied</h1>';
    } else {
        ?>
              <h1> New customer</h1>
              <?php 
        if ($mesg) {
            echo "<p id='error_msg'>{$mesg}</p>";
        }
        if ($success) {
            echo '<h3 id="warning_msg">Operation completed successfully.</h3>';
        }
        ?>
              <div id="formdiv">