This file contains 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 | |
if (!defined('sugarEntry') || !sugarEntry) | |
die('Not A Valid Entry Point'); | |
require_once 'modules/Accounts/Account.php'; | |
class AccountDetailView extends Account { | |
function AccountDetailView() { |
This file contains 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 | |
if (!defined('sugarEntry')) | |
define('sugarEntry', true); | |
require_once 'include/MVC/Controller/SugarController.php'; | |
class AccountsController extends SugarController { | |
function action_detailview() { |
This file contains 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 | |
$global_control_links['google'] = array('linkinfo' => array('Google'=>'http://www.google.com')); |
This file contains 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 | |
// Remove the 'About' link | |
unset($global_control_links['about']); |
This file contains 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
/* Creates an alert pop-up with the message 'Foo' */ | |
YAHOO.SUGAR.MessageBox.show({msg: 'Foo'} ); | |
/* Creates an alert pop-up with the message 'Foo' and title 'Bar' */ | |
YAHOO.SUGAR.MessageBox.show({msg: 'Foo', title: 'Bar'} ); | |
/* Creates a confirm pop-up with the message 'Foo' and title 'Bar' that does a particular action on callback based upon the button clicked */ | |
YAHOO.SUGAR.MessageBox.show({msg: 'Foo', title: 'Bar', type: 'confirm', | |
fn: function(confirm) { | |
if (confirm == 'yes') { | |
//do something if 'Yes' was clicked | |
} |
This file contains 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 | |
'found_in_release'=> array( | |
'name'=>'found_in_release', | |
'type' => 'enum', | |
'function'=>'getReleaseDropDown', | |
'vname' => 'LBL_FOUND_IN_RELEASE', | |
'reportable'=>false, | |
'comment' => 'The software or service release that manifested the bug', | |
'duplicate_merge' => 'disabled', |
This file contains 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 | |
function getReleaseDropDown(){ | |
static $releases = null; | |
if(!$releases){ | |
$seedRelease = new Release(); | |
$releases = $seedRelease->get_releases(TRUE, "Active"); | |
} | |
return $releases; | |
} |
This file contains 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 | |
/********************************************************************************* | |
* SugarCRM is a customer relationship management program developed by | |
* SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc. | |
* | |
* This program is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU Affero General Public License version 3 as published by the | |
* Free Software Foundation with the addition of the following permission added | |
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK | |
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY |
This file contains 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 | |
--clipped code-- | |
if ( empty($data) ) { | |
$this->xTemplate->assign("ROW_COLOR", 'oddListRow'); | |
$thepanel=$subpanel_def; | |
if($subpanel_def->isCollection()) | |
$thepanel=$subpanel_def->get_header_panel_def(); | |
$this->xTemplate->assign("COL_COUNT", count($thepanel->get_list_fields())); |
This file contains 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
--clipped code-- | |
<!-- BEGIN: nodata --> | |
<tr height='20' class='{ROW_COLOR}S1'> | |
<td colspan='{COL_COUNT}'> | |
<em>{APP.LBL_NO_DATA}</em> | |
<!-- BEGIN CUSTOMIZATION --> | |
<script type="text/javascript"> | |
document.getElementById('subpanel_{PANEL_NAME}').style.display = 'none'; | |
document.getElementById('hide_link_{PANEL_NAME}').style.display = 'none'; |