{php}html_header_show();{/php}
{literal} {/literal}
{php} //get directories that might contain reports $reportsdir = './myreports/'; if (is_dir($reportsdir)) { $folder_array = array(); if ($handle = opendir($reportsdir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && is_dir($reportsdir.$file)) { $folder_array[$file] = array(); } } closedir($handle); } //fill elements of $folder_array with the php files in each directory foreach ($folder_array as $key => $val) { $reportsubdir = $reportsdir.$key.'/'; if ($handle = opendir($reportsubdir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && substr($file,-4,4) == '.php') { //if ($file != '.' && $file != '..') { $filename = substr($file,0,strlen($file)-4); $folder_array[$key][$filename] = $GLOBALS['webroot'].'/interface/reports/myreports/'.$key.'/'.$file; } } closedir($handle); } } //generate drop down menus echo "
\n"; foreach ($folder_array as $title => $link) { if (count($link) > 0) { //only create menus for those subdirectories with php reports in them echo "
\n"; echo "
".xl($title)."
\n"; foreach ($link as $eachlink_name => $eachlink) { echo "
".xl($eachlink_name)."
\n"; } echo "
\n"; } } echo "
\n"; //now deal with the reports that are just under myreports, not organized into subdirectories $reportsdir = './myreports/'; $dir_array = array(); if ($handle = opendir($reportsdir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && substr($file,-4,4) == '.php') { $filename = substr($file,0,strlen($file)-4); array_push($dir_array,"
".xl($filename)."
\n"); } } closedir($handle); } //print the links for reports under myreports foreach($dir_array as $var) { echo $var; } } {/php}
{xl t='Superbill Report'}
{xl t='Appointments Report'}
{xl t='Encounters Report'}
{xl t='Appointments-Encounters Report'}
{php} if (! $GLOBALS['simplified_demographics']) { {/php}
{xl t='Patient Insurance Distribution Report'}
{xl t='Indigent Patients Report'}
{xl t='Unique Seen Patients Report'}
{xl t='Patient List'}
{php} } {/php} {php} if (! $GLOBALS['weight_loss_clinic']) { {/php}
{xl t='Front Office Receipts Report'}
{php} } {/php}
{xl t='Prescriptions Report'}
{xl t='Sales by Product Report'}
{xl t='Collections Report'}
{xl t='Referrals Report'}
{xl t='Non Reported Report'}
{php} if ($GLOBALS['inhouse_pharmacy']) { {/php}
{xl t='Destroyed Drugs Report'}
{php} } {/php}
{xl t='Receipts by Payment Method Report'}
{xl t='Chart Check-in/out Activity Report'}
{xl t='Charts Checked Out'}
{xl t='Services by Category'}
{php} if ($GLOBALS['athletic_team']) { echo "
\n"; echo "
Team Roster
\n"; echo "
\n"; echo "
Days and Games Missed
\n"; echo "
\n"; echo "
Football Injury Reports
\n"; echo "
\n"; echo "
Injury Overview Report
\n"; echo "
\n"; } if (!empty($GLOBALS['code_types']['IPPF'])) { echo "
\n"; echo "
IPPF Statistics
\n"; echo "
\n"; echo "
MA Statistics
\n"; echo "
\n"; } {/php}
[{xl t='printable'}]
{xl t='Reports'}:
{html_options onChange="clear_vars()" name="query_id" selected=$query_id options=$queries}
{xl t='Var1'}:
{xl t='Var2'}:
{xl t='Show'}:
{html_options name="show" selected=$show options=$show_options}
{$title} {$smarty.now|date_format:"%A, %B %e, %Y"}
{if is_object($pager)} {$pager->render($show)} {/if}