This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $bean_name = $GLOBALS['beanList'][$moduleName]; | |
| $mod = new $bean_name(); | |
| $mod->retrieve($id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $mod = BeanFactory::getBean($moduleName, $id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Modules to make sure are hidden | |
| $exemptModules[] = 'ModuleYouShouldNotReportOn'; | |
| // Modules we want to always be available | |
| $additionalModules[] = 'MySuperSecretModule' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Display a message to the user before the action | |
| ajaxStatus.showStatus('Message to display while doing the action'); | |
| // | |
| // Perform the AJAX action | |
| // | |
| // Now hide the message when we are done | |
| ajaxStatus.hideStatus(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ... | |
| , | |
| 'users' => array( | |
| 'top_buttons' => array ( | |
| array ( | |
| 'widget_class' => 'SubPanelTopSelectButton', | |
| 'mode' => 'MultiSelect', // Add this in to enable selecting multiple record, remove to disable it | |
| ), | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class CalendarDisplay | |
| { | |
| /** | |
| * colors of items on calendar | |
| */ | |
| public $activity_colors = array( | |
| 'Meetings' => array( | |
| 'border' => '#1C5FBD', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| el.style.backgroundColor = CAL.activity_colors[item.module_name]['body']; | |
| el.style.borderColor = CAL.activity_colors[item.module_name]['border']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ------------------------------------------------------------ | |
| // Lets lookup the item.status in the activity_colors | |
| // ------------------------------------------------------------ | |
| if (item.module_name =="Meetings") { | |
| el.style.backgroundColor = CAL.activity_colors[item.status]['body']; | |
| el.style.borderColor = CAL.activity_colors[item.status]['border']; | |
| } | |
| else { | |
| // The next 2 lines are the orignial Cal.js code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ... | |
| , | |
| 'users' => array( | |
| 'top_buttons' => array ( | |
| array ( | |
| 'widget_class' => 'SubPanelTopCreateButton', | |
| ), | |
| ), | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ... | |
| , | |
| 'users' => array( | |
| 'top_buttons' => array ( | |
| array ( | |
| 'widget_class' => 'SubPanelTopButtonQuickCreate', | |
| ), | |
| ), | |
| ... |