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: main -->
<form action="index.php" method="post" name="form" id="form">
<table cellpadding="0" cellspacing="0" border="0" width='100%'>
<input type="hidden" name="module" value="EmailTemplates">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="isDuplicate" value=false>
<input type="hidden" name="action">
<input type="hidden" name="return_module">
<input type="hidden" name="return_action">
<input type="hidden" name="return_id">
{PORTAL_ON}
<tr>
<td><!-- BEGIN: edit --><input title="{APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{APP.LBL_EDIT_BUTTON_KEY}" class="button primary" onclick="this.form.return_module.value='EmailTemplates'; this.form.return_action.value='DetailView'; this.form.return_id.value='{ID}'; this.form.action.value='EditView'" type="submit" name="button" value=" {APP.LBL_EDIT_BUTTON_LABEL} "> <input title="{APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='EmailTemplates'; this.form.return_action.value='index'; this.form.isDuplicate.value=true; this.form.action.value='EditView'" type="submit" name="button" value=" {APP.LBL_DUPLICATE_BUTTON_LABEL} "><!-- END: edit --> <input title="{APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="check_deletable_EmailTemplate();" type="button" name="button" value=" {APP.LBL_DELETE_BUTTON_LABEL} "></td>
<td align='right'>{ADMIN_EDIT}</td>
</tr></table>
</form>
<div class="detail view">
<table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0">
{PAGINATION}
<tr>
<td scope="row" width='15%'><slot>{MOD.LBL_NAME}</slot></td>
<td><slot>{NAME}&nbsp;</slot></td>
<td scope="row"><slot>{APP.LBL_DATE_MODIFIED}</slot></td>
<td><slot>{DATE_MODIFIED} {APP.LBL_BY} {MODIFIED_BY}&nbsp;</slot></td>
<!--
<td><slot>{MOD.LBL_PUBLISH}</slot></td>
<td><slot><input type="checkbox" name="published" disabled {PUBLISHED}></slot></td>
-->
</tr>
<tr>
<td scope="row" width='15%'><slot>{MOD.LBL_DESCRIPTION}</slot></td>
<td><slot>{DESCRIPTION}&nbsp;</slot></td>
<td scope="row"><slot>{APP.LBL_DATE_ENTERED}</slot></td>
<td><slot>{DATE_ENTERED} {APP.LBL_BY} {CREATED_BY}&nbsp;</slot></td>
</tr>
<!--
<tr>
<td scope="row" valign="top"><slot></slot></td>
<td><slot></slot></td>
</tr>
-->
<tr>
<td scope="row" valign="top"><slot>{MOD.LBL_SUBJECT}</slot></td>
<td><slot>{SUBJECT}&nbsp;</slot></td>
<td scope="row" valign="top">
</td>
<td><slot>{TEAM}&nbsp;</slot></td>
</tr>
<tr>
<td scope="row" width='15%'><slot>{MOD.LBL_SEND_AS_TEXT}</slot></td>
<td><slot><input id='text_only' type="checkbox" disabled="disabled" {TEXT_ONLY_CHECKED} /></slot></td>
<td scope="row"><slot>&nbsp;</slot></td>
<td><slot>&nbsp;</slot></td>
</tr>
<tr>
<td scope="row" valign="top"><slot>{MOD.LBL_BODY}</slot></td>
<td colspan="3" style="background-color: #ffffff;" ><slot><div id="html_div" style="background-color: #ffffff;padding: 5px">{BODY_HTML}</div>
<input id='toggle_textarea_elem' onchange="toggle_textarea(this);" type="checkbox" name="toggle_html" {ALT_CHECKED}/> {MOD.LBL_SHOW_ALT_TEXT}<br>
<div id="text_div" style="display: none;background-color: #ffffff;padding: 5px"><pre>{BODY}</pre></div></slot>
<script>
function toggle_textarea(obj)
{
if(obj.checked == true)
{
document.getElementById('text_div').style.display = 'block';
} else
{
document.getElementById('text_div').style.display = 'none';
}
}
toggle_textarea( document.getElementById('toggle_textarea_elem'));
</script>
</tr>
<tr>
<td scope="row" valign="top"><slot>{MOD.LBL_ATTACHMENTS}</td>
<td colspan="3"><slot>{ATTACHMENTS}&nbsp;</slot></td>
</tr>
</table>
</div>
<!-- END: main -->

View File

@@ -0,0 +1,250 @@
<!--
/*********************************************************************************
* 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 -->
<style>
#subjectfield { height: 1.6em; }
</style>
{JAVASCRIPT}
<script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/sugar_grp1.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/yui/YAHOO.js"></script>
<script type="text/javascript" src="include/javascript/yui/connection.js"></script>
{JSLANG}
<script type="text/javascript" language="Javascript" src="modules/Emails/javascript/Email.js"></script>
<script type="text/javascript" language="Javascript" src="modules/EmailTemplates/EmailTemplate.js"></script>
<script type="text/javascript">
{FIELD_DEFS_JS}
</script>
<form name="EditView" id="EditView" method="POST" action="index.php" enctype="multipart/form-data">
<input type="hidden" name="module" value="EmailTemplates">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="action">
<input type="hidden" name="form">
<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="inpopupwindow" value="{INPOPUPWINDOW}">
<input type="hidden" name="old_id" value="{OLD_ID}">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accesskey="{APP.LBL_SAVE_BUTTON_KEY}" class="button primary"
onclick=" this.form.action.value='Save';
<!-- BEGIN: NoInbound1 -->
addUploadFiles('EditView');
addUploadDocs('EditView');
<!-- END: NoInbound1 -->
return check_form('EditView');"
type="submit" name="button" value="{APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accesskey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="{CANCEL_SCRIPT}" 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>
<td align='right'>
{ADMIN_EDIT}
</td>
</tr>
</table>
<div class="edit view">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" scope="row">
{MOD.LBL_NAME}
<span class="required">
{APP.LBL_REQUIRED_SYMBOL}
</span>
</td>
<td width="30%" >
<input name='name' tabindex="10" type="text" size='30' maxlength="255" value="{NAME}">
</td>
<td width="15%" scope="row">
</td>
<td width="30%" >
</td>
</tr>
<tr>
<td width="15%" scope="row">
{MOD.LBL_DESCRIPTION}
</td>
<td colspan="3" >
<textarea name='description' tabindex='30' cols="90" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" id="subjectfield">{DESCRIPTION}</textarea>
</td>
</tr>
<tr>
<td colspan="4">
&nbsp;
</td>
</tr>
<!-- BEGIN: NoInbound -->
<tr>
<td width="15%" scope="row" align='left'>
{MOD.LBL_INSERT_VARIABLE}&nbsp;
</td>
<td width="30%" colspan="3">
<select name='variable_module' tabindex="40" onchange="addVariables(document.EditView.variable_name,this.options[this.selectedIndex].value);">
{DROPDOWN}
</select>
<select name='variable_name' tabindex="50" onchange="showVariable();">
</select>
<span scope="row">
{MOD.LBL_USE}:
</span>
<input type="text" size="30" tabindex="60" name="variable_text" />
<!-- BEGIN: variable_button -->
<input type='button' tabindex="70" onclick='{INSERT_VARIABLE_ONCLICK}' class='button' value='{MOD.LBL_INSERT}'>
<!-- END: variable_button -->
</td>
</tr>
<!-- BEGIN: tracker_url -->
<tr>
<td width="15%" scope="row" align='left'>
{MOD.LBL_INSERT_TRACKER_URL}&nbsp;
</td>
<td width="85%" colspan="3" valign="top" >
<select tabindex='75' name='tracker_url' onchange='this.form.url_text.value=this.value'>
{TRACKER_KEY_OPTIONS}
</select>
<input type="text" size="30" id="url_text" name="url_text" value="{DEFAULT_URL_TEXT}" />
<input type='button' tabindex="77" onclick='{INSERT_URL_ONCLICK}' class='button' value='{MOD.LBL_INSERT_URL_REF}'>
</td>
</tr>
<!-- END: tracker_url -->
<!-- END: NoInbound -->
<tr>
<td width="15%" scope="row">
{MOD.LBL_SUBJECT}
</td>
<td colspan='4' >
<textarea onblur="remember_place(this);" name='subject' tabindex='80' cols="90" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" id="subjectfield">{SUBJECT}</textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan='4'>
<input name="toggle_textonly" id="toggle_textonly" onclick="toggle_text_only();" type="checkbox" {TEXTONLY_CHECKED}/>
<input name="text_only" id="text_only" type="hidden" value='{TEXTONLY_VALUE}'/>
&nbsp;{MOD.LBL_SEND_AS_TEXT}
</td>
</tr>
<tr>
<td valign="top" scope="row">
{MOD.LBL_BODY}
</td>
<!-- BEGIN: textarea -->
<td colspan="4" >
<div id='body_text_div'>
<textarea id='body_text' tabindex='90' name='body_html' cols="100" rows="20">{BODY_HTML}</textarea>
</div>
<br>
<div id='toggle_textarea_option'>
<input id='toggle_textarea_elem' onclick="toggle_textarea(this);" type="checkbox" name="toggle_html" />
{MOD.LBL_EDIT_ALT_TEXT}
</div>
<br>
<div id="text_div" style="display: none">
<textarea tabindex='110' name='body' cols="100" rows="20" >{BODY}</textarea>
</div>
</td>
<!-- END: textarea -->
</tr>
<!-- BEGIN: NoInbound2 -->
<tr>
<td valign="top" scope="row">
{MOD.LBL_ATTACHMENTS}:
</td>
<td colspan="2" nowrap>
{ATTACHMENTS_JAVASCRIPT} {ATTACHMENTS}
</td>
</tr>
<!-- END: NoInbound2 -->
</table>
</td>
</tr>
</table>
</div>
</form>
<!-- BEGIN: NoInbound3 -->
<form id="upload_form" name="upload_form" method="POST" action='AttachDocuments.php' enctype="multipart/form-data">
<div id="upload_div">
<input type="file" id="my_file" name="file_1" size="40" />
<input type="hidden" id="documentName" name="uploaddoc" onchange="docUpload(); form_reset_doc();" size="1" />
<input type="hidden" id="documentId" name="seldoc" tabindex="0" />
<input type="hidden" id="docRevId" name="seldoc" tabindex="0" />
<input type="hidden" id="documentType" name="seldoc" tabindex="0" />
<input type="button" name="add_doc" onclick="selectDoc();" value='{MOD.LBL_SUGAR_DOCUMENT}' class="button" />
</div>
<div id="attachments_div">
</div>
</form>
<!-- END: NoInbound3 -->
{tiny}
<script type="text/javascript" language="javascript">
<!-- BEGIN: NoInbound4 -->
var multi_selector = new multiFiles(document.getElementById('upload_div'));
multi_selector.addElement( document.getElementById('my_file'));
<!-- END: NoInbound4 -->
//call the function on load, this will hide the tinyMCE editor if needed
toggle_text_only(true);
function toggle_portal_flag() {
{TOGGLE_JS}
}
<!-- BEGIN: NoInbound5 -->
addVariables(document.EditView.variable_name,'{DEFAULT_MODULE}');
<!-- END: NoInbound5 -->
focus_obj = document.EditView.body;
toggle_portal_flag();
</script>
<!-- END: main -->

View File

@@ -0,0 +1,244 @@
<!--
/*********************************************************************************
* 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 -->
<style>
#subjectfield { height: 1.6em; }
</style>
{JAVASCRIPT}
<script type="text/javascript" language="Javascript" src="modules/Emails/javascript/Email.js"></script>
<script type="text/javascript" language="Javascript" src="modules/EmailTemplates/EmailTemplate.js"></script>
<script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/sugar_grp1.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" src="include/javascript/yui/YAHOO.js"></script>
<script type="text/javascript" src="include/javascript/yui/connection.js"></script>
<script type="text/javascript">
{FIELD_DEFS_JS}
</script>
{JSLANG}
<form name="EditView" id="EditView" method="POST" action="index.php" enctype="multipart/form-data">
<input type="hidden" name="module" value="EmailTemplates">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="action">
<input type="hidden" name="form">
<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="inpopupwindow" value="{INPOPUPWINDOW}">
<input type="hidden" name="old_id" value="{OLD_ID}">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accesskey="{APP.LBL_SAVE_BUTTON_KEY}" class="button primary"
onclick=" this.form.action.value='Save';
<!-- BEGIN: NoInbound1 -->
addUploadFiles('EditView');
addUploadDocs('EditView');
<!-- END: NoInbound1 -->
return check_form('EditView');"
type="submit" name="button" value="{APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accesskey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="{CANCEL_SCRIPT}" 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>
<td align='right'>
{ADMIN_EDIT}
</td>
</tr>
</table>
<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="15%" scope="row">
{MOD.LBL_NAME}
<span class="required">
{APP.LBL_REQUIRED_SYMBOL}
</span>
</td>
<td width="30%" >
<input name='name' tabindex="10" type="text" size='30' maxlength="255" value="{NAME}">
</td>
</tr>
<tr>
<td width="15%" scope="row">
{MOD.LBL_DESCRIPTION}
</td>
<td colspan="3" >
<textarea name='description' tabindex='30' cols="90" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" id="subjectfield">{DESCRIPTION}</textarea>
</td>
</tr>
<tr>
<td colspan="4">
&nbsp;
</td>
</tr>
<!-- BEGIN: NoInbound -->
<tr>
<td width="15%" scope="row" align='left'>
{MOD.LBL_INSERT_VARIABLE}&nbsp;
</td>
<td width="30%" colspan="3">
<select name='variable_module' tabindex="40" onchange="addVariables(document.EditView.variable_name,this.options[this.selectedIndex].value);">
{DROPDOWN}
</select>
<select name='variable_name' tabindex="50" onchange="showVariable();">
</select>
<span scope="row">
{MOD.LBL_USE}:
</span>
<input type="text" size="30" tabindex="60" name="variable_text" />
<!-- BEGIN: variable_button -->
<input type='button' tabindex="70" onclick='{INSERT_VARIABLE_ONCLICK}' class='button' value='{MOD.LBL_INSERT}'>
<!-- END: variable_button -->
</td>
</tr>
<!-- BEGIN: tracker_url -->
<tr>
<td width="15%" scope="row" align='left'>
{MOD.LBL_INSERT_TRACKER_URL}&nbsp;
</td>
<td width="85%" colspan="3" valign="top" >
<select tabindex='75' name='tracker_url' onchange='this.form.url_text.value=this.value'>
{TRACKER_KEY_OPTIONS}
</select>
<input type="text" size="30" id="url_text" name="url_text" value="{DEFAULT_URL_TEXT}" />
<input type='button' tabindex="77" onclick='{INSERT_URL_ONCLICK}' class='button' value='{MOD.LBL_INSERT_URL_REF}'>
</td>
</tr>
<!-- END: tracker_url -->
<!-- END: NoInbound -->
<tr>
<td width="15%" scope="row">
{MOD.LBL_SUBJECT}
</td>
<td colspan='4' >
<textarea onblur="remember_place(this);" name='subject' tabindex='80' cols="90" rows="1" style="height: 1.6.em; overflow-y:auto; font-family:sans-serif,monospace; font-size:inherit;" id="subjectfield">{SUBJECT}</textarea>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan='4'>
<input name="toggle_textonly" id="toggle_textonly" onclick="toggle_text_only();" type="checkbox" {TEXTONLY_CHECKED}/>
<input name="text_only" id="text_only" type="hidden" value='{TEXTONLY_VALUE}'/>
&nbsp;{MOD.LBL_SEND_AS_TEXT}
</td>
</tr>
<tr>
<td valign="top" scope="row">
{MOD.LBL_BODY}
</td>
<!-- BEGIN: textarea -->
<td colspan="4" >
<div id='body_text_div'>
<textarea id='body_text' tabindex='90' name='body_html' cols="100" rows="40">{BODY_HTML}</textarea>
</div>
<br>
<div id='toggle_textarea_option'>
<input id='toggle_textarea_elem' onclick="toggle_textarea(this);" type="checkbox" name="toggle_html" />
{MOD.LBL_EDIT_ALT_TEXT}
</div>
<br>
<div id="text_div" style="display: none">
<textarea id='body_text_plain' tabindex='110' name='body' cols="100" rows="40" >{BODY}</textarea>
</div>
</td>
<!-- END: textarea -->
</tr>
<!-- BEGIN: NoInbound2 -->
<tr>
<td valign="top" scope="row">
{MOD.LBL_ATTACHMENTS}:
</td>
<td colspan="2" nowrap>
{ATTACHMENTS_JAVASCRIPT} {ATTACHMENTS}
</td>
</tr>
<!-- END: NoInbound2 -->
</table>
</td>
</tr>
</table>
</form>
<!-- BEGIN: NoInbound3 -->
<form id="upload_form" name="upload_form" method="POST" action='AttachDocuments.php' enctype="multipart/form-data">
<div id="upload_div">
<input type="file" id="my_file" name="file_1" size="40" />
<input type="hidden" id="documentName" name="uploaddoc" onchange="docUpload(); form_reset_doc();" size="1" />
<input type="hidden" id="documentId" name="seldoc" tabindex="0" />
<input type="hidden" id="docRevId" name="seldoc" tabindex="0" />
<input type="hidden" id="documentType" name="seldoc" tabindex="0" />
<input type="button" name="add_doc" onclick="selectDoc();" value='{MOD.LBL_SUGAR_DOCUMENT}' class="button" />
</div>
<div id="attachments_div">
</div>
</form>
<!-- END: NoInbound3 -->
{tiny}
<script type="text/javascript" language="javascript">
<!-- BEGIN: NoInbound4 -->
var multi_selector = new multiFiles(document.getElementById('upload_div'));
multi_selector.addElement( document.getElementById('my_file'));
<!-- END: NoInbound4 -->
//call the function on load, this will hide the tinyMCE editor if needed
toggle_text_only(true);
function toggle_portal_flag() {
{TOGGLE_JS}
}
<!-- BEGIN: NoInbound5 -->
addVariables(document.EditView.variable_name,'{DEFAULT_MODULE}');
<!-- END: NoInbound5 -->
focus_obj = document.EditView.body;
toggle_portal_flag();
</script>
<!-- END: main -->

View File

@@ -0,0 +1,109 @@
<!--
/*********************************************************************************
* 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 -->
<script type="text/javascript" src="include/javascript/sugar_3.js"></script>
<script type="text/javascript" language="Javascript" src="modules/Emails/javascript/Email.js"></script>
<!-- BEGIN: SearchHeader -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
<tr>
<td>
<form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td scope="row" nowrap="nowrap">{MOD.LBL_DOC_NAME}</td>
<td nowrap="nowrap"><input type="text" name="document_name" size="10" value="{DOCUMENT_NAME}"/></td>
<td scope="row" nowrap="nowrap">{MOD.LBL_DET_IS_TEMPLATE}</td>
<td nowrap="nowrap"><select name="is_template" >{IS_TEMPLATE_OPTIONS}</select></td>
</tr>
<tr>
<td scope="row" nowrap="nowrap">{MOD.LBL_DET_TEMPLATE_TYPE}</td>
<td nowrap="nowrap"><select name="template_type" >{TEMPLATE_TYPE_OPTIONS}</select></td>
<td scope="row" nowrap="nowrap">{MOD.LBL_CATEGORY_VALUE}</td>
<td nowrap="nowrap"><select name="category_id" >{CATEGORY_OPTIONS}</select></td>
</tr>
<tr>
<td scope="row" nowrap="nowrap">{MOD.LBL_SUBCATEGORY_VALUE}</td>
<td nowrap="nowrap"><select name="subcategory_id" >{SUB_CATEGORY_OPTIONS}</select></td>
<td align="right" colspan=2>
<input type="hidden" name="module" value="EmailTemplates" />
<input type="hidden" name="action" value="PopupDocumentsCampaignTemplate" />
<input type="hidden" name="to_pdf" value="true" />
<input type="hidden" name="query" value="true" />
<input type="hidden" name="record_id" value="" />
<input type="hidden" name="target" value="{DOCUMENT_TARGET}" />
<input type="submit" name="button" class="button"
title="{APP.LBL_SEARCH_BUTTON_TITLE}"
accessKey="{APP.LBL_SEARCH_BUTTON_KEY}"
value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<!-- END: SearchHeader -->
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
<!-- BEGIN: list_nav_row -->
{PAGINATION}
<!-- END: list_nav_row -->
<tr height="20" >
<td scope="col" width="33%" nowrap="nowrap"><a href="{ORDER_BY}document_name" class="listViewThLinkS1">{MOD.LBL_LIST_DOCUMENT}{arrow_start}{name_arrow}{arrow_end}</a></td>
<td scope="col" width="33%" nowrap="nowrap">{MOD.LBL_LIST_REVISION}</td>
<td scope="col" width="34%" nowrap="nowrap">{MOD.LBL_LIST_STATUS}</td>
</tr>
<!-- BEGIN: row -->
<tr height="20" class="{ROW_COLOR}S1">
<td scope="row" valign="top">
<a href="javascript:void(0);" onclick="setDocumentToCampaignTemplate('{DOCUMENT_TARGET}','{DOCUMENT.ID}', '{DOCUMENT.DOCUMENT_NAME}','{DOCUMENT.DOCUMENT_REVISION_ID}','{DOCUMENT.LAST_REV_MIME_TYPE}');" >{DOCUMENT.DOCUMENT_NAME}</a>
</td>
<td valign="top">{DOCUMENT.LATEST_REVISION}</td>
<td valign="top">{DOCUMENT.STATUS_ID}</td>
</tr>
<tr>
<td colspan="20" class="listViewHRS1"></td>
</tr>
<!-- END: row -->
</table>