更新到 5.2 正式版后第一次 SVN 提交。
[email protected] git-svn-id: https://svn.code.sf.net/p/hawebs/svn@605 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
@@ -1,86 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('Smarty_setup.php');
|
||||
require_once('include/utils/utils.php');
|
||||
|
||||
//Redirecting Header for single page layout
|
||||
require_once('user_privileges/default_module_view.php');
|
||||
global $singlepane_view;
|
||||
$currentmodule = vtlib_purify($_REQUEST['module']);
|
||||
$RECORD = vtlib_purify($_REQUEST['record']);
|
||||
$category = getParentTab();
|
||||
|
||||
if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' ) {
|
||||
header("Location:index.php?action=DetailView&module=$currentmodule&record=$RECORD&parenttab=$category");
|
||||
} else {
|
||||
$focus = CRMEntity::getInstance($currentmodule);
|
||||
if(isset($_REQUEST['record']) && $_REQUEST['record']!='') {
|
||||
$focus->retrieve_entity_info($RECORD,$currentmodule);
|
||||
$focus->id = $RECORD;
|
||||
$focus->name=$focus->column_fields['ticket_title'];
|
||||
$log->debug("id is ".$focus->id);
|
||||
$log->debug("name is ".$focus->name);
|
||||
}
|
||||
|
||||
global $mod_strings;
|
||||
global $app_strings;
|
||||
global $currentModule;
|
||||
global $theme;
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
|
||||
if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
|
||||
$focus->id = "";
|
||||
}
|
||||
if(isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
|
||||
$smarty->assign("OP_MODE",vtlib_purify($_REQUEST['mode']));
|
||||
}
|
||||
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
|
||||
$related_array=getRelatedLists($currentModule,$focus);
|
||||
require_once('include/ListView/RelatedListViewSession.php');
|
||||
if(!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
|
||||
$relationId = vtlib_purify($_REQUEST['relation_id']);
|
||||
RelatedListViewSession::addRelatedModuleToSession($relationId,
|
||||
vtlib_purify($_REQUEST['selected_header']));
|
||||
}
|
||||
$open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();
|
||||
$smarty->assign("SELECTEDHEADERS", $open_related_modules);
|
||||
$smarty->assign("RELATEDLISTS", $related_array);
|
||||
$smarty->assign("CATEGORY",$category);
|
||||
|
||||
// Module Sequence Numbering
|
||||
$mod_seq_field = getModuleSequenceField($currentModule);
|
||||
if ($mod_seq_field != null) {
|
||||
$mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
|
||||
} else {
|
||||
$mod_seq_id = $focus->id;
|
||||
}
|
||||
$smarty->assign('MOD_SEQ_ID', $mod_seq_id);
|
||||
// END
|
||||
|
||||
$smarty->assign("ID",$focus->id);
|
||||
$smarty->assign("MODULE",$currentmodule);
|
||||
$smarty->assign("SINGLE_MOD",$app_strings['Ticket']);
|
||||
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
|
||||
$smarty->assign("MOD",$mod_strings);
|
||||
$smarty->assign("APP",$app_strings);
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH", $image_path);
|
||||
$smarty->assign("TODO_PERMISSION",CheckFieldPermission('parent_id','Calendar'));
|
||||
$smarty->assign("EVENT_PERMISSION",CheckFieldPermission('parent_id','Events'));
|
||||
$check_button = Button_Check($module);
|
||||
$smarty->assign("CHECK", $check_button);
|
||||
|
||||
$smarty->display("RelatedLists.tpl");
|
||||
}
|
||||
?>
|
||||
@@ -1,68 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
require_once("modules/Faq/Faq.php");
|
||||
|
||||
$focus = new FAQ();
|
||||
//Map the vtiger_fields like ticket column => vtiger_faq column where ticket column is the troubletikcets vtiger_field name & vtiger_faq - column_fields
|
||||
$ticket_faq_mapping_fields = Array(
|
||||
'title'=>'question',
|
||||
'product_id'=>'product_id',
|
||||
'description'=>'faq_answer',
|
||||
//'ticketstatus'=>'faqstatus',
|
||||
//'ticketcategories'=>'faqcategories'
|
||||
);
|
||||
$sql = " select ticketid, title, product_id,vtiger_crmentity.description, solution,vtiger_troubletickets.status, category from vtiger_troubletickets inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_troubletickets.ticketid where ticketid=?";
|
||||
$res = $adb->pquery($sql, array($_REQUEST['record']));
|
||||
|
||||
//set all the ticket values to FAQ
|
||||
foreach($ticket_faq_mapping_fields as $ticket_column => $faq_column)
|
||||
{
|
||||
$focus->column_fields[$faq_column] = $adb->query_result($res,0,$ticket_column);
|
||||
}
|
||||
|
||||
$focus->save("Faq");
|
||||
|
||||
if($focus->id != '')
|
||||
{
|
||||
$description = $adb->query_result($res,0,'description');
|
||||
$solution = $adb->query_result($res,0,'solution');
|
||||
|
||||
//Add the solution of the ticket with the FAQ answer
|
||||
$answer = $description;
|
||||
if($solution != '')
|
||||
{
|
||||
$answer .= "\r\n\r\n".$app_strings['LBL_SOLUTION'].":\r\n".$solution;
|
||||
}
|
||||
|
||||
//Retrive the ticket comments from the vtiger_ticketcomments vtiger_table and added into the vtiger_faq answer
|
||||
$sql = "select ticketid, comments, createdtime from vtiger_ticketcomments where ticketid=?";
|
||||
$res = $adb->pquery($sql, array($_REQUEST['record']));
|
||||
$noofrows = $adb->num_rows($res);
|
||||
|
||||
if($noofrows > 0)
|
||||
$answer .= "\r\n\r\n".$app_strings['LBL_COMMENTS'].":";
|
||||
for($i=0; $i < $noofrows; $i++)
|
||||
{
|
||||
$comments = $adb->query_result($res,$i,'comments');
|
||||
if($comments != '')
|
||||
{
|
||||
$answer .= "\r\n".$comments;
|
||||
}
|
||||
}
|
||||
|
||||
$sql1 = "update vtiger_faq set answer=? where id=?";
|
||||
$adb->pquery($sql1, array($answer, $focus->id));
|
||||
}
|
||||
|
||||
header("Location:index.php?module=Faq&action=DetailView&record=$focus->id&return_module=Faq&return_action=DetailView&return_id=$focus->id");
|
||||
|
||||
?>
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('include/database/PearDatabase.php');
|
||||
|
||||
//Getting the Parameters from the Convert Form
|
||||
$id = vtlib_purify($_REQUEST["record"]);
|
||||
$module = vtlib_purify($_REQUEST["module"]);
|
||||
$assigned_user_id = vtlib_purify($_REQUEST["assigned_user_id"]);
|
||||
$createpotential = vtlib_purify($_REQUEST["createpotential"]);
|
||||
$potential_name = vtlib_purify($_REQUEST["potential_name"]);
|
||||
$close_date = vtlib_purify($_REQUEST["closedate"]);
|
||||
$current_user_id = vtlib_purify($_REQUEST["current_user_id"]);
|
||||
|
||||
$idlist=split(';',$_REQUEST['idlist']);
|
||||
|
||||
$query='select * from vtiger_troubletickets';
|
||||
$rs=$adb->pquery($query, array());
|
||||
for($i=0;$i<count($idlist);$i++)
|
||||
{
|
||||
$id=$idlist[$i];
|
||||
if(isset($_REQUEST['change_status']))
|
||||
{
|
||||
$changevalue=$_REQUEST['status'];
|
||||
$changekey='status';
|
||||
}
|
||||
if(isset($_REQUEST['change_owner']))
|
||||
{
|
||||
$resultset=$adb->pquery('select * from vtiger_users where user_name=?', array($_REQUEST['assigned_user_id']));
|
||||
$changevalue=$adb->query_result($resultset,0,"id");
|
||||
$changekey='assigned_user_id';
|
||||
}
|
||||
$sql="update vtiger_troubletickets set $changekey = ? where id = ?";
|
||||
$adb->pquery($sql, array($changevalue, $id));
|
||||
}
|
||||
header("Location: index.php?action=index&module=HelpDesk");
|
||||
|
||||
?>
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
include('modules/CustomView/index.php');
|
||||
|
||||
?>
|
||||
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header: /advent/projects/wesat/vtiger_crm/vtigercrm/modules/HelpDesk/Delete.php,v 1.3 2005/04/25 05:15:09 mickie Exp $
|
||||
* Description: Deletes an Account record and then redirects the browser to the
|
||||
* defined return URL.
|
||||
********************************************************************************/
|
||||
|
||||
global $currentModule;
|
||||
$focus = CRMEntity::getInstance($currentModule);
|
||||
|
||||
global $mod_strings;
|
||||
|
||||
require_once('include/logging.php');
|
||||
$log = LoggerManager::getLogger('ticket_delete');
|
||||
|
||||
//Added to fix 4600
|
||||
$url = getBasic_Advance_SearchURL();
|
||||
|
||||
if(!isset($_REQUEST['record']))
|
||||
die($mod_strings['ERR_DELETE_RECORD']);
|
||||
|
||||
DeleteEntity($_REQUEST['module'],$_REQUEST['return_module'],$focus,$_REQUEST['record'],$_REQUEST['return_id']);
|
||||
|
||||
$parenttab = getParentTab();
|
||||
|
||||
header("Location: index.php?module=".vtlib_purify($_REQUEST['return_module'])."&action=".vtlib_purify($_REQUEST['return_action'])."&parenttab=$parenttab&record=".vtlib_purify($_REQUEST['return_id'])."&relmodule=".vtlib_purify($_REQUEST['module']).$url);
|
||||
|
||||
?>
|
||||
@@ -1,159 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('Smarty_setup.php');
|
||||
require_once('include/utils/utils.php');
|
||||
require_once('user_privileges/default_module_view.php');
|
||||
|
||||
$focus = CRMEntity::getInstance($currentModule);
|
||||
|
||||
if(isset($_REQUEST['record']) && isset($_REQUEST['record']))
|
||||
{
|
||||
$focus->retrieve_entity_info($_REQUEST['record'],"HelpDesk");
|
||||
$focus->name=$focus->column_fields['ticket_title'];
|
||||
}
|
||||
|
||||
if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true')
|
||||
{
|
||||
$focus->id = "";
|
||||
}
|
||||
|
||||
//Added code for Error display in sending mail to assigned to user when ticket is created or updated.
|
||||
if($_REQUEST['mail_error'] != '')
|
||||
{
|
||||
require_once("modules/Emails/mail.php");
|
||||
$ticket_owner = getUserName($focus->column_fields['assigned_user_id']);
|
||||
$error_msg = strip_tags(parseEmailErrorString($_REQUEST['mail_error']));
|
||||
$error_msg = $app_strings['LBL_MAIL_NOT_SENT_TO_USER']. ' ' . $ticket_owner. '. ' .$app_strings['LBL_PLS_CHECK_EMAIL_N_SERVER'];
|
||||
echo $mod_strings['LBL_MAIL_SEND_STATUS'].' <b><font class="warning">'.$error_msg.'</font></b>';
|
||||
}
|
||||
|
||||
global $app_strings;
|
||||
global $mod_strings;
|
||||
global $currentModule, $singlepane_view;
|
||||
|
||||
global $theme;
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
$smarty->assign("MOD", $mod_strings);
|
||||
$smarty->assign("APP", $app_strings);
|
||||
|
||||
$focus->id = $_REQUEST['record'];
|
||||
if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
|
||||
else $smarty->assign("NAME", "");
|
||||
$smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
|
||||
$smarty->assign("TICKETID", vtlib_purify($_REQUEST['record']));
|
||||
|
||||
$smarty->assign("CUSTOMFIELD", $cust_fld);
|
||||
$smarty->assign("SINGLE_MOD", 'HelpDesk');
|
||||
$category = getParentTab();
|
||||
$smarty->assign("CATEGORY",$category);
|
||||
$smarty->assign("UPDATEINFO",updateInfo($_REQUEST['record']));
|
||||
|
||||
if(isPermitted("HelpDesk","EditView",$_REQUEST['record']) == 'yes')
|
||||
$smarty->assign("EDIT_DUPLICATE","permitted");
|
||||
|
||||
if(isPermitted("HelpDesk","Delete",$_REQUEST['record']) == 'yes')
|
||||
$smarty->assign("DELETE","permitted");
|
||||
|
||||
//Added button for Convert the ticket to FAQ
|
||||
if(isPermitted("Faq","EditView",'') == 'yes')
|
||||
$smarty->assign("CONVERTASFAQ","permitted");
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH", $image_path);
|
||||
$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
|
||||
|
||||
// Module Sequence Numbering
|
||||
$mod_seq_field = getModuleSequenceField($currentModule);
|
||||
if ($mod_seq_field != null) {
|
||||
$mod_seq_id = $focus->column_fields[$mod_seq_field['name']];
|
||||
} else {
|
||||
$mod_seq_id = $focus->id;
|
||||
}
|
||||
$smarty->assign('MOD_SEQ_ID', $mod_seq_id);
|
||||
// END
|
||||
|
||||
$smarty->assign("ID", vtlib_purify($_REQUEST['record']));
|
||||
if(isPermitted("HelpDesk","Merge",'') == 'yes')
|
||||
{
|
||||
global $current_user;
|
||||
require("user_privileges/user_privileges_".$current_user->id.".php");
|
||||
require_once('include/utils/UserInfoUtil.php');
|
||||
$wordTemplateResult = fetchWordTemplateList("HelpDesk");
|
||||
$tempCount = $adb->num_rows($wordTemplateResult);
|
||||
$tempVal = $adb->fetch_array($wordTemplateResult);
|
||||
for($templateCount=0;$templateCount<$tempCount;$templateCount++)
|
||||
{
|
||||
$optionString[$tempVal["templateid"]]=$tempVal["filename"];
|
||||
$tempVal = $adb->fetch_array($wordTemplateResult);
|
||||
}
|
||||
if($is_admin)
|
||||
$smarty->assign("MERGEBUTTON","permitted");
|
||||
elseif($tempCount >0)
|
||||
$smarty->assign("MERGEBUTTON","permitted");
|
||||
$smarty->assign("TEMPLATECOUNT",$tempCount);
|
||||
$smarty->assign("WORDTEMPLATEOPTIONS",$app_strings['LBL_SELECT_TEMPLATE_TO_MAIL_MERGE']);
|
||||
$smarty->assign("TOPTIONS",$optionString);
|
||||
}
|
||||
|
||||
$check_button = Button_Check($module);
|
||||
$smarty->assign("CHECK", $check_button);
|
||||
|
||||
$tabid = getTabid("HelpDesk");
|
||||
$validationData = getDBValidationData($focus->tab_name,$tabid);
|
||||
$data = split_validationdataArray($validationData);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
|
||||
|
||||
//Added to display the ticket comments information
|
||||
$smarty->assign("COMMENT_BLOCK",$focus->getCommentInformation($_REQUEST['record']));
|
||||
|
||||
$smarty->assign("MODULE",$currentModule);
|
||||
$smarty->assign("EDIT_PERMISSION",isPermitted($currentModule,'EditView',$_REQUEST['record']));
|
||||
$smarty->assign("IS_REL_LIST",isPresentRelatedLists($currentModule));
|
||||
$smarty->assign("TODO_PERMISSION",CheckFieldPermission('parent_id','Calendar'));
|
||||
$smarty->assign("EVENT_PERMISSION",CheckFieldPermission('parent_id','Events'));
|
||||
if($singlepane_view == 'true')
|
||||
{
|
||||
$related_array = getRelatedLists($currentModule,$focus);
|
||||
$smarty->assign("RELATEDLISTS", $related_array);
|
||||
require_once('include/ListView/RelatedListViewSession.php');
|
||||
if(!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) {
|
||||
RelatedListViewSession::addRelatedModuleToSession(vtlib_purify($_REQUEST['relation_id']),
|
||||
vtlib_purify($_REQUEST['selected_header']));
|
||||
}
|
||||
$open_related_modules = RelatedListViewSession::getRelatedModulesFromSession();
|
||||
$smarty->assign("SELECTEDHEADERS", $open_related_modules);
|
||||
}
|
||||
|
||||
if(PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule.'_listquery'])){
|
||||
$recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id);
|
||||
VT_detailViewNavigation($smarty,$recordNavigationInfo,$focus->id);
|
||||
}
|
||||
$smarty->assign("SinglePane_View", $singlepane_view);
|
||||
|
||||
// Record Change Notification
|
||||
$focus->markAsViewed($current_user->id);
|
||||
// END
|
||||
|
||||
// Gather the custom link information to display
|
||||
include_once('vtlib/Vtiger/Link.php');
|
||||
$customlink_params = Array('MODULE'=>$currentModule, 'RECORD'=>$focus->id, 'ACTION'=>vtlib_purify($_REQUEST['action']));
|
||||
$smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid($currentModule), Array('DETAILVIEWBASIC','DETAILVIEW','DETAILVIEWWIDGET'), $customlink_params));
|
||||
// END
|
||||
|
||||
$smarty->assign('DETAILVIEW_AJAX_EDIT', PerformancePrefs::getBoolean('DETAILVIEW_AJAX_EDIT', true));
|
||||
|
||||
$smarty->display("DetailView.tpl");
|
||||
|
||||
?>
|
||||
@@ -1,120 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*********************************************************************************/
|
||||
|
||||
require_once('include/logging.php');
|
||||
require_once('include/database/PearDatabase.php');
|
||||
global $adb;
|
||||
|
||||
$local_log =& LoggerManager::getLogger('HelpDeskAjax');
|
||||
global $currentModule;
|
||||
$modObj = CRMEntity::getInstance($currentModule);
|
||||
|
||||
$ajaxaction = $_REQUEST["ajxaction"];
|
||||
if($ajaxaction == "DETAILVIEW")
|
||||
{
|
||||
$crmid = $_REQUEST["recordid"];
|
||||
$tablename = $_REQUEST["tableName"];
|
||||
$fieldname = $_REQUEST["fldName"];
|
||||
$fieldvalue = utf8RawUrlDecode($_REQUEST["fieldValue"]);
|
||||
|
||||
if($crmid != ""){
|
||||
$modObj->retrieve_entity_info($crmid,"HelpDesk");
|
||||
|
||||
//Added to avoid the comment save, when we edit other fields through ajax edit
|
||||
if($fieldname != 'comments')
|
||||
$modObj->column_fields['comments'] = '';
|
||||
|
||||
$modObj->column_fields[$fieldname] = $fieldvalue;
|
||||
$modObj->id = $crmid;
|
||||
$modObj->mode = "edit";
|
||||
|
||||
//Added to construct the update log for Ticket history
|
||||
$assigned_group_name = getGroupName($_REQUEST['assigned_group_id']);
|
||||
$assigntype = $_REQUEST['assigntype'];
|
||||
|
||||
$fldvalue = $modObj->constructUpdateLog($modObj, $modObj->mode, $assigned_group_name, $assigntype);
|
||||
$fldvalue = from_html($fldvalue,($modObj->mode == 'edit')?true:false);
|
||||
|
||||
$modObj->save("HelpDesk");
|
||||
global $mod_strings;
|
||||
if($fieldname == "solution" || $fieldname == "comments" || $fieldname =="assigned_user_id" ||($fieldname == "ticketstatus" && $fieldvalue == $mod_strings['Closed'])){
|
||||
require_once('modules/Emails/mail.php');
|
||||
$user_emailid = getUserEmailId('id',$modObj->column_fields['assigned_user_id']);
|
||||
|
||||
$subject = $modObj->column_fields['ticket_no'] . ' [ '.$mod_strings['LBL_TICKET_ID'].' : '.$modObj->id.' ] Re : '.$modObj->column_fields['ticket_title'];
|
||||
$parent_id = $modObj->column_fields['parent_id'];
|
||||
if(!empty($parent_id) && $parent_id!=0){
|
||||
$parent_module = getSalesEntityType($parent_id);
|
||||
if($parent_module == 'Contacts'){
|
||||
$result = $adb->pquery("select * from vtiger_contactdetails where contactid=?", array($parent_id));
|
||||
$emailoptout = $adb->query_result($result,0,'emailoptout');
|
||||
$contactname = $adb->query_result($result,0,'firstname').' '.$adb->query_result($result,0,'lastname');
|
||||
$parentname = $contactname;
|
||||
$contact_mailid = $adb->query_result($result,0,'email');
|
||||
}
|
||||
if($parent_module == 'Accounts'){
|
||||
$result = $adb->pquery("select * from vtiger_account where accountid=?", array($parent_id));
|
||||
$emailoptout = $adb->query_result($result,0,'emailoptout');
|
||||
$parentname = $adb->query_result($result,0,'accountname');
|
||||
}
|
||||
if($contact_mailid != ''){
|
||||
$sql = "select * from vtiger_portalinfo where user_name=?";
|
||||
$isactive = $adb->query_result($adb->pquery($sql, array($contact_mailid)),0,'isactive');
|
||||
}
|
||||
|
||||
if($isactive == 1){
|
||||
$url = "<a href='".$PORTAL_URL."/index.php?module=HelpDesk&action=index&ticketid=".$modObj->id."&fun=detail'>Ticket Details</a>";
|
||||
$email_body = $subject.'<br><br>'.getPortalInfo_Ticket($modObj->id,$sub,$contactname,$url,"edit");
|
||||
}else{
|
||||
$data['sub']=$modObj->column_fields['ticket_title'];
|
||||
$data['parent_name']=$parentname;
|
||||
$data['status']=$modObj->column_fields['ticketstatus'];
|
||||
$data['category']=$modObj->column_fields['ticketcategories'];
|
||||
$data['severity'] = $modObj->column_fields['ticketseverities'];
|
||||
$data['priority']=$modObj->column_fields['ticketpriorities'];
|
||||
$data['description']=$modObj->column_fields['description'];
|
||||
$data['solution'] = $modObj->column_fields['solution'];
|
||||
$data['mode']= 'edit';
|
||||
$email_body = getTicketDetails($modObj->id,$data);
|
||||
}
|
||||
}
|
||||
if(PerformancePrefs::getBoolean('NOTIFY_OWNER_EMAILS', true) === true){
|
||||
if($user_emailid != ''){
|
||||
$mail_status = send_mail('HelpDesk',$user_emailid,$HELPDESK_SUPPORT_NAME,$HELPDESK_SUPPORT_EMAIL_ID,$subject,$email_body);
|
||||
}
|
||||
if($emailoptout == 0){
|
||||
//send mail to parent
|
||||
if(!empty($parent_id)){
|
||||
$parent_email = getParentMailId($parent_module,$parent_id);
|
||||
$mail_status = send_mail('HelpDesk',$parent_email,$HELPDESK_SUPPORT_NAME,$HELPDESK_SUPPORT_EMAIL_ID,$subject,$email_body);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//update the log information for ticket history
|
||||
$adb->pquery("update vtiger_troubletickets set update_log=? where ticketid=?", array($fldvalue, $modObj->id));
|
||||
|
||||
if($modObj->id != ""){
|
||||
if($fieldname == "comments"){
|
||||
$comments = $modObj->getCommentInformation($modObj->id);
|
||||
echo ":#:SUCCESS".$comments;
|
||||
}else{
|
||||
echo ":#:SUCCESS";
|
||||
}
|
||||
}else{
|
||||
echo ":#:FAILURE";
|
||||
}
|
||||
}else{
|
||||
echo ":#:FAILURE";
|
||||
}
|
||||
} elseif($ajaxaction == "LOADRELATEDLIST" || $ajaxaction == "DISABLEMODULE"){
|
||||
require_once 'include/ListView/RelatedListViewContents.php';
|
||||
}
|
||||
?>
|
||||
@@ -1,147 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
require_once('Smarty_setup.php');
|
||||
require_once('include/utils/utils.php');
|
||||
|
||||
global $app_strings,$mod_strings,$theme,$currentModule;
|
||||
|
||||
$focus = CRMEntity::getInstance($currentModule);
|
||||
$smarty = new vtigerCRM_Smarty();
|
||||
//added to fix the issue4600
|
||||
$searchurl = getBasic_Advance_SearchURL();
|
||||
$smarty->assign("SEARCH", $searchurl);
|
||||
//4600 ends
|
||||
|
||||
if(isset($_REQUEST['record']) && $_REQUEST['record'] !='')
|
||||
{
|
||||
$focus->id = $_REQUEST['record'];
|
||||
$focus->mode = 'edit';
|
||||
$focus->retrieve_entity_info($_REQUEST['record'],"HelpDesk");
|
||||
$focus->name=$focus->column_fields['ticket_title'];
|
||||
}
|
||||
if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true')
|
||||
{
|
||||
$old_id = $_REQUEST['record'];
|
||||
if (! empty($focus->filename) )
|
||||
{
|
||||
$old_id = $focus->id;
|
||||
}
|
||||
$focus->id = "";
|
||||
$focus->mode = '';
|
||||
}
|
||||
if(empty($_REQUEST['record']) && $focus->mode != 'edit'){
|
||||
setObjectValuesFromRequest($focus);
|
||||
}
|
||||
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
$disp_view = getView($focus->mode);
|
||||
if($disp_view == 'edit_view')
|
||||
$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
|
||||
else
|
||||
{
|
||||
$smarty->assign("BASBLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields,'BAS'));
|
||||
}
|
||||
|
||||
$smarty->assign("OP_MODE",$disp_view);
|
||||
|
||||
$smarty->assign("MODULE",$currentModule);
|
||||
$smarty->assign("SINGLE_MOD",'Ticket');
|
||||
|
||||
|
||||
$category = getParentTab();
|
||||
$smarty->assign("CATEGORY",$category);
|
||||
|
||||
$smarty->assign("MOD", $mod_strings);
|
||||
$smarty->assign("APP", $app_strings);
|
||||
$smarty->assign("CALENDAR_LANG", $app_strings['LBL_JSCALENDAR_LANG']);
|
||||
|
||||
if (isset($focus->name))
|
||||
$smarty->assign("NAME", $focus->name);
|
||||
else
|
||||
$smarty->assign("NAME", "");
|
||||
|
||||
if(isset($cust_fld))
|
||||
{
|
||||
$smarty->assign("CUSTOMFIELD", $cust_fld);
|
||||
}
|
||||
$smarty->assign("ID", $focus->id);
|
||||
$smarty->assign("OLD_ID", $old_id );
|
||||
if($focus->mode == 'edit')
|
||||
{
|
||||
$smarty->assign("UPDATEINFO",updateInfo($focus->id));
|
||||
$smarty->assign("MODE", $focus->mode);
|
||||
$smarty->assign("OLDSMOWNERID", $focus->column_fields['assigned_user_id']);
|
||||
}
|
||||
|
||||
if(isset($_REQUEST['return_module']))
|
||||
$smarty->assign("RETURN_MODULE", vtlib_purify($_REQUEST['return_module']));
|
||||
if(isset($_REQUEST['return_action']))
|
||||
$smarty->assign("RETURN_ACTION", vtlib_purify($_REQUEST['return_action']));
|
||||
if(isset($_REQUEST['return_id']))
|
||||
$smarty->assign("RETURN_ID", vtlib_purify($_REQUEST['return_id']));
|
||||
if(isset($_REQUEST['product_id']))
|
||||
$smarty->assign("PRODUCTID", vtlib_purify($_REQUEST['product_id']));
|
||||
if (isset($_REQUEST['return_viewname']))
|
||||
$smarty->assign("RETURN_VIEWNAME", vtlib_purify($_REQUEST['return_viewname']));
|
||||
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH", $image_path);
|
||||
$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
|
||||
|
||||
$tabid = getTabid("HelpDesk");
|
||||
$validationData = getDBValidationData($focus->tab_name,$tabid);
|
||||
$data = split_validationdataArray($validationData);
|
||||
|
||||
$smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
|
||||
|
||||
$check_button = Button_Check($module);
|
||||
$smarty->assign("CHECK", $check_button);
|
||||
|
||||
if($_REQUEST['record'] != '')
|
||||
{
|
||||
//Added to display the ticket comments information
|
||||
$smarty->assign("COMMENT_BLOCK",$focus->getCommentInformation($_REQUEST['record']));
|
||||
}
|
||||
$smarty->assign("DUPLICATE",vtlib_purify($_REQUEST['isDuplicate']));
|
||||
|
||||
global $adb;
|
||||
// Module Sequence Numbering
|
||||
$mod_seq_field = getModuleSequenceField($currentModule);
|
||||
if($focus->mode != 'edit' && $mod_seq_field != null) {
|
||||
$autostr = getTranslatedString('MSG_AUTO_GEN_ON_SAVE');
|
||||
$mod_seq_string = $adb->pquery("SELECT prefix, cur_id from vtiger_modentity_num where semodule = ? and active=1",array($currentModule));
|
||||
$mod_seq_prefix = $adb->query_result($mod_seq_string,0,'prefix');
|
||||
$mod_seq_no = $adb->query_result($mod_seq_string,0,'cur_id');
|
||||
if($adb->num_rows($mod_seq_string) == 0 || $adb->num_rows($mod_seq_string) == 0 || $focus->checkModuleSeqNumber($focus->table_name, $mod_seq_field['column'], $mod_seq_prefix.$mod_seq_no))
|
||||
echo '<br><font color="#FF0000"><b>'. getTranslatedString('LBL_DUPLICATE'). ' '. getTranslatedString($mod_seq_field['label'])
|
||||
.' - '. getTranslatedString('LBL_CLICK') .' <a href="index.php?module=Settings&action=CustomModEntityNo&parenttab=Settings&selmodule='.$currentModule.'">'.getTranslatedString('LBL_HERE').'</a> '
|
||||
. getTranslatedString('LBL_TO_CONFIGURE'). ' '. getTranslatedString($mod_seq_field['label']) .'</b></font>';
|
||||
else
|
||||
$smarty->assign("MOD_SEQ_ID",$autostr);
|
||||
} else {
|
||||
$smarty->assign("MOD_SEQ_ID", $focus->column_fields[$mod_seq_field['name']]);
|
||||
}
|
||||
// END
|
||||
|
||||
|
||||
// Gather the help information associated with fields
|
||||
$smarty->assign('FIELDHELPINFO', vtlib_getFieldHelpInfo($currentModule));
|
||||
// END
|
||||
|
||||
if($focus->mode == 'edit')
|
||||
$smarty->display("salesEditView.tpl");
|
||||
else
|
||||
$smarty->display("CreateView.tpl");
|
||||
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
/*+**********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
************************************************************************************/
|
||||
require_once('include/utils/ExportRecords.php');
|
||||
?>
|
||||
@@ -1,106 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
require_once('Smarty_setup.php');
|
||||
require_once('include/utils/utils.php');
|
||||
require_once('database/DatabaseConnection.php');
|
||||
|
||||
global $mod_strings, $app_strings, $app_list_strings;
|
||||
global $current_language, $currentModule, $current_userid, $theme;
|
||||
|
||||
require_once('themes/'.$theme.'/layout_utils.php');
|
||||
|
||||
$req_module = vtlib_purify($_REQUEST['module']);
|
||||
$focus = CRMEntity::getInstance($req_module);
|
||||
|
||||
$return_module=vtlib_purify($_REQUEST['module']);
|
||||
$delete_idstring=vtlib_purify($_REQUEST['idlist']);
|
||||
$parenttab = getParenttab();
|
||||
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
|
||||
$ids_list = array();
|
||||
$errormsg = '';
|
||||
if(isset($_REQUEST['del_rec']))
|
||||
{
|
||||
$url = getBasic_Advance_SearchURL();
|
||||
$delete_id_array=explode(",",$delete_idstring,-1);
|
||||
|
||||
foreach ($delete_id_array as $id)
|
||||
{
|
||||
if(isPermitted($req_module,'Delete',$id) == 'yes') {
|
||||
$sql="update vtiger_crmentity set deleted=1 where crmid=?";
|
||||
$result = $adb->pquery($sql, array($id));
|
||||
DeleteEntity($req_module,$return_module,$focus,$id,"");
|
||||
}
|
||||
else {
|
||||
$ids_list[] = $id;
|
||||
}
|
||||
}
|
||||
if(count($ids_list) > 0) {
|
||||
$ret = getEntityName($req_module,$ids_list);
|
||||
if(count($ret) > 0)
|
||||
{
|
||||
$errormsg = implode(',',$ret);
|
||||
}
|
||||
echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
|
||||
echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 55%; position: relative; z-index: 10000000;'>
|
||||
|
||||
<table border='0' cellpadding='5' cellspacing='0' width='98%'>
|
||||
<tbody><tr>
|
||||
<td rowspan='2' width='11%'><img src='". vtiger_imageurl('denied.gif', $theme) ."' ></td>
|
||||
<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'>
|
||||
<span class='genHeaderSmall'>$app_strings[LBL_DUP_PERMISSION] $req_module $errormsg</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='small' align='right' nowrap='nowrap'>
|
||||
<a href='javascript:window.location.reload();'>$app_strings[LBL_GO_BACK]</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</div>";
|
||||
echo "</td></tr></table>";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
include("include/saveMergeCriteria.php");
|
||||
$ret_arr=getDuplicateRecordsArr($req_module);
|
||||
|
||||
$fld_values=$ret_arr[0];
|
||||
$total_num_group=count($fld_values);
|
||||
$fld_name=$ret_arr[1];
|
||||
$ui_type=$ret_arr[2];
|
||||
|
||||
$smarty->assign("NAVIGATION",$ret_arr["navigation"]);//Added for page navigation
|
||||
$smarty->assign("MODULE",$req_module);
|
||||
$smarty->assign("NUM_GROUP",$total_num_group);
|
||||
$smarty->assign("FIELD_NAMES",$fld_name);
|
||||
$smarty->assign("CATEGORY",$parenttab);
|
||||
$smarty->assign("ALL_VALUES",$fld_values);
|
||||
if(isPermitted($req_module,'Delete','') == 'yes')
|
||||
$button_del = $app_strings['LBL_MASS_DELETE'];
|
||||
$smarty->assign("DELETE",$button_del);
|
||||
|
||||
$smarty->assign("MOD", return_module_language($current_language,$req_module));
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH",$image_path);
|
||||
$smarty->assign("APP", $app_strings);
|
||||
$smarty->assign("CMOD", $mod_strings);
|
||||
$smarty->assign("MODE",'view');
|
||||
if(isset($_REQUEST['button_view']))
|
||||
{
|
||||
$smarty->assign("VIEW",'true');
|
||||
}
|
||||
if(isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '')
|
||||
$smarty->display("FindDuplicateAjax.tpl");
|
||||
else
|
||||
$smarty->display('FindDuplicateDisplay.tpl');
|
||||
|
||||
?>
|
||||
@@ -1,80 +0,0 @@
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
document.write("<script type='text/javascript' src='include/js/Merge.js'></"+"script>");
|
||||
function verify_data(form) {
|
||||
if(! form.createpotential.checked == true)
|
||||
{
|
||||
if (form.potential_name.value == "")
|
||||
{
|
||||
alert(alert_arr.OPPORTUNITYNAME_CANNOT_BE_EMPTY);
|
||||
return false;
|
||||
}
|
||||
if (form.closedate.value == "")
|
||||
{
|
||||
alert(alert_arr.CLOSEDATE_CANNOT_BE_EMPTY);
|
||||
return false;
|
||||
}
|
||||
return dateValidate('closedate','Potential Close Date','GECD');
|
||||
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function togglePotFields(form)
|
||||
{
|
||||
if (form.createpotential.checked == true)
|
||||
{
|
||||
form.potential_name.disabled = true;
|
||||
form.closedate.disabled = true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
form.potential_name.disabled = false;
|
||||
form.closedate.disabled = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function toggleAssignType(currType)
|
||||
{
|
||||
if (currType=="U")
|
||||
{
|
||||
getObj("assign_user").style.display="block"
|
||||
getObj("assign_team").style.display="none"
|
||||
}
|
||||
else
|
||||
{
|
||||
getObj("assign_user").style.display="none"
|
||||
getObj("assign_team").style.display="block"
|
||||
}
|
||||
}
|
||||
|
||||
function set_return(product_id, product_name) {
|
||||
if(document.getElementById('from_link').value != '') {
|
||||
window.opener.document.QcEditView.parent_name.value = product_name;
|
||||
window.opener.document.QcEditView.parent_id.value = product_id;
|
||||
} else {
|
||||
window.opener.document.EditView.parent_name.value = product_name;
|
||||
window.opener.document.EditView.parent_id.value = product_id;
|
||||
}
|
||||
}
|
||||
|
||||
function set_return_todo(product_id, product_name) {
|
||||
if(document.getElementById('from_link').value != '') {
|
||||
window.opener.document.QcEditView.task_parent_name.value = product_name;
|
||||
window.opener.document.QcEditView.task_parent_id.value = product_id;
|
||||
} else {
|
||||
window.opener.document.createTodo.task_parent_name.value = product_name;
|
||||
window.opener.document.createTodo.task_parent_id.value = product_id;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
require_once('include/Ajax/CommonAjax.php');
|
||||
?>
|
||||
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
include('modules/Import/index.php');
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
/** Function to get the list of tickets for the currently loggedin user
|
||||
**/
|
||||
|
||||
function getMyTickets($maxval,$calCnt)
|
||||
{
|
||||
global $log;
|
||||
$log->debug("Entering getMyTickets() method ...");
|
||||
global $current_user;
|
||||
global $theme;
|
||||
global $current_language;
|
||||
global $adb;
|
||||
$current_module_strings = return_module_language($current_language, 'HelpDesk');
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path="themes/images/";
|
||||
|
||||
$search_query = "SELECT vtiger_troubletickets.*, vtiger_crmentity.*
|
||||
FROM vtiger_troubletickets
|
||||
INNER JOIN vtiger_crmentity on vtiger_crmentity.crmid = vtiger_troubletickets.ticketid
|
||||
INNER JOIN vtiger_users on vtiger_users.id = vtiger_crmentity.smownerid
|
||||
where vtiger_crmentity.smownerid = ? and vtiger_crmentity.deleted = 0 and ".
|
||||
"vtiger_troubletickets.ticketid > 0 and vtiger_troubletickets.status <> 'Closed' ".
|
||||
"AND vtiger_crmentity.setype='HelpDesk' ORDER BY createdtime DESC";
|
||||
|
||||
$search_query .= " LIMIT 0," . $adb->sql_escape_string($maxval);
|
||||
|
||||
|
||||
if($calCnt == 'calculateCnt') {
|
||||
$list_result_rows = $adb->pquery(mkCountQuery($search_query), array($current_user->id));
|
||||
return $adb->query_result($list_result_rows, 0, 'count');
|
||||
}
|
||||
|
||||
$tktresult = $adb->pquery($search_query, array($current_user->id));
|
||||
if($adb->num_rows($tktresult))
|
||||
{
|
||||
$title=array();
|
||||
$title[]='myTickets.gif';
|
||||
$title[]=$current_module_strings['LBL_MY_TICKETS'];
|
||||
$title[]='home_mytkt';
|
||||
|
||||
$header=array();
|
||||
$header[]=$current_module_strings['LBL_SUBJECT'];
|
||||
$header[]=$current_module_strings['Related To'];
|
||||
|
||||
$noofrows = $adb->num_rows($tktresult);
|
||||
for ($i=0; $i<$adb->num_rows($tktresult); $i++)
|
||||
{
|
||||
$value=array();
|
||||
$ticketid = $adb->query_result($tktresult,$i,"ticketid");
|
||||
$viewstatus = $adb->query_result($tktresult,$i,"viewstatus");
|
||||
if($viewstatus == 'Unread')
|
||||
$value[]= '<a style="color:red;" href="index.php?action=DetailView&module=HelpDesk&record='.substr($adb->query_result($tktresult,$i,"ticketid"),0,20).'">'.$adb->query_result($tktresult,$i,"title").'</a>';
|
||||
elseif($viewstatus == 'Marked')
|
||||
$value[]= '<a style="color:yellow;" href="index.php?action=DetailView&module=HelpDesk&record='.substr($adb->query_result($tktresult,$i,"ticketid"),0,20).'">'.$adb->query_result($tktresult,$i,"title").'</a>';
|
||||
else
|
||||
$value[]= '<a href="index.php?action=DetailView&module=HelpDesk&record='.substr($adb->query_result($tktresult,$i,"ticketid"),0,20).'">'.substr($adb->query_result($tktresult,$i,"title"),0,20).'</a>';
|
||||
|
||||
$parent_id = $adb->query_result($tktresult,$i,"parent_id");
|
||||
$parent_name = '';
|
||||
if($parent_id != '' && $parent_id != NULL)
|
||||
{
|
||||
$parent_name = getParentLink($parent_id);
|
||||
}
|
||||
|
||||
$value[]=$parent_name;
|
||||
$entries[$ticketid]=$value;
|
||||
}
|
||||
|
||||
$search_qry = "&query=true&Fields0=ticketstatus&Condition0=n&Srch_value0=closed&Fields1=assigned_user_id&Condition1=e&Srch_value1=".$current_user->column_fields['user_name']."&searchtype=advance&search_cnt=2&matchtype=all";
|
||||
|
||||
$values=Array('ModuleName'=>'HelpDesk','Title'=>$title,'Header'=>$header,'Entries'=>$entries,'search_qry'=>$search_qry);
|
||||
if ( ($display_empty_home_blocks && $noofrows == 0 ) || ($noofrows>0) )
|
||||
{
|
||||
$log->debug("Exiting getMyTickets method ...");
|
||||
return $values;
|
||||
}
|
||||
}
|
||||
$log->debug("Exiting getMyTickets method ...");
|
||||
}
|
||||
|
||||
/** Function to get the parent (Account or Contact) link
|
||||
* @param int $parent_id -- parent id of the ticket (accountid or contactid)
|
||||
* return string $parent_name -- return the parent name as a link
|
||||
**/
|
||||
function getParentLink($parent_id)
|
||||
{
|
||||
global $log;
|
||||
$log->debug("Entering getParentLink(".$parent_id.") method ...");
|
||||
global $adb;
|
||||
|
||||
// Static caching
|
||||
static $__cache_listtickets_parentlink = Array();
|
||||
if(isset($__cache_listtickets_parentlink[$parent_id])) {
|
||||
return $__cache_listtickets_parentlink[$parent_id];
|
||||
}
|
||||
|
||||
$sql = "select setype from vtiger_crmentity where crmid=?";
|
||||
$parent_module = $adb->query_result($adb->pquery($sql, array($parent_id)),0,'setype');
|
||||
|
||||
if($parent_module == 'Contacts')
|
||||
{
|
||||
$sql = "select firstname,lastname from vtiger_contactdetails where contactid=?";
|
||||
$res = $adb->pquery($sql, array($parent_id));
|
||||
$parentname = $adb->query_result($res,0,'firstname');
|
||||
$parentname .= ' '.$adb->query_result($res,0,'lastname');
|
||||
$parent_name = '<a href="index.php?action=DetailView&module='.$parent_module.'&record='.$parent_id.'">'.$parentname.'</a>';
|
||||
}
|
||||
if($parent_module == 'Accounts')
|
||||
{
|
||||
$sql = "select accountname from vtiger_account where accountid=?";
|
||||
$parentname = $adb->query_result($adb->pquery($sql, array($parent_id)),0,'accountname');
|
||||
$parent_name = '<a href="index.php?action=DetailView&module='.$parent_module.'&record='.$parent_id.'">'.$parentname.'</a>';
|
||||
}
|
||||
|
||||
// Add to cache
|
||||
$__cache_listtickets_parentlink[$parent_id] = $parent_name;
|
||||
|
||||
$log->debug("Exiting getParentLink method ...");
|
||||
return $parent_name;
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
/*+*******************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*********************************************************************************/
|
||||
require_once 'include/ListView/ListViewPagging.php';
|
||||
?>
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
/*+**********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
************************************************************************************/
|
||||
|
||||
global $mod_strings,$app_strings,$theme,$currentModule,$current_user;
|
||||
|
||||
require_once('Smarty_setup.php');
|
||||
require_once('include/utils/utils.php');
|
||||
|
||||
$focus = CRMEntity::getInstance($currentModule);
|
||||
$focus->mode = '';
|
||||
$mode = 'mass_edit';
|
||||
$disp_view = getView($focus->mode);
|
||||
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
$smarty->assign("BLOCKS",getBlocks($currentModule,$disp_view,$mode,$focus->column_fields));
|
||||
$smarty->assign("IDS",$_REQUEST['idstring']);
|
||||
$smarty->assign("MASS_EDIT","1");
|
||||
$smarty->assign("MODULE",$currentModule);
|
||||
$smarty->assign("APP",$app_strings);
|
||||
$smarty->assign("CATEGORY",getParentTab());
|
||||
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH", $image_path);
|
||||
|
||||
// Field Validation Information
|
||||
$tabid = getTabid($currentModule);
|
||||
$validationData = getDBValidationData($focus->tab_name,$tabid);
|
||||
$validationArray = split_validationdataArray($validationData);
|
||||
|
||||
$smarty->assign("VALIDATION_DATA_FIELDNAME",$validationArray['fieldname']);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$validationArray['datatype']);
|
||||
$smarty->assign("VALIDATION_DATA_FIELDLABEL",$validationArray['fieldlabel']);
|
||||
|
||||
$smarty->display('MassEditForm.tpl');
|
||||
|
||||
?>
|
||||
@@ -1,71 +0,0 @@
|
||||
<?php
|
||||
/*+********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*********************************************************************************/
|
||||
global $currentModule;
|
||||
|
||||
$focus = CRMEntity::getInstance($currentModule);
|
||||
|
||||
$idlist= vtlib_purify($_REQUEST['massedit_recordids']);
|
||||
$viewid = vtlib_purify($_REQUEST['viewname']);
|
||||
$return_module = vtlib_purify($_REQUEST['massedit_module']);
|
||||
$return_action = 'index';
|
||||
|
||||
global $rstart;
|
||||
//Added to fix 4600
|
||||
$url = getBasic_Advance_SearchURL();
|
||||
|
||||
if(isset($_REQUEST['start']) && $_REQUEST['start']!=''){
|
||||
$rstart = "&start=".vtlib_purify($_REQUEST['start']);
|
||||
}
|
||||
|
||||
if(isset($idlist)) {
|
||||
$recordids = explode(';', $idlist);
|
||||
for($index = 0; $index < count($recordids); ++$index) {
|
||||
$recordid = $recordids[$index];
|
||||
if($recordid == '') continue;
|
||||
if(isPermitted($currentModule,'EditView',$recordid) == 'yes') {
|
||||
|
||||
// Save each module record with update value.
|
||||
$focus->retrieve_entity_info($recordid, $currentModule);
|
||||
$focus->mode = 'edit';
|
||||
$focus->id = $recordid;
|
||||
foreach($focus->column_fields as $fieldname => $val)
|
||||
{
|
||||
if(isset($_REQUEST[$fieldname."_mass_edit_check"]))
|
||||
{
|
||||
if($fieldname == 'assigned_user_id'){
|
||||
if($_REQUEST['assigntype'] == 'U') {
|
||||
$value = $_REQUEST['assigned_user_id'];
|
||||
} elseif($_REQUEST['assigntype'] == 'T') {
|
||||
$value = $_REQUEST['assigned_group_id'];
|
||||
}
|
||||
} else {
|
||||
if(is_array($_REQUEST[$fieldname]))
|
||||
$value = $_REQUEST[$fieldname];
|
||||
else
|
||||
$value = trim($_REQUEST[$fieldname]);
|
||||
}
|
||||
$focus->column_fields[$fieldname] = $value;
|
||||
}
|
||||
else{
|
||||
$focus->column_fields[$fieldname] = decode_html($focus->column_fields[$fieldname]);
|
||||
}
|
||||
}
|
||||
// Avoiding comment update on ticket
|
||||
$focus->column_fields['comments'] = '';
|
||||
$_REQUEST['comments'] = '';
|
||||
// END
|
||||
$focus->save($currentModule);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$parenttab = getParentTab();
|
||||
header("Location: index.php?module=$return_module&action=$return_action&parenttab=$parenttab$rstart");
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
require_once('Popup.php');
|
||||
?>
|
||||
@@ -1,134 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
require_once('Smarty_setup.php');
|
||||
require_once('database/DatabaseConnection.php');
|
||||
require_once('modules/Users/Users.php');
|
||||
require_once('include/utils/utils.php');
|
||||
|
||||
$module = vtlib_purify($_REQUEST['module']);
|
||||
$focus = CRMEntity::getInstance($module);
|
||||
|
||||
global $mod_strings, $app_strings, $app_list_strings;
|
||||
global $current_language, $currentModule, $theme;
|
||||
global $adb;
|
||||
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
$mode = $_REQUEST['mergemode'];
|
||||
|
||||
if($mode == 'mergesave') {
|
||||
|
||||
$return_module=vtlib_purify($_REQUEST['return_module']);
|
||||
$action=vtlib_purify($_REQUEST['action']);
|
||||
$return_action=vtlib_purify($_REQUEST['return_action']);
|
||||
$parenttab=vtlib_purify($_REQUEST['parent']);
|
||||
$merge_id=vtlib_purify($_REQUEST['record']);
|
||||
$recordids=vtlib_purify($_REQUEST['pass_rec']);
|
||||
|
||||
$result = $adb->pquery("SELECT count(*) AS count FROM vtiger_crmentity WHERE crmid=? and deleted=0", array($merge_id));
|
||||
$count = $adb->query_result($result,0,'count');
|
||||
|
||||
if($count > 0)
|
||||
{
|
||||
// First, save the primary record
|
||||
$focus->mode="edit";
|
||||
setObjectValuesFromRequest($focus);
|
||||
$focus->save($module);
|
||||
$rec_values=$focus->column_fields;
|
||||
|
||||
// Remove the id of primary record from the list of records to be deleted.
|
||||
$del_value=explode(",",$recordids,-1);
|
||||
$offset = array_search($merge_id,$del_value);
|
||||
unset($del_value[$offset]);
|
||||
|
||||
// Transfer the related lists of the records to be deleted, to the primary record's related list
|
||||
if(method_exists($focus, 'transferRelatedRecords')){
|
||||
$focus->transferRelatedRecords($module,$del_value,$merge_id);
|
||||
} else {
|
||||
transferRelatedRecords($module,$del_value,$merge_id);
|
||||
}
|
||||
|
||||
// Delete the records by id specified in the list
|
||||
foreach($del_value as $value)
|
||||
{
|
||||
DeleteEntity($_REQUEST['module'],$_REQUEST['return_module'],$focus,$value,"");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<script>
|
||||
window.self.close();window.opener.location.href=window.opener.location.href;
|
||||
</script>
|
||||
<?php
|
||||
} elseif ($mode == 'mergefields') {
|
||||
|
||||
$idstring=vtlib_purify($_REQUEST['passurl']);
|
||||
$parent_tab=getParentTab();
|
||||
|
||||
$exploded_id=explode(",",$idstring,-1);
|
||||
$record_count = count($exploded_id);
|
||||
|
||||
$smarty = new vtigerCRM_Smarty;
|
||||
$smarty->assign("EDIT_DUPLICATE","");
|
||||
if($record_count == 2) {
|
||||
if(isPermitted($currentModule,"EditView",$exploded_id[0]) == 'yes' && isPermitted($currentModule,"EditView",$exploded_id[1]) == 'yes'
|
||||
&& isPermitted($currentModule,"Delete",$exploded_id[0]) == 'yes' && isPermitted($currentModule,"Delete",$exploded_id[1]) == 'yes')
|
||||
$smarty->assign("EDIT_DUPLICATE","permitted");
|
||||
}
|
||||
else {
|
||||
if(isPermitted($currentModule,"EditView",$exploded_id[0]) == 'yes' && isPermitted($currentModule,"EditView",$exploded_id[1]) == 'yes' && isPermitted($currentModule,"EditView",$exploded_id[2]) == 'yes'
|
||||
&& isPermitted($currentModule,"Delete",$exploded_id[0]) == 'yes' && isPermitted($currentModule,"Delete",$exploded_id[1]) == 'yes' && isPermitted($currentModule,"Delete",$exploded_id[2]) == 'yes')
|
||||
$smarty->assign("EDIT_DUPLICATE","permitted");
|
||||
}
|
||||
|
||||
$all_values_array=getRecordValues($exploded_id,$module);
|
||||
$all_values=$all_values_array[0];
|
||||
$js_arr_val=$all_values_array[1];
|
||||
$fld_array=$all_values_array[2];
|
||||
$js_arr=implode(",",$js_arr_val);
|
||||
|
||||
$imported_records = Array();
|
||||
$sql="select bean_id from vtiger_users_last_import where bean_type=? and deleted=0";
|
||||
$result = $adb->pquery($sql, array($module));
|
||||
$num_rows=$adb->num_rows($result);
|
||||
$count=0;
|
||||
for($i=0; $i<$num_rows;$i++)
|
||||
{
|
||||
foreach($exploded_id as $value)
|
||||
if($value == $adb->query_result($result,$i,"bean_id"))
|
||||
$count++;
|
||||
array_push($imported_records,$adb->query_result($result,$i,"bean_id"));
|
||||
}
|
||||
|
||||
if ($record_count == $count)
|
||||
$no_existing=1;
|
||||
else
|
||||
$no_existing=0;
|
||||
|
||||
$smarty->assign("MOD", $mod_strings);
|
||||
$smarty->assign("APP", $app_strings);
|
||||
$smarty->assign("RECORD_COUNT",$record_count);
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH", $image_path);
|
||||
$smarty->assign("MODULENAME", $module);
|
||||
$smarty->assign("PARENT_TAB", $parent_tab);
|
||||
$smarty->assign("JS_ARRAY", $js_arr);
|
||||
$smarty->assign("ID_ARRAY", $exploded_id);
|
||||
$smarty->assign("IDSTRING",$idstring);
|
||||
$smarty->assign("ALLVALUES", $all_values);
|
||||
$smarty->assign("FIELD_ARRAY", $fld_array);
|
||||
$smarty->assign("IMPORTED_RECORDS", $imported_records);
|
||||
$smarty->assign("NO_EXISTING", $no_existing);
|
||||
$smarty->display("MergeFields.tpl");
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
require_once('include/quickcreate.php');
|
||||
?>
|
||||
@@ -1,193 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header: /advent/projects/wesat/vtiger_crm/vtigercrm/modules/HelpDesk/Save.php,v 1.8 2005/04/25 05:21:46 Mickie Exp $
|
||||
* Description: Saves an Account record and then redirects the browser to the
|
||||
* defined return URL.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________..
|
||||
********************************************************************************/
|
||||
|
||||
require_once('modules/HelpDesk/HelpDesk.php');
|
||||
require_once('include/logging.php');
|
||||
require_once('include/database/PearDatabase.php');
|
||||
|
||||
$focus = new HelpDesk();
|
||||
|
||||
//added to fix 4600
|
||||
$search=vtlib_purify($_REQUEST['search_url']);
|
||||
|
||||
setObjectValuesFromRequest($focus);
|
||||
global $adb,$mod_strings;
|
||||
//Added to update the ticket history
|
||||
//Before save we have to construct the update log.
|
||||
$mode = $_REQUEST['mode'];
|
||||
if($mode == 'edit')
|
||||
{
|
||||
$usr_qry = $adb->pquery("select * from vtiger_crmentity where crmid=?", array($focus->id));
|
||||
$old_user_id = $adb->query_result($usr_qry,0,"smownerid");
|
||||
}
|
||||
$grp_name = getGroupName($_REQUEST['assigned_group_id']);
|
||||
|
||||
if($_REQUEST['assigntype'] == 'U') {
|
||||
$focus->column_fields['assigned_user_id'] = $_REQUEST['assigned_user_id'];
|
||||
} elseif($_REQUEST['assigntype'] == 'T'){
|
||||
$focus->column_fields['assigned_user_id'] = $_REQUEST['assigned_group_id'];
|
||||
}
|
||||
|
||||
$fldvalue = $focus->constructUpdateLog($focus, $mode, $grp_name, $_REQUEST['assigntype']);
|
||||
$fldvalue = from_html($fldvalue,($mode == 'edit')?true:false);
|
||||
|
||||
$focus->save("HelpDesk");
|
||||
|
||||
//After save the record, we should update the log
|
||||
$adb->pquery("update vtiger_troubletickets set update_log=? where ticketid=?", array($fldvalue,$focus->id));
|
||||
|
||||
$return_id = $focus->id;
|
||||
|
||||
$parenttab = getParentTab();
|
||||
if(isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != "") $return_module = vtlib_purify($_REQUEST['return_module']);
|
||||
else $return_module = "HelpDesk";
|
||||
if(isset($_REQUEST['return_action']) && $_REQUEST['return_action'] != "") $return_action = vtlib_purify($_REQUEST['return_action']);
|
||||
else $return_action = "DetailView";
|
||||
if(isset($_REQUEST['return_id']) && $_REQUEST['return_id'] != "") $return_id = vtlib_purify($_REQUEST['return_id']);
|
||||
|
||||
if($_REQUEST['mode'] == 'edit')
|
||||
$reply = 'Re : ';
|
||||
else
|
||||
$reply = '';
|
||||
|
||||
$subject = $focus->column_fields['ticket_no'] . ' [ '.$mod_strings['LBL_TICKET_ID'].' : '.$focus->id.' ] '.$reply.$_REQUEST['ticket_title'];
|
||||
$bodysubject = $mod_strings['Ticket No'] .":<br>" . $focus->column_fields['ticket_no'] . "<br>" . $mod_strings['LBL_TICKET_ID'].' : '.$focus->id.'<br> '.$mod_strings['LBL_SUBJECT'].$_REQUEST['ticket_title'];
|
||||
|
||||
$emailoptout = 0;
|
||||
|
||||
//To get the emailoptout vtiger_field value and then decide whether send mail about the tickets or not
|
||||
if($focus->column_fields['parent_id'] != '')
|
||||
{
|
||||
$parent_module = getSalesEntityType($focus->column_fields['parent_id']);
|
||||
if($parent_module == 'Contacts')
|
||||
{
|
||||
$result = $adb->pquery("select * from vtiger_contactdetails where contactid=?", array($focus->column_fields['parent_id']));
|
||||
$emailoptout = $adb->query_result($result,0,'emailoptout');
|
||||
$contactname = $adb->query_result($result,0,'firstname').' '.$adb->query_result($result,0,'lastname');
|
||||
$parentname = $contactname;
|
||||
$contact_mailid = $adb->query_result($result,0,'email');
|
||||
}
|
||||
if($parent_module == 'Accounts')
|
||||
{
|
||||
$result = $adb->pquery("select * from vtiger_account where accountid=?", array($focus->column_fields['parent_id']));
|
||||
$emailoptout = $adb->query_result($result,0,'emailoptout');
|
||||
$parentname = $adb->query_result($result,0,'accountname');
|
||||
}
|
||||
}
|
||||
|
||||
//Get the status of the vtiger_portal user. if the customer is active then send the vtiger_portal link in the mail
|
||||
if($contact_mailid != '')
|
||||
{
|
||||
$sql = "select * from vtiger_portalinfo where user_name=?";
|
||||
$isactive = $adb->query_result($adb->pquery($sql, array($contact_mailid)),0,'isactive');
|
||||
}
|
||||
if($isactive == 1)
|
||||
{
|
||||
$url = "<a href='".$PORTAL_URL."/index.php?module=HelpDesk&action=index&ticketid=".$focus->id."&fun=detail'>".$mod_strings['LBL_TICKET_DETAILS']."</a>";
|
||||
$email_body = $bodysubject.'<br><br>'.getPortalInfo_Ticket($focus->id,$_REQUEST['ticket_title'],$contactname,$url,$_REQUEST['mode']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['sub']=$_REQUEST['ticket_title'];
|
||||
$data['ticketno']=$focus->column_fields['ticket_no'];
|
||||
$data['parent_name']=$parentname;
|
||||
$data['status']=$focus->column_fields['ticketstatus'];
|
||||
$data['category']=$focus->column_fields['ticketcategories'];
|
||||
$data['severity'] = $focus->column_fields['ticketseverities'];
|
||||
$data['priority']=$focus->column_fields['ticketpriorities'];
|
||||
$data['description']=$focus->column_fields['description'];
|
||||
$data['solution'] = $focus->column_fields['solution'];
|
||||
$data['mode']= $_REQUEST['mode'];
|
||||
$email_body = getTicketDetails($focus->id,$data);
|
||||
}
|
||||
$_REQUEST['return_id'] = $return_id;
|
||||
|
||||
if($_REQUEST['return_module'] == 'Products' & $_REQUEST['product_id'] != '' && $focus->id != '')
|
||||
$return_id = vtlib_purify($_REQUEST['product_id']);
|
||||
|
||||
//send mail to the assigned to user and the parent to whom this ticket is assigned
|
||||
//only if NOTIFY_OWNER_EMAILS is true
|
||||
if(PerformancePrefs::getBoolean('NOTIFY_OWNER_EMAILS', true) === true){
|
||||
//send mail to the assigned to user and the parent to whom this ticket is assigned
|
||||
require_once('modules/Emails/mail.php');
|
||||
$user_emailid = getUserEmailId('id',$focus->column_fields['assigned_user_id']);
|
||||
|
||||
if($user_emailid != '')
|
||||
{
|
||||
if($_REQUEST['mode'] != 'edit')
|
||||
{
|
||||
$mail_status = send_mail('HelpDesk',$user_emailid,$HELPDESK_SUPPORT_NAME,$HELPDESK_SUPPORT_EMAIL_ID,$subject,$email_body);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(($focus->column_fields['ticketstatus'] == $mod_strings["Closed"]) || ($focus->column_fields['comments'] != '') || ($_REQUEST['helpdesk_solution'] != $_REQUEST['solution']) || ($focus->column_fields['assigned_user_id'] != $old_user_id))
|
||||
{
|
||||
$mail_status = send_mail('HelpDesk',$user_emailid,$HELPDESK_SUPPORT_NAME,$HELPDESK_SUPPORT_EMAIL_ID,$subject,$email_body);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$mail_status_str = $user_emailid."=".$mail_status."&&&";
|
||||
}
|
||||
else
|
||||
{
|
||||
$mail_status_str = "'".$to_email."'=0&&&";
|
||||
}
|
||||
//added condition to check the emailoptout(this is for contacts and vtiger_accounts.)
|
||||
if($emailoptout == 0)
|
||||
{
|
||||
//send mail to parent
|
||||
if($_REQUEST['parent_id'] != '' && $_REQUEST['parent_type'] != '')
|
||||
{
|
||||
$parentmodule = $_REQUEST['parent_type'];
|
||||
$parentid = $_REQUEST['parent_id'];
|
||||
|
||||
$parent_email = getParentMailId($parentmodule,$parentid);
|
||||
if($_REQUEST['mode'] != 'edit')
|
||||
{
|
||||
$mail_status = send_mail('HelpDesk',$parent_email,$HELPDESK_SUPPORT_NAME,$HELPDESK_SUPPORT_EMAIL_ID,$subject,$email_body);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(( $focus->column_fields['ticketstatus']== $mod_strings["Closed"]) || ($focus->column_fields['comments'] != '' ) || ($_REQUEST['helpdesk_solution'] != $_REQUEST['solution']))
|
||||
{
|
||||
$mail_status = send_mail('HelpDesk',$parent_email,$HELPDESK_SUPPORT_NAME,$HELPDESK_SUPPORT_EMAIL_ID,$subject,$email_body);
|
||||
}
|
||||
}
|
||||
$mail_status_str .= $parent_email."=".$mail_status."&&&";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$adb->println("'".$parentname."' is not want to get the email about the ticket details as emailoptout is selected");
|
||||
}
|
||||
|
||||
if ($mail_status != '') {
|
||||
$mail_error_status = getMailErrorString($mail_status_str);
|
||||
}
|
||||
}
|
||||
//code added for returning back to the current view after edit from list view
|
||||
if($_REQUEST['return_viewname'] == '') $return_viewname='0';
|
||||
if($_REQUEST['return_viewname'] != '')$return_viewname=vtlib_purify($_REQUEST['return_viewname']);
|
||||
header("Location: index.php?action=$return_action&module=$return_module&parenttab=$parenttab&record=$return_id&$mail_error_status&viewname=$return_viewname&start=".vtlib_purify($_REQUEST['pagenumber']).$search);
|
||||
?>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
/*+**********************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
************************************************************************************/
|
||||
|
||||
include('modules/Vtiger/Settings.php');
|
||||
|
||||
?>
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
require_once('include/Ajax/TagCloud.php')
|
||||
?>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
/*+*******************************************************************************
|
||||
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*********************************************************************************/
|
||||
require_once 'modules/Home/UnifiedSearch.php';
|
||||
?>
|
||||
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
********************************************************************************/
|
||||
|
||||
global $theme;
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
include ('modules/HelpDesk/ListView.php');
|
||||
?>
|
||||
@@ -1,224 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header$
|
||||
* Description: Defines the English language pack
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________..
|
||||
********************************************************************************/
|
||||
|
||||
$mod_strings = Array(
|
||||
// Added in release 4.0
|
||||
'LBL_MODULE_NAME'=>'Trouble Tickets',
|
||||
'LBL_GROUP'=>'Group',
|
||||
'LBL_ACCOUNT_NAME'=>'Account Name',
|
||||
'LBL_CONTACT_NAME'=>'Contact Name',
|
||||
'LBL_SUBJECT'=>'Subject',
|
||||
'LBL_NEW_FORM_TITLE' => 'New Ticket',
|
||||
'LBL_DESCRIPTION'=>'Description',
|
||||
'NTC_DELETE_CONFIRMATION'=>'Are you sure you want to delete this record?',
|
||||
'LBL_CUSTOM_FIELD_SETTINGS'=>'Custom Field Settings:',
|
||||
'LBL_PICKLIST_FIELD_SETTINGS'=>'Picklist Field Settings:',
|
||||
'Leads'=>'Lead',
|
||||
'Accounts'=>'Account',
|
||||
'Contacts'=>'Contact',
|
||||
'Opportunities'=>'Opportunity',
|
||||
'LBL_CUSTOM_INFORMATION'=>'Custom Information',
|
||||
'LBL_DESCRIPTION_INFORMATION'=>'Description Information',
|
||||
|
||||
'LBL_ACCOUNT'=>'Account',
|
||||
'LBL_OPPURTUNITY'=>'Oppurtunity',
|
||||
'LBL_PRODUCT'=>'Product',
|
||||
|
||||
'LBL_COLON'=>':',
|
||||
'LBL_TICKET'=>'Ticket',
|
||||
'LBL_CONTACT'=>'Contact',
|
||||
'LBL_STATUS'=>'Status',
|
||||
'LBL_ASSIGNED_TO'=>'Assigned To',
|
||||
'LBL_FAQ'=>'FAQ',
|
||||
'LBL_VIEW_FAQS'=>'View FAQs',
|
||||
'LBL_ADD_FAQS'=>'Add FAQs',
|
||||
'LBL_FAQ_CATEGORIES'=>'FAQ Categories',
|
||||
|
||||
'LBL_PRIORITY'=>'Priority',
|
||||
'LBL_CATEGORY'=>'Category',
|
||||
|
||||
'LBL_ANSWER'=>'Answer',
|
||||
'LBL_COMMENTS'=>'COMMENTS',
|
||||
|
||||
'LBL_AUTHOR'=>'Author',
|
||||
'LBL_QUESTION'=>'Question',
|
||||
|
||||
//Added vtiger_fields for File Attachment and Mail send in Tickets
|
||||
'LBL_ATTACHMENTS'=>'Attachments',
|
||||
'LBL_NEW_ATTACHMENT'=>'New Attachment',
|
||||
'LBL_SEND_MAIL'=>'Send Mail',
|
||||
|
||||
//Added vtiger_fields for search option in TicketsList -- 4Beta
|
||||
'LBL_CREATED_DATE'=>'Created Date',
|
||||
'LBL_IS'=>'is',
|
||||
'LBL_IS_NOT'=>'is not',
|
||||
'LBL_IS_BEFORE'=>'is before',
|
||||
'LBL_IS_AFTER'=>'is after',
|
||||
'LBL_STATISTICS'=>'Statistics',
|
||||
'LBL_TICKET_ID'=>'Ticket Id',
|
||||
'LBL_MY_TICKETS'=>'My Tickets',
|
||||
"LBL_MY_FAQ"=>"My Faq's",
|
||||
'LBL_ESTIMATED_FINISHING_TIME'=>'Estimated Finishing Time',
|
||||
'LBL_SELECT_TICKET'=>'Select Ticket',
|
||||
'LBL_CHANGE_OWNER'=>'Change Owner',
|
||||
'LBL_CHANGE_STATUS'=>'Change Status',
|
||||
'LBL_TICKET_TITLE'=>'Title',
|
||||
'LBL_TICKET_DESCRIPTION'=>'Description',
|
||||
'LBL_TICKET_CATEGORY'=>'Category',
|
||||
'LBL_TICKET_PRIORITY'=>'Priority',
|
||||
|
||||
//Added vtiger_fields after 4 -- Beta
|
||||
'LBL_NEW_TICKET'=>'New Ticket',
|
||||
'LBL_TICKET_INFORMATION'=>'Ticket Information',
|
||||
|
||||
'LBL_LIST_FORM_TITLE'=>'Tickets List',
|
||||
'LBL_SEARCH_FORM_TITLE'=>'Ticket Search',
|
||||
|
||||
//Added vtiger_fields after RC1 - Release
|
||||
'LBL_CHOOSE_A_VIEW'=>'Choose a View...',
|
||||
'LBL_ALL'=>'All',
|
||||
'LBL_LOW'=>'Low',
|
||||
'LBL_MEDIUM'=>'Medium',
|
||||
'LBL_HIGH'=>'High',
|
||||
'LBL_CRITICAL'=>'Critical',
|
||||
//Added vtiger_fields for 4GA
|
||||
'Assigned To'=>'Assigned To',
|
||||
'Contact Name'=>'Contact Name',
|
||||
'Priority'=>'Priority',
|
||||
'Status'=>'Status',
|
||||
'Category'=>'Category',
|
||||
'Update History'=>'Update History',
|
||||
'Created Time'=>'Created Time',
|
||||
'Modified Time'=>'Modified Time',
|
||||
'Title'=>'Title',
|
||||
'Description'=>'Description',
|
||||
|
||||
'LBL_TICKET_CUMULATIVE_STATISTICS'=>'Ticket Cumulative Statistics:',
|
||||
'LBL_CASE_TOPIC'=>'Case Topic',
|
||||
'LBL_OPEN'=>'Open',
|
||||
'LBL_CLOSED'=>'Closed',
|
||||
'LBL_TOTAL'=>'Total',
|
||||
'LBL_TICKET_HISTORY'=>'Ticket History',
|
||||
'LBL_CATEGORIES'=>'Categories',
|
||||
'LBL_PRIORITIES'=>'Priorities',
|
||||
'LBL_SUPPORTERS'=>'Supporters',
|
||||
|
||||
//Added vtiger_fields after 4_0_1
|
||||
'LBL_TICKET_RESOLUTION'=>'Solution Information',
|
||||
'Solution'=>'Solution',
|
||||
'Add Comment'=>'Add Comment',
|
||||
'LBL_ADD_COMMENT'=>'Add Comment',//give the same value given to the above string 'Add Comment'
|
||||
|
||||
//Added for 4.2 Release -- CustomView
|
||||
'Ticket ID'=>'Ticket ID',
|
||||
'Subject'=>'Subject',
|
||||
|
||||
//Added after 4.2 alpha
|
||||
'Severity'=>'Severity',
|
||||
'Product Name'=>'Product Name',
|
||||
'Related To'=>'Related To',
|
||||
'LBL_MORE'=>'More',
|
||||
|
||||
'LBL_TICKETS'=>'Tickets',
|
||||
|
||||
//Added on 09-12-2005
|
||||
'LBL_CUMULATIVE_STATISTICS'=>'Cumulative Statistics',
|
||||
|
||||
//Added on 12-12-2005
|
||||
'LBL_CONVERT_AS_FAQ_BUTTON_TITLE'=>'Convert As FAQ',
|
||||
'LBL_CONVERT_AS_FAQ_BUTTON_KEY'=>'C',
|
||||
'LBL_CONVERT_AS_FAQ_BUTTON_LABEL'=>'Convert As FAQ',
|
||||
'Attachment'=>'Attachment',
|
||||
'LBL_COMMENT_INFORMATION'=>'Comment Information',
|
||||
|
||||
//Added for existing picklist entries
|
||||
|
||||
'Big Problem'=>'Big Problem',
|
||||
'Small Problem'=>'Small Problem',
|
||||
'Other Problem'=>'Other Problem',
|
||||
|
||||
'Low'=>'Low',
|
||||
'Normal'=>'Normal',
|
||||
'High'=>'High',
|
||||
'Urgent'=>'Urgent',
|
||||
|
||||
'Minor'=>'Minor',
|
||||
'Major'=>'Major',
|
||||
'Feature'=>'Feature',
|
||||
'Critical'=>'Critical',
|
||||
|
||||
'Open'=>'Open',
|
||||
'In Progress'=>'In Progress',
|
||||
'Wait For Response'=>'Wait For Response',
|
||||
'Closed'=>'Closed',
|
||||
|
||||
//added to support i18n in ticket mails
|
||||
'Hi' => 'Hi',
|
||||
'Dear'=> 'Dear',
|
||||
'LBL_PORTAL_BODY_MAILINFO'=> 'The Ticket is',
|
||||
'LBL_DETAIL' => 'the details are :',
|
||||
'LBL_REGARDS'=> 'Regards',
|
||||
'LBL_TEAM'=> 'HelpDesk Team',
|
||||
'LBL_TICKET_DETAILS' => 'Ticket Details',
|
||||
'LBL_SUBJECT' => 'Subject : ',
|
||||
'created' => 'created',
|
||||
'replied' => 'replied',
|
||||
'reply'=>'There is a reply to',
|
||||
'customer_portal' => 'in the "Customer Portal" at VTiger.',
|
||||
'link' => 'You can use the following link to view the replies made:',
|
||||
'Thanks' => 'Thanks',
|
||||
'Support_team' => 'Vtiger Support Team',
|
||||
|
||||
// Added/Updated for vtiger CRM 5.0.4
|
||||
|
||||
//this label for customerportal.
|
||||
'LBL_STATUS_CLOSED' =>'Closed',//Do not convert this label. This is used to check the status. If the status 'Closed' is changed in vtigerCRM server side then you have to change in customerportal language file also.
|
||||
'LBL_STATUS_UPDATE' => 'Ticket status is updated as',
|
||||
'LBL_COULDNOT_CLOSED' => 'Ticket could not be',
|
||||
'LBL_CUSTOMER_COMMENTS' => 'Customer has provided the following additional information to your reply:',
|
||||
'LBL_RESPOND'=> 'Kindly respond to above ticket at the earliest.',
|
||||
'LBL_REGARDS' =>'Regards',
|
||||
'LBL_SUPPORT_ADMIN' => 'Support Administrator',
|
||||
'LBL_RESPONDTO_TICKETID' =>'Respond to Ticket ID',
|
||||
'LBL_CUSTOMER_PORTAL' => 'in Customer Portal - URGENT',
|
||||
'LBL_LOGIN_DETAILS' => 'Following are your Customer Portal login details :',
|
||||
'LBL_MAIL_COULDNOT_SENT' =>'Mail could not be sent',
|
||||
'LBL_USERNAME' => 'User Name :',
|
||||
'LBL_PASSWORD' => 'Password :',
|
||||
'LBL_SUBJECT_PORTAL_LOGIN_DETAILS' => 'Regarding your Customer Portal login details',
|
||||
'LBL_GIVE_MAILID' => 'Please give your email id',
|
||||
'LBL_CHECK_MAILID' => 'Please check your email id for Customer Portal',
|
||||
'LBL_LOGIN_REVOKED' => 'Your login is revoked. Please contact your admin.',
|
||||
'LBL_MAIL_SENT' => 'Mail has been sent to your mail id with the customer portal login details',
|
||||
'LBL_ALTBODY' => 'This is the body in plain text for non-HTML mail clients',
|
||||
|
||||
// Added after 5.0.4 GA
|
||||
|
||||
// Module Sequence Numbering
|
||||
'Ticket No' => 'Ticket No',
|
||||
// END
|
||||
|
||||
'Hours' => 'Hours',
|
||||
'Days' => 'Days',
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -1,221 +0,0 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header$
|
||||
* Description: Defines the English language pack
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________..
|
||||
********************************************************************************/
|
||||
|
||||
$mod_strings = Array(
|
||||
// Added in release 4.0
|
||||
'LBL_MODULE_NAME' => '服务台',
|
||||
'LBL_GROUP' => '用户组',
|
||||
'LBL_ACCOUNT_NAME' => '客户名称',
|
||||
'LBL_CONTACT_NAME' => '联系人名称',
|
||||
'LBL_SUBJECT' => '标题',
|
||||
'LBL_NEW_FORM_TITLE' => '新增事件',
|
||||
'LBL_DESCRIPTION' => '描述',
|
||||
'NTC_DELETE_CONFIRMATION' => '您确定要删除这笔记录?',
|
||||
'LBL_CUSTOM_FIELD_SETTINGS' => '自订字段设定:',
|
||||
'LBL_PICKLIST_FIELD_SETTINGS' => '列表字段设定:',
|
||||
'Leads' => '潜在客户',
|
||||
'Accounts' => '客户',
|
||||
'Contacts' => '联系人',
|
||||
'Opportunities' => '潜在案件',
|
||||
'LBL_TICKET_INFORMATION' => '事件信息',
|
||||
'LBL_CUSTOM_INFORMATION' => '自订信息',
|
||||
'LBL_DESCRIPTION_INFORMATION' => '描述信息',
|
||||
'LBL_ACCOUNT' => '客户',
|
||||
'LBL_OPPURTUNITY' => '潜在案件',
|
||||
'LBL_PRODUCT' => '商品',
|
||||
'LBL_COLON' => ':',
|
||||
|
||||
'LBL_TICKET' => '事件',
|
||||
'LBL_CONTACT' => '联系人',
|
||||
'LBL_STATUS' => '职位',
|
||||
'LBL_ASSIGNED_TO' => '负责人',
|
||||
'LBL_FAQ' => '常见问答',
|
||||
'LBL_VIEW_FAQS' => '观看问答',
|
||||
'LBL_ADD_FAQS' => '新增问答',
|
||||
'LBL_FAQ_CATEGORIES' => '问答类别',
|
||||
|
||||
'LBL_PRIORITY' => '前置',
|
||||
'LBL_CATEGORY' => '类别',
|
||||
|
||||
'LBL_ANSWER'=>'回答',
|
||||
'LBL_COMMENTS'=>'注释',
|
||||
|
||||
'LBL_AUTHOR'=>'作者',
|
||||
'LBL_QUESTION'=>'问题',
|
||||
|
||||
//Added vtiger_fields for File Attachment and Mail send in Tickets
|
||||
'LBL_ATTACHMENTS' => '附件',
|
||||
'LBL_NEW_ATTACHMENT' => '新增附件',
|
||||
'LBL_SEND_MAIL' => '寄出邮件',
|
||||
|
||||
//Added vtiger_fields for search option in TicketsList -- 4Beta
|
||||
'LBL_CREATED_DATE' => '建立日期',
|
||||
'LBL_IS' => '是',
|
||||
'LBL_IS_NOT' => '不是',
|
||||
'LBL_IS_BEFORE' => '在之前',
|
||||
'LBL_IS_AFTER' => '在之后',
|
||||
'LBL_STATISTICS' => '统计资料',
|
||||
'LBL_TICKET_ID' => '事件编号',
|
||||
'LBL_MY_TICKETS' => '我的事件',
|
||||
'LBL_MY_FAQ' => '我的问答集',
|
||||
'LBL_ESTIMATED_FINISHING_TIME' => '预估完成时间',
|
||||
'LBL_SELECT_TICKET' => '选择事件',
|
||||
'LBL_CHANGE_OWNER' => '改变拥有人',
|
||||
'LBL_CHANGE_STATUS' => '改变职位',
|
||||
'LBL_TICKET_TITLE' => '标题',
|
||||
'LBL_TICKET_DESCRIPTION' => '描述',
|
||||
'LBL_TICKET_CATEGORY' => '类别',
|
||||
'LBL_TICKET_PRIORITY' => '前置',
|
||||
|
||||
//Added vtiger_fields after 4 -- Beta
|
||||
'LBL_NEW_TICKET'=>'新增事件',
|
||||
'LBL_TICKET_INFORMATION'=>'事件信息',
|
||||
|
||||
'LBL_LIST_FORM_TITLE'=>'事件列表',
|
||||
'LBL_SEARCH_FORM_TITLE'=>'事件搜索',
|
||||
|
||||
//Added vtiger_fields after RC1 - Release
|
||||
'LBL_CHOOSE_A_VIEW'=>'选择观看...',
|
||||
'LBL_ALL' => '全部',
|
||||
'LBL_LOW' => '低',
|
||||
'LBL_MEDIUM' => '中',
|
||||
'LBL_HIGH' => '高',
|
||||
'LBL_CRITICAL' => '特急',
|
||||
//Added vtiger_fields for 4GA
|
||||
'Assigned To' => '负责人',
|
||||
'Contact Name' => '联系人名称',
|
||||
'Priority' => '前置',
|
||||
'Status' => '状态',
|
||||
'Category' => '类别',
|
||||
'Update History' => '更新记录',
|
||||
'Created Time' => '建立时间',
|
||||
'Modified Time' => '修改时间',
|
||||
'Title' => '标题',
|
||||
'Description' => '描述',
|
||||
|
||||
'LBL_TICKET_CUMULATIVE_STATISTICS' => '事件累计统计信息:',
|
||||
'LBL_CASE_TOPIC' => '案件标题',
|
||||
'LBL_OPEN' => '开启',
|
||||
'LBL_CLOSED' => '关闭',
|
||||
'LBL_TOTAL' => '合计',
|
||||
'LBL_TICKET_HISTORY' => '事件记录:',
|
||||
'LBL_CATEGORIES' => '类别',
|
||||
'LBL_PRIORITIES' => '前置',
|
||||
'LBL_SUPPORTERS' => '支持者',
|
||||
|
||||
//Added vtiger_fields after 4_0_1
|
||||
'LBL_TICKET_RESOLUTION'=>'解决方案详情',
|
||||
'Solution'=>'解决方案',
|
||||
'Add Comment'=>'添加注释',
|
||||
'LBL_ADD_COMMENT'=>'添加注释',//give the same value given to the above string 'Add Comment'
|
||||
|
||||
//Added for 4.2 Release -- CustomView
|
||||
'Ticket ID' => '事件编号',
|
||||
'Subject' => '主旨',
|
||||
|
||||
//Added after 4.2 alpha
|
||||
'Severity' => '俭朴',
|
||||
'Product Name' => '产品名称',
|
||||
'Related To' => '相关信息',
|
||||
'LBL_MORE' => '更多',
|
||||
|
||||
'LBL_TICKETS' => '事件',
|
||||
|
||||
//Added on 09-12-2005
|
||||
'LBL_CUMULATIVE_STATISTICS' => '累积统计',
|
||||
|
||||
//Added on 12-12-2005
|
||||
'LBL_CONVERT_AS_FAQ_BUTTON_TITLE' => '转换为常见问答',
|
||||
'LBL_CONVERT_AS_FAQ_BUTTON_KEY' => 'C',
|
||||
'LBL_CONVERT_AS_FAQ_BUTTON_LABEL' => '转换为常见问答',
|
||||
'Attachment' => '附加档案',
|
||||
'LBL_COMMENT_INFORMATION' => '意见信息',
|
||||
|
||||
//Added for existing picklist entries
|
||||
|
||||
'Big Problem' => '大问题',
|
||||
'Small Problem' => '小问题',
|
||||
'Other Problem' => '其它问题',
|
||||
|
||||
'Low' => '低',
|
||||
'Normal' => '一般',
|
||||
'High' => '高',
|
||||
'Urgent' => '紧急',
|
||||
|
||||
'Minor' => '较小的',
|
||||
'Major' => '主要的',
|
||||
'Feature' => '功能',
|
||||
'Critical' => '重要',
|
||||
|
||||
'Open' => '开启',
|
||||
'In Progress' => '处理中',
|
||||
'Wait For Response' => '等待回应',
|
||||
'Closed' => '关闭',
|
||||
|
||||
//added to support i18n in ticket mails
|
||||
'Hi' => 'Hi',
|
||||
'Dear'=> 'Dear',
|
||||
'LBL_PORTAL_BODY_MAILINFO'=> '传票是',
|
||||
'LBL_DETAIL' => '细节 :',
|
||||
'LBL_REGARDS'=> '致意',
|
||||
'LBL_TEAM'=> 'HelpDesk Team',
|
||||
'LBL_TICKET_DETAILS' => '传票内容',
|
||||
'LBL_SUBJECT' => '目标 : ',
|
||||
'created' => '创建',
|
||||
'replied' => '回复',
|
||||
'reply'=>'有一个回复关于',
|
||||
'customer_portal' => '客户门户.',
|
||||
'link' => '您可以使用下面的链接来查看回复:',
|
||||
'Thanks' => '谢谢',
|
||||
'Support_team' => 'Vtiger支持团队',
|
||||
|
||||
// Added/Updated for vtiger CRM 5.0.4
|
||||
|
||||
//this label for customerportal.
|
||||
'LBL_STATUS_CLOSED' =>'关闭',//Do not convert this label. This is used to check the status. If the status 'Closed' is changed in vtigerCRM server side then you have to change in customerportal language file also.
|
||||
'LBL_STATUS_UPDATE' => '事件状态被更新',
|
||||
'LBL_COULDNOT_CLOSED' => '事件不能是',
|
||||
'LBL_CUSTOMER_COMMENTS' => '顾客对您的回复提供了以下其它信息:',
|
||||
'LBL_RESPOND'=> '很荣幸地说上述事件最早.',
|
||||
'LBL_REGARDS' =>'祝福',
|
||||
'LBL_SUPPORT_ADMIN' => '管理员支持',
|
||||
'LBL_RESPONDTO_TICKETID' =>'响应传票ID',
|
||||
'LBL_CUSTOMER_PORTAL' => '在客户门户中 - 快迅',
|
||||
'LBL_LOGIN_DETAILS' => '以下是您的客户门户登录信息 :',
|
||||
'LBL_MAIL_COULDNOT_SENT' =>'邮件发送失败',
|
||||
'LBL_USERNAME' => '使用名称 :',
|
||||
'LBL_PASSWORD' => '密码 :',
|
||||
'LBL_SUBJECT_PORTAL_LOGIN_DETAILS' => '关于你的客户门户登录信息',
|
||||
'LBL_GIVE_MAILID' => '请留下您的电子邮箱',
|
||||
'LBL_CHECK_MAILID' => '请检查您的电子邮箱',
|
||||
'LBL_LOGIN_REVOKED' => '登录被撤销。请与管理员联系。',
|
||||
'LBL_MAIL_SENT' => '您的登录信息已发送到您的邮箱',
|
||||
'LBL_ALTBODY' => '这是纯文本正文(非HTML电子邮件客户端)',
|
||||
|
||||
// Added after 5.0.4 GA
|
||||
|
||||
// Module Sequence Numbering
|
||||
'Ticket No' => '传票号码',
|
||||
// END
|
||||
);
|
||||
|
||||
?>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user