PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/rucrm/Smarty/templates_c/%%E5^E5C^E5CB7E0E%%InventoryDetailView.tpl.php

https://code.google.com/p/vtiger-ru-fork/
PHP | 582 lines | 550 code | 32 blank | 0 comment | 79 complexity | b7aba983f367c499505d5bc2d903b1af MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception, GPL-2.0, LGPL-3.0
  1. <?php /* Smarty version 2.6.18, created on 2011-03-14 19:59:24
  2. compiled from Inventory/InventoryDetailView.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'Inventory/InventoryDetailView.tpl', 129, false),array('modifier', 'getTranslatedString', 'Inventory/InventoryDetailView.tpl', 141, false),array('modifier', 'replace', 'Inventory/InventoryDetailView.tpl', 234, false),)), $this); ?>
  5. <script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
  6. <script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
  7. <div id="convertleaddiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
  8. <span id="crmspanid" style="display:none;position:absolute;" onmouseover="show('crmspanid');">
  9. <a class="link" align="right" href="javascript:;"><?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON']; ?>
  10. </a>
  11. </span>
  12. <script>
  13. function tagvalidate()
  14. {
  15. if(trim(document.getElementById('txtbox_tagfields').value) != '')
  16. SaveTag('txtbox_tagfields','<?php echo $this->_tpl_vars['ID']; ?>
  17. ','<?php echo $this->_tpl_vars['MODULE']; ?>
  18. ');
  19. else
  20. {
  21. alert("<?php echo $this->_tpl_vars['APP']['PLEASE_ENTER_TAG']; ?>
  22. ");
  23. return false;
  24. }
  25. }
  26. function DeleteTag(id,recordid)
  27. {
  28. $("vtbusy_info").style.display="inline";
  29. Effect.Fade('tag_'+id);
  30. new Ajax.Request(
  31. 'index.php',
  32. {queue: {position: 'end', scope: 'command'},
  33. method: 'post',
  34. postBody: "file=TagCloud&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  35. &action=<?php echo $this->_tpl_vars['MODULE']; ?>
  36. Ajax&ajxaction=DELETETAG&recordid="+recordid+"&tagid=" +id,
  37. onComplete: function(response) {
  38. getTagCloud();
  39. $("vtbusy_info").style.display="none";
  40. }
  41. }
  42. );
  43. }
  44. <?php echo '
  45. function showHideStatus(sId,anchorImgId,sImagePath)
  46. {
  47. oObj = eval(document.getElementById(sId));
  48. if(oObj.style.display == \'block\')
  49. {
  50. oObj.style.display = \'none\';
  51. eval(document.getElementById(anchorImgId)).src = \'themes/images/inactivate.gif\';
  52. eval(document.getElementById(anchorImgId)).alt = \'Display\';
  53. eval(document.getElementById(anchorImgId)).title = \'Display\';
  54. }
  55. else
  56. {
  57. oObj.style.display = \'block\';
  58. eval(document.getElementById(anchorImgId)).src = \'themes/images/activate.gif\';
  59. eval(document.getElementById(anchorImgId)).alt = \'Hide\';
  60. eval(document.getElementById(anchorImgId)).title = \'Hide\';
  61. }
  62. }
  63. function setCoOrdinate(elemId)
  64. {
  65. oBtnObj = document.getElementById(elemId);
  66. var tagName = document.getElementById(\'lstRecordLayout\');
  67. leftpos = 0;
  68. toppos = 0;
  69. aTag = oBtnObj;
  70. do
  71. {
  72. leftpos += aTag.offsetLeft;
  73. toppos += aTag.offsetTop;
  74. } while(aTag = aTag.offsetParent);
  75. tagName.style.top= toppos + 20 + \'px\';
  76. tagName.style.left= leftpos - 276 + \'px\';
  77. }
  78. function getListOfRecords(obj, sModule, iId,sParentTab)
  79. {
  80. new Ajax.Request(
  81. \'index.php\',
  82. {queue: {position: \'end\', scope: \'command\'},
  83. method: \'post\',
  84. postBody: \'module=Users&action=getListOfRecords&ajax=true&CurModule=\'+sModule+\'&CurRecordId=\'+iId+\'&CurParentTab=\'+sParentTab,
  85. onComplete: function(response) {
  86. sResponse = response.responseText;
  87. $("lstRecordLayout").innerHTML = sResponse;
  88. Lay = \'lstRecordLayout\';
  89. var tagName = document.getElementById(Lay);
  90. var leftSide = findPosX(obj);
  91. var topSide = findPosY(obj);
  92. var maxW = tagName.style.width;
  93. var widthM = maxW.substring(0,maxW.length-2);
  94. var getVal = eval(leftSide) + eval(widthM);
  95. if(getVal > document.body.clientWidth ){
  96. leftSide = eval(leftSide) - eval(widthM);
  97. tagName.style.left = leftSide + 230 + \'px\';
  98. }
  99. else
  100. tagName.style.left= leftSide + 388 + \'px\';
  101. setCoOrdinate(obj.id);
  102. tagName.style.display = \'block\';
  103. tagName.style.visibility = "visible";
  104. }
  105. }
  106. );
  107. }
  108. '; ?>
  109. </script>
  110. <div id="lstRecordLayout" class="layerPopup" style="display:none;width:325px;height:300px;"></div> <!-- Code added by SAKTI on 16th Jun, 2008 -->
  111. <table width="100%" cellpadding="2" cellspacing="0" border="0">
  112. <tr>
  113. <td>
  114. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  115. $this->_smarty_include(array('smarty_include_tpl_file' => 'Buttons_List1.tpl', 'smarty_include_vars' => array()));
  116. $this->_tpl_vars = $_smarty_tpl_vars;
  117. unset($_smarty_tpl_vars);
  118. ?>
  119. <!-- Contents -->
  120. <table border=0 cellspacing=0 cellpadding=0 width=98% align=center>
  121. <tr>
  122. <td valign=top><img src="<?php echo vtiger_imageurl('showPanelTopLeft.gif', $this->_tpl_vars['THEME']); ?>
  123. "></td>
  124. <td class="showPanelBg" valign=top width=100%>
  125. <!-- PUBLIC CONTENTS STARTS-->
  126. <div class="small" style="padding:20px" >
  127. <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
  128. <tr>
  129. <td>
  130. <?php $this->assign('USE_ID_VALUE', $this->_tpl_vars['MOD_SEQ_ID']); ?>
  131. <?php if ($this->_tpl_vars['USE_ID_VALUE'] == ''): ?> <?php $this->assign('USE_ID_VALUE', $this->_tpl_vars['ID']); ?> <?php endif; ?>
  132. <span class="lvtHeaderText"><font color="purple">[ <?php echo $this->_tpl_vars['USE_ID_VALUE']; ?>
  133. ] </font><?php echo $this->_tpl_vars['NAME']; ?>
  134. - <?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
  135. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  136. </span>&nbsp;&nbsp;&nbsp;<span class="small"><?php echo $this->_tpl_vars['UPDATEINFO']; ?>
  137. </span>&nbsp;<span id="vtbusy_info" style="display:none;" valign="bottom"><img src="<?php echo vtiger_imageurl('vtbusy.gif', $this->_tpl_vars['THEME']); ?>
  138. " border="0"></span><span id="vtbusy_info" style="visibility:hidden;" valign="bottom"><img src="<?php echo vtiger_imageurl('vtbusy.gif', $this->_tpl_vars['THEME']); ?>
  139. " border="0"></span>
  140. </td>
  141. </tr>
  142. </table>
  143. <br>
  144. <!-- Entity and More information tabs -->
  145. <table border=0 cellspacing=0 cellpadding=0 width=95% align=center>
  146. <tr>
  147. <td>
  148. <table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
  149. <tr>
  150. <td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
  151. <td class="dvtSelectedCell" align=center nowrap><?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
  152. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  153. </td>
  154. <td class="dvtTabCache" style="width:10px">&nbsp;</td>
  155. <?php if ($this->_tpl_vars['SinglePane_View'] == 'false' && $this->_tpl_vars['IS_REL_LIST'] != false): ?>
  156. <td class="dvtUnSelectedCell" onmouseout="fnHideDrop('More_Information_Modules_List');" onmouseover="fnDropDown(this,'More_Information_Modules_List');" align="center" nowrap>
  157. <a href="index.php?action=CallRelatedList&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  158. &record=<?php echo $this->_tpl_vars['ID']; ?>
  159. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  160. "><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  161. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  162. </a>
  163. <div onmouseover="fnShowDrop('More_Information_Modules_List')" onmouseout="fnHideDrop('More_Information_Modules_List')"
  164. id="More_Information_Modules_List" class="drop_mnu" style="left: 502px; top: 76px; display: none;">
  165. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  166. <?php $_from = $this->_tpl_vars['IS_REL_LIST']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  167. foreach ($_from as $this->_tpl_vars['_RELATION_ID'] => $this->_tpl_vars['_RELATED_MODULE']):
  168. ?>
  169. <tr><td><a class="drop_down" href="index.php?action=CallRelatedList&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  170. &record=<?php echo $this->_tpl_vars['ID']; ?>
  171. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  172. &selected_header=<?php echo $this->_tpl_vars['_RELATED_MODULE']; ?>
  173. &relation_id=<?php echo $this->_tpl_vars['_RELATION_ID']; ?>
  174. "><?php echo getTranslatedString($this->_tpl_vars['_RELATED_MODULE'], $this->_tpl_vars['MODULE']); ?>
  175. </a></td></tr>
  176. <?php endforeach; endif; unset($_from); ?>
  177. </table>
  178. </div>
  179. </td>
  180. <?php endif; ?>
  181. <td class="dvtTabCache" align="right" style="width:100%">
  182. <?php if ($this->_tpl_vars['EDIT_DUPLICATE'] == 'permitted'): ?>
  183. <input title="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_TITLE']; ?>
  184. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_KEY']; ?>
  185. " class="crmbutton small edit" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  186. '; DetailView.return_action.value='DetailView'; DetailView.return_id.value='<?php echo $this->_tpl_vars['ID']; ?>
  187. ';DetailView.module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  188. '; submitFormForAction('DetailView','EditView');" type="button" name="Edit" value="&nbsp;<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_LABEL']; ?>
  189. &nbsp;">&nbsp;
  190. <?php endif; ?>
  191. <?php if ($this->_tpl_vars['EDIT_DUPLICATE'] == 'permitted' && $this->_tpl_vars['MODULE'] != 'Documents'): ?>
  192. <input title="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_TITLE']; ?>
  193. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_KEY']; ?>
  194. " class="crmbutton small create" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  195. '; DetailView.return_action.value='DetailView'; DetailView.isDuplicate.value='true';DetailView.module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  196. '; submitFormForAction('DetailView','EditView');" type="button" name="Duplicate" value="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_LABEL']; ?>
  197. ">&nbsp;
  198. <?php endif; ?>
  199. <?php if ($this->_tpl_vars['DELETE'] == 'permitted'): ?>
  200. <input title="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_TITLE']; ?>
  201. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_KEY']; ?>
  202. " class="crmbutton small delete" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  203. '; DetailView.return_action.value='index'; <?php if ($this->_tpl_vars['MODULE'] == 'Accounts'): ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_ACCOUNT_DELETE_CONFIRMATION']; ?>
  204. ' <?php else: ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_DELETE_CONFIRMATION']; ?>
  205. ' <?php endif; ?>; submitFormForActionWithConfirmation('DetailView', 'Delete', confirmMsg);" type="button" name="Delete" value="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_LABEL']; ?>
  206. ">&nbsp;
  207. <?php endif; ?>
  208. <?php if ($this->_tpl_vars['privrecord'] != ''): ?>
  209. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  210. " accessKey="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  211. " onclick="location.href='index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  212. &viewtype=<?php echo $this->_tpl_vars['VIEWTYPE']; ?>
  213. &action=DetailView&record=<?php echo $this->_tpl_vars['privrecord']; ?>
  214. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  215. '" name="privrecord" value="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  216. " src="<?php echo vtiger_imageurl('rec_prev.gif', $this->_tpl_vars['THEME']); ?>
  217. ">&nbsp;
  218. <?php else: ?>
  219. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  220. " src="<?php echo vtiger_imageurl('rec_prev_disabled.gif', $this->_tpl_vars['THEME']); ?>
  221. ">
  222. <?php endif; ?>
  223. <?php if ($this->_tpl_vars['privrecord'] != '' || $this->_tpl_vars['nextrecord'] != ''): ?>
  224. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LBL_JUMP_BTN']; ?>
  225. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_JUMP_BTN']; ?>
  226. " onclick="var obj = this;var lhref = getListOfRecords(obj, '<?php echo $this->_tpl_vars['MODULE']; ?>
  227. ',<?php echo $this->_tpl_vars['ID']; ?>
  228. ,'<?php echo $this->_tpl_vars['CATEGORY']; ?>
  229. ');" name="jumpBtnIdTop" id="jumpBtnIdTop" src="<?php echo vtiger_imageurl('rec_jump.gif', $this->_tpl_vars['THEME']); ?>
  230. ">&nbsp;
  231. <?php endif; ?>
  232. <?php if ($this->_tpl_vars['nextrecord'] != ''): ?>
  233. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  234. " accessKey="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  235. " onclick="location.href='index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  236. &viewtype=<?php echo $this->_tpl_vars['VIEWTYPE']; ?>
  237. &action=DetailView&record=<?php echo $this->_tpl_vars['nextrecord']; ?>
  238. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  239. '" name="nextrecord" src="<?php echo vtiger_imageurl('rec_next.gif', $this->_tpl_vars['THEME']); ?>
  240. ">&nbsp;
  241. <?php else: ?>
  242. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  243. " src="<?php echo vtiger_imageurl('rec_next_disabled.gif', $this->_tpl_vars['THEME']); ?>
  244. ">&nbsp;
  245. <?php endif; ?>
  246. </td>
  247. </tr>
  248. </table>
  249. </td>
  250. </tr>
  251. <tr>
  252. <td valign=top align=left >
  253. <table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace" style="border-bottom:0px;">
  254. <tr valign=top>
  255. <td align=left style="padding:10px;">
  256. <!-- content cache -->
  257. <form action="index.php" method="post" name="DetailView" id="form" onsubmit="VtigerJS_DialogBox.block();">
  258. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  259. $this->_smarty_include(array('smarty_include_tpl_file' => 'DetailViewHidden.tpl', 'smarty_include_vars' => array()));
  260. $this->_tpl_vars = $_smarty_tpl_vars;
  261. unset($_smarty_tpl_vars);
  262. ?>
  263. <!-- Entity informations display - starts -->
  264. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  265. <tr>
  266. <td style="padding:10px;border-right:1px dashed #CCCCCC;" width="80%">
  267. <!-- The following table is used to display the buttons -->
  268. <!-- Button displayed - finished-->
  269. <?php require_once(SMARTY_CORE_DIR . 'core.smarty_include_php.php');
  270. smarty_core_smarty_include_php(array('smarty_file' => "./include/DetailViewBlockStatus.php", 'smarty_assign' => '', 'smarty_once' => false, 'smarty_include_vars' => array()), $this); ?>
  271. <!-- Entity information(blocks) display - start -->
  272. <?php $_from = $this->_tpl_vars['BLOCKS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  273. foreach ($_from as $this->_tpl_vars['header'] => $this->_tpl_vars['detail']):
  274. ?>
  275. <table border=0 cellspacing=0 cellpadding=0 width=100% class="small">
  276. <tr>
  277. <td>&nbsp;</td>
  278. <td>&nbsp;</td>
  279. <td>&nbsp;</td>
  280. <td align=right>
  281. </td>
  282. </tr>
  283. <tr>
  284. <?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>'; ?>
  285. </tr>
  286. </table>
  287. <?php if ($this->_tpl_vars['BLOCKINITIALSTATUS'][$this->_tpl_vars['header']] == 1): ?>
  288. <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, ' ', '')); ?>
  289. " >
  290. <?php else: ?>
  291. <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, ' ', '')); ?>
  292. " >
  293. <?php endif; ?>
  294. <table border=0 cellspacing=0 cellpadding=0 width="100%" class="small">
  295. <?php $_from = $this->_tpl_vars['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  296. foreach ($_from as $this->_tpl_vars['detail']):
  297. ?>
  298. <tr style="height:25px">
  299. <?php $_from = $this->_tpl_vars['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  300. foreach ($_from as $this->_tpl_vars['label'] => $this->_tpl_vars['data']):
  301. ?>
  302. <?php $this->assign('keyid', $this->_tpl_vars['data']['ui']); ?>
  303. <?php $this->assign('keyval', $this->_tpl_vars['data']['value']); ?>
  304. <?php $this->assign('keytblname', $this->_tpl_vars['data']['tablename']); ?>
  305. <?php $this->assign('keyfldname', $this->_tpl_vars['data']['fldname']); ?>
  306. <?php $this->assign('keyfldid', $this->_tpl_vars['data']['fldid']); ?>
  307. <?php $this->assign('keyoptions', $this->_tpl_vars['data']['options']); ?>
  308. <?php $this->assign('keysecid', $this->_tpl_vars['data']['secid']); ?>
  309. <?php $this->assign('keyseclink', $this->_tpl_vars['data']['link']); ?>
  310. <?php $this->assign('keycursymb', $this->_tpl_vars['data']['cursymb']); ?>
  311. <?php $this->assign('keysalut', $this->_tpl_vars['data']['salut']); ?>
  312. <?php $this->assign('keycntimage', $this->_tpl_vars['data']['cntimage']); ?>
  313. <?php $this->assign('keyadmin', $this->_tpl_vars['data']['isadmin']); ?>
  314. <?php if ($this->_tpl_vars['label'] != ''): ?>
  315. <?php if ($this->_tpl_vars['keycntimage'] != ''): ?>
  316. <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  317. ></input><?php echo $this->_tpl_vars['keycntimage']; ?>
  318. </td>
  319. <?php elseif ($this->_tpl_vars['label'] != 'Tax Class'): ?><!-- Avoid to display the label Tax Class -->
  320. <?php if ($this->_tpl_vars['keyid'] == '71' || $this->_tpl_vars['keyid'] == '72'): ?> <!--CurrencySymbol-->
  321. <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  322. ></input><?php echo $this->_tpl_vars['label']; ?>
  323. (<?php echo $this->_tpl_vars['keycursymb']; ?>
  324. )</td>
  325. <?php else: ?>
  326. <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value=<?php echo $this->_tpl_vars['keyadmin']; ?>
  327. ></input><?php echo $this->_tpl_vars['label']; ?>
  328. </td>
  329. <?php endif; ?>
  330. <?php endif; ?>
  331. <?php if ($this->_tpl_vars['EDIT_PERMISSION'] == 'yes' && $this->_tpl_vars['display_type'] != '2'): ?>
  332. <?php if (! empty ( $this->_tpl_vars['DETAILVIEW_AJAX_EDIT'] )): ?>
  333. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  334. $this->_smarty_include(array('smarty_include_tpl_file' => "DetailViewUI.tpl", 'smarty_include_vars' => array()));
  335. $this->_tpl_vars = $_smarty_tpl_vars;
  336. unset($_smarty_tpl_vars);
  337. ?>
  338. <?php else: ?>
  339. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  340. $this->_smarty_include(array('smarty_include_tpl_file' => "DetailViewFields.tpl", 'smarty_include_vars' => array()));
  341. $this->_tpl_vars = $_smarty_tpl_vars;
  342. unset($_smarty_tpl_vars);
  343. ?>
  344. <?php endif; ?>
  345. <?php else: ?>
  346. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  347. $this->_smarty_include(array('smarty_include_tpl_file' => "DetailViewFields.tpl", 'smarty_include_vars' => array()));
  348. $this->_tpl_vars = $_smarty_tpl_vars;
  349. unset($_smarty_tpl_vars);
  350. ?>
  351. <?php endif; ?>
  352. <?php endif; ?>
  353. <?php endforeach; endif; unset($_from); ?>
  354. </tr>
  355. <?php endforeach; endif; unset($_from); ?>
  356. </table>
  357. </div> <!-- Line added by SAKTI on 10th Apr, 2008 -->
  358. <?php endforeach; endif; unset($_from); ?>
  359. <!-- Entity information(blocks) display - ends -->
  360. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && ! empty ( $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEWWIDGET'] )): ?>
  361. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['DETAILVIEWWIDGET']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  362. foreach ($_from as $this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET']):
  363. ?>
  364. <?php if (preg_match ( "/^block:\/\/.*/" , $this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET']->linkurl )): ?>
  365. <br>
  366. <?php
  367. echo vtlib_process_widget($this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET'], $this->_tpl_vars);
  368. ?>
  369. <?php endif; ?>
  370. <?php endforeach; endif; unset($_from); ?>
  371. <?php endif; ?>
  372. <br>
  373. <!-- Product Details informations -->
  374. <?php echo $this->_tpl_vars['ASSOCIATED_PRODUCTS']; ?>
  375. </form>
  376. </td>
  377. <!-- The following table is used to display the buttons -->
  378. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  379. <tr>
  380. <td style="padding:10px;border-right:1px dashed #CCCCCC;" width="80%">
  381. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  382. <tr>
  383. <td style="border-right:1px dashed #CCCCCC;" width="100%">
  384. <?php if ($this->_tpl_vars['SinglePane_View'] == 'true'): ?>
  385. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  386. $this->_smarty_include(array('smarty_include_tpl_file' => 'RelatedListNew.tpl', 'smarty_include_vars' => array()));
  387. $this->_tpl_vars = $_smarty_tpl_vars;
  388. unset($_smarty_tpl_vars);
  389. ?>
  390. <?php endif; ?>
  391. </td></tr></table>
  392. </td></tr></table>
  393. <!-- Inventory Actions - ends -->
  394. <td width=22% valign=top style="padding:10px;">
  395. <!-- right side InventoryActions -->
  396. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  397. $this->_smarty_include(array('smarty_include_tpl_file' => "Inventory/InventoryActions.tpl", 'smarty_include_vars' => array()));
  398. $this->_tpl_vars = $_smarty_tpl_vars;
  399. unset($_smarty_tpl_vars);
  400. ?>
  401. <br>
  402. <!-- To display the Tag Clouds -->
  403. <div>
  404. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  405. $this->_smarty_include(array('smarty_include_tpl_file' => "TagCloudDisplay.tpl", 'smarty_include_vars' => array()));
  406. $this->_tpl_vars = $_smarty_tpl_vars;
  407. unset($_smarty_tpl_vars);
  408. ?>
  409. </div>
  410. </td>
  411. </tr>
  412. </table>
  413. </td>
  414. </tr>
  415. <tr>
  416. <td>
  417. <table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
  418. <tr>
  419. <td class="dvtTabCacheBottom" style="width:10px" nowrap>&nbsp;</td>
  420. <td class="dvtSelectedCellBottom" align=center nowrap><?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
  421. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  422. </td>
  423. <td class="dvtTabCacheBottom" style="width:10px">&nbsp;</td>
  424. <?php if ($this->_tpl_vars['SinglePane_View'] == 'false'): ?>
  425. <td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action=CallRelatedList&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  426. &record=<?php echo $this->_tpl_vars['ID']; ?>
  427. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  428. "><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  429. <?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
  430. </a></td>
  431. <?php endif; ?>
  432. <td class="dvtTabCacheBottom" align="right" style="width:100%">
  433. <?php if ($this->_tpl_vars['EDIT_DUPLICATE'] == 'permitted'): ?>
  434. <input title="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_TITLE']; ?>
  435. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_KEY']; ?>
  436. " class="crmbutton small edit" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  437. '; DetailView.return_action.value='DetailView'; DetailView.return_id.value='<?php echo $this->_tpl_vars['ID']; ?>
  438. ';DetailView.module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  439. '; submitFormForAction('DetailView','EditView');" type="button" name="Edit" value="&nbsp;<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_LABEL']; ?>
  440. &nbsp;">&nbsp;
  441. <?php endif; ?>
  442. <?php if ($this->_tpl_vars['EDIT_DUPLICATE'] == 'permitted' && $this->_tpl_vars['MODULE'] != 'Documents'): ?>
  443. <input title="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_TITLE']; ?>
  444. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_KEY']; ?>
  445. " class="crmbutton small create" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  446. '; DetailView.return_action.value='DetailView'; DetailView.isDuplicate.value='true';DetailView.module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  447. '; submitFormForAction('DetailView','EditView');" type="button" name="Duplicate" value="<?php echo $this->_tpl_vars['APP']['LBL_DUPLICATE_BUTTON_LABEL']; ?>
  448. ">&nbsp;
  449. <?php endif; ?>
  450. <?php if ($this->_tpl_vars['DELETE'] == 'permitted'): ?>
  451. <input title="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_TITLE']; ?>
  452. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_KEY']; ?>
  453. " class="crmbutton small delete" onclick="DetailView.return_module.value='<?php echo $this->_tpl_vars['MODULE']; ?>
  454. '; DetailView.return_action.value='index'; <?php if ($this->_tpl_vars['MODULE'] == 'Accounts'): ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_ACCOUNT_DELETE_CONFIRMATION']; ?>
  455. ' <?php else: ?> var confirmMsg = '<?php echo $this->_tpl_vars['APP']['NTC_DELETE_CONFIRMATION']; ?>
  456. ' <?php endif; ?>; submitFormForActionWithConfirmation('DetailView', 'Delete', confirmMsg);" type="button" name="Delete" value="<?php echo $this->_tpl_vars['APP']['LBL_DELETE_BUTTON_LABEL']; ?>
  457. ">&nbsp;
  458. <?php endif; ?>
  459. <?php if ($this->_tpl_vars['privrecord'] != ''): ?>
  460. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  461. " accessKey="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  462. " onclick="location.href='index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  463. &viewtype=<?php echo $this->_tpl_vars['VIEWTYPE']; ?>
  464. &action=DetailView&record=<?php echo $this->_tpl_vars['privrecord']; ?>
  465. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  466. '" name="privrecord" value="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  467. " src="<?php echo vtiger_imageurl('rec_prev.gif', $this->_tpl_vars['THEME']); ?>
  468. ">&nbsp;
  469. <?php else: ?>
  470. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_PREVIOUS']; ?>
  471. " src="<?php echo vtiger_imageurl('rec_prev_disabled.gif', $this->_tpl_vars['THEME']); ?>
  472. ">
  473. <?php endif; ?>
  474. <?php if ($this->_tpl_vars['privrecord'] != '' || $this->_tpl_vars['nextrecord'] != ''): ?>
  475. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LBL_JUMP_BTN']; ?>
  476. " accessKey="<?php echo $this->_tpl_vars['APP']['LBL_JUMP_BTN']; ?>
  477. " onclick="var obj = this;var lhref = getListOfRecords(obj, '<?php echo $this->_tpl_vars['MODULE']; ?>
  478. ',<?php echo $this->_tpl_vars['ID']; ?>
  479. ,'<?php echo $this->_tpl_vars['CATEGORY']; ?>
  480. ');" name="jumpBtnIdBottom" id="jumpBtnIdBottom" src="<?php echo vtiger_imageurl('rec_jump.gif', $this->_tpl_vars['THEME']); ?>
  481. ">&nbsp;
  482. <?php endif; ?>
  483. <?php if ($this->_tpl_vars['nextrecord'] != ''): ?>
  484. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  485. " accessKey="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  486. " onclick="location.href='index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  487. &viewtype=<?php echo $this->_tpl_vars['VIEWTYPE']; ?>
  488. &action=DetailView&record=<?php echo $this->_tpl_vars['nextrecord']; ?>
  489. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  490. '" name="nextrecord" src="<?php echo vtiger_imageurl('rec_next.gif', $this->_tpl_vars['THEME']); ?>
  491. ">&nbsp;
  492. <?php else: ?>
  493. <img align="absmiddle" title="<?php echo $this->_tpl_vars['APP']['LNK_LIST_NEXT']; ?>
  494. " src="<?php echo vtiger_imageurl('rec_next_disabled.gif', $this->_tpl_vars['THEME']); ?>
  495. ">&nbsp;
  496. <?php endif; ?>
  497. </td>
  498. </tr>
  499. </table>
  500. </td>
  501. </tr>
  502. </table>
  503. <!-- PUBLIC CONTENTS STOPS-->
  504. </td>
  505. <td align=right valign=top>
  506. <img src="<?php echo vtiger_imageurl('showPanelTopRight.gif', $this->_tpl_vars['THEME']); ?>
  507. ">
  508. </td>
  509. </tr>
  510. </table>
  511. </div>
  512. </td>
  513. </tr>
  514. </table>
  515. <!-- Contents - end -->
  516. <script>
  517. function getTagCloud()
  518. {
  519. new Ajax.Request(
  520. 'index.php',
  521. {queue: {position: 'end', scope: 'command'},
  522. method: 'post',
  523. postBody: 'module=<?php echo $this->_tpl_vars['MODULE']; ?>
  524. &action=<?php echo $this->_tpl_vars['MODULE']; ?>
  525. Ajax&file=TagCloud&ajxaction=GETTAGCLOUD&recordid=<?php echo $this->_tpl_vars['ID']; ?>
  526. ',
  527. onComplete: function(response) {
  528. $("tagfields").innerHTML=response.responseText;
  529. $("txtbox_tagfields").value ='';
  530. }
  531. }
  532. );
  533. }
  534. getTagCloud();
  535. </script>
  536. </td>
  537. </tr>
  538. </table>
  539. <script language="javascript">
  540. var fieldname = new Array(<?php echo $this->_tpl_vars['VALIDATION_DATA_FIELDNAME']; ?>
  541. );
  542. var fieldlabel = new Array(<?php echo $this->_tpl_vars['VALIDATION_DATA_FIELDLABEL']; ?>
  543. );
  544. var fielddatatype = new Array(<?php echo $this->_tpl_vars['VALIDATION_DATA_FIELDDATATYPE']; ?>
  545. );
  546. </script>