Hi Robert

Thanks for your quick response.

in areas_allow.php we have:

<?php
//error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR),

### The following arrays are the "role" levels each containing an access point 
or groups of access points

$all='_a_0_all';
$sysadmin='System_Admin';

$allow_area=array(

'admit'=>array('_a_1_admissionwrite','_a_1_medocswrite'),

'report' =>array('_a_1_reportingread'),

'bill'=>array('_a_1_billallwrite', 
'_a_2_billallread','_a_2_billpharmawrite','_a_3_billpharmaread','_a_2_billserviceswrite','_a_3_billservicesread','_a_2_billlabwrite','_a_3_billlabread'),

'cafe'=>array('_a_1_newsallwrite', '_a_1_newscafewrite'),

'medocs'=>array('_a_1_medocswrite'),

'phonedir'=>array('$all, $sysadmin'),

'doctors'=>array('_a_1_opdoctorallwrite', '_a_1_doctorsdutyplanwrite'),

'wards'=>array('_a_1_doctorsdutyplanwrite', '_a_1_opdoctorallwrite', 
'_a_1_nursingstationallwrite',  $all, $sysadmin),

'op_room'=>array('_a_1_opdoctorallwrite', '_a_1_opnursedutyplanwrite', 
'_a_2_opnurseallwrite'),

'tech'=>array('_a_1_techreception'),

'lab_r'=>array('_a_1_labresultswrite', '_a_2_labresultsread'),

'lab_w'=>array('_a_1_labresultswrite'),

'radio'=>array('_a_1_radiowrite', '_a_1_opdoctorallwrite', 
'_a_2_opnurseallwrite'),

'pharma_db'=>array('_a_1_pharmadbadmin'),

'pharma_receive'=>array('_a_1_pharmadbadmin', '_a_2_pharmareception'),

'pharma'=>array('_a_1_pharmadbadmin', '_a_2_pharmareception',  
'_a_3_pharmaorder'),

'depot_db'=>array('_a_1_meddepotdbadmin'),

'depot_receive'=>array('_a_1_meddepotdbadmin', '_a_2_meddepotreception'),

'depot'=>array('_a_1_meddepotdbadmin', '_a_2_meddepotreception', 
'_a_3_meddepotorder'),

'edp'=>array('no_allow_type_all',),

'news'=>array('_a_1_newsallwrite'),

'cafenews'=>array('_a_1_newsallwrite', '_a_2_newscafewrite'),

'op_docs'=>array('_a_1_opdoctorallwrite'),

'duty_op'=>array('_a_1_opnursedutyplanwrite'),

'fotolab'=>array('_a_1_photowrite'),

'test_diagnose'=>array('_a_1_diagnosticsresultwrite', '_a_1_labresultswrite'),

'test_receive'=>array('_a_1_diagnosticsresultwrite', '_a_1_labresultswrite', 
'_a_2_diagnosticsreceptionwrite'),
'social_welfare'=>array('_a_1_socialallwrite', '_a_2_socialallread'),
'test_order'=>array('_a_1_diagnosticsresultwrite', '_a_1_labresultswrite', 
'_a_2_diagnosticsreceptionwrite', '_a_3_diagnosticsrequest')
)

?>

in areas.php we have:

<?php

$area_opt=array(
                            /* Group start*/
                           'title1' => $title1,
                           '_a_0_all' =>  $_a_0_all,

                            /* Group start*/
                           'title_adm' => $title_adm,
                           '_a_1_admissionwrite' =>  $_a_1_admissionwrite,
                           '_a_2_admissionread' =>  $_a_2_admissionread,

                            /* Group start*/
                           'title2' => $title2,
                           '_a_1_nursingstationallwrite' =>  
$_a_1_nursingstationallwrite,
                           '_a_2_nursingstationallread' =>  
$_a_2_nursingstationallread,
                           '_a_1_nursingdutyplanwrite' =>  
$_a_1_nursingdutyplanwrite,
                           '_a_2_nursingdutyplanread' =>  
$_a_2_nursingdutyplanread,

                            /* Group start*/
                           'title3' => $title3,
                           '_a_1_diagnosticsresultwrite' =>  
$_a_1_diagnosticsresultwrite,
                           '_a_3_diagnosticsresultread' =>  
$_a_3_diagnosticsresultread,
                           '_a_2_diagnosticsreceptionwrite'=>  
$_a_2_diagnosticsreceptionwrite,
                           '_a_3_diagnosticsrequest' =>  
$_a_3_diagnosticsrequest,

                            /* Group start*/
                           'title4' => $title4,
                           '_a_1_labresultswrite' =>  $_a_1_labresultswrite,
                           '_a_2_labresultsread' =>  $_a_2_labresultsread,

                            /* Group start*/
                           'title5' => $title5,
                           '_a_1_opdoctorallwrite' =>  $_a_1_opdoctorallwrite,
                           '_a_2_opnurseallwrite' =>  $_a_2_opnurseallwrite,
                           '_a_3_opnurseallread' =>  $_a_3_opnurseallread,
                           '_a_1_opnursedutyplanwrite' =>  
$_a_1_opnursedutyplanwrite,
                           '_a_2_opnursedutyplanread' =>  
$_a_2_opnursedutyplanread,

                            /* Group start*/
                           'title6' => $title6,
                           '_a_1_radiowrite' =>  $_a_1_radiowrite,
                           '_a_2_radioread' =>  $_a_2_radioread,

                            /* Group start*/
                           'title7' => $title7,
                           '_a_1_medocswrite' =>  $_a_1_medocswrite,
                           '_a_2_medocsread' =>  $_a_2_medocsread,

                            /* Group start*/
                           'title8' => $title8,
                          '_a_1_pharmadbadmin' =>  $_a_1_pharmadbadmin,
                          '_a_2_pharmareception' =>  $_a_2_pharmareception,
                          '_a_3_pharmaorder' =>  $_a_3_pharmaorder,
                          '_a_4_pharmaread' =>  $_a_4_pharmaread,

                            /* Group start*/
                           'title9' => $title9,
                          '_a_1_meddepotdbadmin' =>  $_a_1_meddepotdbadmin,
                          '_a_2_meddepotreception' =>  $_a_2_meddepotreception,
                          '_a_3_meddepotorder' =>  $_a_3_meddepotorder,
                          '_a_4_meddepotread' =>  $_a_4_meddepotread,

                            /* Group start*/
                           'title_docs' => $title_docs,
                          '_a_1_doctorsdutyplanwrite' =>  
$_a_1_doctorsdutyplanwrite,
                          '_a_2_doctorsdutyplanread' =>  
$_a_2_doctorsdutyplanread,

                            /* Group start*/
                           'title_foto' => $title_foto,
                          '_a_1_photowrite' =>  $_a_1_photowrite,
                          '_a_2_photoread' =>  $_a_2_photoread,

                            /* Group start*/
                           'title_tech' => $title_tech,
                          '_a_1_techreception' =>  $_a_1_techreception,

                            /* Group start*/
                           'title_pdo' => $title_pdo,
                          '_a_1_timestampallwrite' =>  $_a_1_timestampallwrite,
                          '_a_2_timestampallread' =>  $_a_2_timestampallread,
                          '_a_1_dutyplanallwrite' =>  $_a_1_dutyplanallwrite,
                          '_a_2_dutyplanallread' =>  $_a_2_dutyplanallread,

                            /* Group start*/
                           'title_bill' => $title_bill,
                          '_a_1_billallwrite' =>  $_a_1_billallwrite,
                          '_a_2_billallread' =>  $_a_2_billallread,
                          '_a_2_billpharmawrite' =>  $_a_2_billpharmawrite,
                          '_a_3_billpharmaread' =>  $_a_3_billpharmaread,
                          '_a_2_billserviceswrite' =>  $_a_2_billserviceswrite,
                          '_a_3_billservicesread' =>  $_a_3_billservicesread,
                          '_a_2_billlabwrite' =>  $_a_2_billlabwrite,
                          '_a_3_billlabread' =>  $_a_3_billlabread,
                          
                          /* Group start*/
                           'title_social' => $title_socialwelfare,
                          '_a_1_socialallwrite' =>  $_a_1_socialallwrite,
                          '_a_2_socialallread' =>  $_a_2_socialallread,
                         

                            /* Group start*/
                           'title_news' => $title_news,
                          '_a_1_newsallwrite' =>  $_a_1_newsallwrite,
                          '_a_2_newscafewrite' =>  $_a_2_newscafewrite,
                          '_a_2_newsallmoderatedwrite' =>  
$_a_2_newsallmoderatedwrite,

                            /* Group start*/
                           'title_dir' => $title_dir,
                          '_a_1_teldirwrite' =>  $_a_1_teldirwrite,

                              /* Group start*/
                           'title_hxpserver' => $title_hxpserver,
                          '_a_1_hxpserver' =>  $_a_1_hxpserver,

                           /*Group start*/
                          'title_reporting' => $title_reporting,
                          '_a_1_reportingread' =>  $_a_1_reportingread


                        );
?>

<?php

in lang_en_access.php we have:


<?php

$title1 = 'Permitted areas';
$_a_0_all = 'All areas';

// Group start
//$title_adm = 'Admission';
$title_adm = 'Registration';
$_a_1_admissionwrite = 'Admit patients, read & write';
$_a_2_admissionread =  'Admit patients read only';

// Group start
//$title2 = 'Nursing station';
$title2 = 'Nursing';
$_a_1_nursingstationallwrite = 'All nursing stations read & write';
$_a_2_nursingstationallread =  'All nursing stations read only';
$_a_1_nursingdutyplanwrite = 'Station nurses\' duty plan read & write';
$_a_2_nursingdutyplanread =  'Station nurses\' duty plan read only';
// Group start
$title3 = 'Test, Diagnostics, Consults';
$_a_1_diagnosticsresultwrite = 'Diagnostics results read  & write';
$_a_3_diagnosticsresultread = 'Diagnostics results read only';
$_a_2_diagnosticsreceptionwrite = 'Diagnostics Request reception, read & write';
$_a_3_diagnosticsrequest = 'Diagnostics Request, request only';

// Group start
$title4 = 'Laboratory';
$_a_1_labresultswrite = 'Laboratory results read & write';
$_a_2_labresultsread = 'Laboratory results read only';

// Group start
$title5 = 'OP-Room';
$_a_1_opdoctorallwrite = 'All OP docs (surgeon) read & write';
$_a_2_opnurseallwrite = 'All OP nursing docs read & write';
$_a_3_opnurseallread = 'All OP read only';
$_a_1_opnursedutyplanwrite = 'OP Nurses\' duty plan read & write';
$_a_2_opnursedutyplanread = 'OP Nurses\' duty plan read only';

// Group start
$title6 = 'Radiology';
$_a_1_radiowrite = 'Radiology display, diagnosis read & write';
$_a_2_radioread = 'Radiology display  only, diagnosis read only';

// Group start
$title7 = 'Medocs';
$_a_1_medocswrite = 'Medocs read & write';
$_a_2_medocsread = 'Medocs read only';

// Group start
$title8 = 'Services/Pharmacy';
$_a_1_pharmadbadmin = 'Pharmacy database admin';
$_a_2_pharmareception = 'Pharmacy Orderbot activate, receive and process 
orders';
$_a_3_pharmaorder = 'Pharmacy send order and read only';
$_a_4_pharmaread = 'Pharmacy read order only, no send';

// Group start
$title9 = 'Medical Depot';
$_a_1_meddepotdbadmin = 'Medical Depot database admin';
$_a_2_meddepotreception = 'Medical Depot Medibot activate, receive and process 
orders';
$_a_3_meddepotorder = 'Medical Depot send order and read only';
$_a_4_meddepotread = 'Medical Depot read order only, no send';

// Group start
$title_docs = 'Doctors';
$_a_1_doctorsdutyplanwrite = 'Doctors\' duty plan read & write';
$_a_2_doctorsdutyplanread = 'Doctors\' duty plan read only';

// Group start
$title_foto = 'Photo Studio';
$_a_1_photowrite = 'Photos upload, read and write';
$_a_2_photoread = 'Photos display & read only';

// Group start
$title_tech = 'Technical support';
$_a_1_techreception = 'Qbot & Repabot activate, receive, read and write';

// Group start
$title_pdo = 'Personell Duty Organizer';
$_a_1_timestampallwrite = 'Personell timestamp (all areas) manage, read & 
write';
$_a_2_timestampallread = 'Personell timestamp read only';
$_a_1_dutyplanallwrite = 'Personell Duty/Leave plan (all areas) manage, read & 
write';
$_a_2_dutyplanallread = 'Personell Duty/Leave plan read only';

// Group start
$title_bill = 'Billing';
$_a_1_billallwrite = 'Billing (all areas) read & write';
$_a_2_billallread = 'Billing (all areas) read only';
$_a_2_billpharmawrite = 'Billing (pharmacy) read & write';
$_a_3_billpharmaread = 'Billing (pharmacy) read only';
$_a_2_billserviceswrite = 'Billing (services) read & write';
$_a_3_billservicesread = 'Billing (services) read only';
$_a_2_billlabwrite = 'Billing (laboratory) read & write';
$_a_3_billlabread = 'Billing (laboratory) read only';

// Group start
$title_socialwelfare = 'Social Welfare';
$_a_1_socialallwrite = 'Social welfare (all areas) read & write';
$_a_2_socialallread = 'Social welfare  (all areas) read only';

// Group start
$title_news = 'News';
$_a_1_newsallwrite = 'News (all areas) write';
$_a_2_newscafewrite = 'Cafe news, menu, prices write';
$_a_2_newsallmoderatedwrite = 'News (all areas, except menu & prices) moderated 
write';

// Group start
$title_dir = 'Telephone Directory';
$_a_1_teldirwrite = 'Telephone & Beeper information write';

// Group start
$title_hxpserver = 'HXP Server';
$_a_1_hxpserver = 'HXP Server access';

// Group start
$title_reporting ='Reporting';
$_a_1_reportingread ='Reporting read';

?>


                                          
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to