PageRenderTime 4ms CodeModel.GetById 5ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/Smarty/templates/ActivityEditView.tpl

https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql
Smarty Template | 1041 lines | 993 code | 33 blank | 15 comment | 29 complexity | 3232a1ffc79105337bcd7f21bef22372 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1{*<!--
  2
  3/*********************************************************************************
  4** The contents of this file are subject to the vtiger CRM Public License Version 1.0
  5 * ("License"); You may not use this file except in compliance with the License
  6 * The Original Code is:  vtiger CRM Open Source
  7 * The Initial Developer of the Original Code is vtiger.
  8 * Portions created by vtiger are Copyright (C) vtiger.
  9 * All Rights Reserved.
 10*
 11 ********************************************************************************/
 12
 13-->*}
 14
 15{*<!-- module header -->*}
 16
 17<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
 18<script type="text/javascript" src="jscalendar/calendar.js"></script>
 19<script type="text/javascript" src="jscalendar/lang/calendar-{$CALENDAR_LANG}.js"></script>
 20<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
 21<script type="text/javascript" src="modules/{$MODULE}/Calendar.js"></script>
 22<script type="text/javascript">
 23var gVTModule = '{$smarty.request.module|@vtlib_purify}';
 24</script>
 25<script type="text/javascript" src="include/js/FieldDependencies.js"></script>
 26<script type="text/javascript" src="modules/com_vtiger_workflow/resources/jquery-1.2.6.js"></script>
 27<script type="text/javascript">
 28	jQuery.noConflict();
 29</script>
 30{if $PICKIST_DEPENDENCY_DATASOURCE neq ''}
 31<script type="text/javascript">
 32	jQuery(document).ready(function() {ldelim} (new FieldDependencies({$PICKIST_DEPENDENCY_DATASOURCE})).init() {rdelim});
 33</script>
 34{/if}
 35
 36{*<!-- Contents -->*}
 37<form name="EditView" method="POST" action="index.php"
 38	{if $ACTIVITY_MODE neq 'Task'} onsubmit="if(check_form()){ldelim} VtigerJS_DialogBox.block(); {rdelim} else {ldelim} return false; {rdelim}"
 39	{else} onsubmit="maintask_check_form();if(formValidate()) {ldelim} VtigerJS_DialogBox.block(); {rdelim} else {ldelim} return false; {rdelim}" {/if} >
 40<input type="hidden" name="time_start" id="time_start">
 41<input type="hidden" name="view" value="{$view}">
 42<input type="hidden" name="hour" value="{$hour}">
 43<input type="hidden" name="day" value="{$day}">
 44<input type="hidden" name="month" value="{$month}">
 45<input type="hidden" name="year" value="{$year}">
 46<input type="hidden" name="viewOption" value="{$viewOption}">
 47<input type="hidden" name="subtab" value="{$subtab}">
 48<input type="hidden" name="maintab" value="{$maintab}">
 49<table width="100%" cellpadding="2" cellspacing="0" border="0">
 50<tr>
 51        <td>
 52                <table cellpadding="0" cellspacing="5" border="0">
 53			{include file='EditViewHidden.tpl'}
 54                </table>
 55<table  border="0" cellpadding="5" cellspacing="0" width="100%" >
 56<tr>
 57        <td class="lvtHeaderText" style="border-bottom:1px dotted #cccccc">
 58
 59                <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
 60                        <tr><td>
 61
 62				{if $OP_MODE eq 'edit_view'}
 63					<span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} - {$APP.LBL_EDITING} {$SINGLE_MOD} {$APP.LBL_INFORMATION}</span> <br>
 64					<span class="small">{$UPDATEINFO}	 </span>
 65				{/if}
 66				{if $OP_MODE eq 'create_view'}
 67					{if $DUPLICATE neq 'true'}
 68					<span class="lvtHeaderText">{$APP.LBL_CREATING} {$SINGLE_MOD}</span> <br>
 69					{else}
 70					<span class="lvtHeaderText">{$APP.LBL_DUPLICATING} "{$NAME}"</span> <br>
 71					{/if}
 72				{/if}
 73			</td></tr>
 74		</table>
 75        </td>
 76</tr>
 77
 78<tr><td>
 79<table border="0" cellpadding="5" cellspacing="0" width="100%">
 80        <tr>
 81                <td valign=top align=left >
 82                           <table border=0 cellspacing=0 cellpadding=0 width=100%>
 83                                <tr>
 84					<td align=left>
 85					<!-- content cache -->
 86
 87					<table border=0 cellspacing=0 cellpadding=0 width=100%>
 88					  <tr>
 89					     <td style="padding:10px">
 90						     <!-- General details -->
 91						     <table border=0 cellspacing=0 cellpadding=0 width=100% >
 92						     <tr>
 93							<td  colspan=4 style="padding:5px">
 94								<div align="center">
 95								<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmbutton small save" onclick="this.form.action.value='Save';"  type="submit" name="button" value="  {$APP.LBL_SAVE_BUTTON_LABEL}  " style="width:70px" >
 96								<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="crmbutton small cancel" onclick="window.history.back()" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}  " style="width:70px">
 97								</div>
 98							</td>
 99						     </tr>
100						     </table>
101						     <!-- included to handle the edit fields based on ui types -->
102						     {foreach key=header item=data from=$BLOCKS}
103							     {if $header neq $APP.LBL_CUSTOM_INFORMATION && $header neq 'LBL_RECURRENCE_INFORMATION' && $header neq getTranslatedString('LBL_RELATED_TO')}
104						     <table border=0 cellspacing=0 cellpadding=0 width=100% class="small">
105						     <tr>
106							<td colspan=4 class="tableHeading">
107								<b>{$header}</b>
108							</td>
109						     </tr>
110						     </table>
111							     {/if}
112						     {/foreach}
113						     {if $ACTIVITY_MODE neq 'Task'}
114							<input type="hidden" name="time_end" id="time_end">
115							<input type="hidden" name="followup_due_date" id="followup_due_date">
116							<input type="hidden" name="followup_time_start" id="followup_time_start">
117                                                        <input type="hidden" name="followup_time_end" id="followup_time_end">
118							<input type=hidden name="inviteesid" id="inviteesid" value="">
119							<input type="hidden" name="duration_hours" value="0">
120							<input type="hidden" name="duration_minutes" value="0">
121							<input type="hidden" name="dateformat" value="{$DATEFORMAT}">
122						     <table border=0 cellspacing=0 cellpadding=5 width=100% >
123							{if $LABEL.activitytype neq ''}
124							<tr>
125								<td class="cellLabel" nowrap  width=20% align="right"><b>{$MOD.LBL_EVENTTYPE}</b></td>
126								<td class="cellInfo" width=80% align="left">
127									<table>
128										<tr>
129<!--										{foreach key=tyeparrkey item=typearr from=$ACTIVITYDATA.activitytype}
130                                                                                {if $typearr[2] eq 'selected' && $typearr[1] eq 'Call'}
131                                                                                        {assign var='meetcheck' value=''}
132                                                                                        {assign var='callcheck' value='checked'}
133                                                                                {elseif $typearr[2] eq 'selected' && $typearr[1] eq 'Meeting'}
134                                                                                        {assign var='meetcheck' value='checked'}
135                                                                                        {assign var='callcheck' value=''}
136                                                                                {else}
137																						{assign var='meetcheck' value=''}
138                                                                                        {assign var='callcheck' value='checked'}
139                                                                                {/if}
140                                        {/foreach}-->
141	                                    <select name="activitytype" class="small">
142											{foreach item=arr from=$ACTIVITYDATA.activitytype}
143												{if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
144												<option value="{$arr[0]}" {$arr[2]}>
145													{$arr[0]}
146												</option>
147												{else}
148												<option value="{$arr[1]}" {$arr[2]}>
149							                                                {$arr[0]}
150							                                        </option>
151												{/if}
152											{/foreach}
153									   </select>
154										</tr>
155									</table>
156								</td>
157							</tr>
158							{/if}
159							<tr>
160								<td class="cellLabel" nowrap align="right"><b><font color="red">{$TYPEOFDATA.subject}</font>{$MOD.LBL_EVENTNAME}</b></td>
161								<td class="cellInfo" align="left"><input name="subject" type="text" class="textbox" value="{$ACTIVITYDATA.subject}" style="width:50%">&nbsp;&nbsp;&nbsp;
162								{if $LABEL.visibility neq ''}
163								{foreach key=key_one item=arr from=$ACTIVITYDATA.visibility}
164                                                                        {if $arr[1] eq 'Public' && $arr[2] eq 'selected'}
165                                                                                {assign var="visiblecheck" value="checked"}
166                                                                        {else}
167                                                                                {assign var="visiblecheck" value=""}
168                                                                        {/if}
169                                                                        {/foreach}
170                                                                        <input name="visibility" value="Public" type="checkbox" {$visiblecheck}>{$MOD.LBL_PUBLIC}
171								{/if}
172								</td>
173							</tr>
174							{if $LABEL.description neq ''}
175							<tr>
176                        					<td class="cellLabel" valign="top" nowrap align="right"><b><font color="red">{$TYPEOFDATA.description}</font>{$LABEL.description}</b></td>
177								<td class="cellInfo" align="left"><textarea style="width:100%; height : 60px;" name="description">{$ACTIVITYDATA.description}</textarea></td>
178                					</tr>
179							{/if}
180							{if $LABEL.location neq ''}
181							<tr>
182			                     <td class="cellLabel" align="right" valign="top"><b><font color="red">{$TYPEOFDATA.location}</font>{$MOD.LBL_APP_LOCATION}</b></td>
183								<td class="cellInfo" align="left"><input name="location" type="text" class="textbox" value="{$ACTIVITYDATA.location}" style="width:50%">
184							</tr>
185							{/if}
186
187							<tr>
188								<td colspan=2 width=80% align="center">
189								<table border=0 cellspacing=0 cellpadding=3 width=80%>
190									<tr>
191										 <td >{if $LABEL.eventstatus neq ''}<b><font color="red">{$TYPEOFDATA.eventstatus}</font>{$LABEL.eventstatus}</b>{/if}</td>
192                                                                                <td >{if $LABEL.assigned_user_id != ''}<b>
193											{$LABEL.assigned_user_id}</b>
194											{/if}</td>
195									</tr>
196									<tr>
197										<td valign=top>
198										{if $LABEL.eventstatus neq ''}
199                                                                                <select name="eventstatus" id="eventstatus" class=small onChange = "getSelectedStatus();" >
200                                                                                        {foreach item=arr from=$ACTIVITYDATA.eventstatus}
201											 {if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
202                                                                                       		 <option value="{$arr[0]}" {$arr[2]}>{$arr[0]}</option>
203                                                                                        {else}
204                                                                                                <option value="{$arr[1]}" {$arr[2]}>
205                                                                                                        {$arr[0]}
206                                                                                                </option>
207                                                                                        {/if}
208                                                                                        {/foreach}
209                                                                                </select>
210										{/if}
211                                                                        	</td>
212										<td valign=top rowspan=2>
213											{if $ACTIVITYDATA.assigned_user_id != ''}
214											{assign var=check value=1}
215                                        						{foreach key=key_one item=arr from=$ACTIVITYDATA.assigned_user_id}
216                                                					{foreach key=sel_value item=value from=$arr}
217                                                        					{if $value ne ''}
218                                                                					{assign var=check value=$check*0}
219                                                        					{else}
220                                                                					{assign var=check value=$check*1}
221                                                        					{/if}
222                                                					{/foreach}
223                                        						{/foreach}
224
225                                        						{if $check eq 0}
226                                                						{assign var=select_user value='checked'}
227                                                						{assign var=style_user value='display:block'}
228                                                						{assign var=style_group value='display:none'}
229                                        						{else}
230                                                						{assign var=select_group value='checked'}
231                                                						{assign var=style_user value='display:none'}
232                                                						{assign var=style_group value='display:block'}
233                                        						{/if}
234                                        						<input type="radio" name="assigntype" {$select_user} value="U" onclick="toggleAssignType(this.value)">&nbsp;{$APP.LBL_USER}
235                                        						{if $secondvalue.assigned_user_id neq ''}
236                                                					<input type="radio" name="assigntype" {$select_group} value="T" onclick="toggleAssignType(this.value)">&nbsp;{$APP.LBL_GROUP}
237                                        						{/if}
238											<span id="assign_user" style="{$style_user}">
239                                     				           			<select name="assigned_user_id" class="small">
240                                                        					{foreach key=key_one item=arr from=$ACTIVITYDATA.assigned_user_id}
241                                                                				{foreach key=sel_value item=value from=$arr}
242                                                                        				<option value="{$key_one}" {$value}>{$sel_value}</option>
243                                                                				{/foreach}
244                                                        					{/foreach}
245                                                			   			</select>
246                                        			       			</span>
247
248                                        						{if $secondvalue.assigned_user_id neq ''}
249                                                					<span id="assign_team" style="{$style_group}">
250                                                        					<select name="assigned_group_id" class="small">';
251                                                                				{foreach key=key_one item=arr from=$secondvalue.assigned_user_id}
252                                                                        			{foreach key=sel_value item=value from=$arr}
253                                                                                			<option value="{$key_one}" {$value}>{$sel_value}</option>
254                                                                        			{/foreach}
255                                                                				{/foreach}
256                                                        					</select>
257                                                					</span>
258                                        						{/if}
259											{else}
260											<input name="assigned_user_id" value="{$CURRENTUSERID}" type="hidden">
261											{/if}
262											<br>{if $LABEL.sendnotification neq ''}
263												{if $ACTIVITYDATA.sendnotification eq 1}
264
265												<input type="checkbox" name="sendnotification" checked>&nbsp;{$LABEL.sendnotification}
266												{else}
267												<input type="checkbox" name="sendnotification" >&nbsp;{$LABEL.sendnotification}
268												{/if}
269											{/if}
270										</td>
271									</tr>
272									{if $LABEL.taskpriority neq ''}
273									<tr>
274										<td valign=top><b>{$LABEL.taskpriority}</b>
275										<br>
276										<select name="taskpriority" id="taskpriority">
277                                                                                        {foreach item=arr from=$ACTIVITYDATA.taskpriority}
278											 {if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
279                                                                                        <option value="{$arr[0]}" {$arr[2]}>{$arr[0]}</option>
280                                                                                        {else}
281                                                                                                <option value="{$arr[1]}" {$arr[2]}>
282                                                                                                        {$arr[0]}
283                                                                                                </option>
284                                                                                        {/if}
285                                                                                        {/foreach}
286                                                                                </select>
287										</td>
288
289									</tr>
290									{/if}
291								</table>
292							</td></tr>
293						     </table>
294						     <hr noshade size=1>
295						     <table border=0 id="date_table" cellspacing=0 cellpadding=5 width=100% align=center bgcolor="#FFFFFF">
296							<tr>
297								<td >
298									<table border=0 cellspacing=0 cellpadding=2 width=100% align=center>
299									<tr><td width=50% id="date_table_firsttd" valign=top style="border-right:1px solid #dddddd">
300										<table border=0 cellspacing=0 cellpadding=2 width=100% align=center>
301											<tr><td colspan=3 ><b>{$MOD.LBL_EVENTSTAT}</b></td></tr>
302											<tr><td colspan=3>{$STARTHOUR}</td></tr>
303											<tr><td>
304												{foreach key=date_value item=time_value from=$ACTIVITYDATA.date_start}
305                                                                                                        {assign var=date_val value="$date_value"}
306                                                                                                        {assign var=time_val value="$time_value"}
307	                                                                                        {/foreach}
308                                                                                                <input type="text" name="date_start" id="jscal_field_date_start" class="textbox" style="width:90px" onChange="dochange('jscal_field_date_start','jscal_field_due_date');" value="{$date_val}"></td><td width=100%><img border=0 src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$MOD.LBL_SET_DATE}" title="{$MOD.LBL_SET_DATE}" id="jscal_trigger_date_start">
309													{foreach key=date_fmt item=date_str from=$secondvalue.date_start}
310													{assign var=date_vl value="$date_fmt"}
311													{/foreach}
312													<script type="text/javascript">
313														Calendar.setup ({ldelim}
314														inputField : "jscal_field_date_start", ifFormat : "{$date_vl}", showsTime : false, button : "jscal_trigger_date_start", singleClick : true, step : 1
315														{rdelim})
316													</script>
317											</td></tr>
318										</table></td>
319										<td width=50% valign=top id="date_table_secondtd">
320											<table border=0 cellspacing=0 cellpadding=2 width=100% align=center>
321												<tr><td colspan=3><b>{$MOD.LBL_EVENTEDAT}</b></td></tr>
322												<tr><td colspan=3>{$ENDHOUR}
323												</td></tr>
324												<tr><td>
325													{foreach key=date_value item=time_value from=$ACTIVITYDATA.due_date}
326													{assign var=date_val value="$date_value"}
327													{assign var=time_val value="$time_value"}
328													{/foreach}
329													<input type="text" name="due_date" id="jscal_field_due_date" class="textbox" style="width:90px" value="{$date_val}"></td><td width=100%><img border=0 src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$MOD.LBL_SET_DATE}" title="{$MOD.LBL_SET_DATE}" id="jscal_trigger_due_date">
330													{foreach key=date_fmt item=date_str from=$secondvalue.due_date}
331													{assign var=date_vl value="$date_fmt"}
332                                                                                                        {/foreach}
333													<script type="text/javascript">
334														Calendar.setup ({ldelim}
335														inputField : "jscal_field_due_date", ifFormat : "{$date_vl}", showsTime : false, button : "jscal_trigger_due_date", singleClick : true, step : 1
336														{rdelim})
337													</script>
338												</td></tr>
339											</table>
340										</td>
341										<td width=33% valign=top style="display:none;border-left:1px solid #dddddd" id="date_table_thirdtd">
342                                                                                        <table border=0 cellspacing=0 cellpadding=2 width=100% align=center>
343                                                                                                <tr><td colspan=3><b><input type="checkbox" name="followup"><b>{$MOD.LBL_HOLDFOLLOWUP}</b></td></tr>
344                                                                                                <tr><td colspan=3>{$FOLLOWUP}</td></tr>
345                                                                                                <tr><td>
346                                                                                                        {foreach key=date_value item=time_value from=$ACTIVITYDATA.due_date}
347                                                                                                        {assign var=date_val value="$date_value"}
348                                                                                                        {assign var=time_val value="$time_value"}
349                                                                                                        {/foreach}
350                                                                                                        <input type="text" name="followup_date" id="jscal_field_followup_date" class="textbox" style="width:90px" value="{$date_val}"></td><td width=100%><img border=0 src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$MOD.LBL_SET_DATE}" title="{$MOD.LBL_SET_DATE}" id="jscal_trigger_followup_date">
351                                                                                                        {foreach key=date_fmt item=date_str from=$secondvalue.due_date}
352                                                                                                        {assign var=date_vl
353 value="$date_fmt"}
354                                                                                                        {/foreach}
355													<script type="text/javascript">
356                                                                                                        Calendar.setup ({ldelim}
357                                                                                                                inputField : "jscal_field_followup_date", ifFormat : "{$date_vl}", showsTime : false, button : "jscal_trigger_followup_date", singleClick : true, step : 1
358                                                                                                                {rdelim})
359                                                                                                        </script>
360                                                                                                </td></tr>
361                                                                                        </table>
362                                                                                </td>
363									</tr>
364								</table></td>
365							</tr>
366						     </table>
367
368						     {if $CUSTOM_FIELDS_DATA|@count > 0}
369	                             <table border=0 cellspacing=0 cellpadding=5 width=100% >
370	                             	<tr>{strip}
371							     		<td colspan=4 class="tableHeading">
372										<b>{$APP.LBL_CUSTOM_INFORMATION}</b>
373										</td>{/strip}
374						          	</tr>
375						          	<tr>
376						          		{foreach key=index item=maindata from=$CUSTOM_FIELDS_DATA}
377						          			{include file="EditViewUI.tpl"}
378											{if ($index+1)% 2 == 0}
379												</tr><tr>
380											{/if}
381							            {/foreach}
382							        {if ($index+1)% 2 != 0}
383							        	<td width="20%"></td><td width="30%"></td>
384							        {/if}
385						            </tr>
386	                             </table>
387                             {/if}
388						     <br>
389						     <table border=0 cellspacing=0 cellpadding=0 width=100% align=center>
390							<tr><td>
391								<table border=0 cellspacing=0 cellpadding=3 width=100%>
392									<tr>
393										<td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
394										<td id="cellTabInvite" class="dvtSelectedCell" align=center nowrap><a href="javascript:doNothing()" onClick="switchClass('cellTabInvite','on');switchClass('cellTabAlarm','off');switchClass('cellTabRepeat','off');switchClass('cellTabRelatedto','off');ghide('addEventAlarmUI');gshow('addEventInviteUI','',document.EditView.date_start.value,document.EditView.due_date.value,document.EditView.starthr.value,document.EditView.startmin.value,document.EditView.startfmt.value,document.EditView.endhr.value,document.EditView.endmin.value,document.EditView.endfmt.value);ghide('addEventRepeatUI');ghide('addEventRelatedtoUI');">{$MOD.LBL_INVITE}</a></td>
395										<td class="dvtTabCache" style="width:10px">&nbsp;</td>
396										{if $LABEL.reminder_time neq ''}
397										<td id="cellTabAlarm" class="dvtUnSelectedCell" align=center nowrap><a href="javascript:doNothing()" onClick="switchClass('cellTabInvite','off');switchClass('cellTabAlarm','on');switchClass('cellTabRepeat','off');switchClass('cellTabRelatedto','off');gshow('addEventAlarmUI','',document.EditView.date_start.value,document.EditView.due_date.value,document.EditView.starthr.value,document.EditView.startmin.value,document.EditView.startfmt.value,document.EditView.endhr.value,document.EditView.endmin.value,document.EditView.endfmt.value);ghide('addEventInviteUI');ghide('addEventRepeatUI');ghide('addEventRelatedtoUI');">{$MOD.LBL_REMINDER}</a></td>
398										{/if}
399										<td class="dvtTabCache" style="width:10px">&nbsp;</td>
400										{if $LABEL.recurringtype neq ''}
401										<td id="cellTabRepeat" class="dvtUnSelectedCell" align=center nowrap><a href="javascript:doNothing()" onClick="switchClass('cellTabInvite','off');switchClass('cellTabAlarm','off');switchClass('cellTabRepeat','on');switchClass('cellTabRelatedto','off');ghide('addEventAlarmUI');ghide('addEventInviteUI');gshow('addEventRepeatUI','',document.EditView.date_start.value,document.EditView.due_date.value,document.EditView.starthr.value,document.EditView.startmin.value,document.EditView.startfmt.value,document.EditView.endhr.value,document.EditView.endmin.value,document.EditView.endfmt.value);ghide('addEventRelatedtoUI');">{$MOD.LBL_REPEAT}</a></td>
402										{/if}
403										<td class="dvtTabCache" style="width:10px">&nbsp;</td>
404										<td id="cellTabRelatedto" class="dvtUnSelectedCell" align=center nowrap><a href="javascript:doNothing()" onClick="switchClass('cellTabInvite','off');switchClass('cellTabAlarm','off');switchClass('cellTabRepeat','off');switchClass('cellTabRelatedto','on');ghide('addEventAlarmUI');ghide('addEventInviteUI');gshow('addEventRelatedtoUI','',document.EditView.date_start.value,document.EditView.due_date.value,document.EditView.starthr.value,document.EditView.startmin.value,document.EditView.startfmt.value,document.EditView.endhr.value,document.EditView.endmin.value,document.EditView.endfmt.value);ghide('addEventRepeatUI');">{$MOD.LBL_RELATEDTO}</a></td>
405										<td class="dvtTabCache" style="width:100%">&nbsp;</td>
406									</tr>
407								</table>
408							</td></tr>
409							<tr>
410								<td width=100% valign=top align=left class="dvtContentSpace" style="padding:10px;height:120px">
411								<!-- Invite UI -->
412									<DIV id="addEventInviteUI" style="display:block;width:100%">
413									<table border=0 cellspacing=0 cellpadding=2 width=100%>
414										<tr>
415											<td valign=top>
416												<table border=0 cellspacing=0 cellpadding=2 width=100%>
417													<tr><td colspan=3>
418														<ul style="padding-left:20px">
419														<li>{$MOD.LBL_INVITE_INST1}
420														<li>{$MOD.LBL_INVITE_INST2}
421														</ul>
422													</td></tr>
423													<tr>
424														<td><b>{$MOD.LBL_AVL_USERS}</b></td>
425														<td>&nbsp;</td>
426														<td><b>{$MOD.LBL_SEL_USERS}</b></td>
427													</tr>
428													<tr>
429														<td width=40% align=center valign=top>
430														<select name="availableusers" id="availableusers" class=small size=5 multiple style="height:70px;width:100%">
431														{foreach item=username key=userid from=$USERSLIST}
432														{if $userid != ''}
433														<option value="{$userid}">{$username}</option>
434														{/if}
435														{/foreach}
436														</select>
437														</td>
438														<td width=20% align=center valign=top>
439														<input type=button value="{$MOD.LBL_ADD_BUTTON} >>" class="crm button small save" style="width:100%"  onClick="incUser('availableusers','selectedusers')"><br>
440														<input type=button value="<< {$MOD.LBL_RMV_BUTTON} " class="crm button small cancel" style="width:100%" onClick="rmvUser('selectedusers')">
441														</td>
442														<td width=40% align=center valign=top>
443														<select name="selectedusers" id="selectedusers" class=small size=5 multiple style="height:70px;width:100%">
444														{foreach item=username key=userid from=$INVITEDUSERS}
445														{if $userid != ''}
446														<option value="{$userid}">{$username}</option>
447                                                                                                                {/if}
448                                                                                                                {/foreach}
449														</select>
450														<div align=left> {$MOD.LBL_SELUSR_INFO}
451														</div>
452														</td>
453													</tr>
454												</table>
455											</td>
456										</tr>
457									</table>
458									</DIV>
459									<!-- Reminder UI -->
460									<DIV id="addEventAlarmUI" style="display:none;width:100%">
461									{if $LABEL.reminder_time neq ''}
462										<table>
463											{assign var=secondval value=$secondvalue.reminder_time}
464											{assign var=check value=$secondval[0]}
465											{assign var=yes_val value=$secondval[1]}
466											{assign var=no_val value=$secondval[2]}
467
468											<tr><td>{$LABEL.reminder_time}</td><td>
469
470										{if $check eq 'CHECKED'}
471											{assign var=reminstyle value='style="display:block;width:100%"'}
472											<input type="radio" name="set_reminder" value="Yes" {$check} onClick="showBlock('reminderOptions')">&nbsp;{$yes_val}&nbsp;
473											<input type="radio" name="set_reminder" value="No" onClick="fnhide('reminderOptions')">&nbsp;{$no_val}&nbsp;
474
475										{else}
476											{assign var=reminstyle value='style="display:none;width:100%"'}
477											<input type="radio" name="set_reminder" value="Yes" onClick="showBlock('reminderOptions')">&nbsp;{$yes_val}&nbsp;
478											<input type="radio" name="set_reminder" value="No" checked onClick="fnhide('reminderOptions')">&nbsp;{$no_val}&nbsp;
479
480										{/if}
481											</td></tr>
482										</table>
483										<DIV id="reminderOptions" {$reminstyle}>
484											<table border=0 cellspacing=0 cellpadding=2  width=100%>
485												<tr>
486													<td nowrap align=right width=20% valign=top><b>{$MOD.LBL_RMD_ON} : </b></td>
487													<td width=80%>
488														<table border=0>
489														<tr>
490															<td colspan=2>
491															{foreach item=val_arr from=$ACTIVITYDATA.reminder_time}
492															{assign var=start value="$val_arr[0]"}
493															{assign var=end value="$val_arr[1]"}
494															{assign var=sendname value="$val_arr[2]"}
495															{assign var=disp_text value="$val_arr[3]"}
496															{assign var=sel_val value="$val_arr[4]"}
497															<select name="{$sendname}">
498															{section name=reminder start=$start max=$end loop=$end step=1 }
499															{if $smarty.section.reminder.index eq $sel_val}
500															<OPTION VALUE="{$smarty.section.reminder.index}" SELECTED>{$smarty.section.reminder.index}</OPTION>
501															{else}
502															<OPTION VALUE="{$smarty.section.reminder.index}" >{$smarty.section.reminder.index}</OPTION>
503															{/if}
504															<!--OPTION VALUE="{$smarty.section.reminder.index}" "{$sel_value}">{$smarty.section.reminder.index}</OPTION-->
505															{/section}
506															</select>
507															&nbsp;{$disp_text}
508															{/foreach}
509															</td>
510														</tr>
511														</table>
512													</td>
513												</tr>
514												<!--This is now required as of now, as we aree not allowing to change the email id
515	                                        and it is showing logged in User's email id, instead of Assigned to user's email id
516
517												<tr>
518													<td nowrap align=right>
519														{$MOD.LBL_SDRMD}
520													</td>
521													<td >
522														<input type=text name="toemail" readonly="readonly" class=textbox style="width:90%" value="{$USEREMAILID}">
523													</td>
524												</tr> -->
525											</table>
526										</DIV>
527									{/if}
528									</DIV>
529									<!-- Repeat UI -->
530									<div id="addEventRepeatUI" style="display:none;width:100%">
531									{if $LABEL.recurringtype neq ''}
532									<table border=0 cellspacing=0 cellpadding=2  width=100%>
533										<tr>
534											<td nowrap align=right width=20% valign=top>
535												<strong>{$MOD.LBL_REPEAT}</strong>
536											</td>
537											<td nowrap width=80% valign=top>
538												<table border=0 cellspacing=0 cellpadding=0>
539												<tr>
540
541													<td width=20>
542													{if $ACTIVITYDATA.recurringcheck eq 'Yes'}
543														{assign var=rptstyle value='style="display:block"'}
544														{if $ACTIVITYDATA.eventrecurringtype eq 'Daily'}
545															{assign var=rptmonthstyle value='style="display:none"'}
546															{assign var=rptweekstyle value='style="display:none"'}
547														{elseif $ACTIVITYDATA.eventrecurringtype eq 'Weekly'}
548															{assign var=rptmonthstyle value='style="display:none"'}
549															{assign var=rptweekstyle value='style="display:block"'}
550														{elseif $ACTIVITYDATA.eventrecurringtype eq 'Monthly'}
551															{assign var=rptmonthstyle value='style="display:block"'}
552															{assign var=rptweekstyle value='style="display:none"'}
553														{elseif $ACTIVITYDATA.eventrecurringtype eq 'Yearly'}
554															{assign var=rptmonthstyle value='style="display:none"'}
555															{assign var=rptweekstyle value='style="display:none"'}
556														{/if}
557													<input type="checkbox" name="recurringcheck" onClick="showhide('repeatOptions')" checked>
558													{else}
559														{assign var=rptstyle value='style="display:none"'}
560														{assign var=rptmonthstyle value='style="display:none"'}
561														{assign var=rptweekstyle value='style="display:none"'}
562													<input type="checkbox" name="recurringcheck" onClick="showhide('repeatOptions')">
563													{/if}
564													</td>
565													<td>{$MOD.LBL_ENABLE_REPEAT}<td>
566												</tr>
567												<tr>
568													<td colspan=2>
569													<div id="repeatOptions" {$rptstyle}>
570													<table border=0 cellspacing=0 cellpadding=2>
571													<tr>
572													<td>{$MOD.LBL_REPEAT_ONCE}</td>
573													<td>
574													<select name="repeat_frequency">
575                                                                                                                {section name="repeat" loop=15 start=1 step=1}
576                                                                                                                {if $smarty.section.repeat.iteration eq $ACTIVITYDATA.repeat_frequency}
577                                                                                                                        {assign var="test" value="selected"}
578                                                                                                                {else}                                                                                                                             {assign var="test" value=""}                                                                                                                                                                                                                  {/if}
579                                                                                                                <option "{$test}" value="{$smarty.section.repeat.iteration}">{$smarty.section.repeat.iteration}</option>
580                                                                                                                {/section}
581                                                                                                        </select>
582													</td>
583													<td><select name="recurringtype" onChange="rptoptDisp(this)">
584													<option value="Daily" {if $ACTIVITYDATA.eventrecurringtype eq 'Daily'} selected {/if}>{$MOD.LBL_DAYS}</option>
585													<option value="Weekly" {if $ACTIVITYDATA.eventrecurringtype eq 'Weekly'} selected {/if}>{$MOD.LBL_WEEKS}</option>
586												<option value="Monthly" {if $ACTIVITYDATA.eventrecurringtype eq 'Monthly'} selected {/if}>{$MOD.LBL_MONTHS}</option>
587													<option value="Yearly" {if $ACTIVITYDATA.eventrecurringtype eq 'Yearly'} selected {/if}>{$MOD.LBL_YEAR}</option>
588													</select>
589													<!-- Repeat Feature Enhanced -->
590													<b>{$MOD.LBL_UNTIL}</b> <input type="text" name="calendar_repeat_limit_date" id="calendar_repeat_limit_date" class="textbox" style="width:90px" value="" ></td><td align="left"><img border=0 src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$MOD.LBL_SET_DATE}..." title="{$MOD.LBL_SET_DATE}..." id="jscal_trigger_calendar_repeat_limit_date">
591													{literal}
592														<script type="text/javascript">
593														Calendar.setup ({inputField : "calendar_repeat_limit_date", ifFormat : {/literal}
594"{$REPEAT_LIMIT_DATEFORMAT}"
595{literal}, showsTime : false, button : "jscal_trigger_calendar_repeat_limit_date", singleClick : true, step : 1})</script>
596													{/literal}
597													<!-- END -->
598													</td>
599												</tr>
600												</table>
601												<div id="repeatWeekUI" {$rptweekstyle}>
602												<table border=0 cellspacing=0 cellpadding=2>
603												<tr>
604													<td><input name="sun_flag" value="sunday" {$ACTIVITYDATA.week0} type="checkbox"></td><td>{$MOD.LBL_SM_SUN}</td>
605													<td><input name="mon_flag" value="monday" {$ACTIVITYDATA.week1} type="checkbox"></td><td>{$MOD.LBL_SM_MON}</td>
606													<td><input name="tue_flag" value="tuesday" {$ACTIVITYDATA.week2} type="checkbox"></td><td>{$MOD.LBL_SM_TUE}</td>
607													<td><input name="wed_flag" value="wednesday" {$ACTIVITYDATA.week3} type="checkbox"></td><td>{$MOD.LBL_SM_WED}</td>
608													<td><input name="thu_flag" value="thursday" {$ACTIVITYDATA.week4} type="checkbox"></td><td>{$MOD.LBL_SM_THU}</td>
609													<td><input name="fri_flag" value="friday" {$ACTIVITYDATA.week5} type="checkbox"></td><td>{$MOD.LBL_SM_FRI}</td>
610													<td><input name="sat_flag" value="saturday" {$ACTIVITYDATA.week6} type="checkbox"></td><td>{$MOD.LBL_SM_SAT}</td>
611												</tr>
612												</table>
613												</div>
614
615												<div id="repeatMonthUI" {$rptmonthstyle}>
616												<table border=0 cellspacing=0 cellpadding=2>
617												<tr>
618													<td>
619														<table border=0 cellspacing=0 cellpadding=2>
620														<tr>
621														<td><input type="radio" checked name="repeatMonth" {if $ACTIVITYDATA.repeatMonth eq 'date'} checked {/if} value="date"></td><td>on</td><td><input type="text" class=textbox style="width:20px" value="{$ACTIVITYDATA.repeatMonth_date}" name="repeatMonth_date" ></td><td>day of the month</td>
622														</tr>
623														</table>
624													</td>
625												</tr>
626												<tr>
627													<td>
628														<table border=0 cellspacing=0 cellpadding=2>
629														<tr><td>
630														<input type="radio" name="repeatMonth" {if $ACTIVITYDATA.repeatMonth eq 'day'} checked {/if} value="day"></td>
631														<td>on</td>
632														<td>
633														<select name="repeatMonth_daytype">
634															<option value="first" {if $ACTIVITYDATA.repeatMonth_daytype eq 'first'} selected {/if}>First</option>
635															<option value="last" {if $ACTIVITYDATA.repeatMonth_daytype eq 'last'} selected {/if}>Last</option>
636														</select>
637														</td>
638														<td>
639														<select name="repeatMonth_day">
640															<option value=1 {if $ACTIVITYDATA.repeatMonth_day eq 1} selected {/if}>{$MOD.LBL_DAY1}</option>
641															<option value=2 {if $ACTIVITYDATA.repeatMonth_day eq 2} selected {/if}>{$MOD.LBL_DAY2}</option>
642															<option value=3 {if $ACTIVITYDATA.repeatMonth_day eq 3} selected {/if}>{$MOD.LBL_DAY3}</option>
643															<option value=4 {if $ACTIVITYDATA.repeatMonth_day eq 4} selected {/if}>{$MOD.LBL_DAY4}</option>
644															<option value=5 {if $ACTIVITYDATA.repeatMonth_day eq 5} selected {/if}>{$MOD.LBL_DAY5}</option>
645															<option value=6 {if $ACTIVITYDATA.repeatMonth_day eq 6} selected {/if}>{$MOD.LBL_DAY6}</option>
646														</select>
647														</td>
648														</tr>
649														</table>
650													</td>
651												</tr>
652												</table>
653												</div>
654
655											</div>
656										</td>
657										</tr>
658									</table>
659								</td>
660							</tr>
661						</table>
662						{/if}
663						</div>
664						<div id="addEventRelatedtoUI" style="display:none;width:100%">
665						<table width="100%" cellpadding="5" cellspacing="0" border="0">
666							{if $LABEL.parent_id neq ''}
667							<tr>
668								<!--td width="10%"><b>{$MOD.LBL_RELATEDTO}</b></td-->
669								<td width="10%"><b><font color="red">{$TYPEOFDATA.relatedto}</font>{$MOD.LBL_RELATEDTO}</b></td>
670								<td>
671									<input name="parent_id" type="hidden" value="{$secondvalue.parent_id}">
672									<input name="del_actparent_rel" type="hidden" >
673									<select name="parent_type" class="small" id="parent_type" onChange="document.EditView.parent_name.value='';document.EditView.parent_id.value=''">
674									{section name=combo loop=$LABEL.parent_id}
675										<option value="{$fldlabel_combo.parent_id[combo]}" {$fldlabel_sel.parent_id[combo]}>{$LABEL.parent_id[combo]}</option>
676									{/section}
677                                             				</select>
678								</td>
679								<td>
680									<div id="eventrelatedto" align="left">
681										<input name="parent_name" readonly type="text" class="calTxt small" value="{$ACTIVITYDATA.parent_id}">
682										<input type="button" name="selectparent" class="crmButton small edit" value="{$APP.LBL_SELECT_BUTTON_LABEL}" onclick="return window.open('index.php?module='+document.EditView.parent_type.value+'&action=Popup','test','width=640,height=602,resizable=0,scrollbars=0,top=150,left=200');">
683										<input type='button' value='{$APP.LNK_DELETE}' class="crmButton small edit" onclick="document.EditView.del_actparent_rel.value=document.EditView.parent_id.value;document.EditView.parent_id.value='';document.EditView.parent_name.value='';">
684									</div>
685								</td>
686							</tr>
687							{/if}
688			     			{if $IS_CONTACTS_EDIT_PERMITTED eq 'true'}
689							<tr>
690								<td><b>{$APP.Contacts}</b></td>
691								<td colspan="2">
692									<input name="contactidlist" id="contactidlist" value="{$CONTACTSID}" type="hidden">
693									<input name="deletecntlist" id="deletecntlist" type="hidden">
694									<select name="contactlist" size=5  style="height: 100px;width: 300px"  id="parentid" class="small" multiple>
695									{foreach item=contactname key=cntid from=$CONTACTSNAME}
696                                    	<option value="{$cntid}">{$contactname}</option>
697                                    {/foreach}
698									</select>
699
700									<input type="button" onclick="selectContact('true','general',document.EditView);" class="crmButton small edit" name="selectcnt" value="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}">
701									<input type='button' value='{$APP.LNK_DELETE}' class="crmButton small edit" onclick='removeActContacts();'>
702
703								</td>
704							</tr>
705							{/if}
706						</table>
707					</div>
708			</td>
709		</tr>
710		</table>
711		<!-- Alarm, Repeat, Invite stops-->
712		{else}
713		<table border="0" cellpadding="5" cellspacing="0" width="100%">
714			<tr>
715                        	<td class="cellLabel" width="20%" align="right"><b><font color="red">{$TYPEOFDATA.subject}</font>{$MOD.LBL_TODO}</b></td>
716                        	<td class="cellInfo" width="80%" align="left"><input name="subject" value="{$ACTIVITYDATA.subject}" class="textbox" style="width: 70%;" type="text"></td>
717           		</tr>
718
719			<tr>
720				{if $LABEL.description != ''}
721				<td class="cellLabel" align="right"><b><font color="red">{$TYPEOFDATA.description}</font>{$LABEL.description}</b></td>
722				<td class="cellInfo" align="left"><textarea style="width: 90%; height: 60px;" name="description">{$ACTIVITYDATA.description}</textarea>
723				{/if}
724
725			</tr>
726			<tr>
727		    		<td colspan="2" align="center" width="100%" style="padding:0px">
728					<table border="0" cellpadding="5" cellspacing="1" width="100%">
729            					<tr>
730							{if $LABEL.taskstatus != ''}
731							<td class="cellLabel" width=33% align="left"><b><font color="red">{$TYPEOFDATA.taskstatus}</font>{$LABEL.taskstatus}</b></td>
732							{/if}
733							{if $LABEL.taskpriority != ''}
734              						<td class="cellLabel" width=33% align="left"><b><font color="red">{$TYPEOFDATA.taskpriority}</font>{$LABEL.taskpriority}</b></td>
735							{/if}
736              						{if $LABEL.assigned_user_id != ''}
737							<td class="cellLabel" width=34% align="left"><b>{$LABEL.assigned_user_id}</b></td>
738							{/if}
739						</tr>
740						<tr>
741							{if $LABEL.taskstatus != ''}
742							<td align="left" valign="top">
743								<select name="taskstatus" id="taskstatus" class=small>
744                                        			{foreach item=arr from=$ACTIVITYDATA.taskstatus}
745									 {if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
746                                                                                        <option value="{$arr[0]}" {$arr[2]}>{$arr[0]}</option>
747                                                                         {else}
748                                                                                        <option value="{$arr[1]}" {$arr[2]}>
749                                                                                                        {$arr[0]}
750                                                                                         </option>
751                                                                         {/if}
752                                        			{/foreach}
753                                				</select>
754							</td>
755							{/if}
756							{if $LABEL.taskpriority != ''}
757							<td align="left" valign="top">
758								<select name="taskpriority" id="taskpriority" class=small>
759        			                                {foreach item=arr from=$ACTIVITYDATA.taskpriority}
760								 {if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
761                                                                                        <option value="{$arr[0]}" {$arr[2]}>{$arr[0]}</option>
762                                                                                        {else}
763                                                                                                <option value="{$arr[1]}" {$arr[2]}>
764                                                                                                        {$arr[0]}
765                                                                                                </option>
766                                                                                        {/if}
767                                        			{/foreach}
768                                				</select>
769							</td>
770							{/if}
771							{if $LABEL.assigned_user_id != ''}
772							<td align="left" valign="top">
773								{assign var=check value=1}
774                                        			{foreach key=key_one item=arr from=$ACTIVITYDATA.assigned_user_id}
775			                                        {foreach key=sel_value item=value from=$arr}
776                        		                              	{if $value ne ''}
777                                        		                      	{assign var=check value=$check*0}
778                                                        		{else}
779                                                                		{assign var=check value=$check*1}
780                                                        		{/if}
781                                                		{/foreach}
782                                        			{/foreach}
783								{if $check eq 0}
784                                             				{assign var=select_user value='checked'}
785                                                			{assign var=style_user value='display:block'}
786                                                			{assign var=style_group value='display:none'}
787

Large files files are truncated, but you can click here to view the full file