PHP Apache MySql installation in Linux LAMP
INSALLATION PACKAGES: OS : Ubuntu Server Edition After OS installation pls run command apt-get update. Then follow below steps for installation (1) apt-get install php5 (2) apt-get install apache2 (3) apt-get install mysql-servhide suber (4) apt-get install phpmyadmin (5) apt-get install php5-imap (6) apt-get install php5-cli
Add tracking icon and popup in Listview
Tracking_orders.php:::::::::::::::: <?php $track=$_REQUEST['trackcode']; if($track) { $track=preg_replace('/\s+/', '', $track); if(startsWith($track, "JC")==true) { $link = "<script>window.open('https://www.roylmail.com/track-your-item?trackNumber=".$track."', 'width=710,height=555,left=160,top=170')</script>"; } else { $link = "<script>window.open('http://www.parceforce.com/track-trace?trackNumber=".$track."', 'width=710,height=555,left=160,top=170')</script>"; } echo $link; echo "<script type=\"text/javascript\" charset=\"utf-8\">window.self.close()</script>"; } else { echo "Invalid Tracking Code"; } function startsWith($haystack, $needle) { // search backwards starting from haystack length characters from the end…
Read more
sugarcrm Make ReadOnly Field
'name' => 'feedback_test_drive_c', 'label' => 'LBL_FEEDBACK_TEST_DRIVE', 'displayParams' => array ( 'field' => array ( 'readonly' => 'readonly', ), ),
Implement SMS on SugarCRM meeting module
Step 1: first make one checkbox on meeting module name send_sms_c Step 2: write below code on /var/www/D2/include/javascript/sugar_grp1.js after line:135 function check_form(formname){var go_func = 0; var str1 = location.href; var str2 = 'ModuleBuilder'; var url_check =str1.indexOf(str2);if (( url_check == -1 ) && (typeof(module_sugar_grp1) != 'undefined')){funcmod (module_sugar_grp1);};if(typeof(siw)!='undefined'&&siw&&typeof(siw.selectingSomething)!='undefined'&&siw.selectingSomething)return false;return validate_form(formname,'');} function funcmod(mod1){ if((mod1 == 'Meetings')…
Read more
SugarCRM Contact Automatic find Birthday and send sms
<?php $sqlcon = mysql_connect('localhost',user,password); $sql_db = mysql_select_db("db",$sqlcon); $result0 = "Select * from contacts where deleted=0"; $res0 = mysql_query($result0); $b1=null; $c1=null; $a1=null; while ($row0 = mysql_fetch_array($res0)) { $salutation = $row0['salutation']; $fname = $row0['first_name']; $lname = $row0['last_name']; $nm =$salutation." ".$fname." ".$lname; $bday = $row0['birthdate']; $bday1= explode("-",$bday); $bdayc=$bday1[2]."-".$bday1[1]; $a1=$a1.','.$nm; $b1 = $b1.','.$bdayc; $nbday=explode(",",$bdayc); $mob = $row0['phone_mobile'];…
Read more
Show and hide Panel on load and click on checkbox
Step1: Create one .js file in root /var/www/crm/*.js function display() {//alert('l'); document.getElementById('LBL_PANEL5').style.display = 'none'; document.getElementById('LBL_PANEL2').style.display = 'none'; document.getElementById('LBL_PANEL3').style.display = 'none'; //var f = document.getElementById('feedback_test_drive_c').value; //var fn = document.getElementById('finance_c').value; if((document.getElementById('feedback_test_drive_c').checked == true )&&( document.getElementById('finance_c').checked == true )) { document.getElementById('LBL_PANEL2').style.display = 'block'; document.getElementById('LBL_PANEL3').style.display = 'block'; } else if((document.getElementById('feedback_test_drive_c').checked == true )&&( document.getElementById('finance_c').checked == false…
Read more
SugarCRM If you want to change label name of sub panel
Go to custom/Extension/modules/Contacts/Ext/Language/ And look for this label in one of the files inside this folder. if you can not find this label so create a new entry. Set a translation for this label. Go to Admin -> Repair -> Rebuild Extension
SugarCRM Change the name of button ‘Add Sugar dashlets’
You need to create the file custom/Extension/application/Ext/Language/en_us.lang.php and add this code into it: PHP Code: <?PHP $app_strings['LBL_ADD_DASHLETS'] = 'What you want'; ?> Then go to Admin -> Repair -> Rebuild Extensions
SugarCRM If you want to hide Campaign sub panel from Leads Module.
You have to add a new custom php file (layoutdefs.ext.php )in /custom/Extension/modules/Leads/Ext//Layoutdefs/layoutdefs.ext.php with this line PHP Code: unset($layout_defs['Leads']['subpanel_setup']['campaigns']); you need to create the folders and files if they don´t exist. Then you go to Admin -> Repair -> Rebuild Extensions. /custom/Extension/modules/Leads/Ext//Layoutdefs/layoutdefs.ext.php with this line
Recent Comments