From 49ec5e0ed2e44e5d3ccaa5454a107d971c8efa0d Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Tue, 16 Nov 2010 07:17:01 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=205.2=20=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E7=89=88=E5=90=8E=E7=AC=AC=E4=B8=80=E6=AC=A1=20SVN=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit yuchenghu@hawebs.net git-svn-id: https://svn.code.sf.net/p/hawebs/svn@605 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- .../modules/HelpDesk/CallRelatedList.php | 86 -- .../trunk/modules/HelpDesk/ConvertAsFAQ.php | 68 -- .../modules/HelpDesk/ConvertToEntities.php | 45 -- .../trunk/modules/HelpDesk/CustomView.php | 14 - oss/vtiger/trunk/modules/HelpDesk/Delete.php | 41 - .../trunk/modules/HelpDesk/DetailView.php | 159 ---- .../trunk/modules/HelpDesk/DetailViewAjax.php | 120 --- .../trunk/modules/HelpDesk/EditView.php | 147 ---- .../trunk/modules/HelpDesk/ExportRecords.php | 11 - .../modules/HelpDesk/FindDuplicateRecords.php | 106 --- oss/vtiger/trunk/modules/HelpDesk/HelpDesk.js | 80 -- .../trunk/modules/HelpDesk/HelpDesk.php | 762 ------------------ .../trunk/modules/HelpDesk/HelpDeskAjax.php | 13 - oss/vtiger/trunk/modules/HelpDesk/Import.php | 15 - .../trunk/modules/HelpDesk/ListTickets.php | 131 --- .../trunk/modules/HelpDesk/ListView.php | 304 ------- .../modules/HelpDesk/ListViewPagging.php | 11 - .../trunk/modules/HelpDesk/MassEdit.php | 45 -- .../trunk/modules/HelpDesk/MassEditSave.php | 71 -- oss/vtiger/trunk/modules/HelpDesk/Merge.php | 316 -------- oss/vtiger/trunk/modules/HelpDesk/Popup.php | 12 - .../modules/HelpDesk/ProcessDuplicates.php | 134 --- .../trunk/modules/HelpDesk/QuickCreate.php | 12 - oss/vtiger/trunk/modules/HelpDesk/Save.php | 193 ----- .../trunk/modules/HelpDesk/Settings.php | 13 - .../trunk/modules/HelpDesk/TagCloud.php | 12 - .../trunk/modules/HelpDesk/UnifiedSearch.php | 11 - oss/vtiger/trunk/modules/HelpDesk/index.php | 17 - .../modules/HelpDesk/language/en_us.lang.php | 224 ----- .../modules/HelpDesk/language/zh_cn.lang.php | 221 ----- .../modules/HelpDesk/updateRelations.php | 48 -- 31 files changed, 3442 deletions(-) delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/CallRelatedList.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ConvertAsFAQ.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ConvertToEntities.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/CustomView.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/Delete.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/DetailView.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/DetailViewAjax.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/EditView.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ExportRecords.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/FindDuplicateRecords.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/HelpDesk.js delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/HelpDesk.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/HelpDeskAjax.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/Import.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ListTickets.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ListView.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ListViewPagging.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/MassEdit.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/MassEditSave.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/Merge.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/Popup.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/ProcessDuplicates.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/QuickCreate.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/Save.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/Settings.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/TagCloud.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/UnifiedSearch.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/index.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/language/en_us.lang.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/language/zh_cn.lang.php delete mode 100644 oss/vtiger/trunk/modules/HelpDesk/updateRelations.php diff --git a/oss/vtiger/trunk/modules/HelpDesk/CallRelatedList.php b/oss/vtiger/trunk/modules/HelpDesk/CallRelatedList.php deleted file mode 100644 index 07708a75..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/CallRelatedList.php +++ /dev/null @@ -1,86 +0,0 @@ -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"); -} -?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/ConvertAsFAQ.php b/oss/vtiger/trunk/modules/HelpDesk/ConvertAsFAQ.php deleted file mode 100644 index 4333ec40..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/ConvertAsFAQ.php +++ /dev/null @@ -1,68 +0,0 @@ - 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"); - -?> diff --git a/oss/vtiger/trunk/modules/HelpDesk/ConvertToEntities.php b/oss/vtiger/trunk/modules/HelpDesk/ConvertToEntities.php deleted file mode 100644 index 804da174..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/ConvertToEntities.php +++ /dev/null @@ -1,45 +0,0 @@ -pquery($query, array()); -for($i=0;$ipquery('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"); - -?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/CustomView.php b/oss/vtiger/trunk/modules/HelpDesk/CustomView.php deleted file mode 100644 index 93231ed6..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/CustomView.php +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/Delete.php b/oss/vtiger/trunk/modules/HelpDesk/Delete.php deleted file mode 100644 index a177c2c8..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/Delete.php +++ /dev/null @@ -1,41 +0,0 @@ - \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/DetailView.php b/oss/vtiger/trunk/modules/HelpDesk/DetailView.php deleted file mode 100644 index ab6d3da7..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/DetailView.php +++ /dev/null @@ -1,159 +0,0 @@ -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'].' '.$error_msg.''; -} - -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"); - -?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/DetailViewAjax.php b/oss/vtiger/trunk/modules/HelpDesk/DetailViewAjax.php deleted file mode 100644 index 04bb39fa..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/DetailViewAjax.php +++ /dev/null @@ -1,120 +0,0 @@ -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 = "Ticket Details"; - $email_body = $subject.'

'.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'; -} -?> diff --git a/oss/vtiger/trunk/modules/HelpDesk/EditView.php b/oss/vtiger/trunk/modules/HelpDesk/EditView.php deleted file mode 100644 index d7f211ab..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/EditView.php +++ /dev/null @@ -1,147 +0,0 @@ -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 '
'. getTranslatedString('LBL_DUPLICATE'). ' '. getTranslatedString($mod_seq_field['label']) - .' - '. getTranslatedString('LBL_CLICK') .' '.getTranslatedString('LBL_HERE').' ' - . getTranslatedString('LBL_TO_CONFIGURE'). ' '. getTranslatedString($mod_seq_field['label']) .''; - 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"); - -?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/ExportRecords.php b/oss/vtiger/trunk/modules/HelpDesk/ExportRecords.php deleted file mode 100644 index 19858676..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/ExportRecords.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/FindDuplicateRecords.php b/oss/vtiger/trunk/modules/HelpDesk/FindDuplicateRecords.php deleted file mode 100644 index a1ff9757..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/FindDuplicateRecords.php +++ /dev/null @@ -1,106 +0,0 @@ -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 "
"; - echo "
- - - - - - - - - -
- $app_strings[LBL_DUP_PERMISSION] $req_module $errormsg
- $app_strings[LBL_GO_BACK]
-
-
"; - echo "
"; - 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'); - -?> \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/HelpDesk.js b/oss/vtiger/trunk/modules/HelpDesk/HelpDesk.js deleted file mode 100644 index c757a9dd..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/HelpDesk.js +++ /dev/null @@ -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(" -pquery($sql, array($templateid)); -$temparray = $adb->fetch_array($result); - -$fileContent = $temparray['data']; -$filename=html_entity_decode($temparray['filename'], ENT_QUOTES, $default_charset); -// Fix For: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/2107 -$filename= $randomfilename . "_word.doc"; - -$filesize=$temparray['filesize']; -$wordtemplatedownloadpath =$root_directory ."/test/wordtemplatedownload/"; - -$handle = fopen($wordtemplatedownloadpath .$filename,"wb"); -fwrite($handle,base64_decode($fileContent),$filesize); -fclose($handle); - -//<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>> -$mass_merge = $_REQUEST['allselectedboxes']; -$single_record = $_REQUEST['record']; - -if($mass_merge != "") -{ - $mass_merge = explode(";",$mass_merge); - $temp_mass_merge = $mass_merge; - if(array_pop($temp_mass_merge)=="") - array_pop($mass_merge); - //$mass_merge = implode(",",$mass_merge); -} -else if($single_record != "") -{ - $mass_merge = $single_record; -} -else -{ - die("Record Id is not found, cannot merge the document"); -} - -//<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>> - -global $current_user; -require('user_privileges/user_privileges_'.$current_user->id.'.php'); -if($is_admin == true || $profileGlobalPermission[1] == 0 || $profileGlobalPermission[2] == 0 || $module == "Users" || $module == "Emails") -{ - $query1="select vtiger_tab.name,vtiger_field.tablename,vtiger_field.columnname,vtiger_field.fieldlabel from vtiger_field inner join vtiger_tab on vtiger_tab.tabid = vtiger_field.tabid where vtiger_field.tabid in (13,4,6) and vtiger_field.uitype <> 61 and block <> 75 and block <> 30 and vtiger_field.presence in (0,2) order by vtiger_field.tablename"; - $params1 = array(); -} -else -{ - $profileList = getCurrentUserProfileList(); - $query1="select vtiger_tab.name,vtiger_field.tablename,vtiger_field.columnname,vtiger_field.fieldlabel from vtiger_field inner join vtiger_tab on vtiger_tab.tabid = vtiger_field.tabid INNER JOIN vtiger_profile2field ON vtiger_profile2field.fieldid=vtiger_field.fieldid INNER JOIN vtiger_def_org_field ON vtiger_def_org_field.fieldid=vtiger_field.fieldid where vtiger_field.tabid in (13,4,6) and vtiger_field.uitype <> 61 and block <> 75 and block <> 30 AND vtiger_profile2field.visible=0 AND vtiger_def_org_field.visible=0 AND vtiger_profile2field.profileid IN (". generateQuestionMarks($profileList) .") and vtiger_field.presence in (0,2) GROUP BY vtiger_field.fieldid order by vtiger_field.tablename"; - $params1 = array($profileList); - //Postgres 8 fixes - if( $adb->dbType == "pgsql") - $query1 = fixPostgresQuery( $query1, $log, 0); -} -$result = $adb->pquery($query1, $params1); -$y=$adb->num_rows($result); - -for ($x=0; $x<$y; $x++) -{ - $tablename = $adb->query_result($result,$x,"tablename"); - $columnname = $adb->query_result($result,$x,"columnname"); - $modulename = $adb->query_result($result,$x,"name"); - - $column_name = $tablename.".".$columnname; - - if($columnname == "parent_id") - { - $column_name = "case crmentityRelHelpDesk.setype when 'Accounts' then accountRelHelpDesk.accountname when 'Contacts' then concat(contactdetailsRelHelpDesk.firstname,' ',contactdetailsRelHelpDesk.lastname) End"; - } - if($columnname == "product_id") - { - $column_name = "productsRel.productname"; - } - if($tablename == "vtiger_crmentity") - { - if($modulename == "Contacts") - { - $tablename = "crmentityContacts"; - $column_name = $tablename.".".$columnname; - } - if($modulename == "Accounts") - { - $tablename = "crmentityAccounts"; - $column_name = $tablename.".".$columnname; - } - - } - - if($columnname == "smownerid") - { - if($modulename == "Accounts") - { - $column_name = "case when (usersAccounts.user_name not like '') then concat(usersAccounts.last_name,' ',usersAccounts.first_name) else groupsAccounts.groupname end as username"; - } - if($modulename == "Contacts") - { - $column_name = "case when (usersContacts.user_name not like '') then concat(usersContacts.last_name,' ',usersContacts.first_name) else groupsContacts.groupname end as username"; - } - if($modulename == "HelpDesk") - { - $column_name = "case when (vtiger_users.user_name not like '') then concat(vtiger_users.last_name,' ',vtiger_users.first_name) else vtiger_groups.groupname end as userhelpname,vtiger_users.first_name,vtiger_users.last_name,vtiger_users.user_name,vtiger_users.yahoo_id,vtiger_users.title,vtiger_users.phone_work,vtiger_users.department,vtiger_users.phone_mobile,vtiger_users.phone_other,vtiger_users.phone_fax,vtiger_users.email1,vtiger_users.phone_home,vtiger_users.email2,vtiger_users.address_street,vtiger_users.address_city,vtiger_users.address_state,vtiger_users.address_postalcode,vtiger_users.address_country"; - } - } - if($columnname == "parentid") - { - $column_name = "accountAccount.accountname"; - } - if($columnname == "accountid") - { - $column_name = "accountContacts.accountname"; - } - if($columnname == "reportsto") - { - $column_name = "contactdetailsContacts.lastname"; - } - - $querycolumns[$x] = $column_name; - - if($modulename == "Accounts") - { - $field_label[$x] = "ACCOUNT_".strtoupper(str_replace(" ","",$adb->query_result($result,$x,"fieldlabel"))); - } - if($modulename == "Contacts") - { - $field_label[$x] = "CONTACT_".strtoupper(str_replace(" ","",$adb->query_result($result,$x,"fieldlabel"))); - } - if($modulename == "HelpDesk") - { - $field_label[$x] = "TICKET_".strtoupper(str_replace(" ","",$adb->query_result($result,$x,"fieldlabel"))); - if($columnname == "smownerid") - { - $field_label[$x] = $field_label[$x].",USER_FIRSTNAME,USER_LASTNAME,USER_USERNAME,USER_YAHOOID,USER_TITLE,USER_OFFICEPHONE,USER_DEPARTMENT,USER_MOBILE,USER_OTHERPHONE,USER_FAX,USER_EMAIL,USER_HOMEPHONE,USER_OTHEREMAIL,USER_PRIMARYADDRESS,USER_CITY,USER_STATE,USER_POSTALCODE,USER_COUNTRY"; - } - } - -} -$csvheader = implode(",",$field_label); -//<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>> - -if(count($querycolumns) > 0) -{ - $selectcolumns = implode($querycolumns,","); - - $query ="select ".$selectcolumns." from vtiger_troubletickets - inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_troubletickets.ticketid - inner join vtiger_ticketcf on vtiger_ticketcf.ticketid = vtiger_troubletickets.ticketid - left join vtiger_crmentity as crmentityRelHelpDesk on crmentityRelHelpDesk.crmid = vtiger_troubletickets.parent_id - left join vtiger_account as accountRelHelpDesk on accountRelHelpDesk.accountid=crmentityRelHelpDesk.crmid - left join vtiger_contactdetails as contactdetailsRelHelpDesk on contactdetailsRelHelpDesk.contactid= crmentityRelHelpDesk.crmid - left join vtiger_products as productsRel on productsRel.productid = vtiger_troubletickets.product_id - left join vtiger_users on vtiger_crmentity.smownerid=vtiger_users.id - LEFT JOIN vtiger_groups - ON vtiger_groups.groupid = vtiger_crmentity.smownerid - left join vtiger_account on vtiger_account.accountid = vtiger_troubletickets.parent_id - left join vtiger_crmentity as crmentityAccounts on crmentityAccounts.crmid = vtiger_account.accountid - left join vtiger_accountbillads on vtiger_accountbillads.accountaddressid = vtiger_account.accountid - left join vtiger_accountshipads on vtiger_accountshipads.accountaddressid = vtiger_account.accountid - left join vtiger_accountscf on vtiger_accountbillads.accountaddressid = vtiger_accountscf.accountid - left join vtiger_account as accountAccount on accountAccount.accountid = vtiger_troubletickets.parent_id - left join vtiger_users as usersAccounts on usersAccounts.id = crmentityAccounts.smownerid - LEFT JOIN vtiger_groups as groupsAccounts - ON groupsAccounts.groupid = vtiger_crmentity.smownerid - left join vtiger_contactdetails on vtiger_contactdetails.contactid = vtiger_troubletickets.parent_id - left join vtiger_crmentity as crmentityContacts on crmentityContacts.crmid = vtiger_contactdetails.contactid - left join vtiger_contactaddress on vtiger_contactdetails.contactid = vtiger_contactaddress.contactaddressid - left join vtiger_contactsubdetails on vtiger_contactdetails.contactid = vtiger_contactsubdetails.contactsubscriptionid - left join vtiger_contactscf on vtiger_contactdetails.contactid = vtiger_contactscf.contactid - left join vtiger_customerdetails on vtiger_contactdetails.contactid = vtiger_customerdetails.customerid - left join vtiger_contactdetails as contactdetailsContacts on contactdetailsContacts.contactid = vtiger_contactdetails.reportsto - left join vtiger_account as accountContacts on accountContacts.accountid = vtiger_contactdetails.accountid - left join vtiger_users as usersContacts on usersContacts.id = crmentityContacts.smownerid - LEFT JOIN vtiger_groups as groupsContacts - ON groupsContacts.groupid = vtiger_crmentity.smownerid - where vtiger_crmentity.deleted=0 and ((crmentityContacts.deleted=0 || crmentityContacts.deleted is null)||(crmentityAccounts.deleted=0 || crmentityAccounts.deleted is null)) - and vtiger_troubletickets.ticketid in (". generateQuestionMarks($mass_merge) .")"; - - $result = $adb->pquery($query, array($mass_merge)); - $avail_pick_arr = getAccessPickListValues('HelpDesk'); - while($columnValues = $adb->fetch_array($result)) - { - $y=$adb->num_fields($result); - for($x=0; $x<$y; $x++) - { - $value = $columnValues[$x]; - foreach($columnValues as $key=>$val) - { - if($val == $value && $value != '') - { - if(array_key_exists($key,$avail_pick_arr)) - { - if(!in_array($val,$avail_pick_arr[$key])) - { - $value = "Not Accessible"; - } - } - } - } - //<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>> - if(trim($value) == "--None--" || trim($value) == "--none--") - { - $value = ""; - } - //<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>> - $actual_values[$x] = $value; - $actual_values[$x] = str_replace('"'," ",$actual_values[$x]); - //if value contains any line feed or carriage return replace the value with ".value." - if (preg_match ("/(\r?\n)/", $actual_values[$x])) - { - $actual_values[$x] = '"'.$actual_values[$x].'"'; - } - $actual_values[$x] = decode_html(str_replace(","," ",$actual_values[$x])); - } - $mergevalue[] = implode($actual_values,","); - } - $csvdata = implode($mergevalue,"###"); -} -else -{ - die("No fields to do Merge"); -} -// Fix for: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/2107 -$datafilename = $randomfilename . "_data.csv"; - -$handle = fopen($wordtemplatedownloadpath.$datafilename,"wb"); -fwrite($handle,$csvheader."\r\n"); -fwrite($handle,str_replace("###","\r\n",$csvdata)); -fclose($handle); - -?> - - - diff --git a/oss/vtiger/trunk/modules/HelpDesk/Popup.php b/oss/vtiger/trunk/modules/HelpDesk/Popup.php deleted file mode 100644 index e2aaa7de..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/Popup.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/ProcessDuplicates.php b/oss/vtiger/trunk/modules/HelpDesk/ProcessDuplicates.php deleted file mode 100644 index bb5047fa..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/ProcessDuplicates.php +++ /dev/null @@ -1,134 +0,0 @@ -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,""); - } - } - - ?> - -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"); -} - -?> diff --git a/oss/vtiger/trunk/modules/HelpDesk/QuickCreate.php b/oss/vtiger/trunk/modules/HelpDesk/QuickCreate.php deleted file mode 100644 index 8d5998b8..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/QuickCreate.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/Save.php b/oss/vtiger/trunk/modules/HelpDesk/Save.php deleted file mode 100644 index 3d2a81bb..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/Save.php +++ /dev/null @@ -1,193 +0,0 @@ -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'] .":
" . $focus->column_fields['ticket_no'] . "
" . $mod_strings['LBL_TICKET_ID'].' : '.$focus->id.'
'.$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 = "".$mod_strings['LBL_TICKET_DETAILS'].""; - $email_body = $bodysubject.'

'.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); -?> diff --git a/oss/vtiger/trunk/modules/HelpDesk/Settings.php b/oss/vtiger/trunk/modules/HelpDesk/Settings.php deleted file mode 100644 index 980dd078..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/Settings.php +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/TagCloud.php b/oss/vtiger/trunk/modules/HelpDesk/TagCloud.php deleted file mode 100644 index 859b11ff..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/TagCloud.php +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/UnifiedSearch.php b/oss/vtiger/trunk/modules/HelpDesk/UnifiedSearch.php deleted file mode 100644 index 9a37320c..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/UnifiedSearch.php +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/oss/vtiger/trunk/modules/HelpDesk/index.php b/oss/vtiger/trunk/modules/HelpDesk/index.php deleted file mode 100644 index 72094552..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/index.php +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/oss/vtiger/trunk/modules/HelpDesk/language/en_us.lang.php b/oss/vtiger/trunk/modules/HelpDesk/language/en_us.lang.php deleted file mode 100644 index cd6c9161..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/language/en_us.lang.php +++ /dev/null @@ -1,224 +0,0 @@ -'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', -); - -?> diff --git a/oss/vtiger/trunk/modules/HelpDesk/language/zh_cn.lang.php b/oss/vtiger/trunk/modules/HelpDesk/language/zh_cn.lang.php deleted file mode 100644 index eea95264..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/language/zh_cn.lang.php +++ /dev/null @@ -1,221 +0,0 @@ - '服务台', - '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 -); - -?> diff --git a/oss/vtiger/trunk/modules/HelpDesk/updateRelations.php b/oss/vtiger/trunk/modules/HelpDesk/updateRelations.php deleted file mode 100644 index 85798501..00000000 --- a/oss/vtiger/trunk/modules/HelpDesk/updateRelations.php +++ /dev/null @@ -1,48 +0,0 @@ -pquery("insert into vtiger_senotesrel values (?,?)", array($forCRMRecord,$id)); - else { - $focus->save_related_module($currentModule, $forCRMRecord, $dest_mod, $id); - } - } -} - -header("Location: index.php?action=$action&module=$currentModule&record=".$forCRMRecord."&parenttab=".$parenttab); - -?> \ No newline at end of file