Add html files

This commit is contained in:
2025-05-12 15:45:02 +00:00
parent 82d5804ac4
commit 7ddd15c4fa
1224 changed files with 277606 additions and 0 deletions

View File

@@ -0,0 +1,124 @@
<!--
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
-->
<!-- --------------------------------------------------------------------------- -->
<!-- BEGIN: merge_cell_label -->
<td width="{CELL_WIDTH}" valign="top" >{FIELD_LABEL}&nbsp;{REQUIRED_SYMBOL}</td>
<!-- END: merge_cell_label -->
<!-- --------------------------------------------------------------------------- -->
<!-- BEGIN: merge_cell_edit_text -->
<td width="{CELL_WIDTH}" valign="top" ><slot><input name="{EDIT_FIELD_NAME}" id="{EDIT_FIELD_NAME}" tabindex="{TAB_INDEX}" size="35" maxlength="150" type="text" value="{EDIT_FIELD_VALUE}"></slot></td>
<!-- END: merge_cell_edit_text -->
<!-- BEGIN: merge_cell_edit_textarea -->
<td width="{CELL_WIDTH}" valign="top" ><slot><textarea name="{EDIT_FIELD_NAME}" id="{EDIT_FIELD_NAME}" tabindex="{TAB_INDEX}" cols="35" rows="4">{EDIT_FIELD_VALUE}</textarea></slot></td>
<!-- END: merge_cell_edit_textarea -->
<!-- BEGIN: merge_cell_edit_checkbox -->
<td width="{CELL_WIDTH}" valign="top" ><slot><input name="{EDIT_FIELD_NAME}" id="{EDIT_FIELD_NAME}" class="checkbox" tabindex="{TAB_INDEX}" type="checkbox" {EDIT_FIELD_VALUE}/></slot></td>
<!-- END: merge_cell_edit_checkbox -->
<!-- BEGIN: merge_cell_edit_datetime -->
<td valign="top" width="{CELL_WIDTH}"><slot><input name='{EDIT_FIELD_NAME}' id='{EDIT_FIELD_NAME}_date' type="text" tabindex='{TAB_INDEX}' size='11' maxlength='10' value="{EDIT_FIELD_VALUE}"> <img src="index.php?entryPoint=getImage&themeName={THEME}&imageName=jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="{EDIT_FIELD_NAME}_trigger" align="absmiddle"> <span class="dateFormat"></span><span id='{EDIT_FIELD_NAME}_time_section' ></span><input type="hidden" name='{EDIT_FIELD_NAME}' id='{EDIT_FIELD_NAME}'></slot></td>
<script type="text/javascript" src="include/SugarFields/Fields/Datetimecombo/Datetimecombo.js"></script>
<script type="text/javascript">
var combo_{EDIT_FIELD_NAME} = new Datetimecombo("{EDIT_FIELD_VALUE}", "{EDIT_FIELD_NAME}", "{USER_DATEFORMAT}", '','','');
//Render the remaining widget fields
text = combo_{EDIT_FIELD_NAME}.html('');
document.getElementById('{EDIT_FIELD_NAME}_time_section').innerHTML = text;
//Call eval on the update function to handle updates to calendar picker object
eval(combo_{EDIT_FIELD_NAME}.jsscript(''));
function update_{EDIT_FIELD_NAME}_available() {
YAHOO.util.Event.onAvailable("{EDIT_FIELD_NAME}_date", this.handleOnAvailable, this);
}
update_{EDIT_FIELD_NAME}_available.prototype.handleOnAvailable = function(me) {
Calendar.setup ({
onClose : update_{EDIT_FIELD_NAME},
inputField : "{EDIT_FIELD_NAME}_date",
daFormat : "{CALENDAR_DATEFORMAT}",
ifFormat : "{CALENDAR_DATEFORMAT}",
button : "{EDIT_FIELD_NAME}_trigger",
singleClick : true,
step : 1,
weekNumbers:false
});
//Call update for first time to round hours and minute values
combo_{EDIT_FIELD_NAME}.update();
}
var obj_{EDIT_FIELD_NAME} = new update_{EDIT_FIELD_NAME}_available();
</script>
<!-- END: merge_cell_edit_datetime -->
<!-- BEGIN: merge_cell_edit_date -->
<td valign="top" width="{CELL_WIDTH}"><slot><input name='{EDIT_FIELD_NAME}' id='{EDIT_FIELD_NAME}' type="text" tabindex='{TAB_INDEX}' size='11' maxlength='10' value="{EDIT_FIELD_VALUE}"> <img src="index.php?entryPoint=getImage&themeName={THEME}&imageName=jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="{EDIT_FIELD_NAME}_trigger" align="absmiddle"> <span class="dateFormat">{USER_DATEFORMAT}</span></slot></td>
<script type="text/javascript">
Calendar.setup ({
inputField : "{EDIT_FIELD_NAME}", daFormat : "{CALENDAR_DATEFORMAT}", ifFormat : "{CALENDAR_DATEFORMAT}", showsTime : false, button : "{EDIT_FIELD_NAME}_trigger", singleClick : true, step : 1
});
</script>
<!-- END: merge_cell_edit_date -->
<!-- BEGIN: merge_cell_edit_dropdown -->
<td width="{CELL_WIDTH}" valign="top" ><slot><select tabindex="{TAB_INDEX}" name="{EDIT_FIELD_NAME}" id="{EDIT_FIELD_NAME}">{SELECT_OPTIONS}</select></slot></td>
<!-- END: merge_cell_edit_dropdown -->
<!-- BEGIN: merge_cell_edit_multidropdown -->
<td width="{CELL_WIDTH}" valign="top" ><slot><select tabindex="{TAB_INDEX}" name="{EDIT_FIELD_NAME}[]" id="{EDIT_FIELD_NAME}" multiple="true" size="6">{SELECT_OPTIONS}</select></slot></td>
<!-- END: merge_cell_edit_multidropdown -->
<!-- BEGIN: merge_cell_edit_popup -->
<td width="{CELL_WIDTH}" valign="top" ><slot><input class="sqsEnabled" autocomplete="off" tabindex="{TAB_INDEX}" "id="{POPUP_NAME_FIELD}" name="{POPUP_NAME_FIELD}" type="text" value="{POPUP_NAME_VALUE}"><input id='{POPUP_ID_FIELD}' name='{POPUP_ID_FIELD}' type="hidden" value="{POPUP_ID_VALUE}"/>
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
onclick='open_popup("{POPUP_MODULE}", 600, 400, "", true, false, {ENCODED_POPUP_DATA},"single",true);' /></slot></td>
<!-- END: merge_cell_edit_popup -->
<!-- --------------------------------------------------------------------------- -->
<!-- --------------------------------------------------------------------------- -->
<!-- --------------------------------------------------------------------------- -->
<!-- BEGIN: merge_cell_field_value -->
<td width="{CELL_WIDTH}" valign="top" ><slot><input title="{HOVER_TEXT}" class="button" onclick='copy_value({ENCODED_JSON_DATA});' type="button" name="copyValue" value="<<"/>&nbsp;{FIELD_VALUE}</slot></td>
<!-- END: merge_cell_field_value -->
<!-- BEGIN: merge_cell_field_value_checkbox -->
<td width="{CELL_WIDTH}" valign="top" ><slot><input title="{HOVER_TEXT}" class="button" onclick='copy_value({ENCODED_JSON_DATA});' type="button" name="copyValue" value="<<"/>&nbsp;<input disabled type="checkbox" class="checkbox" {FIELD_VALUE}/></slot></td>
<!-- END: merge_cell_field_value_checkbox -->
<!-- --------------------------------------------------------------------------- -->

View File

@@ -0,0 +1,102 @@
<!--
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
* {APP.LBL_CURRENCY_SYM}Header: /cvsroot/sugarcrm/sugarcrm/modules/Cases/SearchForm.html,v 1.4 2004/07/02 04:34:05 sugarjacob Exp {APP.LBL_CURRENCY_SYM}
********************************************************************************/
-->
<!-- BEGIN: main -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<form>
<td scope="row" noWrap><slot>{MOD.LBL_NUMBER}</slot>&nbsp;&nbsp;<slot><input type=text size="15" name="case_number" class=dataField value="{CASE_NUMBER}" /></slot>
</td>
<td scope="row" noWrap><slot>{MOD.LBL_SUBJECT}</slot>&nbsp;&nbsp;<slot><input type=text size="20" name="name" class=dataField value="{NAME}" /></slot></td>
<td scope="row" noWrap><slot>{MOD.LBL_ACCOUNT_NAME}</slot>&nbsp;&nbsp;<slot><input type=text size="20" name="account_name" class=dataField value="{ACCOUNT_NAME}" /></slot></td>
<td scope="row">{APP.LBL_CURRENT_USER_FILTER}&nbsp;&nbsp;<input name='current_user_only' onchange='this.form.submit();' class="checkbox" type="checkbox" {CURRENT_USER_ONLY}></td>
<td align="right"><input type="hidden" name="action" value="index"/>
<input type="hidden" name="query" value="true"/>
<input type="hidden" name="module" value="Cases" />
<input title="{APP.LBL_SEARCH_BUTTON_TITLE}" accessKey="{APP.LBL_SEARCH_BUTTON_KEY}" class="button" type="submit" name="button" value="{APP.LBL_SEARCH_BUTTON_LABEL}"/>
<input title="{APP.LBL_CLEAR_BUTTON_TITLE}" accessKey="{APP.LBL_CLEAR_BUTTON_KEY}" onclick="clear_form(this.form);" class="button" type="button" name="clear" value=" {APP.LBL_CLEAR_BUTTON_LABEL} "/>
<br>
<a href='index.php?module=Cases&action=index&advanced=true' class="tabFormAdvLink">{ADVANCED_SEARCH_PNG}</a>&nbsp;<a href='index.php?module=Cases&action=index&advanced=true' class="tabFormAdvLink">{APP.LNK_ADVANCED_SEARCH}</a>
</td>
</tr>
</form>
</table>
</td></tr></table>
{JAVASCRIPT}
<!-- END: main -->
<!-- BEGIN: advanced -->
<form>
<input type="hidden" name="module" value="Cases">
<input type="hidden" name="action" value='index'>
<input type="hidden" name="query" value="true"/>
<input type="hidden" name="advanced" value="true"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" scope="row"><slot>{MOD.LBL_SUBJECT}</slot></td>
<td width="25%" ><slot><input name='name' type="text" tabindex='1' size='25' maxlength='50' value="{NAME}"></slot></td>
<td width="20%" scope="row"><slot>{MOD.LBL_CASE_NUMBER}</slot></td>
<td width="25%" ><slot><input name='case_number' tabindex='2' size='15' type="text" value='{CASE_NUMBER}'></slot></td>
<td width="10%" rowspan="3" scope="row" align="right" ><slot><input title="{APP.LBL_SEARCH_BUTTON_TITLE}" accessKey="{APP.LBL_SEARCH_BUTTON_KEY}" class="button" type="submit" name="button" value="{APP.LBL_SEARCH_BUTTON_LABEL}"/>&nbsp;<input title="{APP.LBL_CLEAR_BUTTON_TITLE}" accessKey="{APP.LBL_CLEAR_BUTTON_KEY}" onclick="clear_form(this.form);" class="button" type="button" name="clear" value=" {APP.LBL_CLEAR_BUTTON_LABEL} "/>
<br><a href='index.php?module=Cases&action=index&query=true' class="tabFormAdvLink">{BASIC_SEARCH_PNG}</a>&nbsp;<a href='index.php?module=Cases&action=index&query=true' class="tabFormAdvLink">{APP.LNK_BASIC_SEARCH}</a>
</slot></td>
</tr><tr>
<td scope="row"><slot>{MOD.LBL_ACCOUNT_NAME}</slot></td>
<td ><slot><input name='account_name' tabindex='1' type='text' value="{ACCOUNT_NAME}"></slot></td>
<td scope="row"><slot>{MOD.LBL_STATUS}</slot></td>
<td ><slot><select tabindex='2' size="3" name='status[]' multiple="true">{STATUS_OPTIONS}</select></slot></td>
</tr><tr>
<td scope="row"><slot>{APP.LBL_ASSIGNED_TO}</slot></td>
<td ><slot><select size="3" tabindex='1' name='assigned_user_id[]' multiple="multiple">{USER_FILTER}</select></slot></td>
<td scope="row"><slot>{MOD.LBL_PRIORITY}</slot></td>
<td ><slot><select tabindex='2' size="3" name='priority[]' multiple="true">{PRIORITY_OPTIONS}</select></slot></td>
</tr></table>
</td></tr></table>
</form>
{JAVASCRIPT}
<!-- END: advanced -->

129
modules/MergeRecords/Step1.html Executable file
View File

@@ -0,0 +1,129 @@
<!--
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
-->
<!-- BEGIN: main -->
{MOD.LBL_STEP1_DIRECTIONS}
<br><br>
<script type="text/javascript">
var bean_data={BEANDATA};
var site_url="{URL}";
var delete_inline_image="{DELETE_INLINE_IMAGE}";
var operator_options={OPERATOR_OPTIONS};
</script>
<script src="include/javascript/quicksearch.js" type="text/javascript"></script>
<form name="DedupSetup" id="DedupSetup" method="POST" action="index.php">
<input type="hidden" name="module" value="MergeRecords"/>
<input type="hidden" name="merge_module" value="{MERGE_MODULE}"/>
<input type="hidden" name="record" value="{ID}"/>
<input type="hidden" name="action" value="Step2"/>
<input type="hidden" name="return_module" value="{RETURN_MODULE}"/>
<input type="hidden" name="return_id" value="{RETURN_ID}"/>
<input type="hidden" name="return_action" value="{RETURN_ACTION}"/>
<input type="hidden" name="dedup_fields" value=""/>
<input type="hidden" name="num_fields" value="0"/>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><input title="{MOD.LBL_NEXT_STEP_TITLE}" accessKey="{MOD.LBL_NEXT_STEP_BUTTON_KEY}" class="button" onclick="this.form.action.value='Step2';" type="submit" name="button" value=" {MOD.LBL_NEXT_STEP_BUTTON_LABEL} " > <input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}';" type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} "></td>
<td align='right'>{ADMIN_EDIT}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list view">
<!-- BEGIN: select_module -->
<tr>
<td width="45%"><slot>{MOD.LBL_SELECT_MODULE}:</slot></td>
<td width="5%"><slot>&nbsp;</slot></td>
<td width="50%"><slot>&nbsp;</slot></td>
</tr>
<tr>
<td width="45%"><slot><select name="selected_module" id="selected_module" onchange="grab_fields();">{MIGRATION_MODULE_OPTIONS}</select></slot></td>
<td width="5%"><slot>&nbsp;</slot></td>
<td width="50%"><slot>&nbsp;</slot></td>
</tr>
<!-- END: select_module -->
<tr>
<td width="100%" class="edit view" colspan="3">
<div id="field_select_block">
<!-- BEGIN: field_select_block -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25%" align="left" >{MOD.LBL_AVAIL_FIELDS}:</td>
<td width="2%" >&nbsp;</td>
<td width="73%" >{MOD.LBL_FILTER_COND}:</td>
</tr>
<tr id="multi_select_row">
<td id="field_avail_list_td"><slot><div align="left"><select name="field_avail_list[]" id="field_avail_list" multiple="multiple" size="10" >{FIELD_AVAIL_OPTIONS}</select></div></slot></td>
<td valign="top" style="padding-right: 2px; padding-left: 2px;">
<div align="center">
<a onclick="javascript:setselected('field_include_list','field_avail_list');">
<img src='{RIGHTARROW_BIG_IMAGE}' width='16' height='16' border="0" style="margin-left: 1px;" alt="{LBL_ADD_BUTTON}">
</a>
</div>
</td>
<td align="left"><div id='filter_def' width="100%" align="left">{PRE_LOADED_FIELDS}</div>
</td>
</tr>
</table>
<!-- END: field_select_block -->
</div>
</td>
</tr>
</table>
</form>
{JAVASCRIPT}
<script type="text/javascript">
function check_selected_module()
{
if(document.StartDedup.selected_module.value =='') {
alert("Please select a module to work with.");
document.StartDedup.selected_module.focus();
return false;
} else { return true; }
}
function grab_fields()
{
}
</script>
<script type="text/javascript" src="modules/MergeRecords/Merge.js"></script>
<!-- END: main -->

41
modules/MergeRecords/Step2.html Executable file
View File

@@ -0,0 +1,41 @@
<!--
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
-->
<!-- BEGIN: main -->
<!-- END: main -->

238
modules/MergeRecords/Step3.html Executable file
View File

@@ -0,0 +1,238 @@
<!--
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along with
* this program; if not, see http://www.gnu.org/licenses or write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*
* You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
* SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU Affero General Public License version 3.
*
* In accordance with Section 7(b) of the GNU Affero General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "Powered by
* SugarCRM" logo. If the display of the logo is not reasonably feasible for
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by SugarCRM".
********************************************************************************/
-->
<!-- BEGIN: main -->
<p>
<form name="EditView" id="EditView" method="POST" action="index.php">
<input type="hidden" name="module" value="MergeRecords">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="merge_module" value="{MERGE_MODULE}">
<input type="hidden" name="action">
<input type="hidden" name="return_module" value="{RETURN_MODULE}">
<input type="hidden" name="return_id" value="{RETURN_ID}">
<input type="hidden" name="return_action" value="{RETURN_ACTION}">
<input type="hidden" name="change_parent" value="0">
<input type="hidden" name="change_parent_id" value="">
<input type="hidden" name="remove" value="0">
<input type="hidden" name="remove_id" value="">
<input type="hidden" name="merged_links" value="{MERGED_LINKS}">
{MERGED_IDS}
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" style="padding-bottom: 2px;"><input title="{MOD.LBL_SAVE_MERGED_RECORD_BUTTON_TITLE}" accessKey="{MOD.LBL_SAVE_MERGED_RECORD_BUTTON_KEY}" class="button" onclick="return merge_verify();" type="submit" name="button" value=" {MOD.LBL_SAVE_MERGED_RECORD_BUTTON_LABEL} " >&nbsp;
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} "></td>
<td align="right" nowrap><span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr height="20">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabform">
{DIFF_HEADER}
<!-- BEGIN: merge_row_diff -->
<tr height="20">{FILE "modules/MergeRecords/MergeField.html"}</tr>
<!-- END: merge_row_diff -->
{GROUP_PARTITION}
{SIMILAR_HEADER}
<!-- BEGIN: merge_row_similar -->
<tr height="20">{FILE "modules/MergeRecords/MergeField.html"}</tr>
<!-- END: merge_row_similar -->
</table>
</td>
</tr>
</table>
<br/>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" style="padding-bottom: 2px;"><input title="{MOD.LBL_SAVE_MERGED_RECORD_BUTTON_TITLE}" accessKey="{MOD.LBL_SAVE_MERGED_RECORD_BUTTON_KEY}" class="button" onclick="return merge_verify();" type="submit" name="button" value=" {MOD.LBL_SAVE_MERGED_RECORD_BUTTON_LABEL} " >&nbsp;
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} "></td>
</tr>
</table>
</form>
<p>
<script type="text/javascript">
function merge_verify() {
if (!check_form('EditView')) {
return false;
}
var message="{MERGE_VERIFY}";
if (confirm(message)) {
document.EditView.action.value='SaveMerge';
return true;
} else {
return false;
}
}
function copy_value(json_array)
{
var target_element = document.getElementById(json_array['field_name']);
if(json_array['field_type'] == 'enum')
{
for(i=0; i < target_element.options.length; i++)
{
if(target_element.options[i].value == json_array['field_value'])
{
target_element.options[i].selected=true;
i=target_element.options.length+1;
}
}
}
else if(json_array['field_type'] == 'bool')
{
if(json_array['field_value'] == '1' || json_array['field_value'] == 'on')
target_element.checked=true;
else
target_element.checked=false;
}
else if(json_array['field_type'] == 'relate' || json_array['field_type'] == 'link')
{
for(popup_field in json_array['popup_fields'])
{
var target_element = document.getElementById(popup_field);
target_element.value = json_array['popup_fields'][popup_field];
//alert("Field:"+popup_field+"\nValue:"+json_array['popup_fields'][popup_field]);
}
}
else if(json_array['field_type'] == 'teamset')
{
var teams = json_array['field_value2'];
var isFirstFieldEmpty = collection['EditView_team_name'].clean_up();
var index = 0;
//expand the list
collection['EditView_team_name'].js_more();
collection['EditView_team_name'].show_arrow_label(true);
for(team_id in teams) {
if(teams[team_id]['id']) {
var temp_array = [];
temp_array['name'] = teams[team_id]['display_name'];
temp_array['id'] = teams[team_id]['id'];
if(isFirstFieldEmpty && index == 0){
collection['EditView_team_name'].replace_first(temp_array);
}else{
collection['EditView_team_name'].add(temp_array);
}
index++;
}
}
}
else if(json_array['field_type'] == 'datetimecombo'){
dt = json_array['field_value'];
date = dt.substr(0,10);
//Get hours and minutes and adjust as necessary
var hrs = parseInt(dt.substring(11,13), 10);
var mins = parseInt(dt.substring(14,16), 10);
//A safety scan to make sure hrs and minutes are formatted correctly
if (mins > 0 && mins < 15) {
mins = 15;
} else if (mins > 15 && mins < 30) {
mins = 30;
} else if (mins > 30 && mins < 45) {
mins = 45;
} else if (mins > 45) {
hrs += 1;
mins = 0;
} //if-else
document.getElementById(json_array['field_name']+'_date').value=date;
var hourObj = document.getElementById(json_array['field_name']+'_hours');
for(var i=0; i< hourObj.length; i++){
if(hourObj.options[i].value == hrs){
hourObj.options[i].selected='checked';
}
}
var minuteObj = document.getElementById(json_array['field_name']+'_minutes');
for(var i=0; i< minuteObj.length; i++){
if(minuteObj.options[i].value == mins){
minuteObj.options[i].selected='checked';
}
}
var hasMeridiem = /am|pm/i.test("{USER_DATEFORMAT}");
if(hasMeridiem){
meridiem = trim(dt.substring(16));
var meridiemObj = document.getElementById(json_array['field_name'] + "_meridiem");
for(var i=0; i< meridiemObj.length; i++){
if(meridiemObj.options[i].value == meridiem){
meridiemObj.options[i].selected='checked';
}
}
}
target_element.value = json_array['field_value'];
}
else if(json_array['field_type'] == 'multienum'){
var multienumObj = document.getElementById(json_array['field_name']);
for(var i=0; i< multienumObj.length; i++){
if ( json_array['field_value'].indexOf(multienumObj.options[i].value) != -1 ) {
multienumObj.options[i].selected='checked';
}
else {
multienumObj.options[i].selected = '';
}
}
}
else
{
target_element.value = json_array['field_value'];
}
return true;
}
function change_primary(button, new_id) {
document.EditView.change_parent.value='1';
document.EditView.change_parent_id.value=new_id;
document.EditView.action.value='Step3';
document.EditView.submit();
}
function remove_me(button, new_id) {
document.EditView.remove.value='1';
document.EditView.remove_id.value=new_id;
document.EditView.action.value='Step3';
document.EditView.submit();
}
</script>
{VALIDATION_JS}
<!-- END: main -->