<?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> & 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>';
if (!$opps) { throw new Exception(DEBUG ? "{$db->error}: {$sql}" : 'Can not list opportunities', __LINE__); } } 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>
$redirman = 'index.php'; } $mesg = 'Login successful. You will be redirected to another page in few seconds.' . "Or, <a href='{$redirman}'>click here</a> to proceed."; $redir = true; } else { $result = false; $mesg = 'Login failed. Password is incorrect or access denied.'; } } catch (Exception $e) { $result = false; $mesg = 'Login failed: ' . $e->getMessage() . ' (' . $e->getCode() . ')'; } } elseif ($UUID) { $mesg = 'You are already logged in as ' . $USER->firstname . ' ' . $USER->lastname . '. You can re-login as another user now'; } $style = new OperPage('Login', $UUID, 'index', 'login', $redir ? $redirurl : NULL); $scrip = <<<TryMe var subwind; function poptest() { subwind = window.open("","emailcheck","menubar=0,toolbar=0,width=350,resizable=0,location=0,height=300"); 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>");
$client->addr2 = $addr2; $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>'; } ?>