[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 13 14 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 15 "http://www.w3.org/TR/html4/loose.dtd"> 16 <html> 17 <head> 18 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 19 <title>Compose Mail</title> 20 <link REL="SHORTCUT ICON" HREF="include/images/vtigercrm_icon.ico"> 21 <style type="text/css">@import url("themes/{$THEME}/style.css");</style> 22 <script language="javascript" type="text/javascript" src="include/scriptaculous/prototype.js"></script> 23 <script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script> 24 <script type="text/javascript" src="include/fckeditor/fckeditor.js"></script> 25 </head> 26 <body marginheight="0" marginwidth="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> 27 <form name="EditView" method="POST" ENCTYPE="multipart/form-data" action="index.php"> 28 <input type="hidden" name="form"> 29 <input type="hidden" name="send_mail"> 30 <input type="hidden" name="contact_id" value="{$CONTACT_ID}"> 31 <input type="hidden" name="user_id" value="{$USER_ID}"> 32 <input type="hidden" name="filename" value="{$FILENAME}"> 33 <input type="hidden" name="old_id" value="{$OLD_ID}"> 34 <input type="hidden" name="module" value="{$MODULE}"> 35 <input type="hidden" name="record" value="{$ID}"> 36 <input type="hidden" name="mode" value="{$MODE}"> 37 <input type="hidden" name="action"> 38 <input type="hidden" name="popupaction" value="create"> 39 <input type="hidden" name="hidden_toid"> 40 <table class="small mailClient" border="0" cellpadding="0" cellspacing="0" width="100%"> 41 <tbody> 42 43 <tr> 44 <td colspan=3 > 45 <!-- Email Header --> 46 <table border=0 cellspacing=0 cellpadding=0 width=100% class="mailClientWriteEmailHeader"> 47 <tr> 48 <td >{$MOD.LBL_COMPOSE_EMAIL}</td> 49 </tr> 50 </table> 51 52 53 </td> 54 </tr> 55 {foreach item=row from=$BLOCKS} 56 {foreach item=elements from=$row} 57 {if $elements.2.0 eq 'parent_id'} 58 <tr> 59 <td class="mailSubHeader" align="right"><b>{$MOD.LBL_TO}</b></td> 60 <td class="cellText" style="padding: 5px;"> 61 <input name="{$elements.2.0}" type="hidden" value="{$IDLISTS}"> 62 <input type="hidden" name="saved_toid" value="{$TO_MAIL}"> 63 <textarea id="parent_name" readonly cols="70">{$TO_MAIL}</textarea> 64 </td> 65 <td class="cellText" style="padding: 5px;" align="left" nowrap> 66 <select name="parent_type"> 67 {foreach key=labelval item=selectval from=$elements.1.0} 68 <option value="{$labelval}" {$selectval}>{$APP[$labelval]}</option> 69 {/foreach} 70 </select> 71 72 <span class="mailClientCSSButton"> 73 <img src="{$IMAGE_PATH}select.gif" alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.EditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=set_return_emails","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'> 74 </span><span class="mailClientCSSButton" ><input type="image" src="{$IMAGE_PATH}clear_field.gif" alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.hidden_toid.value='';this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'> 75 </span> 76 </td> 77 </tr> 78 <tr> 79 <td class="mailSubHeader" style="padding: 5px;" align="right">{$MOD.LBL_CC}</td> 80 <td class="cellText" style="padding: 5px;"> 81 <input name="ccmail" class="txtBox" type="text" value="{$CC_MAIL}" style="width:99%"> 82 </td> 83 <td valign="top" class="cellLabel" rowspan="4"><div id="attach_cont" class="addEventInnerBox" style="overflow:auto;height:110px;width:100%;position:relative;left:0px;top:0px;"></div> 84 </tr> 85 <tr> 86 <td class="mailSubHeader" style="padding: 5px;" align="right">{$MOD.LBL_BCC}</td> 87 <td class="cellText" style="padding: 5px;"> 88 <input name="bccmail" class="txtBox" type="text" value="{$BCC_MAIL}" style="width:99%"> 89 </td> 90 </tr> 91 {elseif $elements.2.0 eq 'subject'} 92 <tr> 93 <td class="mailSubHeader" style="padding: 5px;" align="right" nowrap><font color="red">*</font>{$elements.1.0} :</td> 94 {if $WEBMAIL eq 'true'} 95 <td class="cellText" style="padding: 5px;"><input type="text" class="txtBox" name="{$elements.2.0}" value="{$SUBJECT}" id="{$elements.2.0}" style="width:99%"></td> 96 {else} 97 <td class="cellText" style="padding: 5px;"><input type="text" class="txtBox" name="{$elements.2.0}" value="{$elements.3.0}" id="{$elements.2.0}" style="width:99%"></td> 98 {/if} 99 </tr> 100 {elseif $elements.2.0 eq 'filename'} 101 102 <tr> 103 <td class="mailSubHeader" style="padding: 5px;" align="right" nowrap>{$elements.1.0} :</td> 104 <td class="cellText" style="padding: 5px;"> 105 <input name="{$elements.2.0}" type="file" class="small txtBox" value="" size="78"/> 106 <div id="attach_temp_cont" style="display:none;"> 107 <table class="small" width="100% "> 108 {foreach item="attach_files" key="attach_id" from=$elements.3} 109 <tr id="row_{$attach_id}"><td width="90%">{$attach_files}</td><td><img src="{$IMAGE_PATH}no.gif" onClick="delAttachments({$attach_id})" alt="{$APP.LBL_DELETE_BUTTON}" title="{$APP.LBL_DELETE_BUTTON}" style="cursor:pointer;"></td></tr> 110 {/foreach} 111 </table> 112 </div> 113 {$elements.3.0} 114 </td> 115 </tr> 116 <tr> 117 <td colspan="3" class="mailSubHeader" style="padding: 5px;" align="center"> 118 <input title="{$APP.LBL_SELECTEMAILTEMPLATE_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECTEMAILTEMPLATE_BUTTON_KEY}" class="crmbutton small edit" onclick="window.open('index.php?module=Users&action=lookupemailtemplates','emailtemplate','top=100,left=200,height=400,width=500,menubar=no,addressbar=no,status=yes')" type="button" name="button" value=" {$APP.LBL_SELECTEMAILTEMPLATE_BUTTON_LABEL} "> 119 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmbutton small save" onclick="return email_validate(this.form,'save');" type="button" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " > 120 <input name="{$MOD.LBL_SEND}" value=" {$APP.LBL_SEND} " class="crmbutton small save" type="button" onclick="return email_validate(this.form,'send');"> 121 <input name="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " class="crmbutton small cancel" type="button" onClick="window.close()"> 122 </td> 123 </tr> 124 {elseif $elements.2.0 eq 'description'} 125 <tr> 126 <td colspan="3" align="center" valign="top" height="320"> 127 {if $WEBMAIL eq 'true'} 128 <textarea style="display: none;" class="detailedViewTextBox" name="description" cols="90" rows="8">{$DESCRIPTION}</textarea> 129 {else} 130 <textarea style="display: none;" class="detailedViewTextBox" id="description" name="description" cols="90" rows="16">{$elements.3.0}</textarea> {/if} 131 </td> 132 </tr> 133 {/if} 134 {/foreach} 135 {/foreach} 136 137 <tr> 138 <td colspan="3" class="mailSubHeader" style="padding: 5px;" align="center"> 139 <input title="{$APP.LBL_SELECTEMAILTEMPLATE_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECTEMAILTEMPLATE_BUTTON_KEY}" class="crmbutton small edit" onclick="window.open('index.php?module=Users&action=lookupemailtemplates','emailtemplate','top=100,left=200,height=400,width=500,menubar=no,addressbar=no,status=yes')" type="button" name="button" value=" {$APP.LBL_SELECTEMAILTEMPLATE_BUTTON_LABEL} "> 140 <input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmbutton small save" onclick="return email_validate(this.form,'save');" type="button" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " > 141 <input name="{$MOD.LBL_SEND}" value=" {$APP.LBL_SEND} " class="crmbutton small save" type="button" onclick="return email_validate(this.form,'send');"> 142 <input name="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " class="crmbutton small cancel" type="button" onClick="window.close()"> 143 </td> 144 </tr> 145 </tbody> 146 </table> 147 </form> 148 </body> 149 {literal} 150 <script> 151 function email_validate(oform,mode) 152 { 153 if(oform.parent_name.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) 154 { 155 alert('No recipients were specified'); 156 return false; 157 } 158 if(oform.subject.value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) 159 { 160 if(email_sub = prompt('You did not specify a subject from this email. If you would like to provide one, please type it now','(no-Subject)')) 161 { 162 oform.subject.value = email_sub; 163 }else 164 { 165 return false; 166 } 167 } 168 if(mode == 'send') 169 { 170 server_check() 171 }else 172 { 173 oform.action.value='Save'; 174 oform.submit(); 175 } 176 } 177 function server_check() 178 { 179 var oform = window.document.EditView; 180 new Ajax.Request( 181 'index.php', 182 {queue: {position: 'end', scope: 'command'}, 183 method: 'post', 184 postBody:"module=Emails&action=EmailsAjax&file=Save&ajax=true&server_check=true", 185 onComplete: function(response) { 186 if(response.responseText == 'SUCESS') 187 { 188 oform.send_mail.value='true'; 189 oform.action.value='Save'; 190 oform.submit(); 191 }else 192 { 193 alert('Please Configure Your Mail Server'); 194 return false; 195 } 196 } 197 } 198 ); 199 } 200 $('attach_cont').innerHTML = $('attach_temp_cont').innerHTML; 201 function delAttachments(id) 202 { 203 new Ajax.Request( 204 'index.php', 205 {queue: {position: 'end', scope: 'command'}, 206 method: 'post', 207 postBody: 'module=Contacts&action=ContactsAjax&file=DelImage&attachmodule=Emails&recordid='+id, 208 onComplete: function(response) 209 { 210 Effect.Fade('row_'+id); 211 } 212 } 213 ); 214 215 } 216 </script> 217 <script type="text/javascript" defer="1"> 218 var oFCKeditor = null; 219 oFCKeditor = new FCKeditor( "description" ,"100%","370") ; 220 oFCKeditor.BasePath = "include/fckeditor/" ; 221 oFCKeditor.ReplaceTextarea(); 222 </script> 223 {/literal} 224 </html>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |