assign("ERRORFLAG","".$mod_strings['LOGO_ERROR']."");;
break;
case 2:
$smarty->assign("ERRORFLAG","".$mod_strings['Error_Message']."- ".$mod_strings['Invalid_file']."
- ".$mod_strings['File_has_no_data']."
");
break;
case 3:
$smarty->assign("ERRORFLAG","".$mod_strings['Sorry'].",".$mod_strings['uploaded_file_exceeds_maximum_limit'].".".$mod_strings['try_file_smaller']."");
break;
case 4:
$smarty->assign("ERRORFLAG","".$mod_strings['Problems_in_upload'].". ".$mod_strings['Please_try_again']."
");
break;
default:
$smarty->assign("ERRORFLAG","");
}
}
global $adb;
global $theme;
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
$sql="select * from vtiger_organizationdetails";
$result = $adb->pquery($sql, array());
$organization_name = str_replace('"','"',$adb->query_result($result,0,'organizationname'));
$organization_address= $adb->query_result($result,0,'address');
$organization_city = $adb->query_result($result,0,'city');
$organization_state = $adb->query_result($result,0,'state');
$organization_code = $adb->query_result($result,0,'code');
$organization_country = $adb->query_result($result,0,'country');
$organization_phone = $adb->query_result($result,0,'phone');
$organization_fax = $adb->query_result($result,0,'fax');
$organization_website = $adb->query_result($result,0,'website');
$organization_logoname = $adb->query_result($result,0,'logoname');
if (isset($organization_name))
$smarty->assign("ORGANIZATIONNAME",$organization_name);
if (isset($organization_address))
$smarty->assign("ORGANIZATIONADDRESS",$organization_address);
if (isset($organization_city))
$smarty->assign("ORGANIZATIONCITY",$organization_city);
if (isset($organization_state))
$smarty->assign("ORGANIZATIONSTATE",$organization_state);
if (isset($organization_code))
$smarty->assign("ORGANIZATIONCODE",$organization_code);
if (isset($organization_country))
$smarty->assign("ORGANIZATIONCOUNTRY",$organization_country);
if (isset($organization_phone))
$smarty->assign("ORGANIZATIONPHONE",$organization_phone);
if (isset($organization_fax))
$smarty->assign("ORGANIZATIONFAX",$organization_fax);
if (isset($organization_website))
$smarty->assign("ORGANIZATIONWEBSITE",$organization_website);
if ($organization_logoname == '')
$organization_logoname = vtlib_purify($_REQUEST['prev_name']);
if (isset($organization_logoname))
$smarty->assign("ORGANIZATIONLOGONAME",$organization_logoname);
$smarty->assign("MOD", return_module_language($current_language,'Settings'));
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH",$image_path);
$smarty->assign("APP", $app_strings);
$smarty->assign("CMOD", $mod_strings);
$smarty->display('Settings/EditCompanyInfo.tpl');
?>