2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
40 <script type="text/javascript" src="include/javascript/sugar_3.js?v={VERSION_MARK}"></script>
41 <script type="text/javascript" language="Javascript" src="modules/Emails/javascript/Email.js?v={VERSION_MARK}"></script>
43 <!-- BEGIN: SearchHeader -->
44 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
47 <form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
48 <table width="100%" border="0" cellspacing="0" cellpadding="0">
50 <td scope="row" nowrap="nowrap">{MOD.LBL_DOC_NAME}</td>
51 <td nowrap="nowrap"><input type="text" name="document_name" size="10" value="{DOCUMENT_NAME}"/></td>
52 <td scope="row" nowrap="nowrap">{MOD.LBL_DET_IS_TEMPLATE}</td>
53 <td nowrap="nowrap"><select name="is_template" >{IS_TEMPLATE_OPTIONS}</select></td>
56 <td scope="row" nowrap="nowrap">{MOD.LBL_DET_TEMPLATE_TYPE}</td>
57 <td nowrap="nowrap"><select name="template_type" >{TEMPLATE_TYPE_OPTIONS}</select></td>
58 <td scope="row" nowrap="nowrap">{MOD.LBL_CATEGORY_VALUE}</td>
59 <td nowrap="nowrap"><select name="category_id" >{CATEGORY_OPTIONS}</select></td>
62 <td scope="row" nowrap="nowrap">{MOD.LBL_SUBCATEGORY_VALUE}</td>
63 <td nowrap="nowrap"><select name="subcategory_id" >{SUB_CATEGORY_OPTIONS}</select></td>
64 <td align="right" colspan=2>
65 <input type="hidden" name="module" value="EmailTemplates" />
66 <input type="hidden" name="action" value="PopupDocumentsCampaignTemplate" />
67 <input type="hidden" name="to_pdf" value="true" />
68 <input type="hidden" name="query" value="true" />
69 <input type="hidden" name="record_id" value="" />
70 <input type="hidden" name="target" value="{DOCUMENT_TARGET}" />
71 <input type="submit" name="button" class="button"
72 id="search_form_submit"
73 title="{APP.LBL_SEARCH_BUTTON_TITLE}"
74 value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
82 <!-- END: SearchHeader -->
89 <table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
90 <!-- BEGIN: list_nav_row -->
92 <!-- END: list_nav_row -->
94 <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>
95 <td scope="col" width="33%" nowrap="nowrap">{MOD.LBL_LIST_REVISION}</td>
96 <td scope="col" width="34%" nowrap="nowrap">{MOD.LBL_LIST_STATUS}</td>
99 <tr height="20" class="{ROW_COLOR}S1">
100 <td scope="row" valign="top">
101 <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>
103 <td valign="top">{DOCUMENT.LATEST_REVISION}</td>
104 <td valign="top">{DOCUMENT.STATUS_ID}</td>
107 <td colspan="20" class="listViewHRS1"></td>