PageRenderTime 60ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/rucrm/Smarty/templates_c/%%B8^B8A^B8AE4258%%Header.tpl.php

https://code.google.com/p/vtiger-ru-fork/
PHP | 898 lines | 853 code | 45 blank | 0 comment | 71 complexity | 54d33acfbbbd3e5f565e1c3b3e1f1d01 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-13 17:56:36
  2. compiled from Header.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'Header.tpl', 78, false),array('modifier', 'escape', 'Header.tpl', 86, false),array('modifier', 'getTranslatedString', 'Header.tpl', 112, false),array('modifier', 'vtlib_purify', 'Header.tpl', 388, false),array('function', 'math', 'Header.tpl', 637, false),)), $this); ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <title><?php echo $this->_tpl_vars['CURRENT_USER']; ?>
  9. - <?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['CATEGORY']]; ?>
  10. - <?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['MODULE_NAME']]; ?>
  11. - <?php echo $this->_tpl_vars['APP']['LBL_BROWSER_TITLE']; ?>
  12. </title>
  13. <link REL="SHORTCUT ICON" HREF="themes/images/vtigercrm_icon.ico">
  14. <style type="text/css">@import url("themes/<?php echo $this->_tpl_vars['THEME']; ?>
  15. /style.css");</style>
  16. <link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
  17. <?php if ($this->_tpl_vars['HEADERCSS']): ?>
  18. <!-- Custom Header CSS -->
  19. <?php $_from = $this->_tpl_vars['HEADERCSS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  20. foreach ($_from as $this->_tpl_vars['HDRCSS']):
  21. ?>
  22. <link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['HDRCSS']->linkurl; ?>
  23. "></script>
  24. <?php endforeach; endif; unset($_from); ?>
  25. <!-- END -->
  26. <?php endif; ?>
  27. <!-- ActivityReminder customization for callback -->
  28. <?php echo '
  29. <style type="text/css">div.fixedLay1 { position:fixed; }</style>
  30. <!--[if lte IE 6]>
  31. <style type="text/css">div.fixedLay { position:absolute; }</style>
  32. <![endif]-->
  33. '; ?>
  34. <!-- End -->
  35. </head>
  36. <body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 class=small>
  37. <a name="top"></a>
  38. <!-- header -->
  39. <!-- header-vtiger crm name & RSS -->
  40. <script language="JavaScript" type="text/javascript" src="include/js/json.js"></script>
  41. <script language="JavaScript" type="text/javascript" src="include/js/general.js"></script>
  42. <!-- vtlib customization: Javascript hook -->
  43. <script language="JavaScript" type="text/javascript" src="include/js/vtlib.js"></script>
  44. <!-- END -->
  45. <script language="JavaScript" type="text/javascript" src="include/js/<?php echo $_SESSION['authenticated_user_language']; ?>.lang.js?<?php echo $_SESSION['vtiger_version']; ?>"></script>
  46. <script language="JavaScript" type="text/javascript" src="include/js/QuickCreate.js"></script>
  47. <script language="javascript" type="text/javascript" src="include/scriptaculous/prototype.js"></script>
  48. <script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
  49. <script language="JavaScript" type="text/javascript" src="include/calculator/calc.js"></script>
  50. <script language="JavaScript" type="text/javascript" src="modules/Calendar/script.js"></script>
  51. <script language="javascript" type="text/javascript" src="include/scriptaculous/dom-drag.js"></script>
  52. <script language="JavaScript" type="text/javascript" src="include/js/notificationPopup.js"></script>
  53. <script type="text/javascript" src="jscalendar/calendar.js"></script>
  54. <script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
  55. <script type="text/javascript" src="jscalendar/lang/calendar-<?php echo $this->_tpl_vars['APP']['LBL_JSCALENDAR_LANG']; ?>
  56. .js"></script>
  57. <!-- asterisk Integration -->
  58. <?php if ($this->_tpl_vars['USE_ASTERISK'] == 'true'): ?>
  59. <script type="text/javascript" src="include/js/asterisk.js"></script>
  60. <script type="text/javascript">
  61. if(typeof(use_asterisk) == 'undefined') use_asterisk = true;
  62. </script>
  63. <?php endif; ?>
  64. <!-- END -->
  65. <?php if ($this->_tpl_vars['HEADERSCRIPTS']): ?>
  66. <!-- Custom Header Script -->
  67. <?php $_from = $this->_tpl_vars['HEADERSCRIPTS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  68. foreach ($_from as $this->_tpl_vars['HEADERSCRIPT']):
  69. ?>
  70. <script type="text/javascript" src="<?php echo $this->_tpl_vars['HEADERSCRIPT']->linkurl; ?>
  71. "></script>
  72. <?php endforeach; endif; unset($_from); ?>
  73. <!-- END -->
  74. <?php endif; ?>
  75. <img src="<?php echo vtiger_imageurl('layerPopupBg.gif', $this->_tpl_vars['THEME']); ?>
  76. " style="display: none;"/>
  77. <TABLE border=0 cellspacing=0 cellpadding=0 width=100% class="hdrNameBg">
  78. <tr>
  79. <!-- <td valign=top><img src="<?php echo vtiger_imageurl('vtiger-crm.gif', $this->_tpl_vars['THEME']); ?>
  80. " alt="vtiger CRM" title="vtiger CRM" border=0></td> -->
  81. <td width=100% align=center>
  82. <?php if ($this->_tpl_vars['APP'][$this->_tpl_vars['MODULE_NAME']] == 'Dashboards'): ?>
  83. <marquee id="rss" direction="left" scrolldelay="10" scrollamount="3" behavior="scroll" class="marStyle" onMouseOver="javascript:stop();" onMouseOut="javascript:start();">&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['ANNOUNCEMENT'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  84. </marquee>
  85. <?php else: ?>
  86. <marquee id="rss" direction="left" scrolldelay="10" scrollamount="3" behavior="scroll" class="marStyle" onMouseOver="javascript:stop();" onMouseOut="javascript:start();">&nbsp;<?php echo $this->_tpl_vars['ANNOUNCEMENT']; ?>
  87. </marquee>
  88. <?php endif; ?>
  89. </td>
  90. <td class=small nowrap>
  91. <table border=0 cellspacing=0 cellpadding=0>
  92. <tr>
  93. <?php if ($this->_tpl_vars['HEADERLINKS']): ?>
  94. <td style="padding-left:10px;padding-right:5px" class=small nowrap>
  95. <a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_headerLinksLay');" onclick="fnvshobj(this,'vtlib_headerLinksLay');"><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  96. </a> <img src="<?php echo vtiger_imageurl('arrow_down.gif', $this->_tpl_vars['THEME']); ?>
  97. " border=0>
  98. <div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_headerLinksLay"
  99. onmouseout="fninvsh('vtlib_headerLinksLay')" onmouseover="fnvshNrm('vtlib_headerLinksLay')">
  100. <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  101. <tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  102. </b></td></tr>
  103. <tr>
  104. <td>
  105. <?php $_from = $this->_tpl_vars['HEADERLINKS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  106. foreach ($_from as $this->_tpl_vars['HEADERLINK']):
  107. ?>
  108. <?php $this->assign('headerlink_href', $this->_tpl_vars['HEADERLINK']->linkurl); ?>
  109. <?php $this->assign('headerlink_label', $this->_tpl_vars['HEADERLINK']->linklabel); ?>
  110. <?php if ($this->_tpl_vars['headerlink_label'] == ''): ?>
  111. <?php $this->assign('headerlink_label', $this->_tpl_vars['headerlink_href']); ?>
  112. <?php else: ?>
  113. <?php $this->assign('headerlink_label', getTranslatedString($this->_tpl_vars['headerlink_label'], $this->_tpl_vars['HEADERLINK']->module())); ?>
  114. <?php endif; ?>
  115. <a href="<?php echo $this->_tpl_vars['headerlink_href']; ?>
  116. " class="drop_down"><?php echo $this->_tpl_vars['headerlink_label']; ?>
  117. </a>
  118. <?php endforeach; endif; unset($_from); ?>
  119. </td>
  120. </tr>
  121. </table>
  122. </div>
  123. </td>
  124. <?php endif; ?>
  125. <!-- gmailbookmarklet customization -->
  126. <td style="padding-left:10px;padding-right:10px" class=small nowrap>
  127. <?php echo $this->_tpl_vars['GMAIL_BOOKMARKLET']; ?>
  128. </td>
  129. <!-- END -->
  130. <?php if ($this->_tpl_vars['ADMIN_LINK'] != ''): ?> <!-- <td style="padding-left:10px;padding-right:10px" class=small nowrap> <a href="javascript:void(0);" onclick="vtiger_news(this)"><?php echo $this->_tpl_vars['APP']['LBL_VTIGER_NEWS']; ?>
  131. </a></td> -->
  132. <!-- <td style="padding-left:10px;padding-right:10px" class=small nowrap> <a href="javascript:void(0);" onclick="vtiger_feedback();"><?php echo $this->_tpl_vars['APP']['LBL_FEEDBACK']; ?>
  133. </a></td> -->
  134. <?php endif; ?>
  135. <td style="padding-left:10px;padding-right:10px" class=small nowrap> <a href="index.php?module=Users&action=DetailView&record=<?php echo $this->_tpl_vars['CURRENT_USER_ID']; ?>
  136. &modechk=prefview"><?php echo $this->_tpl_vars['APP']['LBL_MY_PREFERENCES']; ?>
  137. </a></td>
  138. <td style="padding-left:10px;padding-right:10px" class=small nowrap><a href="http://wiki.vtiger.com/index.php/Main_Page" target="_blank"><?php echo $this->_tpl_vars['APP']['LNK_HELP']; ?>
  139. </a></td>
  140. <!-- <td style="padding-left:10px;padding-right:10px" class=small nowrap><a href="javascript:;" onClick="openwin();"><?php echo $this->_tpl_vars['APP']['LNK_WEARE']; ?>
  141. </a></td> -->
  142. <td style="padding-left:10px;padding-right:10px" class=small nowrap> <a href="index.php?module=Users&action=Logout"><?php echo $this->_tpl_vars['APP']['LBL_LOGOUT']; ?>
  143. </a> (<?php echo $this->_tpl_vars['CURRENT_USER']; ?>
  144. )</td>
  145. </tr>
  146. </table>
  147. </td>
  148. </tr>
  149. </TABLE>
  150. <div id='miniCal' style='width:300px; position:absolute; display:none; left:100px; top:100px; z-index:100000'>
  151. </div>
  152. <?php if ($this->_tpl_vars['MODULE_NAME'] == 'Calendar'): ?>
  153. <div id="CalExport" style="width:300px; position:absolute; display:none; left:500px; top:100px; z-index:100000" class="layerPopup">
  154. <table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine>
  155. <tr>
  156. <td class="genHeaderSmall" nowrap align="left" width="30%" ><?php echo $this->_tpl_vars['APP']['LBL_EXPORT']; ?>
  157. </td>
  158. <td align="right"><a href='javascript:ghide("CalExport");'><img src="<?php echo vtiger_imageurl('close.gif', $this->_tpl_vars['THEME']); ?>
  159. " align="right" border="0"></a></td>
  160. </tr>
  161. </table>
  162. <table border=0 cellspacing=0 cellpadding=5 width=95% align=center>
  163. <tr>
  164. <td class="small">
  165. <table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white>
  166. <tr>
  167. <td align="right" nowrap class="cellLabel small">
  168. <input class="small" type='radio' name='exportCalendar' value = 'iCal' onclick="$('ics_filename').removeAttribute('disabled');" checked /> iCal Format
  169. </td>
  170. <td align="left">
  171. <input class="small" type='text' name='ics_filename' id='ics_filename' size='25' value='vtiger.calendar'/>
  172. </td>
  173. </tr>
  174. </table>
  175. </td>
  176. </tr>
  177. </table>
  178. <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
  179. <tr>
  180. <td class="small" align="center">
  181. <input type="button" onclick="return exportCalendar();" value="Export" class="crmbutton small edit" name="button"/>
  182. </td>
  183. </tr>
  184. </table>
  185. </div>
  186. <div id='CalImport' style='width:300px; position:absolute; display:none; left:500px; top:100px; z-index:100000' class="layerPopup">
  187. <?php $this->assign('label_filename', 'LBL_FILENAME'); ?>
  188. <form name='ical_import' id='ical_import' onsubmit="VtigerJS_DialogBox.block();" enctype="multipart/form-data" action="index.php" method="POST">
  189. <input type='hidden' name='module' value=''>
  190. <input type='hidden' name='action' value=''>
  191. <table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine>
  192. <tr>
  193. <td class="genHeaderSmall" nowrap align="left" width="30%" id="editfolder_info"><?php echo $this->_tpl_vars['APP']['LBL_IMPORT']; ?>
  194. </td>
  195. <td align="right"><a href='javascript:ghide("CalImport");'><img src="<?php echo vtiger_imageurl('close.gif', $this->_tpl_vars['THEME']); ?>
  196. " align="absmiddle" border="0"></a></td>
  197. </tr>
  198. </table>
  199. <table border=0 cellspacing=0 cellpadding=5 width=95% align=center>
  200. <tr>
  201. <td class="small">
  202. <table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white>
  203. <tr>
  204. <td align="right" nowrap class="cellLabel small"><b><?php echo getTranslatedString($this->_tpl_vars['label_filename']); ?>
  205. </b></td>
  206. <td align="left">
  207. <input class="small" type='file' name='ics_file' id='ics_file'/>
  208. </td>
  209. </tr>
  210. </table>
  211. </td>
  212. </tr>
  213. </table>
  214. <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
  215. <tr>
  216. <td class="small" align="center">
  217. <input type="button" onclick="return importCalendar();" value="Import" class="crmbutton small edit" name="button"/>
  218. </td>
  219. </tr>
  220. </table>
  221. </form>
  222. </div>
  223. <?php endif; ?>
  224. <!-- header - master tabs -->
  225. <TABLE border=0 cellspacing=0 cellpadding=0 width=100% class="hdrTabBg">
  226. <tr>
  227. <!-- LOGO -->
  228. <td style="width:150px" class=small>&nbsp;<img border="0" title="vtiger CRM" <img src="<?php echo vtiger_imageurl('vtiger-crm.gif', $this->_tpl_vars['THEME']); ?>
  229. " width=150px height=35px></td>
  230. <!-- <td style="width:150px" class=small>&nbsp;</td> -->
  231. <td class=small nowrap>
  232. <table border=0 cellspacing=0 cellpadding=0>
  233. <tr>
  234. <!-- <td class=tabSeperator><img src="<?php echo vtiger_imageurl('spacer.gif', $this->_tpl_vars['THEME']); ?>
  235. " width=2px height=28px></td> -->
  236. <?php $_from = $this->_tpl_vars['HEADERS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  237. foreach ($_from as $this->_tpl_vars['maintabs'] => $this->_tpl_vars['detail']):
  238. ?>
  239. <?php if ($this->_tpl_vars['maintabs'] != $this->_tpl_vars['CATEGORY']): ?>
  240. <td class="tabUnSelected" onmouseover="fnDropDown(this,'<?php echo $this->_tpl_vars['maintabs']; ?>
  241. _sub');" onmouseout="fnHideDrop('<?php echo $this->_tpl_vars['maintabs']; ?>
  242. _sub');" align="center" nowrap><a href="index.php?module=<?php echo $this->_tpl_vars['detail'][0]; ?>
  243. &action=index&parenttab=<?php echo $this->_tpl_vars['maintabs']; ?>
  244. "><?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['maintabs']]; ?>
  245. </a><img src="<?php echo vtiger_imageurl('menuDnArrow.gif', $this->_tpl_vars['THEME']); ?>
  246. " border=0 style="padding-left:5px"></td>
  247. <td class="tabSeperator"><img src="<?php echo vtiger_imageurl('spacer.gif', $this->_tpl_vars['THEME']); ?>
  248. "></td>
  249. <?php else: ?>
  250. <td class="tabSelected" onmouseover="fnDropDown(this,'<?php echo $this->_tpl_vars['maintabs']; ?>
  251. _sub');" onmouseout="fnHideDrop('<?php echo $this->_tpl_vars['maintabs']; ?>
  252. _sub');" align="center" nowrap><a href="index.php?module=<?php echo $this->_tpl_vars['detail'][0]; ?>
  253. &action=index&parenttab=<?php echo $this->_tpl_vars['maintabs']; ?>
  254. "><?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['maintabs']]; ?>
  255. </a><img src="<?php echo vtiger_imageurl('menuDnArrow.gif', $this->_tpl_vars['THEME']); ?>
  256. " border=0 style="padding-left:5px"></td>
  257. <td class="tabSeperator"><img src="<?php echo vtiger_imageurl('spacer.gif', $this->_tpl_vars['THEME']); ?>
  258. "></td>
  259. <?php endif; ?>
  260. <?php endforeach; endif; unset($_from); ?>
  261. <td style="padding-left:10px" nowrap>
  262. <?php if ($this->_tpl_vars['CNT'] == 1): ?>
  263. <select class=small id="qccombo" style="width:140px" onclick="QCreate(this);">
  264. <option value="none"><?php echo $this->_tpl_vars['APP']['LBL_QUICK_CREATE']; ?>
  265. ...</option>
  266. <?php $_from = $this->_tpl_vars['QCMODULE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  267. foreach ($_from as $this->_tpl_vars['detail']):
  268. ?>
  269. <option value="<?php echo $this->_tpl_vars['detail']['1']; ?>
  270. "><?php echo $this->_tpl_vars['APP']['NEW']; ?>
  271. &nbsp;<?php echo $this->_tpl_vars['detail']['0']; ?>
  272. </option>
  273. <?php endforeach; endif; unset($_from); ?>
  274. </select>
  275. <?php else: ?>
  276. <select class=small id="qccombo" style="width:140px" onchange="QCreate(this);">
  277. <option value="none"><?php echo $this->_tpl_vars['APP']['LBL_QUICK_CREATE']; ?>
  278. ...</option>
  279. <?php $_from = $this->_tpl_vars['QCMODULE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  280. foreach ($_from as $this->_tpl_vars['detail']):
  281. ?>
  282. <option value="<?php echo $this->_tpl_vars['detail']['1']; ?>
  283. "><?php echo $this->_tpl_vars['APP']['NEW']; ?>
  284. &nbsp;<?php echo $this->_tpl_vars['detail']['0']; ?>
  285. </option>
  286. <?php endforeach; endif; unset($_from); ?>
  287. </select>
  288. <?php endif; ?>
  289. </td>
  290. </tr>
  291. </table>
  292. </td>
  293. <!-- ////////////////////////////////////////////////////////////////////////// -->
  294. <td align=right style="padding-right:20px" nowrap >
  295. <table border=1 cellspacing=0 cellpadding=0 id="search" style="border:0px solid #999999;background-color:white">
  296. <tr>
  297. <form name="UnifiedSearch" method="post" action="index.php" style="margin:1px" onsubmit="VtigerJS_DialogBox.block();">
  298. <td style="height:19px;background-color:#ffffef" nowrap>
  299. <a href='javascript:void(0);' onclick="UnifiedSearch_SelectModuleForm(this);"><img src="<?php echo vtiger_imageurl('settings_top.gif', $this->_tpl_vars['THEME']); ?>
  300. " align='left' border=0></a>
  301. <input type="hidden" name="action" value="UnifiedSearch" style="margin:0px">
  302. <input type="hidden" name="module" value="Home" style="margin:0px">
  303. <input type="hidden" name="parenttab" value="<?php echo $this->_tpl_vars['CATEGORY']; ?>
  304. " style="margin:0px">
  305. <input type="hidden" name="search_onlyin" value="--USESELECTED--" style="margin:0px">
  306. <input type="text" name="query_string" value="<?php echo $this->_tpl_vars['QUERY_STRING']; ?>
  307. " class="searchBox" onFocus="this.value=''" >
  308. </td>
  309. <td style="background-color:#cccccc">
  310. <input type="submit" class="searchBtn" value="<?php echo $this->_tpl_vars['APP']['LBL_FIND_BUTTON']; ?>
  311. " alt="<?php echo $this->_tpl_vars['APP']['LBL_FIND']; ?>
  312. " title="<?php echo $this->_tpl_vars['APP']['LBL_FIND']; ?>
  313. ">
  314. </td>
  315. </form>
  316. </tr>
  317. </table>
  318. <!-- ???? ? ?????
  319. <tr>
  320. <td style="padding-left:5px;padding-right:5px" class=small nowrap><a href="index.php?module=Users&action=Logout"><?php echo $this->_tpl_vars['APP']['LBL_LOGOUT']; ?>
  321. ><img src="<?php echo vtiger_imageurl('exit.gif', $this->_tpl_vars['THEME']); ?>
  322. "</a> (<?php echo $this->_tpl_vars['CURRENT_USER']; ?>
  323. )</td>
  324. </tr> -->
  325. <!-- <td style="padding-left:10px;padding-right:10px" class=small nowrap><img src="<?php echo vtiger_imageurl('exit.gif', $this->_tpl_vars['THEME']); ?>
  326. "> <a href="index.php?module=Users&action=Logout"><?php echo $this->_tpl_vars['APP']['LBL_LOGOUT']; ?>
  327. </a> (<?php echo $this->_tpl_vars['CURRENT_USER']; ?>
  328. )</td> -->
  329. </tr>
  330. </td>
  331. </td>
  332. </tr>
  333. </TABLE>
  334. <!-- - level 2 tabs starts-->
  335. <TABLE border=0 cellspacing=0 cellpadding=2 width=100% class="level2Bg" >
  336. <tr>
  337. <td >
  338. <table border=0 cellspacing=0 cellpadding=0>
  339. <tr>
  340. <!-- ASHA: Avoid using this as it gives module name instead of module label.
  341. Now Using the same array QUICKACCESS that is used to show drop down menu
  342. (which gives both module name and module label)-->
  343. <!--<?php $_from = $this->_tpl_vars['HEADERS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  344. foreach ($_from as $this->_tpl_vars['maintabs'] => $this->_tpl_vars['detail']):
  345. ?>
  346. <?php if ($this->_tpl_vars['maintabs'] == $this->_tpl_vars['CATEGORY']): ?>
  347. <?php $_from = $this->_tpl_vars['detail']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  348. foreach ($_from as $this->_tpl_vars['number'] => $this->_tpl_vars['module']):
  349. ?>
  350. <?php $this->assign('modulelabel', $this->_tpl_vars['module']); ?>
  351. <?php if ($this->_tpl_vars['APP'][$this->_tpl_vars['module']]): ?>
  352. <?php $this->assign('modulelabel', $this->_tpl_vars['APP'][$this->_tpl_vars['module']]); ?>
  353. <?php endif; ?>
  354. <?php if ($this->_tpl_vars['module'] == $this->_tpl_vars['MODULE_NAME']): ?>
  355. <td class="level2SelTab" nowrap><a href="index.php?module=<?php echo $this->_tpl_vars['module']; ?>
  356. &action=index&parenttab=<?php echo $this->_tpl_vars['maintabs']; ?>
  357. "><?php echo $this->_tpl_vars['modulelabel']; ?>
  358. </a></td>
  359. <?php else: ?>
  360. <td class="level2UnSelTab" nowrap> <a href="index.php?module=<?php echo $this->_tpl_vars['module']; ?>
  361. &action=index&parenttab=<?php echo $this->_tpl_vars['maintabs']; ?>
  362. "><?php echo $this->_tpl_vars['modulelabel']; ?>
  363. </a> </td>
  364. <?php endif; ?>
  365. <?php endforeach; endif; unset($_from); ?>
  366. <?php endif; ?>
  367. <?php endforeach; endif; unset($_from); ?>-->
  368. <?php $_from = $this->_tpl_vars['QUICKACCESS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  369. foreach ($_from as $this->_tpl_vars['maintabs'] => $this->_tpl_vars['details']):
  370. ?>
  371. <?php if ($this->_tpl_vars['maintabs'] == $this->_tpl_vars['CATEGORY']): ?>
  372. <?php $_from = $this->_tpl_vars['details']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  373. foreach ($_from as $this->_tpl_vars['number'] => $this->_tpl_vars['modules']):
  374. ?>
  375. <?php $this->assign('modulelabel', getTranslatedString($this->_tpl_vars['modules'][1], $this->_tpl_vars['modules'][0])); ?>
  376. <?php $this->assign('moduleaction', 'index'); ?>
  377. <?php if (isset ( $this->_tpl_vars['modules'][2] )): ?>
  378. <?php $this->assign('moduleaction', $this->_tpl_vars['modules'][2]); ?>
  379. <?php endif; ?>
  380. <?php if ($this->_tpl_vars['modules']['0'] == $this->_tpl_vars['MODULE_NAME']): ?>
  381. <td class="level2SelTab" nowrap><a href="index.php?module=<?php echo $this->_tpl_vars['modules']['0']; ?>
  382. &action=<?php echo $this->_tpl_vars['moduleaction']; ?>
  383. &parenttab=<?php echo $this->_tpl_vars['maintabs']; ?>
  384. "><?php echo $this->_tpl_vars['modulelabel']; ?>
  385. </a></td>
  386. <?php else: ?>
  387. <td class="level2UnSelTab" nowrap> <a href="index.php?module=<?php echo $this->_tpl_vars['modules']['0']; ?>
  388. &action=<?php echo $this->_tpl_vars['moduleaction']; ?>
  389. &parenttab=<?php echo $this->_tpl_vars['maintabs']; ?>
  390. "><?php echo $this->_tpl_vars['modulelabel']; ?>
  391. </a> </td>
  392. <?php endif; ?>
  393. <?php endforeach; endif; unset($_from); ?>
  394. <?php endif; ?>
  395. <?php endforeach; endif; unset($_from); ?>
  396. </tr>
  397. </table>
  398. </td>
  399. </tr>
  400. </TABLE>
  401. <!-- Level 2 tabs ends -->
  402. <div id="calculator_cont" style="position:absolute; z-index:10000" ></div>
  403. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  404. $this->_smarty_include(array('smarty_include_tpl_file' => "Clock.tpl", 'smarty_include_vars' => array()));
  405. $this->_tpl_vars = $_smarty_tpl_vars;
  406. unset($_smarty_tpl_vars);
  407. ?>
  408. <div id="qcform" style="position:absolute;width:700px;top:80px;left:450px;z-index:100000;"></div>
  409. <!-- Unified Search module selection feature -->
  410. <div id="UnifiedSearch_moduleformwrapper" style="position:absolute;width:400px;z-index:100002;display:none;"></div>
  411. <script type='text/javascript'>
  412. <?php echo '
  413. function UnifiedSearch_SelectModuleForm(obj) {
  414. if($(\'UnifiedSearch_moduleform\')) {
  415. // If we have loaded the form already.
  416. UnifiedSearch_SelectModuleFormCallback(obj);
  417. } else {
  418. $(\'status\').show();
  419. new Ajax.Request(
  420. \'index.php\',
  421. {queue: {position: \'end\', scope: \'command\'},
  422. method: \'post\',
  423. postBody: \'module=Home&action=HomeAjax&file=UnifiedSearchModules&ajax=true\',
  424. onComplete: function(response) {
  425. $(\'status\').hide();
  426. $(\'UnifiedSearch_moduleformwrapper\').innerHTML = response.responseText;
  427. UnifiedSearch_SelectModuleFormCallback(obj);
  428. }
  429. });
  430. }
  431. }
  432. function UnifiedSearch_SelectModuleFormCallback(obj) {
  433. fnvshobj(obj, \'UnifiedSearch_moduleformwrapper\');
  434. }
  435. function UnifiedSearch_SelectModuleToggle(flag) {
  436. Form.getElements($(\'UnifiedSearch_moduleform\')).each(
  437. function(element) {
  438. if(element.type == \'checkbox\') {
  439. element.checked = flag;
  440. }
  441. }
  442. );
  443. }
  444. function UnifiedSearch_SelectModuleCancel() {
  445. $(\'UnifiedSearch_moduleformwrapper\').hide();
  446. }
  447. function UnifiedSearch_SelectModuleSave() {
  448. var UnifiedSearch_form = document.forms.UnifiedSearch;
  449. UnifiedSearch_form.search_onlyin.value = Form.serialize($(\'UnifiedSearch_moduleform\')).replace(/search_onlyin=/g, \'\').replace(/&/g,\',\');
  450. UnifiedSearch_SelectModuleCancel();
  451. }
  452. '; ?>
  453. </script>
  454. <!-- End -->
  455. <script>
  456. var gVTModule = '<?php echo vtlib_purify($_REQUEST['module']); ?>
  457. ';
  458. function fetch_clock()
  459. {
  460. new Ajax.Request(
  461. 'index.php',
  462. {queue: {position: 'end', scope: 'command'},
  463. method: 'post',
  464. postBody: 'module=Utilities&action=UtilitiesAjax&file=Clock',
  465. onComplete: function(response)
  466. {
  467. $("clock_cont").innerHTML=response.responseText;
  468. execJS($('clock_cont'));
  469. }
  470. }
  471. );
  472. }
  473. function fetch_calc()
  474. {
  475. new Ajax.Request(
  476. 'index.php',
  477. {queue: {position: 'end', scope: 'command'},
  478. method: 'post',
  479. postBody: 'module=Utilities&action=UtilitiesAjax&file=Calculator',
  480. onComplete: function(response)
  481. {
  482. $("calculator_cont").innerHTML=response.responseText;
  483. execJS($('calculator_cont'));
  484. }
  485. }
  486. );
  487. }
  488. </script>
  489. <script>
  490. <?php echo '
  491. function QCreate(qcoptions){
  492. var module = qcoptions.options[qcoptions.options.selectedIndex].value;
  493. if(module != \'none\'){
  494. $("status").style.display="inline";
  495. if(module == \'Events\'){
  496. module = \'Calendar\';
  497. var urlstr = \'&activity_mode=Events\';
  498. }else if(module == \'Calendar\'){
  499. module = \'Calendar\';
  500. var urlstr = \'&activity_mode=Task\';
  501. }else{
  502. var urlstr = \'\';
  503. }
  504. new Ajax.Request(
  505. \'index.php\',
  506. {queue: {position: \'end\', scope: \'command\'},
  507. method: \'post\',
  508. postBody: \'module=\'+module+\'&action=\'+module+\'Ajax&file=QuickCreate\'+urlstr,
  509. onComplete: function(response){
  510. $("status").style.display="none";
  511. $("qcform").style.display="inline";
  512. $("qcform").innerHTML = response.responseText;
  513. // Evaluate all the script tags in the response text.
  514. var scriptTags = $("qcform").getElementsByTagName("script");
  515. for(var i = 0; i< scriptTags.length; i++){
  516. var scriptTag = scriptTags[i];
  517. eval(scriptTag.innerHTML);
  518. }
  519. eval($("qcform"));
  520. posLay(qcoptions, "qcform");
  521. }
  522. }
  523. );
  524. }else{
  525. hide(\'qcform\');
  526. }
  527. }
  528. function getFormValidate(divValidate)
  529. {
  530. var st = document.getElementById(\'qcvalidate\');
  531. eval(st.innerHTML);
  532. for (var i=0; i<qcfieldname.length; i++) {
  533. var curr_fieldname = qcfieldname[i];
  534. if(window.document.QcEditView[curr_fieldname] != null)
  535. {
  536. var type=qcfielddatatype[i].split("~")
  537. var input_type = window.document.QcEditView[curr_fieldname].type;
  538. if (type[1]=="M") {
  539. if (!qcemptyCheck(curr_fieldname,qcfieldlabel[i],input_type))
  540. return false
  541. }
  542. switch (type[0]) {
  543. case "O" : break;
  544. case "V" : break;
  545. case "C" : break;
  546. case "DT" :
  547. if (window.document.QcEditView[curr_fieldname] != null && window.document.QcEditView[curr_fieldname].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\').length!=0)
  548. {
  549. if (type[1]=="M")
  550. if (!qcemptyCheck(type[2],qcfieldlabel[i],getObj(type[2]).type))
  551. return false
  552. if(typeof(type[3])=="undefined") var currdatechk="OTH"
  553. else var currdatechk=type[3]
  554. if (!qcdateTimeValidate(curr_fieldname,type[2],qcfieldlabel[i],currdatechk))
  555. return false
  556. if (type[4]) {
  557. if (!dateTimeComparison(curr_fieldname,type[2],qcfieldlabel[i],type[5],type[6],type[4]))
  558. return false
  559. }
  560. }
  561. break;
  562. case "D" :
  563. if (window.document.QcEditView[curr_fieldname] != null && window.document.QcEditView[curr_fieldname].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\').length!=0)
  564. {
  565. if(typeof(type[2])=="undefined") var currdatechk="OTH"
  566. else var currdatechk=type[2]
  567. if (!qcdateValidate(curr_fieldname,qcfieldlabel[i],currdatechk))
  568. return false
  569. if (type[3]) {
  570. if (!qcdateComparison(curr_fieldname,qcfieldlabel[i],type[4],type[5],type[3]))
  571. return false
  572. }
  573. }
  574. break;
  575. case "T" :
  576. if (window.document.QcEditView[curr_fieldname] != null && window.document.QcEditView[curr_fieldname].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\').length!=0)
  577. {
  578. if(typeof(type[2])=="undefined") var currtimechk="OTH"
  579. else var currtimechk=type[2]
  580. if (!timeValidate(curr_fieldname,qcfieldlabel[i],currtimechk))
  581. return false
  582. if (type[3]) {
  583. if (!timeComparison(curr_fieldname,qcfieldlabel[i],type[4],type[5],type[3]))
  584. return false
  585. }
  586. }
  587. break;
  588. case "I" :
  589. if (window.document.QcEditView[curr_fieldname] != null && window.document.QcEditView[curr_fieldname].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\').length!=0)
  590. {
  591. if (window.document.QcEditView[curr_fieldname].value.length!=0)
  592. {
  593. if (!qcintValidate(curr_fieldname,qcfieldlabel[i]))
  594. return false
  595. if (type[2]) {
  596. if (!qcnumConstComp(curr_fieldname,qcfieldlabel[i],type[2],type[3]))
  597. return false
  598. }
  599. }
  600. }
  601. break;
  602. case "N" :
  603. case "NN" :
  604. if (window.document.QcEditView[curr_fieldname] != null && window.document.QcEditView[curr_fieldname].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\').length!=0)
  605. {
  606. if (window.document.QcEditView[curr_fieldname].value.length!=0)
  607. {
  608. if (typeof(type[2])=="undefined") var numformat="any"
  609. else var numformat=type[2]
  610. if (type[0]=="NN") {
  611. if (!numValidate(curr_fieldname,qcfieldlabel[i],numformat,true))
  612. return false
  613. } else {
  614. if (!numValidate(curr_fieldname,qcfieldlabel[i],numformat))
  615. return false
  616. }
  617. if (type[3]) {
  618. if (!numConstComp(curr_fieldname,qcfieldlabel[i],type[3],type[4]))
  619. return false
  620. }
  621. }
  622. }
  623. break;
  624. case "E" :
  625. if (window.document.QcEditView[curr_fieldname] != null && window.document.QcEditView[curr_fieldname].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\').length!=0)
  626. {
  627. if (window.document.QcEditView[curr_fieldname].value.length!=0)
  628. {
  629. var etype = "EMAIL"
  630. if (!qcpatternValidate(curr_fieldname,qcfieldlabel[i],etype))
  631. return false
  632. }
  633. }
  634. break;
  635. }
  636. }
  637. }
  638. //added to check Start Date & Time,if Activity Status is Planned.//start
  639. for (var j=0; j<qcfieldname.length; j++)
  640. {
  641. curr_fieldname = qcfieldname[j];
  642. if(window.document.QcEditView[curr_fieldname] != null)
  643. {
  644. if(qcfieldname[j] == "date_start")
  645. {
  646. var datelabel = qcfieldlabel[j]
  647. var datefield = qcfieldname[j]
  648. var startdatevalue = window.document.QcEditView[datefield].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\')
  649. }
  650. if(qcfieldname[j] == "time_start")
  651. {
  652. var timelabel = qcfieldlabel[j]
  653. var timefield = qcfieldname[j]
  654. var timeval=window.document.QcEditView[timefield].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\')
  655. }
  656. if(qcfieldname[j] == "eventstatus" || qcfieldname[j] == "taskstatus")
  657. {
  658. var statusvalue = window.document.QcEditView[curr_fieldname].options[window.document.QcEditView[curr_fieldname].selectedIndex].value.replace(/^\\s+/g, \'\').replace(/\\s+$/g, \'\')
  659. var statuslabel = qcfieldlabel[j++]
  660. }
  661. }
  662. }
  663. if(statusvalue == "Planned")
  664. {
  665. var dateelements=splitDateVal(startdatevalue)
  666. var hourval=parseInt(timeval.substring(0,timeval.indexOf(":")))
  667. var minval=parseInt(timeval.substring(timeval.indexOf(":")+1,timeval.length))
  668. var dd=dateelements[0]
  669. var mm=dateelements[1]
  670. var yyyy=dateelements[2]
  671. var chkdate=new Date()
  672. chkdate.setYear(yyyy)
  673. chkdate.setMonth(mm-1)
  674. chkdate.setDate(dd)
  675. chkdate.setMinutes(minval)
  676. chkdate.setHours(hourval)
  677. if(!comparestartdate(chkdate)) return false;
  678. }//end
  679. return true;
  680. }
  681. </SCRIPT>
  682. '; ?>
  683. <div id="allMenu" onmouseout="fninvsh('allMenu');" onMouseOver="fnvshNrm('allMenu');" style="width:650px;z-index: 10000001;display:none;">
  684. <table border=0 cellpadding="5" cellspacing="0" class="allMnuTable" >
  685. <tr>
  686. <td valign="top">
  687. <?php $this->assign('parentno', 0); ?>
  688. <?php $_from = $this->_tpl_vars['QUICKACCESS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['parenttablist'] = array('total' => count($_from), 'iteration' => 0);
  689. if ($this->_foreach['parenttablist']['total'] > 0):
  690. foreach ($_from as $this->_tpl_vars['parenttab'] => $this->_tpl_vars['details']):
  691. $this->_foreach['parenttablist']['iteration']++;
  692. ?>
  693. <span class="allMnuHdr"><?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['parenttab']]; ?>
  694. </span>
  695. <?php $_from = $this->_tpl_vars['details']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['modulelist'] = array('total' => count($_from), 'iteration' => 0);
  696. if ($this->_foreach['modulelist']['total'] > 0):
  697. foreach ($_from as $this->_tpl_vars['modules']):
  698. $this->_foreach['modulelist']['iteration']++;
  699. ?>
  700. <?php echo smarty_function_math(array('assign' => 'num','equation' => "x + y",'x' => $this->_tpl_vars['parentno'],'y' => 1), $this);?>
  701. <?php echo smarty_function_math(array('assign' => 'loopvalue','equation' => "x % y",'x' => $this->_tpl_vars['num'],'y' => 15), $this);?>
  702. <?php $this->assign('parentno', $this->_tpl_vars['num']); ?>
  703. <?php if ($this->_tpl_vars['loopvalue'] == '0'): ?>
  704. </td><td valign="top">
  705. <?php endif; ?>
  706. <?php $this->assign('modulelabel', getTranslatedString($this->_tpl_vars['modules'][1], $this->_tpl_vars['modules'][0])); ?>
  707. <a href="index.php?module=<?php echo $this->_tpl_vars['modules']['0']; ?>
  708. &action=index&parenttab=<?php echo $this->_tpl_vars['parenttab']; ?>
  709. " class="allMnu"><?php echo $this->_tpl_vars['modulelabel']; ?>
  710. </a>
  711. <?php endforeach; endif; unset($_from); ?>
  712. <?php endforeach; endif; unset($_from); ?>
  713. </td>
  714. </tr>
  715. </table>
  716. </div>
  717. <!-- Drop Down Menu in the Main Tab -->
  718. <?php $_from = $this->_tpl_vars['QUICKACCESS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['parenttablist'] = array('total' => count($_from), 'iteration' => 0);
  719. if ($this->_foreach['parenttablist']['total'] > 0):
  720. foreach ($_from as $this->_tpl_vars['parenttab'] => $this->_tpl_vars['details']):
  721. $this->_foreach['parenttablist']['iteration']++;
  722. ?>
  723. <div class="drop_mnu" id="<?php echo $this->_tpl_vars['parenttab']; ?>
  724. _sub" onmouseout="fnHideDrop('<?php echo $this->_tpl_vars['parenttab']; ?>
  725. _sub')" onmouseover="fnShowDrop('<?php echo $this->_tpl_vars['parenttab']; ?>
  726. _sub')">
  727. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  728. <?php $_from = $this->_tpl_vars['details']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['modulelist'] = array('total' => count($_from), 'iteration' => 0);
  729. if ($this->_foreach['modulelist']['total'] > 0):
  730. foreach ($_from as $this->_tpl_vars['modules']):
  731. $this->_foreach['modulelist']['iteration']++;
  732. ?>
  733. <?php $this->assign('modulelabel', getTranslatedString($this->_tpl_vars['modules'][1], $this->_tpl_vars['modules'][0])); ?>
  734. <?php $this->assign('moduleaction', 'index'); ?>
  735. <?php if (isset ( $this->_tpl_vars['modules'][2] )): ?>
  736. <?php $this->assign('moduleaction', $this->_tpl_vars['modules'][2]); ?>
  737. <?php endif; ?>
  738. <tr><td><a href="index.php?module=<?php echo $this->_tpl_vars['modules']['0']; ?>
  739. &action=<?php echo $this->_tpl_vars['moduleaction']; ?>
  740. &parenttab=<?php echo $this->_tpl_vars['parenttab']; ?>
  741. " class="drop_down"><?php echo $this->_tpl_vars['modulelabel']; ?>
  742. </a></td></tr>
  743. <?php endforeach; endif; unset($_from); ?>
  744. </table>
  745. </div>
  746. <?php endforeach; endif; unset($_from); ?>
  747. <div id="status" style="position:absolute;display:none;left:1450px;top:65px;height:27px;white-space:nowrap;"><img src="<?php echo vtiger_imageurl('status.gif', $this->_tpl_vars['THEME']); ?>
  748. "></div>
  749. <script>
  750. function openwin()
  751. {
  752. window.open("index.php?module=Users&action=about_us","aboutwin","height=520,width=515,top=200,left=300")
  753. }
  754. </script>
  755. <div id="tracker" style="display:none;position:absolute;z-index:100000001;" class="layerPopup">
  756. <table border="0" cellpadding="5" cellspacing="0" width="200">
  757. <tr style="cursor:move;">
  758. <td colspan="2" class="mailClientBg small" id="Track_Handle"><strong><?php echo $this->_tpl_vars['APP']['LBL_LAST_VIEWED']; ?>
  759. </strong></td>
  760. <td align="right" style="padding:5px;" class="mailClientBg small">
  761. <a href="javascript:;"><img src="<?php echo vtiger_imageurl('close.gif', $this->_tpl_vars['THEME']); ?>
  762. " border="0" onClick="fninvsh('tracker')" hspace="5" align="absmiddle"></a>
  763. </td></tr>
  764. </table>
  765. <table border="0" cellpadding="5" cellspacing="0" width="200" class="hdrNameBg">
  766. <?php $_from = $this->_tpl_vars['TRACINFO']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['trackinfo'] = array('total' => count($_from), 'iteration' => 0);
  767. if ($this->_foreach['trackinfo']['total'] > 0):
  768. foreach ($_from as $this->_tpl_vars['trackelements']):
  769. $this->_foreach['trackinfo']['iteration']++;
  770. ?>
  771. <tr>
  772. <td class="trackerListBullet small" align="center" width="12"><?php echo $this->_foreach['trackinfo']['iteration']; ?>
  773. </td>
  774. <td class="trackerList small"> <a href="index.php?module=<?php echo $this->_tpl_vars['trackelements']['module_name']; ?>
  775. &action=DetailView&record=<?php echo $this->_tpl_vars['trackelements']['crmid']; ?>
  776. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  777. "><?php echo $this->_tpl_vars['trackelements']['item_summary']; ?>
  778. </a> </td><td class="trackerList small">&nbsp;</td></tr>
  779. <?php endforeach; endif; unset($_from); ?>
  780. </table>
  781. </div>
  782. <script>
  783. var THandle = document.getElementById("Track_Handle");
  784. var TRoot = document.getElementById("tracker");
  785. Drag.init(THandle, TRoot);
  786. </script>
  787. <!-- vtiger Feedback -->
  788. <script type="text/javascript">
  789. <?php echo '
  790. function vtiger_feedback() {
  791. window.open("http://www.vtiger.com/products/crm/feedback.php?uid='; ?>
  792. <?php global $application_unique_key; echo $application_unique_key; ?><?php echo '","feedbackwin","height=300,width=515,top=200,left=300")
  793. }
  794. '; ?>
  795. </script>
  796. <!-- vtiger news -->
  797. <script type="text/javascript">
  798. <?php echo '
  799. function vtiger_news(obj) {
  800. $(\'status\').style.display = \'inline\';
  801. new Ajax.Request(
  802. \'index.php\',
  803. {queue: {position: \'end\', scope: \'command\'},
  804. method: \'post\',
  805. postBody: \'module=Home&action=HomeAjax&file=HomeNews\',
  806. onComplete: function(response) {
  807. $("vtigerNewsPopupLay").innerHTML=response.responseText;
  808. fnvshobj(obj, \'vtigerNewsPopupLay\');
  809. $(\'status\').style.display = \'none\';
  810. }
  811. }
  812. );
  813. }
  814. '; ?>
  815. </script>
  816. <div class="lvtCol fixedLay1" id="vtigerNewsPopupLay" style="display: none; height: 250px; bottom: 2px; padding: 2px; z-index: 12; font-weight: normal;" align="left">
  817. </div>
  818. <!-- END -->
  819. <!-- ActivityReminder Customization for callback -->
  820. <div class="lvtCol fixedLay1" id="ActivityRemindercallback" style="border: 0; right: 0px; bottom: 2px; display:none; padding: 2px; z-index: 10; font-weight: normal;" align="left">
  821. </div>
  822. <!-- End -->
  823. <!-- divs for asterisk integration -->
  824. <div class="lvtCol fixedLay1" id="notificationDiv" style="float: right; padding-right: 5px; overflow: hidden; border-style: solid; right: 0px; border-color: rgb(141, 141, 141); bottom: 0px; display: none; padding: 2px; z-index: 10; font-weight: normal;" align="left">
  825. </div>
  826. <div id="OutgoingCall" style="display: none;position: absolute;z-index:200;" class="layerPopup">
  827. <table border='0' cellpadding='5' cellspacing='0' width='100%'>
  828. <tr style='cursor:move;' >
  829. <td class='mailClientBg small' id='outgoing_handle'>
  830. <b><?php echo $this->_tpl_vars['APP']['LBL_OUTGOING_CALL']; ?>
  831. </b>
  832. </td>
  833. </tr>
  834. </table>
  835. <table border='0' cellpadding='0' cellspacing='0' width='100%' class='hdrNameBg'>
  836. </tr>
  837. <tr><td style='padding:10px;' colspan='2'>
  838. <?php echo $this->_tpl_vars['APP']['LBL_OUTGOING_CALL_MESSAGE']; ?>
  839. </td></tr>
  840. </table>
  841. </div>
  842. <!-- divs for asterisk integration :: end-->