PageRenderTime 55ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/Smarty/templates/EditViewUI.tpl

https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql
Smarty Template | 980 lines | 905 code | 58 blank | 17 comment | 62 complexity | e9ab3b7c0d535f09296c5fe1694e14aa 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. {assign var="uitype" value="$maindata[0][0]"}
  13. {assign var="fldlabel" value="$maindata[1][0]"}
  14. {assign var="fldlabel_sel" value="$maindata[1][1]"}
  15. {assign var="fldlabel_combo" value="$maindata[1][2]"}
  16. {assign var="fldlabel_other" value="$maindata[1][3]"}
  17. {assign var="fldname" value="$maindata[2][0]"}
  18. {assign var="fldvalue" value="$maindata[3][0]"}
  19. {assign var="secondvalue" value="$maindata[3][1]"}
  20. {assign var="thirdvalue" value="$maindata[3][2]"}
  21. {assign var="typeofdata" value="$maindata[4]"}
  22. {assign var="vt_tab" value="$maindata[5][0]"}
  23. {if $typeofdata eq 'M'}
  24. {assign var="mandatory_field" value="*"}
  25. {else}
  26. {assign var="mandatory_field" value=""}
  27. {/if}
  28. {* vtlib customization: Help information for the fields *}
  29. {assign var="usefldlabel" value=$fldlabel}
  30. {assign var="fldhelplink" value=""}
  31. {if $FIELDHELPINFO && $FIELDHELPINFO.$fldname}
  32. {assign var="fldhelplinkimg" value='help_icon.gif'|@vtiger_imageurl:$THEME}
  33. {assign var="fldhelplink" value="<img style='cursor:pointer' onclick='vtlib_field_help_show(this, \"$fldname\");' border=0 src='$fldhelplinkimg'>"}
  34. {if $uitype neq '10'}
  35. {assign var="usefldlabel" value="$fldlabel $fldhelplink"}
  36. {/if}
  37. {/if}
  38. {* END *}
  39. {* vtlib customization *}
  40. {if $uitype eq '10'}
  41. <td width=20% class="dvtCellLabel" align=right>
  42. <font color="red">{$mandatory_field}</font>
  43. {$fldlabel.displaylabel}
  44. {if count($fldlabel.options) eq 1}
  45. {assign var="use_parentmodule" value=$fldlabel.options.0}
  46. <input type='hidden' class='small' name="{$fldname}_type" value="{$use_parentmodule}">
  47. {else}
  48. <br>
  49. {if $fromlink eq 'qcreate'}
  50. <select id="{$fldname}_type" class="small" name="{$fldname}_type" onChange='document.QcEditView.{$fldname}_display.value=""; document.QcEditView.{$fldname}.value="";'>
  51. {else}
  52. <select id="{$fldname}_type" class="small" name="{$fldname}_type" onChange='document.EditView.{$fldname}_display.value=""; document.EditView.{$fldname}.value="";$("qcform").innerHTML=""'>
  53. {/if}
  54. {foreach item=option from=$fldlabel.options}
  55. <option value="{$option}"
  56. {if $fldlabel.selected == $option}selected{/if}>
  57. {$option|@getTranslatedString:$option}
  58. </option>
  59. {/foreach}
  60. </select>
  61. {/if}
  62. {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  63. {$fldhelplink}
  64. </td>
  65. <td width="30%" align=left class="dvtCellInfo">
  66. <input id="{$fldname}" name="{$fldname}" type="hidden" value="{$fldvalue.entityid}" id="{$fldname}">
  67. <input id="{$fldname}_display" name="{$fldname}_display" id="edit_{$fldname}_display" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue.displayvalue}">&nbsp;
  68. {if $fromlink eq 'qcreate'}
  69. <img src="{'select.gif'|@vtiger_imageurl:$THEME}" tabindex="{$vt_tab}"
  70. alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.QcEditView.{$fldname}_type.value +"&action=Popup&html=Popup_picker&form=vtlibPopupView&forfield={$fldname}&srcmodule={$MODULE}&forrecord={$ID}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;
  71. {else}
  72. <img src="{'select.gif'|@vtiger_imageurl:$THEME}" tabindex="{$vt_tab}"
  73. alt="Select" title="Select" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.EditView.{$fldname}_type.value +"&action=Popup&html=Popup_picker&form=vtlibPopupView&forfield={$fldname}&srcmodule={$MODULE}&forrecord={$ID}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;
  74. {/if}
  75. <input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}"
  76. alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.{$fldname}.value=''; this.form.{$fldname}_display.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;
  77. </td>
  78. {* END *}
  79. {elseif $uitype eq 2}
  80. <td width=20% class="dvtCellLabel" align=right>
  81. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small">{/if}
  82. </td>
  83. <td width=30% align=left class="dvtCellInfo">
  84. <input type="text" name="{$fldname}" tabindex="{$vt_tab}" value="{$fldvalue}" tabindex="{$vt_tab}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">
  85. </td>
  86. {elseif $uitype eq 3 || $uitype eq 4}<!-- Non Editable field, only configured value will be loaded -->
  87. <td width=20% class="dvtCellLabel" align=right><font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small">{/if}</td>
  88. <td width=30% align=left class="dvtCellInfo"><input readonly type="text" tabindex="{$vt_tab}" name="{$fldname}" id ="{$fldname}" {if $MODE eq 'edit'} value="{$fldvalue}" {else} value="{$MOD_SEQ_ID}" {/if} class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td>
  89. {elseif $uitype eq 11 || $uitype eq 1 || $uitype eq 13 || $uitype eq 7}
  90. <td width=20% class="dvtCellLabel" align=right><font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}</td>
  91. {if $fldname eq 'tickersymbol' && $MODULE eq 'Accounts'}
  92. <td width=30% align=left class="dvtCellInfo">
  93. <input type="text" name="{$fldname}" tabindex="{$vt_tab}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn';" onBlur="this.className='detailedViewTextBox';{if $fldname eq 'tickersymbol' && $MODULE eq 'Accounts'}sensex_info(){/if}">
  94. <span id="vtbusy_info" style="display:none;">
  95. <img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
  96. </td>
  97. {else}
  98. <td width=30% align=left class="dvtCellInfo"><input type="text" tabindex="{$vt_tab}" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td>
  99. {/if}
  100. {elseif $uitype eq 9}
  101. <td width=20% class="dvtCellLabel" align=right><font color="red">{$mandatory_field}</font>{$usefldlabel} {$APP.COVERED_PERCENTAGE} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}</td>
  102. <td width=30% align=left class="dvtCellInfo"><input type="text" tabindex="{$vt_tab}" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td>
  103. {elseif $uitype eq 19 || $uitype eq 20}
  104. <!-- In Add Comment are we should not display anything -->
  105. {if $fldlabel eq $MOD.LBL_ADD_COMMENT}
  106. {assign var=fldvalue value=""}
  107. {/if}
  108. <td width=20% class="dvtCellLabel" align=right>
  109. <font color="red">{$mandatory_field}</font>
  110. {$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  111. </td>
  112. <td colspan=3>
  113. <textarea class="detailedViewTextBox" tabindex="{$vt_tab}" onFocus="this.className='detailedViewTextBoxOn'" name="{$fldname}" onBlur="this.className='detailedViewTextBox'" cols="90" rows="8">{$fldvalue}</textarea>
  114. {if $fldlabel eq $MOD.Solution}
  115. <input type = "hidden" name="helpdesk_solution" value = '{$fldvalue}'>
  116. {/if}
  117. </td>
  118. {elseif $uitype eq 21 || $uitype eq 24}
  119. <td width=20% class="dvtCellLabel" align=right>
  120. <font color="red">{$mandatory_field}</font>
  121. {$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  122. </td>
  123. <td width=30% align=left class="dvtCellInfo">
  124. <textarea value="{$fldvalue}" name="{$fldname}" tabindex="{$vt_tab}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" rows=2>{$fldvalue}</textarea>
  125. </td>
  126. {elseif $uitype eq 15 || $uitype eq 16 || $uitype eq '31' || $uitype eq '32'}
  127. <td width="20%" class="dvtCellLabel" align=right>
  128. <font color="red">{$mandatory_field}</font>
  129. {$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  130. </td>
  131. <td width="30%" align=left class="dvtCellInfo">
  132. {if $MODULE eq 'Calendar'}
  133. <select name="{$fldname}" tabindex="{$vt_tab}" class="small" style="width:160px;">
  134. {else}
  135. <select name="{$fldname}" tabindex="{$vt_tab}" class="small">
  136. {/if}
  137. {foreach item=arr from=$fldvalue}
  138. {if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
  139. <option value="{$arr[0]}" {$arr[2]}>
  140. {$arr[0]}
  141. </option>
  142. {else}
  143. <option value="{$arr[1]}" {$arr[2]}>
  144. {$arr[0]}
  145. </option>
  146. {/if}
  147. {foreachelse}
  148. <option value=""></option>
  149. <option value="" style='color: #777777' disabled>{$APP.LBL_NONE}</option>
  150. {/foreach}
  151. </select>
  152. </td>
  153. {elseif $uitype eq 33}
  154. <td width="20%" class="dvtCellLabel" align=right>
  155. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  156. </td>
  157. <td width="30%" align=left class="dvtCellInfo">
  158. <select MULTIPLE name="{$fldname}[]" size="4" style="width:160px;" tabindex="{$vt_tab}" class="small">
  159. {foreach item=arr from=$fldvalue}
  160. <option value="{$arr[1]}" {$arr[2]}>
  161. {$arr[0]}
  162. </option>
  163. {/foreach}
  164. </select>
  165. </td>
  166. {elseif $uitype eq 53}
  167. <td width="20%" class="dvtCellLabel" align=right>
  168. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  169. </td>
  170. <td width="30%" align=left class="dvtCellInfo">
  171. {assign var=check value=1}
  172. {foreach key=key_one item=arr from=$fldvalue}
  173. {foreach key=sel_value item=value from=$arr}
  174. {if $value ne ''}
  175. {assign var=check value=$check*0}
  176. {else}
  177. {assign var=check value=$check*1}
  178. {/if}
  179. {/foreach}
  180. {/foreach}
  181. {if $check eq 0}
  182. {assign var=select_user value='checked'}
  183. {assign var=style_user value='display:block'}
  184. {assign var=style_group value='display:none'}
  185. {else}
  186. {assign var=select_group value='checked'}
  187. {assign var=style_user value='display:none'}
  188. {assign var=style_group value='display:block'}
  189. {/if}
  190. <input type="radio" tabindex="{$vt_tab}" name="assigntype" {$select_user} value="U" onclick="toggleAssignType(this.value)" >&nbsp;{$APP.LBL_USER}
  191. {if $secondvalue neq ''}
  192. <input type="radio" name="assigntype" {$select_group} value="T" onclick="toggleAssignType(this.value)">&nbsp;{$APP.LBL_GROUP}
  193. {/if}
  194. <span id="assign_user" style="{$style_user}">
  195. <select name="{$fldname}" class="small">
  196. {foreach key=key_one item=arr from=$fldvalue}
  197. {foreach key=sel_value item=value from=$arr}
  198. <option value="{$key_one}" {$value}>{$sel_value}</option>
  199. {/foreach}
  200. {/foreach}
  201. </select>
  202. </span>
  203. {if $secondvalue neq ''}
  204. <span id="assign_team" style="{$style_group}">
  205. <select name="assigned_group_id" class="small">';
  206. {foreach key=key_one item=arr from=$secondvalue}
  207. {foreach key=sel_value item=value from=$arr}
  208. <option value="{$key_one}" {$value}>{$sel_value}</option>
  209. {/foreach}
  210. {/foreach}
  211. </select>
  212. </span>
  213. {/if}
  214. </td>
  215. {elseif $uitype eq 52 || $uitype eq 77}
  216. <td width="20%" class="dvtCellLabel" align=right>
  217. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  218. </td>
  219. <td width="30%" align=left class="dvtCellInfo">
  220. {if $uitype eq 52}
  221. <select name="{$fldname}" tabindex="{$vt_tab}" class="small">
  222. {elseif $uitype eq 77}
  223. <select name="{$fldname}" tabindex="{$vt_tab}" class="small">
  224. {else}
  225. <select name="{$fldname}" tabindex="{$vt_tab}" class="small">
  226. {/if}
  227. {foreach key=key_one item=arr from=$fldvalue}
  228. {foreach key=sel_value item=value from=$arr}
  229. <option value="{$key_one}" {$value}>{$sel_value}</option>
  230. {/foreach}
  231. {/foreach}
  232. </select>
  233. </td>
  234. {elseif $uitype eq 51}
  235. {if $MODULE eq 'Accounts'}
  236. {assign var='popuptype' value = 'specific_account_address'}
  237. {else}
  238. {assign var='popuptype' value = 'specific_contact_account_address'}
  239. {/if}
  240. <td width="20%" class="dvtCellLabel" align=right>
  241. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  242. </td>
  243. <td width="30%" align=left class="dvtCellInfo">
  244. <input readonly name="account_name" style="border:1px solid #bababa;" type="text" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img tabindex="{$vt_tab}" src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module=Accounts&action=Popup&popuptype={$popuptype}&form=TasksEditView&form_submit=false&fromlink={$fromlink}&recordid={$ID}","test","width=640,height=602,resizable=0,scrollbars=0");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.account_id.value=''; this.form.account_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  245. </td>
  246. {elseif $uitype eq 50}
  247. <td width="20%" class="dvtCellLabel" align=right>
  248. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  249. </td>
  250. <td width="30%" align=left class="dvtCellInfo">
  251. <input readonly name="account_name" type="text" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module=Accounts&action=Popup&popuptype=specific&form=TasksEditView&form_submit=false&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0");' align="absmiddle" style='cursor:hand;cursor:pointer'>
  252. <input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.account_id.value=''; this.form.account_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  253. </td>
  254. {elseif $uitype eq 73}
  255. <td width="20%" class="dvtCellLabel" align=right>
  256. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  257. </td>
  258. <td width="30%" align=left class="dvtCellInfo">
  259. <input readonly name="account_name" id = "single_accountid" type="text" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module=Accounts&action=Popup&popuptype=specific_account_address&form=TasksEditView&form_submit=false&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0");' align="absmiddle" style='cursor:hand;cursor:pointer'>
  260. <input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.account_id.value=''; this.form.account_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  261. </td>
  262. {elseif $uitype eq 75 || $uitype eq 81}
  263. <td width="20%" class="dvtCellLabel" align=right>
  264. {if $uitype eq 81}
  265. {assign var="pop_type" value="specific_vendor_address"}
  266. {else}{assign var="pop_type" value="specific"}
  267. {/if}
  268. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  269. </td>
  270. <td width="30%" align=left class="dvtCellInfo">
  271. <input name="vendor_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module=Vendors&action=Popup&html=Popup_picker&popuptype={$pop_type}&form=EditView&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0");' align="absmiddle" style='cursor:hand;cursor:pointer'>
  272. <input type="image" tabindex="{$vt_tab}" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.vendor_id.value='';this.form.vendor_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  273. </td>
  274. {elseif $uitype eq 57}
  275. <td width="20%" class="dvtCellLabel" align=right>
  276. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  277. </td>
  278. <td width="30%" align=left class="dvtCellInfo">
  279. {if $fromlink eq 'qcreate'}
  280. <input name="contact_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='selectContact("false","general",document.QcEditView)' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" tabindex="{$vt_tab}" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.contact_id.value=''; this.form.contact_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  281. {else}
  282. <input name="contact_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='selectContact("false","general",document.EditView)' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" tabindex="{$vt_tab}" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.contact_id.value=''; this.form.contact_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  283. {/if}
  284. </td>
  285. {elseif $uitype eq 58}
  286. <td width="20%" class="dvtCellLabel" align=right>
  287. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  288. </td>
  289. <td width="30%" align=left class="dvtCellInfo">
  290. <input name="campaignname" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module=Campaigns&action=Popup&html=Popup_picker&popuptype=specific_campaign&form=EditView&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" tabindex="{$vt_tab}" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.campaignid.value=''; this.form.campaignname.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  291. </td>
  292. {elseif $uitype eq 80}
  293. <td width="20%" class="dvtCellLabel" align=right>
  294. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  295. </td>
  296. <td width="30%" align=left class="dvtCellInfo">
  297. <input name="salesorder_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='selectSalesOrder();' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" tabindex="{$vt_tab}" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.salesorder_id.value=''; this.form.salesorder_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  298. </td>
  299. {elseif $uitype eq 78}
  300. <td width="20%" class="dvtCellLabel" align=right>
  301. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small">{/if}
  302. </td>
  303. <td width="30%" align=left class="dvtCellInfo">
  304. <input name="quote_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}" >&nbsp;<img src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='selectQuote()' align="absmiddle" style='cursor:hand;cursor:pointer' >&nbsp;<input type="image" tabindex="{$vt_tab}" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.quote_id.value=''; this.form.quote_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  305. </td>
  306. {elseif $uitype eq 76}
  307. <td width="20%" class="dvtCellLabel" align=right>
  308. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  309. </td>
  310. <td width="30%" align=left class="dvtCellInfo">
  311. <input name="potential_name" readonly type="text" style="border:1px solid #bababa;" value="{$fldvalue}"><input name="{$fldname}" type="hidden" value="{$secondvalue}">&nbsp;<img tabindex="{$vt_tab}" src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='selectPotential()' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.potential_id.value=''; this.form.potential_name.value='';return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  312. </td>
  313. {elseif $uitype eq 17}
  314. <td width="20%" class="dvtCellLabel" align=right>
  315. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  316. </td>
  317. <td width="30%" align=left class="dvtCellInfo">
  318. <input style="width:74%;" class = 'detailedViewTextBox' type="text" tabindex="{$vt_tab}" name="{$fldname}" style="border:1px solid #bababa;" size="27" onFocus="this.className='detailedViewTextBoxOn'"onBlur="this.className='detailedViewTextBox'" onkeyup="validateUrl('{$fldname}');" value="{$fldvalue}">
  319. </td>
  320. {elseif $uitype eq 85}
  321. <td width="20%" class="dvtCellLabel" align=right>
  322. <font color="red">{$mandatory_field}</font>
  323. {$usefldlabel}
  324. {if $MASS_EDIT eq '1'}
  325. <input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >
  326. {/if}
  327. </td>
  328. <td width="30%" align=left class="dvtCellInfo">
  329. <img src="{'skype.gif'|@vtiger_imageurl:$THEME}" alt="Skype" title="Skype" LANGUAGE=javascript align="absmiddle"></img>
  330. <input class='detailedViewTextBox' type="text" tabindex="{$vt_tab}" name="{$fldname}" style="border:1px solid #bababa;" size="27" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value="{$fldvalue}">
  331. </td>
  332. {elseif $uitype eq 71 || $uitype eq 72}
  333. <td width="20%" class="dvtCellLabel" align=right>
  334. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  335. </td>
  336. <td width="30%" align=left class="dvtCellInfo">
  337. {if $fldname eq "unit_price" && $fromlink neq 'qcreate'}
  338. <span id="multiple_currencies">
  339. <input name="{$fldname}" id="{$fldname}" tabindex="{$vt_tab}" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'; updateUnitPrice('unit_price', '{$BASE_CURRENCY}');" value="{$fldvalue}" style="width:60%;">
  340. {if $MASS_EDIT neq 1}
  341. &nbsp;<a href="javascript:void(0);" onclick="updateUnitPrice('unit_price', '{$BASE_CURRENCY}'); toggleShowHide('currency_class','multiple_currencies');">{$APP.LBL_MORE_CURRENCIES} &raquo;</a>
  342. {/if}
  343. </span>
  344. {if $MASS_EDIT neq 1}
  345. <div id="currency_class" class="multiCurrencyEditUI" width="350">
  346. <input type="hidden" name="base_currency" id="base_currency" value="{$BASE_CURRENCY}" />
  347. <input type="hidden" name="base_conversion_rate" id="base_currency" value="{$BASE_CURRENCY}" />
  348. <table width="100%" height="100%" class="small" cellpadding="5">
  349. <tr class="detailedViewHeader">
  350. <th colspan="4">
  351. <b>{$MOD.LBL_PRODUCT_PRICES}</b>
  352. </th>
  353. <th align="right">
  354. <img border="0" style="cursor: pointer;" onclick="toggleShowHide('multiple_currencies','currency_class');" src="{'close.gif'|@vtiger_imageurl:$THEME}"/>
  355. </th>
  356. </tr>
  357. <tr class="detailedViewHeader">
  358. <th>{$APP.LBL_CURRENCY}</th>
  359. <th>{$APP.LBL_PRICE}</th>
  360. <th>{$APP.LBL_CONVERSION_RATE}</th>
  361. <th>{$APP.LBL_RESET_PRICE}</th>
  362. <th>{$APP.LBL_BASE_CURRENCY}</th>
  363. </tr>
  364. {foreach item=price key=count from=$PRICE_DETAILS}
  365. <tr>
  366. {if $price.check_value eq 1 || $price.is_basecurrency eq 1}
  367. {assign var=check_value value="checked"}
  368. {assign var=disable_value value=""}
  369. {else}
  370. {assign var=check_value value=""}
  371. {assign var=disable_value value="disabled=true"}
  372. {/if}
  373. {if $price.is_basecurrency eq 1}
  374. {assign var=base_cur_check value="checked"}
  375. {else}
  376. {assign var=base_cur_check value=""}
  377. {/if}
  378. {if $price.curname eq $BASE_CURRENCY}
  379. {assign var=call_js_update_func value="updateUnitPrice('$BASE_CURRENCY', 'unit_price');"}
  380. {else}
  381. {assign var=call_js_update_func value=""}
  382. {/if}
  383. <td align="right" class="dvtCellLabel">
  384. {$price.currencylabel|@getTranslatedCurrencyString} ({$price.currencysymbol})
  385. <input type="checkbox" name="cur_{$price.curid}_check" id="cur_{$price.curid}_check" class="small" onclick="fnenableDisable(this,'{$price.curid}'); updateCurrencyValue(this,'{$price.curname}','{$BASE_CURRENCY}','{$price.conversionrate}');" {$check_value}>
  386. </td>
  387. <td class="dvtCellInfo" align="left">
  388. <input {$disable_value} type="text" size="10" class="small" name="{$price.curname}" id="{$price.curname}" value="{$price.curvalue}" onBlur="{$call_js_update_func} fnpriceValidation('{$price.curname}');">
  389. </td>
  390. <td class="dvtCellInfo" align="left">
  391. <input disabled=true type="text" size="10" class="small" name="cur_conv_rate{$price.curid}" value="{$price.conversionrate}">
  392. </td>
  393. <td class="dvtCellInfo" align="center">
  394. <input {$disable_value} type="button" class="crmbutton small edit" id="cur_reset{$price.curid}" onclick="updateCurrencyValue(this,'{$price.curname}','{$BASE_CURRENCY}','{$price.conversionrate}');" value="{$APP.LBL_RESET}"/>
  395. </td>
  396. <td class="dvtCellInfo">
  397. <input {$disable_value} type="radio" class="detailedViewTextBox" id="base_currency{$price.curid}" name="base_currency_input" value="{$price.curname}" {$base_cur_check} onchange="updateBaseCurrencyValue()" />
  398. </td>
  399. </tr>
  400. {/foreach}
  401. </table>
  402. </div>
  403. {/if}
  404. {else}
  405. <input name="{$fldname}" tabindex="{$vt_tab}" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value="{$fldvalue}">
  406. {/if}
  407. </td>
  408. {elseif $uitype eq 56}
  409. <td width="20%" class="dvtCellLabel" align=right>
  410. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  411. </td>
  412. {if $fldname eq 'notime' && $ACTIVITY_MODE eq 'Events'}
  413. {if $fldvalue eq 1}
  414. <td width="30%" align=left class="dvtCellInfo">
  415. <input name="{$fldname}" type="checkbox" tabindex="{$vt_tab}" onclick="toggleTime()" checked>
  416. </td>
  417. {else}
  418. <td width="30%" align=left class="dvtCellInfo">
  419. <input name="{$fldname}" tabindex="{$vt_tab}" type="checkbox" onclick="toggleTime()" >
  420. </td>
  421. {/if}
  422. <!-- For Portal Information we need a hidden field existing_portal with the current portal value -->
  423. {elseif $fldname eq 'portal'}
  424. <td width="30%" align=left class="dvtCellInfo">
  425. <input type="hidden" name="existing_portal" value="{$fldvalue}">
  426. <input name="{$fldname}" type="checkbox" tabindex="{$vt_tab}" {if $fldvalue eq 1}checked{/if}>
  427. </td>
  428. {else}
  429. {if $fldvalue eq 1}
  430. <td width="30%" align=left class="dvtCellInfo">
  431. <input name="{$fldname}" type="checkbox" tabindex="{$vt_tab}" checked>
  432. </td>
  433. {elseif $fldname eq 'filestatus'&& $MODE eq 'create'}
  434. <td width="30%" align=left class="dvtCellInfo">
  435. <input name="{$fldname}" type="checkbox" tabindex="{$vt_tab}" checked>
  436. </td>
  437. {else}
  438. <td width="30%" align=left class="dvtCellInfo">
  439. <input name="{$fldname}" tabindex="{$vt_tab}" type="checkbox" {if ( $PROD_MODE eq 'create' && $fldname|substr:0:3 neq 'cf_') ||( $fldname|substr:0:3 neq 'cf_' && $PRICE_BOOK_MODE eq 'create' ) || $USER_MODE eq 'create'}checked{/if}>
  440. </td>
  441. {/if}
  442. {/if}
  443. {elseif $uitype eq 23 || $uitype eq 5 || $uitype eq 6}
  444. <td width="20%" class="dvtCellLabel" align=right>
  445. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  446. </td>
  447. <td width="30%" align=left class="dvtCellInfo">
  448. {foreach key=date_value item=time_value from=$fldvalue}
  449. {assign var=date_val value="$date_value"}
  450. {assign var=time_val value="$time_value"}
  451. {/foreach}
  452. <input name="{$fldname}" tabindex="{$vt_tab}" id="jscal_field_{$fldname}" type="text" style="border:1px solid #bababa;" size="11" maxlength="10" value="{$date_val}">
  453. <img src="{'btnL3Calendar.gif'|@vtiger_imageurl:$THEME}" id="jscal_trigger_{$fldname}">
  454. {if $uitype eq 6}
  455. <input name="time_start" tabindex="{$vt_tab}" style="border:1px solid #bababa;" size="5" maxlength="5" type="text" value="{$time_val}">
  456. {/if}
  457. {if $uitype eq 6 && $QCMODULE eq 'Event'}
  458. <input name="dateFormat" type="hidden" value="{$dateFormat}">
  459. {/if}
  460. {if $uitype eq 23 && $QCMODULE eq 'Event'}
  461. <input name="time_end" style="border:1px solid #bababa;" size="5" maxlength="5" type="text" value="{$time_val}">
  462. {/if}
  463. {foreach key=date_format item=date_str from=$secondvalue}
  464. {assign var=dateFormat value="$date_format"}
  465. {assign var=dateStr value="$date_str"}
  466. {/foreach}
  467. {if $uitype eq 5 || $uitype eq 23}
  468. <br><font size=1><em old="(yyyy-mm-dd)">({$dateStr})</em></font>
  469. {else}
  470. <br><font size=1><em old="(yyyy-mm-dd)">({$dateStr})</em></font>
  471. {/if}
  472. <script type="text/javascript" id='massedit_calendar_{$fldname}'>
  473. Calendar.setup ({ldelim}
  474. inputField : "jscal_field_{$fldname}", ifFormat : "{$dateFormat}", showsTime : false, button : "jscal_trigger_{$fldname}", singleClick : true, step : 1
  475. {rdelim})
  476. </script>
  477. </td>
  478. {elseif $uitype eq 63}
  479. <td width="20%" class="dvtCellLabel" align=right>
  480. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  481. </td>
  482. <td width="30%" align=left class="dvtCellInfo">
  483. <input name="{$fldname}" type="text" size="2" value="{$fldvalue}" tabindex="{$vt_tab}" >&nbsp;
  484. <select name="duration_minutes" tabindex="{$vt_tab}" class="small">
  485. {foreach key=labelval item=selectval from=$secondvalue}
  486. <option value="{$labelval}" {$selectval}>{$labelval}</option>
  487. {/foreach}
  488. </select>
  489. {elseif $uitype eq 68 || $uitype eq 66 || $uitype eq 62}
  490. <td width="20%" class="dvtCellLabel" align=right>
  491. {if $fromlink eq 'qcreate'}
  492. <select class="small" name="parent_type" onChange='document.QcEditView.parent_name.value=""; document.QcEditView.parent_id.value=""'>
  493. {else}
  494. <select class="small" name="parent_type" onChange='document.EditView.parent_name.value=""; document.EditView.parent_id.value=""'>
  495. {/if}
  496. {section name=combo loop=$fldlabel}
  497. <option value="{$fldlabel_combo[combo]}" {$fldlabel_sel[combo]}>{$fldlabel[combo]} </option>
  498. {/section}
  499. </select>
  500. {if $MASS_EDIT eq '1'}<input type="checkbox" name="parent_id_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  501. </td>
  502. <td width="30%" align=left class="dvtCellInfo">
  503. <input name="{$fldname}" type="hidden" value="{$secondvalue}">
  504. <input name="parent_name" readonly id = "parentid" type="text" style="border:1px solid #bababa;" value="{$fldvalue}">
  505. &nbsp;
  506. {if $fromlink eq 'qcreate'}
  507. <img src="{'select.gif'|@vtiger_imageurl:$THEME}" tabindex="{$vt_tab}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.QcEditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  508. {else}
  509. <img src="{'select.gif'|@vtiger_imageurl:$THEME}" tabindex="{$vt_tab}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.EditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  510. {/if}
  511. </td>
  512. {elseif $uitype eq 357}
  513. <td width="20%" class="dvtCellLabel" align=right>To:&nbsp;</td>
  514. <td width="90%" colspan="3">
  515. <input name="{$fldname}" type="hidden" value="{$secondvalue}">
  516. <textarea readonly name="parent_name" cols="70" rows="2">{$fldvalue}</textarea>&nbsp;
  517. <select name="parent_type" class="small">
  518. {foreach key=labelval item=selectval from=$fldlabel}
  519. <option value="{$labelval}" {$selectval}>{$labelval}</option>
  520. {/foreach}
  521. </select>
  522. &nbsp;
  523. {if $fromlink eq 'qcreate'}
  524. <img tabindex="{$vt_tab}" src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.QcEditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  525. {else}
  526. <img tabindex="{$vt_tab}" src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module="+ document.EditView.parent_type.value +"&action=Popup&html=Popup_picker&form=HelpDeskEditView&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.parent_id.value=''; this.form.parent_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  527. {/if}
  528. </td>
  529. <tr style="height:25px">
  530. <td width="20%" class="dvtCellLabel" align=right>CC:&nbsp;</td>
  531. <td width="30%" align=left class="dvtCellInfo">
  532. <input name="ccmail" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value="">
  533. </td>
  534. <td width="20%" class="dvtCellLabel" align=right>BCC:&nbsp;</td>
  535. <td width="30%" align=left class="dvtCellInfo">
  536. <input name="bccmail" type="text" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" value="">
  537. </td>
  538. </tr>
  539. {elseif $uitype eq 59}
  540. <td width="20%" class="dvtCellLabel" align=right>
  541. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  542. </td>
  543. <td width="30%" align=left class="dvtCellInfo">
  544. <input name="{$fldname}" type="hidden" value="{$secondvalue}">
  545. <input name="product_name" readonly type="text" value="{$fldvalue}">&nbsp;<img tabindex="{$vt_tab}" src="{'select.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_SELECT}" title="{$APP.LBL_SELECT}" LANGUAGE=javascript onclick='return window.open("index.php?module=Products&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=specific&fromlink={$fromlink}","test","width=640,height=602,resizable=0,scrollbars=0,top=150,left=200");' align="absmiddle" style='cursor:hand;cursor:pointer'>&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.product_id.value=''; this.form.product_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
  546. </td>
  547. {elseif $uitype eq 55 || $uitype eq 255}
  548. <td width="20%" class="dvtCellLabel" align=right>
  549. {if $MASS_EDIT eq '1' && $fldvalue neq ''}
  550. {$APP.Salutation}<input type="checkbox" name="salutationtype_mass_edit_check" id="salutationtype_mass_edit_check" class="small" ><br />
  551. {/if}
  552. {if $uitype eq 55}
  553. {$usefldlabel}{if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  554. {elseif $uitype eq 255}
  555. <font color="red">{$mandatory_field}</font>{$usefldlabel}{if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  556. {/if}
  557. </td>
  558. <td width="30%" align=left class="dvtCellInfo">
  559. {if $fldvalue neq ''}
  560. <select name="salutationtype" class="small">
  561. {foreach item=arr from=$fldvalue}
  562. <option value="{$arr[1]}" {$arr[2]}>
  563. {$arr[0]}
  564. </option>
  565. {/foreach}
  566. </select>
  567. {if $MASS_EDIT eq '1'}<br />{/if}
  568. {/if}
  569. <input type="text" name="{$fldname}" tabindex="{$vt_tab}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" style="width:58%;" value= "{$secondvalue}" >
  570. </td>
  571. {elseif $uitype eq 22}
  572. <td width="20%" class="dvtCellLabel" align=right>
  573. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  574. </td>
  575. <td width="30%" align=left class="dvtCellInfo">
  576. <textarea name="{$fldname}" cols="30" tabindex="{$vt_tab}" rows="2">{$fldvalue}</textarea>
  577. </td>
  578. {elseif $uitype eq 14}
  579. <td width="20%" class="dvtCellLabel" align=right>
  580. <font color="red">{$mandatory_field}</font>{$usefldlabel} {"LBL_TIMEFIELD"|@getTranslatedString}{if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  581. </td>
  582. <td width=10% align=left class="dvtCellInfo">
  583. <input type="text" tabindex="{$vt_tab}" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">
  584. </td>
  585. {elseif $uitype eq 69}
  586. <td width="20%" class="dvtCellLabel" align=right>
  587. <font color="red">{$mandatory_field}</font>{$usefldlabel}
  588. {if $MASS_EDIT eq '1'}
  589. <input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >
  590. {/if}
  591. </td>
  592. <td colspan="3" width="30%" align=left class="dvtCellInfo">
  593. {if $MODULE eq 'Products'}
  594. <input name="del_file_list" type="hidden" value="">
  595. <div id="files_list" style="border: 1px solid grey; width: 500px; padding: 5px; background: rgb(255, 255, 255) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-size: x-small">{$APP.Files_Maximum_6}
  596. <input id="my_file_element" type="file" name="file_1" tabindex="{$vt_tab}" onchange="validateFilename(this)"/>
  597. <!--input type="hidden" name="file_1_hidden" value=""/-->
  598. {assign var=image_count value=0}
  599. {if $maindata[3].0.name neq '' && $DUPLICATE neq 'true'}
  600. {foreach name=image_loop key=num item=image_details from=$maindata[3]}
  601. <div align="center">
  602. <img src="{$image_details.path}{$image_details.name}" height="50">&nbsp;&nbsp;[{$image_details.orgname}]<input id="file_{$num}" value="Delete" type="button" class="crmbutton small delete" onclick='this.parentNode.parentNode.removeChild(this.parentNode);delRowEmt("{$image_details.orgname}")'>
  603. </div>
  604. {assign var=image_count value=$smarty.foreach.image_loop.iteration}
  605. {/foreach}
  606. {/if}
  607. </div>
  608. <script>
  609. {*<!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->*}
  610. var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 6 );
  611. multi_selector.count = {$image_count}
  612. {*<!-- Pass in the file element -->*}
  613. multi_selector.addElement( document.getElementById( 'my_file_element' ) );
  614. </script>
  615. {else}
  616. <input name="{$fldname}" type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" onchange="validateFilename(this);" />
  617. <input name="{$fldname}_hidden" type="hidden" value="{$maindata[3].0.name}" />
  618. <input type="hidden" name="id" value=""/>
  619. {if $maindata[3].0.name != "" && $DUPLICATE neq 'true'}
  620. <div id="replaceimage">[{$maindata[3].0.orgname}] <a href="javascript:;" onClick="delimage({$ID})">Del</a></div>
  621. {/if}
  622. {/if}
  623. </td>
  624. {elseif $uitype eq 61}
  625. <td width="20%" class="dvtCellLabel" align=right>
  626. <font color="red">{$mandatory_field}</font>{$usefldlabel}
  627. {if $MASS_EDIT eq '1'}
  628. <input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" disabled >
  629. {/if}
  630. </td>
  631. <td colspan="1" width="30%" align=left class="dvtCellInfo">
  632. <input name="{$fldname}" type="file" value="{$secondvalue}" tabindex="{$vt_tab}" onchange="validateFilename(this)"/>
  633. <input type="hidden" name="{$fldname}_hidden" value="{$secondvalue}"/>
  634. <input type="hidden" name="id" value=""/>{$fldvalue}
  635. </td>
  636. {elseif $uitype eq 156}
  637. <td width="20%" class="dvtCellLabel" align=right>
  638. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  639. </td>
  640. {if $fldvalue eq 'on'}
  641. <td width="30%" align=left class="dvtCellInfo">
  642. {if ($secondvalue eq 1 && $CURRENT_USERID != $smarty.request.record) || ($MODE == 'create')}
  643. <input name="{$fldname}" tabindex="{$vt_tab}" type="checkbox" checked>
  644. {else}
  645. <input name="{$fldname}" type="hidden" value="on">
  646. <input name="{$fldname}" disabled tabindex="{$vt_tab}" type="checkbox" checked>
  647. {/if}
  648. </td>
  649. {else}
  650. <td width="30%" align=left class="dvtCellInfo">
  651. {if ($secondvalue eq 1 && $CURRENT_USERID != $smarty.request.record) || ($MODE == 'create')}
  652. <input name="{$fldname}" tabindex="{$vt_tab}" type="checkbox">
  653. {else}
  654. <input name="{$fldname}" disabled tabindex="{$vt_tab}" type="checkbox">
  655. {/if}
  656. </td>
  657. {/if}
  658. {elseif $uitype eq 98}<!-- Role Selection Popup -->
  659. <td width="20%" class="dvtCellLabel" align=right>
  660. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  661. </td>
  662. <td width="30%" align=left class="dvtCellInfo">
  663. {if $thirdvalue eq 1}
  664. <input name="role_name" id="role_name" readonly class="txtBox" tabindex="{$vt_tab}" value="{$secondvalue}" type="text">&nbsp;
  665. <a href="javascript:openPopup();"><img src="{'select.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0"></a>
  666. {else}
  667. <input name="role_name" id="role_name" tabindex="{$vt_tab}" class="txtBox" readonly value="{$secondvalue}" type="text">&nbsp;
  668. {/if}
  669. <input name="user_role" id="user_role" value="{$fldvalue}" type="hidden">
  670. </td>
  671. {elseif $uitype eq 104}<!-- Mandatory Email Fields -->
  672. <td width=20% class="dvtCellLabel" align=right>
  673. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  674. </td>
  675. <td width=30% align=left class="dvtCellInfo"><input type="text" name="{$fldname}" id ="{$fldname}" value="{$fldvalue}" tabindex="{$vt_tab}" class=detailedViewTextBox onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></td>
  676. {elseif $uitype eq 115}<!-- for Status field Disabled for nonadmin -->
  677. <td width="20%" class="dvtCellLabel" align=right>
  678. <font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
  679. </td>
  680. <td width="30%" align=left class="dvtCellInfo">
  681. {if $secondvalue eq 1 && $CURRENT_USERID != $smarty.request.record}
  682. <select id="user_status" disabled name="{$fldname}" tabindex="{$vt_tab}" class="small">
  683. {else}
  684. <select id="user_status" disabled name="{$fldname}" class="s…

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