PageRenderTime 56ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): Apache-2.0, LGPL-3.0, LGPL-2.1, GPL-2.0, GPL-3.0

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

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

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