HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: nexper (1054)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nexper/www/67.225.167.226/public_html/crm/modules/EditCustomFields/EditView.html
<!--
/*********************************************************************************
 * SugarCRM is a customer relationship management program developed by
 * SugarCRM, Inc. Copyright (C) 2004 - 2009 SugarCRM Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU 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 General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU 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 General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU 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: popup -->
<html>
<head><title>Custom Field</title></head>
<body>
{header}
<script>
var height = 280;
	if(typeof( window.outerHeight ) == 'number'){
		var height = window.outerHeight;
	}
function typeChanged(obj)
{
	
	if(obj.options[obj.selectedIndex].value == 'enum')
	{
		document.getElementById('enum').style.display = 'inline';
		updatedroplist('listiframe');
		
		window.resizeTo(340, 510);
		
	}
	else
	{
		window.resizeTo(320, height);
		document.getElementById('enum').style.display = 'none';
		
	}

}
window.resizeTo(320, height);
function updatedroplist(name){
	document.getElementById(name).src = 'index.php?module=EditCustomFields&action=DisplayDropDownValues&to_pdf=true&list=' + document.getElementById('ext1').options[document.getElementById('ext1').selectedIndex].value;
}
function handle_cancel(){
	window.close();
}
</script>
<!-- END: popup -->

<!-- BEGIN: embeded -->
<script>
function typeChanged(obj)
{
	
	if(obj.options[obj.selectedIndex].value == 'enum')
	{
		document.getElementById('enum').style.display = 'inline';
		updatedroplist('listiframe');
	}
	else
	{
		document.getElementById('enum').style.display = 'none';
		
	}

}
function updatedroplist(name){
	document.getElementById(name).src = 'index.php?module=EditCustomFields&action=DisplayDropDownValues&to_pdf=true&list=' + document.getElementById('ext1').options[document.getElementById('ext1').selectedIndex].value;
}
function handle_cancel(){
	document.location = 'index.php?module={RETURN_MODULE}&action={RETURN_ACTION}&module_name={custom_module}';	
}
function handle_duplicate(){
	document.popup_form.action.value  = 'EditView';
	document.popup_form.duplicate.value = 'true';
	document.popup_form.submit();
}
</script>
<!-- END: embeded -->

<!-- BEGIN: body -->

<form action="index.php" method="post" name="popup_form">
<table  cellpadding="0" cellspacing="0" border="0">
	<tr><td>
	<table  cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" style="padding-bottom: 2px;">
<input type="hidden" name="id" value="{custom_field_id}" />
<input type="hidden" name="module" value="EditCustomFields" />
<input type="hidden" name="action" value="Save"/>
<input type="hidden" name="duplicate" value=""/>
<input type="hidden" name="style" value="{STYLE}"/>
<input type="hidden" name="form" value="{form}" />
<input type="hidden" name="style" value="{STYLE}"/>
<input type="hidden" name="module_name" value="{custom_module}"/>
<input type="hidden" name="return_module" value="{RETURN_MODULE}" />
<input type="hidden" name="return_action" value="{RETURN_ACTION}" />
<input type="hidden" name="file_type" value="{FILE_TYPE}" />
<input type="hidden" name="field_count" value="{FIELD_COUNT}" />
	<!-- BEGIN: topsave -->
<input type="submit" name="button" value="{APP.LBL_SAVE_BUTTON_LABEL}"
	title="{APP.LBL_SAVE_BUTTON_TITLE}" accesskey="{APP.LBL_SAVE_BUTTON_KEY}"
	class="button" onclick="return check_form('popup_form')"/>
	<!-- END: topsave -->
	<!-- BEGIN: cancel -->
<input type="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"
	title="{APP.LBL_CANCEL_BUTTON_TITLE}" accesskey="{APP.LBL_CANCEL_BUTTON_KEY}"
	class="button" onclick="handle_cancel();" />
	<!-- END: cancel -->
</td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" border="0" width="100%" class="tabForm">

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_NAME}:</td><td width="50%"><input type="text" maxlength={NAMEMAXLENGTH} name="name" value="{name}" {NOEDIT}/></td></tr>

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_LABEL}:</td><td><input type="text" name="label" value="{label}" {NOEDIT}/></td></tr>

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_DATA_TYPE}:</td><td><select name="data_type" id='data_type' onchange="typeChanged(this);" {NOEDIT}>{data_type_options}</select></td></tr>

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_MAX_SIZE}:</td><td><input type="text" name="max_size" value="{max_size}" /></td></tr>

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_REQUIRED_OPTION}:</td><td><input type="checkbox" name="required_option" value="{required_option}" {REQUIRED_CHECKED}/></td></tr>

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td><td><input type="text" name="default_value" value="{default_value}" /></td></tr>

<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_AUDIT}:</td><td><input type="checkbox" name="audited" value="1" {AUDIT_CHECKED}/></td></tr>
<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_MASS_UPDATE}:</td><td><input type="checkbox" name="mass_update" value="1" {MASS_UPDATE_CHECKED}/></td></tr>
<tr><td nowrap="nowrap">{MOD.COLUMN_TITLE_DUPLICATE_MERGE}:</td><td><select name="duplicate_merge" id='duplicate_merge' >{duplicate_merge_options}</select></td></tr>

<tr><td colspan='2'>	
	<div id='enum' style='display:none'>

	<table cellpadding="0" cellspacing="2" border="0" width="100%" class="tabForm">
	<tr>
	<td nowrap="nowrap">{MOD.LBL_DROP_DOWN_LIST}</td>
	<td><select id='ext1' name='ext1' onchange="updatedroplist('listiframe');" {NOEDIT}>{ENUM_OPTIONS}</select></td>
	</tr>
	<tr  >
	<td colspan = '2'> <iframe id='listiframe' frameborder="0"  width='280' marginwidth="0" marginheight="0" style="border: 1px solid #000000;" ></iframe></td>
	</tr>
	</table>
</div>
</td></tr>
<!-- BEGIN: botsave -->
	<tr><td><br>
	<input type="submit" name="button" value="{APP.LBL_SAVE_BUTTON_LABEL}"
	title="{APP.LBL_SAVE_BUTTON_TITLE}" accesskey="{APP.LBL_SAVE_BUTTON_KEY}"
	class="button" onclick="return check_form('popup_form')"/>
	</td><tr>
	<!-- END: botsave --></table></td></tr>
	
</table>





<!--
<tr>
<td nowrap="nowrap">{MOD.COLUMN_TITLE_EXT2}</td>
<td><input type="text" name="ext2" value="{ext2}" /></td>
</tr>

<tr>
<td nowrap="nowrap">{MOD.COLUMN_TITLE_EXT3}</td>
<td><input type="text" name="ext3" value="{ext3}" /></td>
</tr>
-->

<script>
typeChanged(document.getElementById('data_type'));
</script>

</form>
<!-- END: body -->