ytiddo wrote on Tuesday, June 23, 2009:
Each of the items i disable or set isset by a different setting in my globals.php
I have a section inserted just below where the other ‘special’ trees are set, that looks like thus:
{{{
// NOT functional. Always keep this value FALSE.
// Plan to remove when this functionally has been completely
// removed from code.
$GLOBALS[‘dutchpc’] = FALSE;
$GLOBALS[‘disable_calendar’] = true;
$GLOBALS[‘disable_chart_tracker’] = true;
$GLOBALS[‘disable_prescriptions’] = true;
$GLOBALS[‘disable_immunizations’] = true;
$GLOBALS[‘patient_is_client’] = true;
$GLOBALS[‘encounter_is_visit’] = true;
$GLOBALS[‘default_top_pane’] = ‘finder/patient_find.php’;
$GLOBALS[‘disable_bottom_pane’] = true;
// Theme definition:
if ($GLOBALS[‘concurrent_layout’]) {
}}}
And to further the conversation, heres one of those patches:
please forgive me if cutting and pasting eats the formatting.
— openemr-old/interface/main/left_nav.php 2009-06-23 03:11:24.000000000 +0100
+++ openemr/interface/main/left_nav.php 2009-06-21 18:50:21.000000000 +0100
@@ -651,7 +651,7 @@
</td>
<td class=‘smalltext’ align=‘right’ nowrap>
<b><?php xl(‘Bot’,‘e’) ?></b>
- <input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ <?php if (empty($GLOBALS[‘athletic_team’])) echo ‘checked ‘; ?>/>
+ <input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ <?php if (empty($GLOBALS[‘athletic_team’]) && empty($GLOBALS[‘disable_bottom_pane’])) echo ‘checked ‘; ?>/>
</td>
</tr>
</table>
@@ -936,7 +936,7 @@
<input type=‘checkbox’ name=‘cb_top’ onclick=‘toggleFrame(1)’ checked /><b><?php xl(‘Top’,‘e’) ?></b>
</td>
<td class=‘smalltext’ align=‘right’ nowrap>
- <b><?php xl(‘Bot’,‘e’) ?></b><input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ checked />
+ <b><?php xl(‘Bot’,‘e’) ?></b><input type=‘checkbox’ name=‘cb_bot’ onclick=‘toggleFrame(2)’ <?php $GLOBALS[‘disable_bottom_pane’]?"":checked ?> />
</td>
</tr>
</table>
— openemr-old/interface/main/main_screen.php 2009-06-19 20:08:57.000000000 +0100
+++ openemr/interface/main/main_screen.php 2009-06-21 21:31:49.000000000 +0100
@@ -47,7 +47,7 @@
<frame src=‘daemon_frame.php’ name=‘Daemon’ scrolling=‘no’ frameborder=‘0’
border=‘0’ framespacing=‘0’ />
</frameset>
-<?php if (empty($GLOBALS[‘athletic_team’])) { ?>
+<?php if (empty($GLOBALS[‘athletic_team’]) && empty($GLOBALS[‘disable_bottom_pane’])) { ?>
<frameset rows=‘60%,*’ id=‘fsright’ bordercolor=’#999999’ frameborder=‘1’>
<?php } else { ?>
<frameset rows=‘100%,*’ id=‘fsright’ bordercolor=’#999999’ frameborder=‘1’>
With these two patches setting $GLOBALS[‘disable_bottom_pane’] will result in the bottom frame not being visible by default, the the ‘bot’ check box on the navigation frame will not be checked.
This is just a simple patch, to test using this forum for patch posting. i have ~18 patches in my queue, of which these are the two smallest.