PageRenderTime 72ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/Smarty/templates_c/%%5D^5D4^5D43DB5C%%DetailView.tpl.php

https://bitbucket.org/jhunsinfotech/blue-blues
PHP | 1076 lines | 1019 code | 56 blank | 1 comment | 232 complexity | 40b796bce372adbc2f2163ef7a6e0552 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, LGPL-3.0

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

  1. <?php /* Smarty version 2.6.18, created on 2012-08-08 09:04:45
  2. compiled from DetailView.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtlib_purify', 'DetailView.tpl', 26, false),array('modifier', 'vtiger_imageurl', 'DetailView.tpl', 193, false),array('modifier', 'getTranslatedString', 'DetailView.tpl', 203, false),array('modifier', 'count', 'DetailView.tpl', 218, false),array('modifier', 'replace', 'DetailView.tpl', 321, false),)), $this); ?>
  5. <link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
  6. <script type="text/javascript" src="jscalendar/calendar.js"></script>
  7. <script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
  8. <script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
  9. <script type="text/javascript" src="include/js/reflection.js"></script>
  10. <script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
  11. <script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
  12. <span id="crmspanid" style="display:none;position:absolute;" onmouseover="show('crmspanid');">
  13. <a class="link" align="right" href="javascript:;"><?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON']; ?>
  14. </a>
  15. </span>
  16. <div id="convertleaddiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
  17. <script>
  18. var gVTModule = '<?php echo vtlib_purify($_REQUEST['module']); ?>
  19. ';
  20. <?php echo '
  21. function callConvertLeadDiv(id)
  22. {
  23. new Ajax.Request(
  24. \'index.php\',
  25. {queue: {position: \'end\', scope: \'command\'},
  26. method: \'post\',
  27. postBody: \'module=Leads&action=LeadsAjax&file=ConvertLead&record=\'+id,
  28. onComplete: function(response) {
  29. $("convertleaddiv").innerHTML=response.responseText;
  30. eval($("conv_leadcal").innerHTML);
  31. }
  32. }
  33. );
  34. }
  35. function showHideStatus(sId,anchorImgId,sImagePath)
  36. {
  37. oObj = eval(document.getElementById(sId));
  38. if(oObj.style.display == \'block\')
  39. {
  40. oObj.style.display = \'none\';
  41. if(anchorImgId !=null){
  42. eval(document.getElementById(anchorImgId)).src = \'themes/images/inactivate.gif\';
  43. eval(document.getElementById(anchorImgId)).alt = \'Display\';
  44. eval(document.getElementById(anchorImgId)).title = \'Display\';
  45. }
  46. }
  47. else
  48. {
  49. oObj.style.display = \'block\';
  50. if(anchorImgId !=null){
  51. eval(document.getElementById(anchorImgId)).src = \'themes/images/activate.gif\';
  52. eval(document.getElementById(anchorImgId)).alt = \'Hide\';
  53. eval(document.getElementById(anchorImgId)).title = \'Hide\';
  54. }
  55. }
  56. }
  57. <!-- End Of Code modified by SAKTI on 10th Apr, 2008 -->
  58. <!-- Start of code added by SAKTI on 16th Jun, 2008 -->
  59. function setCoOrdinate(elemId){
  60. oBtnObj = document.getElementById(elemId);
  61. var tagName = document.getElementById(\'lstRecordLayout\');
  62. leftpos = 0;
  63. toppos = 0;
  64. aTag = oBtnObj;
  65. do{
  66. leftpos += aTag.offsetLeft;
  67. toppos += aTag.offsetTop;
  68. } while(aTag = aTag.offsetParent);
  69. tagName.style.top= toppos + 20 + \'px\';
  70. tagName.style.left= leftpos - 276 + \'px\';
  71. }
  72. function getListOfRecords(obj, sModule, iId,sParentTab)
  73. {
  74. new Ajax.Request(
  75. \'index.php\',
  76. {queue: {position: \'end\', scope: \'command\'},
  77. method: \'post\',
  78. postBody: \'module=Users&action=getListOfRecords&ajax=true&CurModule=\'+sModule+\'&CurRecordId=\'+iId+\'&CurParentTab=\'+sParentTab,
  79. onComplete: function(response) {
  80. sResponse = response.responseText;
  81. $("lstRecordLayout").innerHTML = sResponse;
  82. Lay = \'lstRecordLayout\';
  83. var tagName = document.getElementById(Lay);
  84. var leftSide = findPosX(obj);
  85. var topSide = findPosY(obj);
  86. var maxW = tagName.style.width;
  87. var widthM = maxW.substring(0,maxW.length-2);
  88. var getVal = parseInt(leftSide) + parseInt(widthM);
  89. if(getVal > document.body.clientWidth ){
  90. leftSide = parseInt(leftSide) - parseInt(widthM);
  91. tagName.style.left = leftSide + 230 + \'px\';
  92. tagName.style.top = topSide + 20 + \'px\';
  93. }else{
  94. tagName.style.left = leftSide + 230 + \'px\';
  95. }
  96. setCoOrdinate(obj.id);
  97. tagName.style.display = \'block\';
  98. tagName.style.visibility = "visible";
  99. }
  100. }
  101. );
  102. }
  103. '; ?>
  104. function tagvalidate()
  105. {
  106. if(trim(document.getElementById('txtbox_tagfields').value) != '')
  107. SaveTag('txtbox_tagfields','<?php echo $this->_tpl_vars['ID']; ?>
  108. ','<?php echo $this->_tpl_vars['MODULE']; ?>
  109. ');
  110. else
  111. {
  112. alert("<?php echo $this->_tpl_vars['APP']['PLEASE_ENTER_TAG']; ?>
  113. ");
  114. return false;
  115. }
  116. }
  117. function DeleteTag(id,recordid)
  118. {
  119. $("vtbusy_info").style.display="inline";
  120. Effect.Fade('tag_'+id);
  121. new Ajax.Request(
  122. 'index.php',
  123. {queue: {position: 'end', scope: 'command'},
  124. method: 'post',
  125. postBody: "file=TagCloud&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  126. &action=<?php echo $this->_tpl_vars['MODULE']; ?>
  127. Ajax&ajxaction=DELETETAG&recordid="+recordid+"&tagid=" +id,
  128. onComplete: function(response) {
  129. getTagCloud();
  130. $("vtbusy_info").style.display="none";
  131. }
  132. }
  133. );
  134. }
  135. //Added to send a file, in Documents module, as an attachment in an email
  136. function sendfile_email()
  137. {
  138. filename = $('dldfilename').value;
  139. document.DetailView.submit();
  140. OpenCompose(filename,'Documents');
  141. }
  142. </script>
  143. <div id="lstRecordLayout" class="layerPopup" style="display:none;width:325px;height:300px;"></div>
  144. <?php if ($this->_tpl_vars['MODULE'] == 'Accounts' || $this->_tpl_vars['MODULE'] == 'Contacts' || $this->_tpl_vars['MODULE'] == 'Leads'): ?>
  145. <?php if ($this->_tpl_vars['MODULE'] == 'Accounts'): ?>
  146. <?php $this->assign('address1', '$MOD.LBL_BILLING_ADDRESS'); ?>
  147. <?php $this->assign('address2', '$MOD.LBL_SHIPPING_ADDRESS'); ?>
  148. <?php endif; ?>
  149. <?php if ($this->_tpl_vars['MODULE'] == 'Contacts'): ?>
  150. <?php $this->assign('address1', '$MOD.LBL_PRIMARY_ADDRESS'); ?>
  151. <?php $this->assign('address2', '$MOD.LBL_ALTERNATE_ADDRESS'); ?>
  152. <?php endif; ?>
  153. <div id="locateMap" onMouseOut="fninvsh('locateMap')" onMouseOver="fnvshNrm('locateMap')">
  154. <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  155. <tr>
  156. <td>
  157. <?php if ($this->_tpl_vars['MODULE'] == 'Accounts'): ?>
  158. <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Main' );" class="calMnu"><?php echo $this->_tpl_vars['MOD']['LBL_BILLING_ADDRESS']; ?>
  159. </a>
  160. <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Other' );" class="calMnu"><?php echo $this->_tpl_vars['MOD']['LBL_SHIPPING_ADDRESS']; ?>
  161. </a>
  162. <?php endif; ?>
  163. <?php if ($this->_tpl_vars['MODULE'] == 'Contacts'): ?>
  164. <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Main' );" class="calMnu"><?php echo $this->_tpl_vars['MOD']['LBL_PRIMARY_ADDRESS']; ?>
  165. </a>
  166. <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Other' );" class="calMnu"><?php echo $this->_tpl_vars['MOD']['LBL_ALTERNATE_ADDRESS']; ?>
  167. </a>
  168. <?php endif; ?>
  169. </td>
  170. </tr>
  171. </table>
  172. </div>
  173. <?php endif; ?>
  174. <table width="100%" cellpadding="2" cellspacing="0" border="0">
  175. <tr>
  176. <td>
  177. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  178. $this->_smarty_include(array('smarty_include_tpl_file' => 'Buttons_List1.tpl', 'smarty_include_vars' => array()));
  179. $this->_tpl_vars = $_smarty_tpl_vars;
  180. unset($_smarty_tpl_vars);
  181. ?>
  182. <!-- Contents -->
  183. <table border=0 cellspacing=0 cellpadding=0 width=98% align=center>
  184. <tr>
  185. <td valign=top><img src="<?php echo vtiger_imageurl('showPanelTopLeft.gif', $this->_tpl_vars['THEME']); ?>
  186. "></td>
  187. <td class="showPanelBg" valign=top width=100%>
  188. <!-- PUBLIC CONTENTS STARTS-->
  189. <div class="small" style="padding:10px" >
  190. <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
  191. <tr><td>
  192. <?php $this->assign('USE_ID_VALUE', $this->_tpl_vars['MOD_SEQ_ID']); ?>
  193. <?php if ($this->_tpl_vars['USE_ID_VALUE'] == ''): ?> <?php $this->assign('USE_ID_VALUE', $this->_tpl_vars['ID']); ?> <?php endif; ?>
  194. <span class="dvHeaderText">[ <?php echo $this->_tpl_vars['USE_ID_VALUE']; ?>
  195. ] <?php echo $this->_tpl_vars['NAME']; ?>
  196. - <?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
  197. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  198. </span>&nbsp;&nbsp;&nbsp;<span class="small"><?php echo $this->_tpl_vars['UPDATEINFO']; ?>
  199. </span>&nbsp;<span id="vtbusy_info" style="display:none;" valign="bottom"><img src="<?php echo vtiger_imageurl('vtbusy.gif', $this->_tpl_vars['THEME']); ?>
  200. " border="0"></span><span id="vtbusy_info" style="visibility:hidden;" valign="bottom"><img src="<?php echo vtiger_imageurl('vtbusy.gif', $this->_tpl_vars['THEME']); ?>
  201. " border="0"></span>
  202. </td></tr>
  203. </table>
  204. <br>
  205. <!-- Account details tabs -->
  206. <table border=0 cellspacing=0 cellpadding=0 width=95% align=center>
  207. <tr>
  208. <td>
  209. <table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
  210. <tr>
  211. <td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
  212. <td class="dvtSelectedCell" align=center nowrap><?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
  213. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  214. </td>
  215. <td class="dvtTabCache" style="width:10px">&nbsp;</td>
  216. <?php if ($this->_tpl_vars['SinglePane_View'] == 'false' && $this->_tpl_vars['IS_REL_LIST'] != false && count($this->_tpl_vars['IS_REL_LIST']) > 0): ?>
  217. <td class="dvtUnSelectedCell" onmouseout="fnHideDrop('More_Information_Modules_List');" onmouseover="fnDropDown(this,'More_Information_Modules_List');" align="center" nowrap>
  218. <a href="index.php?action=CallRelatedList&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  219. &record=<?php echo $this->_tpl_vars['ID']; ?>
  220. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  221. "><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  222. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  223. </a>
  224. <div onmouseover="fnShowDrop('More_Information_Modules_List')" onmouseout="fnHideDrop('More_Information_Modules_List')"
  225. id="More_Information_Modules_List" class="drop_mnu" style="left: 502px; top: 76px; display: none;">
  226. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  227. <?php $_from = $this->_tpl_vars['IS_REL_LIST']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  228. foreach ($_from as $this->_tpl_vars['_RELATION_ID'] => $this->_tpl_vars['_RELATED_MODULE']):
  229. ?>
  230. <tr><td><a class="drop_down" href="index.php?action=CallRelatedList&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  231. &record=<?php echo $this->_tpl_vars['ID']; ?>
  232. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  233. &selected_header=<?php echo $this->_tpl_vars['_RELATED_MODULE']; ?>
  234. &relation_id=<?php echo $this->_tpl_vars['_RELATION_ID']; ?>
  235. "><?php echo getTranslatedString($this->_tpl_vars['_RELATED_MODULE'], $this->_tpl_vars['MODULE']); ?>
  236. </a></td></tr>
  237. <?php endforeach; endif; unset($_from); ?>
  238. </table>
  239. </div>
  240. </td>
  241. <?php endif; ?>
  242. <td class="dvtTabCache" align="right" style="width:100%">
  243. <?php if ($this->_tpl_vars['EDIT_DUPLICATE'] == 'permitted'): ?>
  244. <input title="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_TITLE']; ?>
  245. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_KEY']; ?>
  246. " class="crmbutton small edit" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  247. '; DetailView.return_action.value='DetailView'; DetailView.return_id.value='<?php echo $this->_tpl_vars['ID']; ?>
  248. ';DetailView.module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  249. ';submitFormForAction('DetailView','EditView');" type="button" name="Edit" value="&nbsp;<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_LABEL']; ?>
  250. &nbsp;">&nbsp;
  251. <?php endif; ?>
  252. <?php if ($this->_tpl_vars['EDIT_DUPLICATE'] == 'permitted' && $this->_tpl_vars['MODULE'] != 'Documents'): ?>
  253. <input title="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_TITLE']; ?>
  254. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_KEY']; ?>
  255. " class="crmbutton small create" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  256. '; DetailView.return_action.value='DetailView'; DetailView.isDuplicate.value='true';DetailView.module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  257. '; submitFormForAction('DetailView','EditView');" type="button" name="Duplicate" value="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_LABEL']; ?>
  258. ">&nbsp;
  259. <?php endif; ?>
  260. <?php if ($this->_tpl_vars['DELETE'] == 'permitted'): ?>
  261. <input title="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_TITLE']; ?>
  262. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_KEY']; ?>
  263. " class="crmbutton small delete" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  264. '; DetailView.return_action.value='index'; <?php if ($this->_tpl_vars['MODULE'] == 'Accounts'): ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_ACCOUNT_DELETE_CONFIRMATION']; ?>
  265. ' <?php else: ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_DELETE_CONFIRMATION']; ?>
  266. ' <?php endif; ?>; submitFormForActionWithConfirmation('DetailView', 'Delete', confirmMsg);" type="button" name="Delete" value="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_LABEL']; ?>
  267. ">&nbsp;
  268. <?php endif; ?>
  269. <?php if ($this->_tpl_vars['privrecord'] != ''): ?>
  270. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  271. " accessKey="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  272. " onclick="location.href='index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  273. &viewtype=<?php echo $this->_tpl_vars['VIEWTYPE']; ?>
  274. &action=DetailView&record=<?php echo $this->_tpl_vars['privrecord']; ?>
  275. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  276. &start=<?php echo $this->_tpl_vars['privrecordstart']; ?>
  277. '" name="privrecord" value="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  278. " src="<?php echo vtiger_imageurl('rec_prev.gif', $this->_tpl_vars['THEME']); ?>
  279. ">&nbsp;
  280. <?php else: ?>
  281. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  282. " src="<?php echo vtiger_imageurl('rec_prev_disabled.gif', $this->_tpl_vars['THEME']); ?>
  283. ">
  284. <?php endif; ?>
  285. <?php if ($this->_tpl_vars['privrecord'] != '' || $this->_tpl_vars['nextrecord'] != ''): ?>
  286. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LBL_JUMP_BTN']; ?>
  287. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_JUMP_BTN']; ?>
  288. " onclick="var obj = this;var lhref = getListOfRecords(obj, '<?php echo $this->_tpl_vars['MODULE']; ?>
  289. ',<?php echo $this->_tpl_vars['ID']; ?>
  290. ,'<?php echo $this->_tpl_vars['CATEGORY']; ?>
  291. ');" name="jumpBtnIdTop" id="jumpBtnIdTop" src="<?php echo vtiger_imageurl('rec_jump.gif', $this->_tpl_vars['THEME']); ?>
  292. ">&nbsp;
  293. <?php endif; ?>
  294. <?php if ($this->_tpl_vars['nextrecord'] != ''): ?>
  295. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  296. " accessKey="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  297. " onclick="location.href='index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  298. &viewtype=<?php echo $this->_tpl_vars['VIEWTYPE']; ?>
  299. &action=DetailView&record=<?php echo $this->_tpl_vars['nextrecord']; ?>
  300. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  301. &start=<?php echo $this->_tpl_vars['nextrecordstart']; ?>
  302. '" name="nextrecord" src="<?php echo vtiger_imageurl('rec_next.gif', $this->_tpl_vars['THEME']); ?>
  303. ">&nbsp;
  304. <?php else: ?>
  305. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  306. " src="<?php echo vtiger_imageurl('rec_next_disabled.gif', $this->_tpl_vars['THEME']); ?>
  307. ">&nbsp;
  308. <?php endif; ?>
  309. </td>
  310. </tr>
  311. </table>
  312. </td>
  313. </tr>
  314. <tr>
  315. <td valign=top align=left >
  316. <table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace" style="border-bottom:0;">
  317. <tr valign=top>
  318. <td align=left>
  319. <!-- content cache -->
  320. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  321. <tr valign=top>
  322. <td style="padding:5px">
  323. <!-- Command Buttons -->
  324. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  325. <!-- NOTE: We should avoid form-inside-form condition, which could happen when
  326. Singlepane view is enabled. -->
  327. <form action="index.php" method="post" name="DetailView" id="form">
  328. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  329. $this->_smarty_include(array('smarty_include_tpl_file' => 'DetailViewHidden.tpl', 'smarty_include_vars' => array()));
  330. $this->_tpl_vars = $_smarty_tpl_vars;
  331. unset($_smarty_tpl_vars);
  332. ?>
  333. <!-- Start of File Include by SAKTI on 10th Apr, 2008 -->
  334. <?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');
  335. smarty_core_smarty_include_php(array('smarty_file' => "include/DetailViewBlockStatus.php", 'smarty_assign' => '', 'smarty_once' => false, 'smarty_include_vars' => array()), $this); ?>
  336. <!-- Start of File Include by SAKTI on 10th Apr, 2008 -->
  337. <?php $_from = $this->_tpl_vars['BLOCKS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  338. foreach ($_from as $this->_tpl_vars['header'] => $this->_tpl_vars['detail']):
  339. ?>
  340. <tr><td style="padding:5px">
  341. <!-- Detailed View Code starts here-->
  342. <table border=0 cellspacing=0 cellpadding=0 width=100% class="small">
  343. <tr>
  344. <td>&nbsp;</td>
  345. <td>&nbsp;</td>
  346. <td>&nbsp;</td>
  347. <td align=right>
  348. <?php if ($this->_tpl_vars['header'] == $this->_tpl_vars['MOD']['LBL_ADDRESS_INFORMATION'] && ( $this->_tpl_vars['MODULE'] == 'Accounts' || $this->_tpl_vars['MODULE'] == 'Contacts' || $this->_tpl_vars['MODULE'] == 'Leads' )): ?>
  349. <?php if ($this->_tpl_vars['MODULE'] == 'Leads'): ?>
  350. <input name="mapbutton" value="<?php echo $this->_tpl_vars['APP']['LBL_LOCATE_MAP']; ?>
  351. " class="crmbutton small create" type="button" onClick="searchMapLocation( 'Main' )" title="<?php echo $this->_tpl_vars['APP']['LBL_LOCATE_MAP']; ?>
  352. ">
  353. <?php else: ?>
  354. <input name="mapbutton" value="<?php echo $this->_tpl_vars['APP']['LBL_LOCATE_MAP']; ?>
  355. " class="crmbutton small create" type="button" onClick="fnvshobj(this,'locateMap');" onMouseOut="fninvsh('locateMap');" title="<?php echo $this->_tpl_vars['APP']['LBL_LOCATE_MAP']; ?>
  356. ">
  357. <?php endif; ?>
  358. <?php endif; ?>
  359. </td>
  360. </tr>
  361. <!-- This is added to display the existing comments -->
  362. <?php if ($this->_tpl_vars['header'] == $this->_tpl_vars['MOD']['LBL_COMMENTS'] || $this->_tpl_vars['header'] == $this->_tpl_vars['MOD']['LBL_COMMENT_INFORMATION']): ?>
  363. <tr>
  364. <td colspan=4 class="dvInnerHeader">
  365. <b><?php echo $this->_tpl_vars['MOD']['LBL_COMMENT_INFORMATION']; ?>
  366. </b>
  367. </td>
  368. </tr>
  369. <tr>
  370. <td colspan=4 class="dvtCellInfo"><?php echo $this->_tpl_vars['COMMENT_BLOCK']; ?>
  371. </td>
  372. </tr>
  373. <tr><td>&nbsp;</td></tr>
  374. <?php endif; ?>
  375. <?php if ($this->_tpl_vars['header'] != 'Comments'): ?>
  376. <tr><?php echo '<td colspan=4 class="dvInnerHeader"><div style="float:left;font-weight:bold;"><div style="float:left;"><a href="javascript:showHideStatus(\'tbl'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '\',\'aid'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '\',\''; ?><?php echo $this->_tpl_vars['IMAGE_PATH']; ?><?php echo '\');">'; ?><?php if ($this->_tpl_vars['BLOCKINITIALSTATUS'][$this->_tpl_vars['header']] == 1): ?><?php echo '<img id="aid'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '" src="'; ?><?php echo vtiger_imageurl('activate.gif', $this->_tpl_vars['THEME']); ?><?php echo '" style="border: 0px solid #000000;" alt="Hide" title="Hide"/>'; ?><?php else: ?><?php echo '<img id="aid'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?><?php echo '" src="'; ?><?php echo vtiger_imageurl('inactivate.gif', $this->_tpl_vars['THEME']); ?><?php echo '" style="border: 0px solid #000000;" alt="Display" title="Display"/>'; ?><?php endif; ?><?php echo '</a></div><b>&nbsp;'; ?><?php echo $this->_tpl_vars['header']; ?><?php echo '</b></div></td>'; ?>
  377. </tr>
  378. <?php endif; ?>
  379. </table>
  380. <?php if ($this->_tpl_vars['header'] != 'Comments'): ?>
  381. <?php if ($this->_tpl_vars['BLOCKINITIALSTATUS'][$this->_tpl_vars['header']] == 1): ?>
  382. <div style="width:auto;display:block;" id="tbl<?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?>
  383. " >
  384. <?php else: ?>
  385. <div style="width:auto;display:none;" id="tbl<?php echo ((is_array($_tmp=$this->_tpl_vars['header'])) ? $this->_run_mod_handler('replace', true, $_tmp, ' ', '') : smarty_modifier_replace($_tmp, ' ', '')); ?>
  386. " >
  387. <?php endif; ?>
  388. <table border=0 cellspacing=0 cellpadding=0 width="100%" class="small">
  389. <?php $_from = $this->_tpl_vars['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  390. foreach ($_from as $this->_tpl_vars['detail']):
  391. ?>
  392. <tr style="height:25px">
  393. <?php $_from = $this->_tpl_vars['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  394. foreach ($_from as $this->_tpl_vars['label'] => $this->_tpl_vars['data']):
  395. ?>
  396. <?php $this->assign('keyid', $this->_tpl_vars['data']['ui']); ?>
  397. <?php $this->assign('keyval', $this->_tpl_vars['data']['value']); ?>
  398. <?php $this->assign('keytblname', $this->_tpl_vars['data']['tablename']); ?>
  399. <?php $this->assign('keyfldname', $this->_tpl_vars['data']['fldname']); ?>
  400. <?php $this->assign('keyfldid', $this->_tpl_vars['data']['fldid']); ?>
  401. <?php $this->assign('keyoptions', $this->_tpl_vars['data']['options']); ?>
  402. <?php $this->assign('keysecid', $this->_tpl_vars['data']['secid']); ?>
  403. <?php $this->assign('keyseclink', $this->_tpl_vars['data']['link']); ?>
  404. <?php $this->assign('keycursymb', $this->_tpl_vars['data']['cursymb']); ?>
  405. <?php $this->assign('keysalut', $this->_tpl_vars['data']['salut']); ?>
  406. <?php $this->assign('keyaccess', $this->_tpl_vars['data']['notaccess']); ?>
  407. <?php $this->assign('keycntimage', $this->_tpl_vars['data']['cntimage']); ?>
  408. <?php $this->assign('keyadmin', $this->_tpl_vars['data']['isadmin']); ?>
  409. <?php $this->assign('display_type', $this->_tpl_vars['data']['displaytype']); ?>
  410. <?php $this->assign('_readonly', $this->_tpl_vars['data']['readonly']); ?>
  411. <?php if ($this->_tpl_vars['label'] != ''): ?>
  412. <?php if ($this->_tpl_vars['keycntimage'] != ''): ?>
  413. <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  414. ></input><?php echo $this->_tpl_vars['keycntimage']; ?>
  415. </td>
  416. <?php elseif ($this->_tpl_vars['keyid'] == '71' || $this->_tpl_vars['keyid'] == '72'): ?><!-- Currency symbol -->
  417. <td class="dvtCellLabel" align=right width=25%><?php echo $this->_tpl_vars['label']; ?>
  418. <input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  419. ></input> (<?php echo $this->_tpl_vars['keycursymb']; ?>
  420. )</td>
  421. <?php elseif ($this->_tpl_vars['keyid'] == '9'): ?>
  422. <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  423. ></input><?php echo $this->_tpl_vars['label']; ?>
  424. <?php echo $this->_tpl_vars['APP']['COVERED_PERCENTAGE']; ?>
  425. </td>
  426. <?php elseif ($this->_tpl_vars['keyid'] == '14'): ?>
  427. <td class="dvtCellLabel" align=right width=25%><?php echo $this->_tpl_vars['label']; ?>
  428. <input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  429. ></input> <?php echo getTranslatedString('LBL_TIMEFIELD'); ?>
  430. </td>
  431. <?php else: ?>
  432. <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  433. ></input><?php echo $this->_tpl_vars['label']; ?>
  434. </td>
  435. <?php endif; ?>
  436. <?php if ($this->_tpl_vars['EDIT_PERMISSION'] == 'yes' && $this->_tpl_vars['display_type'] != '2' && $this->_tpl_vars['_readonly'] == '0'): ?>
  437. <?php if (! empty ( $this->_tpl_vars['DETAILVIEW_AJAX_EDIT'] )): ?>
  438. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  439. $this->_smarty_include(array('smarty_include_tpl_file' => "DetailViewUI.tpl", 'smarty_include_vars' => array()));
  440. $this->_tpl_vars = $_smarty_tpl_vars;
  441. unset($_smarty_tpl_vars);
  442. ?>
  443. <?php else: ?>
  444. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  445. $this->_smarty_include(array('smarty_include_tpl_file' => "DetailViewFields.tpl", 'smarty_include_vars' => array()));
  446. $this->_tpl_vars = $_smarty_tpl_vars;
  447. unset($_smarty_tpl_vars);
  448. ?>
  449. <?php endif; ?>
  450. <?php else: ?>
  451. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  452. $this->_smarty_include(array('smarty_include_tpl_file' => "DetailViewFields.tpl", 'smarty_include_vars' => array()));
  453. $this->_tpl_vars = $_smarty_tpl_vars;
  454. unset($_smarty_tpl_vars);
  455. ?>
  456. <?php endif; ?>
  457. <?php endif; ?>
  458. <?php endforeach; endif; unset($_from); ?>
  459. </tr>
  460. <?php endforeach; endif; unset($_from); ?>
  461. </table>
  462. </div>
  463. <?php endif; ?>
  464. </td>
  465. </tr>
  466. <?php endforeach; endif; unset($_from); ?>
  467. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && ! empty ( $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEWWIDGET'] )): ?>
  468. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEWWIDGET']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  469. foreach ($_from as $this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET']):
  470. ?>
  471. <?php if (preg_match ( "/^block:\/\/.*/" , $this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET']->linkurl )): ?>
  472. <tr>
  473. <td style="padding:5px;" >
  474. <?php
  475. echo vtlib_process_widget($this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET'], $this->_tpl_vars);
  476. ?>
  477. </td>
  478. </tr>
  479. <?php endif; ?>
  480. <?php endforeach; endif; unset($_from); ?>
  481. <?php endif; ?>
  482. <!-- Inventory - Product Details informations -->
  483. <tr>
  484. <?php echo $this->_tpl_vars['ASSOCIATED_PRODUCTS']; ?>
  485. </tr>
  486. </form>
  487. <!-- End the form related to detail view -->
  488. <?php if ($this->_tpl_vars['SinglePane_View'] == 'true' && count($this->_tpl_vars['IS_REL_LIST']) > 0): ?>
  489. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  490. $this->_smarty_include(array('smarty_include_tpl_file' => 'RelatedListNew.tpl', 'smarty_include_vars' => array()));
  491. $this->_tpl_vars = $_smarty_tpl_vars;
  492. unset($_smarty_tpl_vars);
  493. ?>
  494. <?php endif; ?>
  495. </table>
  496. </td></tr></table>
  497. </td>
  498. <td width=22% valign=top style="border-left:1px dashed #cccccc;padding:13px">
  499. <!-- right side relevant info -->
  500. <!-- Action links for Event & Todo START-by Minnie -->
  501. <table width="100%" border="0" cellpadding="5" cellspacing="0">
  502. <tr><td align="left" class="genHeaderSmall"><?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  503. </td></tr>
  504. <?php if ($this->_tpl_vars['MODULE'] == 'HelpDesk'): ?>
  505. <?php if ($this->_tpl_vars['CONVERTASFAQ'] == 'permitted'): ?>
  506. <tr>
  507. <td align="left" style="padding-left:10px;">
  508. <a class="webMnu" href="index.php?return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  509. &return_action=DetailView&record=<?php echo $this->_tpl_vars['ID']; ?>
  510. &return_id=<?php echo $this->_tpl_vars['ID']; ?>
  511. &module=<?php echo $this->_tpl_vars['MODULE']; ?>
  512. &action=ConvertAsFAQ"><img src="<?php echo vtiger_imageurl('convert.gif', $this->_tpl_vars['THEME']); ?>
  513. " hspace="5" align="absmiddle" border="0"/></a>
  514. <a class="webMnu" href="index.php?return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  515. &return_action=DetailView&record=<?php echo $this->_tpl_vars['ID']; ?>
  516. &return_id=<?php echo $this->_tpl_vars['ID']; ?>
  517. &module=<?php echo $this->_tpl_vars['MODULE']; ?>
  518. &action=ConvertAsFAQ"><?php echo $this->_tpl_vars['MOD']['LBL_CONVERT_AS_FAQ_BUTTON_LABEL']; ?>
  519. </a>
  520. </td>
  521. </tr>
  522. <?php endif; ?>
  523. <?php elseif ($this->_tpl_vars['MODULE'] == 'Potentials'): ?>
  524. <?php if ($this->_tpl_vars['CONVERTINVOICE'] == 'permitted'): ?>
  525. <tr>
  526. <td align="left" style="padding-left:10px;">
  527. <a class="webMnu" href="index.php?return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  528. &return_action=DetailView&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  529. &convertmode=<?php echo $this->_tpl_vars['CONVERTMODE']; ?>
  530. &module=Invoice&action=EditView&account_id=<?php echo $this->_tpl_vars['ACCOUNTID']; ?>
  531. "><img src="<?php echo vtiger_imageurl('actionGenerateInvoice.gif', $this->_tpl_vars['THEME']); ?>
  532. " hspace="5" align="absmiddle" border="0"/></a>
  533. <a class="webMnu" href="index.php?return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  534. &return_action=DetailView&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  535. &convertmode=<?php echo $this->_tpl_vars['CONVERTMODE']; ?>
  536. &module=Invoice&action=EditView&account_id=<?php echo $this->_tpl_vars['ACCOUNTID']; ?>
  537. "><?php echo $this->_tpl_vars['APP']['LBL_CREATE']; ?>
  538. <?php echo $this->_tpl_vars['APP']['Invoice']; ?>
  539. </a>
  540. </td>
  541. </tr>
  542. <?php endif; ?>
  543. <?php elseif ($this->_tpl_vars['TODO_PERMISSION'] == 'true' || $this->_tpl_vars['EVENT_PERMISSION'] == 'true' || $this->_tpl_vars['CONTACT_PERMISSION'] == 'true' || $this->_tpl_vars['MODULE'] == 'Contacts' || ( $this->_tpl_vars['MODULE'] == 'Documents' )): ?>
  544. <?php if ($this->_tpl_vars['MODULE'] == 'Contacts'): ?>
  545. <?php $this->assign('subst', 'contact_id'); ?>
  546. <?php $this->assign('acc', "&account_id=".($this->_tpl_vars['accountid'])); ?>
  547. <?php else: ?>
  548. <?php $this->assign('subst', 'parent_id'); ?>
  549. <?php $this->assign('acc', ""); ?>
  550. <?php endif; ?>
  551. <?php if ($this->_tpl_vars['MODULE'] == 'Leads' || $this->_tpl_vars['MODULE'] == 'Contacts' || $this->_tpl_vars['MODULE'] == 'Accounts'): ?>
  552. <?php if ($this->_tpl_vars['SENDMAILBUTTON'] == 'permitted'): ?>
  553. <tr>
  554. <td align="left" style="padding-left:10px;">
  555. <?php $_from = $this->_tpl_vars['EMAILS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  556. foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['email']):
  557. ?>
  558. <input type="hidden" name="email_<?php echo $this->_tpl_vars['index']; ?>
  559. " value="<?php echo $this->_tpl_vars['email']; ?>
  560. "/>
  561. <?php endforeach; endif; unset($_from); ?>
  562. <a href="javascript:void(0);" class="webMnu" onclick="<?php echo $this->_tpl_vars['JS']; ?>
  563. "><img src="<?php echo vtiger_imageurl('sendmail.png', $this->_tpl_vars['THEME']); ?>
  564. " hspace="5" align="absmiddle" border="0"/></a>&nbsp;
  565. <a href="javascript:void(0);" class="webMnu" onclick="<?php echo $this->_tpl_vars['JS']; ?>
  566. "><?php echo $this->_tpl_vars['APP']['LBL_SENDMAIL_BUTTON_LABEL']; ?>
  567. </a>
  568. </td>
  569. </tr>
  570. <?php endif; ?>
  571. <?php endif; ?>
  572. <?php if ($this->_tpl_vars['MODULE'] == 'Contacts' || $this->_tpl_vars['EVENT_PERMISSION'] == 'true'): ?>
  573. <tr>
  574. <td align="left" style="padding-left:10px;">
  575. <a href="index.php?module=Calendar&action=EditView&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  576. &return_action=DetailView&activity_mode=Events&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  577. &<?php echo $this->_tpl_vars['subst']; ?>
  578. =<?php echo $this->_tpl_vars['ID']; ?>
  579. <?php echo $this->_tpl_vars['acc']; ?>
  580. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  581. " class="webMnu"><img src="<?php echo vtiger_imageurl('AddEvent.gif', $this->_tpl_vars['THEME']); ?>
  582. " hspace="5" align="absmiddle" border="0"/></a>
  583. <a href="index.php?module=Calendar&action=EditView&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  584. &return_action=DetailView&activity_mode=Events&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  585. &<?php echo $this->_tpl_vars['subst']; ?>
  586. =<?php echo $this->_tpl_vars['ID']; ?>
  587. <?php echo $this->_tpl_vars['acc']; ?>
  588. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  589. " class="webMnu"><?php echo $this->_tpl_vars['APP']['LBL_ADD_NEW']; ?>
  590. <?php echo $this->_tpl_vars['APP']['Event']; ?>
  591. </a>
  592. </td>
  593. </tr>
  594. <?php endif; ?>
  595. <?php if ($this->_tpl_vars['TODO_PERMISSION'] == 'true' && ( $this->_tpl_vars['MODULE'] == 'Accounts' || $this->_tpl_vars['MODULE'] == 'Leads' )): ?>
  596. <tr>
  597. <td align="left" style="padding-left:10px;">
  598. <a href="index.php?module=Calendar&action=EditView&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  599. &return_action=DetailView&activity_mode=Task&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  600. &<?php echo $this->_tpl_vars['subst']; ?>
  601. =<?php echo $this->_tpl_vars['ID']; ?>
  602. <?php echo $this->_tpl_vars['acc']; ?>
  603. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  604. " class="webMnu"><img src="<?php echo vtiger_imageurl('AddToDo.gif', $this->_tpl_vars['THEME']); ?>
  605. " hspace="5" align="absmiddle" border="0"/></a>
  606. <a href="index.php?module=Calendar&action=EditView&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  607. &return_action=DetailView&activity_mode=Task&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  608. &<?php echo $this->_tpl_vars['subst']; ?>
  609. =<?php echo $this->_tpl_vars['ID']; ?>
  610. <?php echo $this->_tpl_vars['acc']; ?>
  611. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  612. " class="webMnu"><?php echo $this->_tpl_vars['APP']['LBL_ADD_NEW']; ?>
  613. <?php echo $this->_tpl_vars['APP']['Todo']; ?>
  614. </a>
  615. </td>
  616. </tr>
  617. <?php endif; ?>
  618. <?php if ($this->_tpl_vars['MODULE'] == 'Contacts' && $this->_tpl_vars['CONTACT_PERMISSION'] == 'true'): ?>
  619. <tr>
  620. <td align="left" style="padding-left:10px;">
  621. <a href="index.php?module=Calendar&action=EditView&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  622. &return_action=DetailView&activity_mode=Task&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  623. &<?php echo $this->_tpl_vars['subst']; ?>
  624. =<?php echo $this->_tpl_vars['ID']; ?>
  625. <?php echo $this->_tpl_vars['acc']; ?>
  626. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  627. " class="webMnu"><img src="<?php echo vtiger_imageurl('AddToDo.gif', $this->_tpl_vars['THEME']); ?>
  628. " hspace="5" align="absmiddle" border="0"/></a>
  629. <a href="index.php?module=Calendar&action=EditView&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  630. &return_action=DetailView&activity_mode=Task&return_id=<?php echo $this->_tpl_vars['ID']; ?>
  631. &<?php echo $this->_tpl_vars['subst']; ?>
  632. =<?php echo $this->_tpl_vars['ID']; ?>
  633. <?php echo $this->_tpl_vars['acc']; ?>
  634. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  635. " class="webMnu"><?php echo $this->_tpl_vars['APP']['LBL_ADD_NEW']; ?>
  636. <?php echo $this->_tpl_vars['APP']['Todo']; ?>
  637. </a>
  638. </td>
  639. </tr>
  640. <?php endif; ?>
  641. <?php if ($this->_tpl_vars['MODULE'] == 'Leads'): ?>
  642. <?php if ($this->_tpl_vars['CONVERTLEAD'] == 'permitted'): ?>
  643. <tr>
  644. <td align="left" style="padding-left:10px;">
  645. <a href="javascript:void(0);" class="webMnu" onclick="callConvertLeadDiv('<?php echo $this->_tpl_vars['ID']; ?>
  646. ');"><img src="<?php echo vtiger_imageurl('Leads.gif', $this->_tpl_vars['THEME']); ?>
  647. " hspace="5" align="absmiddle" border="0"/></a>
  648. <a href="javascript:void(0);" class="webMnu" onclick="callConvertLeadDiv('<?php echo $this->_tpl_vars['ID']; ?>
  649. ');"><?php echo $this->_tpl_vars['APP']['LBL_CONVERT_BUTTON_LABEL']; ?>
  650. </a>
  651. </td>
  652. </tr>
  653. <?php endif; ?>
  654. <?php endif; ?>
  655. <!-- Start: Actions for Documents Module -->
  656. <?php if ($this->_tpl_vars['MODULE'] == 'Documents'): ?>
  657. <tr><td align="left" style="padding-left:10px;">
  658. <?php if ($this->_tpl_vars['DLD_TYPE'] == 'I' && $this->_tpl_vars['FILE_STATUS'] == '1' && $this->_tpl_vars['FILE_EXIST'] == 'yes'): ?>
  659. <br><a href="index.php?module=uploads&action=downloadfile&fileid=<?php echo $this->_tpl_vars['FILEID']; ?>
  660. &entityid=<?php echo $this->_tpl_vars['NOTESID']; ?>
  661. " onclick="javascript:dldCntIncrease(<?php echo $this->_tpl_vars['NOTESID']; ?>
  662. );" class="webMnu"><img src="<?php echo vtiger_imageurl('fbDownload.gif', $this->_tpl_vars['THEME']); ?>
  663. " hspace="5" align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_DOWNLOAD']; ?>
  664. " border="0"/></a>
  665. <a href="index.php?module=uploads&action=downloadfile&fileid=<?php echo $this->_tpl_vars['FILEID']; ?>
  666. &entityid=<?php echo $this->_tpl_vars['NOTESID']; ?>
  667. " onclick="javascript:dldCntIncrease(<?php echo $this->_tpl_vars['NOTESID']; ?>
  668. );"><?php echo $this->_tpl_vars['MOD']['LBL_DOWNLOAD_FILE']; ?>
  669. </a>
  670. <?php elseif ($this->_tpl_vars['DLD_TYPE'] == 'E' && $this->_tpl_vars['FILE_STATUS'] == '1'): ?>
  671. <br><a target="_blank" href="<?php echo $this->_tpl_vars['DLD_PATH']; ?>
  672. " onclick="javascript:dldCntIncrease(<?php echo $this->_tpl_vars['NOTESID']; ?>
  673. );"><img src="<?php echo vtiger_imageurl('fbDownload.gif', $this->_tpl_vars['THEME']); ?>
  674. "" align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_DOWNLOAD']; ?>
  675. " border="0"></a>
  676. <a target="_blank" href="<?php echo $this->_tpl_vars['DLD_PATH']; ?>
  677. " onclick="javascript:dldCntIncrease(<?php echo $this->_tpl_vars['NOTESID']; ?>
  678. );"><?php echo $this->_tpl_vars['MOD']['LBL_DOWNLOAD_FILE']; ?>
  679. </a>
  680. <?php endif; ?>
  681. </td></tr>
  682. <?php if ($this->_tpl_vars['CHECK_INTEGRITY_PERMISSION'] == 'yes'): ?>
  683. <tr><td align="left" style="padding-left:10px;">
  684. <br><a href="javascript:;" onClick="checkFileIntegrityDetailView(<?php echo $this->_tpl_vars['NOTESID']; ?>
  685. );"><img id="CheckIntegrity_img_id" src="<?php echo vtiger_imageurl('yes.gif', $this->_tpl_vars['THEME']); ?>
  686. " alt="Check integrity of this file" title="Check integrity of this file" hspace="5" align="absmiddle" border="0"/></a>
  687. <a href="javascript:;" onClick="checkFileIntegrityDetailView(<?php echo $this->_tpl_vars['NOTESID']; ?>
  688. );"><?php echo $this->_tpl_vars['MOD']['LBL_CHECK_INTEGRITY']; ?>
  689. </a>&nbsp;
  690. <input type="hidden" id="dldfilename" name="dldfilename" value="<?php echo $this->_tpl_vars['FILEID']; ?>
  691. -<?php echo $this->_tpl_vars['FILENAME']; ?>
  692. ">
  693. <span id="vtbusy_integrity_info" style="display:none;">
  694. <img src="<?php echo vtiger_imageurl('vtbusy.gif', $this->_tpl_vars['THEME']); ?>
  695. " border="0"></span>
  696. <span id="integrity_result" style="display:none"></span>
  697. </td></tr>
  698. <?php endif; ?>
  699. <tr><td align="left" style="padding-left:10px;">
  700. <?php if ($this->_tpl_vars['DLD_TYPE'] == 'I' && $this->_tpl_vars['FILE_STATUS'] == '1' && $this->_tpl_vars['FILE_EXIST'] == 'yes'): ?>
  701. <input type="hidden" id="dldfilename" name="dldfilename" value="<?php echo $this->_tpl_vars['FILEID']; ?>
  702. -<?php echo $this->_tpl_vars['FILENAME']; ?>
  703. ">
  704. <br><a href="javascript: document.DetailView.return_module.value='Documents'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='Documents'; document.DetailView.action.value='EmailFile'; document.DetailView.record.value=<?php echo $this->_tpl_vars['NOTESID']; ?>
  705. ; document.DetailView.return_id.value=<?php echo $this->_tpl_vars['NOTESID']; ?>
  706. ; sendfile_email();" class="webMnu"><img src="<?php echo vtiger_imageurl('attachment.gif', $this->_tpl_vars['THEME']); ?>
  707. " hspace="5" align="absmiddle" border="0"/></a>
  708. <a href="javascript: document.DetailView.return_module.value='Documents'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='Documents'; document.DetailView.action.value='EmailFile'; document.DetailView.record.value=<?php echo $this->_tpl_vars['NOTESID']; ?>
  709. ; document.DetailView.return_id.value=<?php echo $this->_tpl_vars['NOTESID']; ?>
  710. ; sendfile_email();"><?php echo $this->_tpl_vars['MOD']['LBL_EMAIL_FILE']; ?>
  711. </a>
  712. <?php endif; ?>
  713. </td></tr>
  714. <tr><td>&nbsp;</td></tr>
  715. <?php endif; ?>
  716. <?php endif; ?>
  717. </table>
  718. <?php if (! isset ( $this->_tpl_vars['CUSTOM_LINKS'] ) || empty ( $this->_tpl_vars['CUSTOM_LINKS'] )): ?>
  719. <br>
  720. <?php endif; ?>
  721. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEWBASIC']): ?>
  722. <table width="100%" border="0" cellpadding="5" cellspacing="0">
  723. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  724. foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
  725. ?>
  726. <tr>
  727. <td align="left" style="padding-left:10px;">
  728. <?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
  729. <?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
  730. <?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
  731. <?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
  732. <?php else: ?>
  733. <?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
  734. <?php endif; ?>
  735. <?php if ($this->_tpl_vars['CUSTOMLINK']->linkicon): ?>
  736. <a class="webMnu" href="<?php echo $this->_tpl_vars['customlink_href']; ?>
  737. "><img hspace=5 align="absmiddle" border=0 src="<?php echo $this->_tpl_vars['CUSTOMLINK']->linkicon; ?>
  738. "></a>
  739. <?php endif; ?>
  740. <a class="webMnu" href="<?php echo $this->_tpl_vars['customlink_href']; ?>
  741. "><?php echo $this->_tpl_vars['customlink_label']; ?>
  742. </a>
  743. </td>
  744. </tr>
  745. <?php endforeach; endif; unset($_from); ?>
  746. </table>
  747. <?php endif; ?>
  748. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEW']): ?>
  749. <br>
  750. <?php if (! empty ( $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEW'] )): ?>
  751. <table width="100%" border="0" cellpadding="5" cellspacing="0">
  752. <tr><td align="left" class="dvtUnSelectedCell dvtCellLabel">
  753. <a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  754. <?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  755. &#187;</b></a>
  756. </td></tr>
  757. </table>
  758. <br>
  759. <div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
  760. onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
  761. <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  762. <tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  763. <?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  764. &#187;</b></td></tr>
  765. <tr>
  766. <td>
  767. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  768. foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
  769. ?>
  770. <?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
  771. <?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
  772. <?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
  773. <?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
  774. <?php else: ?>
  775. <?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
  776. <?php endif; ?>
  777. <a href="<?php echo $this->_tpl_vars['customlink_href']; ?>
  778. " class="drop_down"><?php echo $this->_tpl_vars['customlink_label']; ?>
  779. </a>
  780. <?php endforeach; endif; unset($_from); ?>
  781. </td>
  782. </tr>
  783. </table>
  784. </div>
  785. <?php endif; ?>
  786. <?php endif; ?>
  787. <!-- Action links END -->
  788. <?php if ($this->_tpl_vars['TAG_CLOUD_DISPLAY'] == 'true'): ?>
  789. <!-- Tag cloud display -->
  790. <table border=0 cellspacing=0 cellpadding=0 width=100% class="tagCloud">
  791. <tr>
  792. <td class="tagCloudTopBg"><img src="<?php echo $this->_tpl_vars['IMAGE_PATH']; ?>
  793. tagCloudName.gif" border=0></td>
  794. </tr>
  795. <tr>
  796. <td><div id="tagdiv" style="display:visible;"><form method="POST" action="javascript:void(0);" onsubmit="return tagvalidate();"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input>&nbsp;&nbsp;<input name="button_tagfileds" type="submit" class="crmbutton small save" value="<?php echo $this->_tpl_vars['APP']['LBL_TAG_IT']; ?>
  797. " /></form></div></td>

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