PageRenderTime 49ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/Smarty/templates_c/%%79^795^7959AD5D%%ActivityListView.tpl.php

https://bitbucket.org/jhunsinfotech/blue-blues
PHP | 861 lines | 818 code | 43 blank | 0 comment | 95 complexity | 198b91ba087fad4401c1121a10733824 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, LGPL-3.0
  1. <?php /* Smarty version 2.6.18, created on 2012-10-05 07:45:01
  2. compiled from ActivityListView.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'ActivityListView.tpl', 191, false),array('modifier', 'getTranslatedString', 'ActivityListView.tpl', 393, false),array('function', 'html_options', 'ActivityListView.tpl', 225, false),)), $this); ?>
  5. <script language="JavaScript" type="text/javascript" src="include/js/general.js"></script>
  6. <script language="JavaScript" type="text/javascript" src="include/js/ListView.js"></script>
  7. <script language="JavaScript" type="text/javascript" src="include/js/search.js"></script>
  8. <script language="javascript" type="text/javascript">
  9. var typeofdata = new Array();
  10. typeofdata['E'] = ['e','n','s','ew','c','k'];
  11. typeofdata['V'] = ['e','n','s','ew','c','k'];
  12. typeofdata['N'] = ['e','n','l','g','m','h'];
  13. typeofdata['NN'] = ['e','n','l','g','m','h'];
  14. typeofdata['T'] = ['e','n','l','g','m','h'];
  15. typeofdata['I'] = ['e','n','l','g','m','h'];
  16. typeofdata['C'] = ['e','n'];
  17. typeofdata['DT'] = ['e','n','l','g','m','h'];
  18. typeofdata['D'] = ['e','n','l','g','m','h'];
  19. var fLabels = new Array();
  20. fLabels['e'] = "<?php echo $this->_tpl_vars['APP']['is']; ?>
  21. ";
  22. fLabels['n'] = "<?php echo $this->_tpl_vars['APP']['is_not']; ?>
  23. ";
  24. fLabels['s'] = "<?php echo $this->_tpl_vars['APP']['begins_with']; ?>
  25. ";
  26. fLabels['ew'] = "<?php echo $this->_tpl_vars['APP']['ends_with']; ?>
  27. ";
  28. fLabels['c'] = "<?php echo $this->_tpl_vars['APP']['contains']; ?>
  29. ";
  30. fLabels['k'] = "<?php echo $this->_tpl_vars['APP']['does_not_contains']; ?>
  31. ";
  32. fLabels['l'] = "<?php echo $this->_tpl_vars['APP']['less_than']; ?>
  33. ";
  34. fLabels['g'] = "<?php echo $this->_tpl_vars['APP']['greater_than']; ?>
  35. ";
  36. fLabels['m'] = "<?php echo $this->_tpl_vars['APP']['less_or_equal']; ?>
  37. ";
  38. fLabels['h'] = "<?php echo $this->_tpl_vars['APP']['greater_or_equal']; ?>
  39. ";
  40. var noneLabel;
  41. <?php echo '
  42. function trimfValues(value)
  43. {
  44. var string_array;
  45. string_array = value.split(":");
  46. return string_array[4];
  47. }
  48. function updatefOptions(sel, opSelName) {
  49. var selObj = document.getElementById(opSelName);
  50. var fieldtype = null ;
  51. var currOption = selObj.options[selObj.selectedIndex];
  52. var currField = sel.options[sel.selectedIndex];
  53. var fld = currField.value.split(":");
  54. var tod = fld[4];
  55. if(currField.value != null && currField.value.length != 0)
  56. {
  57. fieldtype = trimfValues(currField.value);
  58. fieldtype = fieldtype.replace(/\\\\\'/g,\'\');
  59. ops = typeofdata[fieldtype];
  60. var off = 0;
  61. if(ops != null)
  62. {
  63. var nMaxVal = selObj.length;
  64. for(nLoop = 0; nLoop < nMaxVal; nLoop++)
  65. {
  66. selObj.remove(0);
  67. }
  68. for (var i = 0; i < ops.length; i++)
  69. {
  70. var label = fLabels[ops[i]];
  71. if (label == null) continue;
  72. var option = new Option (fLabels[ops[i]], ops[i]);
  73. selObj.options[i] = option;
  74. if (currOption != null && currOption.value == option.value)
  75. {
  76. option.selected = true;
  77. }
  78. }
  79. }
  80. }else
  81. {
  82. var nMaxVal = selObj.length;
  83. for(nLoop = 0; nLoop < nMaxVal; nLoop++)
  84. {
  85. selObj.remove(0);
  86. }
  87. selObj.options[0] = new Option (\'None\', \'\');
  88. if (currField.value == \'\') {
  89. selObj.options[0].selected = true;
  90. }
  91. }
  92. }
  93. '; ?>
  94. </script>
  95. <script language="javascript">
  96. function checkgroup()
  97. {
  98. if(document.change_ownerform_name.user_lead_owner[1].checked)
  99. {
  100. document.change_ownerform_name.lead_group_owner.style.display = "block";
  101. document.change_ownerform_name.lead_owner.style.display = "none";
  102. }
  103. else
  104. {
  105. document.change_ownerform_name.lead_owner.style.display = "block";
  106. document.change_ownerform_name.lead_group_owner.style.display = "none";
  107. }
  108. }
  109. function callSearch(searchtype)
  110. {
  111. for(i=1;i<=26;i++)
  112. {
  113. var data_td_id = 'alpha_'+ eval(i);
  114. getObj(data_td_id).className = 'searchAlph';
  115. }
  116. gPopupAlphaSearchUrl = '';
  117. search_fld_val= document.basicSearch.search_field[document.basicSearch.search_field.selectedIndex].value;
  118. search_txt_val=encodeURIComponent(document.basicSearch.search_text.value);
  119. var urlstring = '';
  120. if(searchtype == 'Basic')
  121. {
  122. urlstring = 'search_field='+search_fld_val+'&searchtype=BasicSearch&search_text='+search_txt_val+'&';
  123. }
  124. else if(searchtype == 'Advanced')
  125. {
  126. checkAdvancedFilter();
  127. var advft_criteria = $('advft_criteria').value;
  128. var advft_criteria_groups = $('advft_criteria_groups').value;
  129. urlstring += '&advft_criteria='+advft_criteria+'&advft_criteria_groups='+advft_criteria_groups+'&';
  130. urlstring += 'searchtype=advance&'
  131. }
  132. $("status").style.display="inline";
  133. new Ajax.Request(
  134. 'index.php',
  135. {queue: {position: 'end', scope: 'command'},
  136. method: 'post',
  137. postBody:urlstring +'query=true&file=ListView&module=<?php echo $this->_tpl_vars['MODULE']; ?>
  138. &action=<?php echo $this->_tpl_vars['MODULE']; ?>
  139. Ajax&ajax=true&search=true',
  140. onComplete: function(response) {
  141. $("status").style.display="none";
  142. result = response.responseText.split('&#&#&#');
  143. $("ListViewContents").innerHTML= result[2];
  144. if(result[1] != '')
  145. alert(result[1]);
  146. $('basicsearchcolumns').innerHTML = '';
  147. }
  148. }
  149. );
  150. return false;
  151. }
  152. function alphabetic(module,url,dataid)
  153. {
  154. for(i=1;i<=26;i++)
  155. {
  156. var data_td_id = 'alpha_'+ eval(i);
  157. getObj(data_td_id).className = 'searchAlph';
  158. }
  159. getObj(dataid).className = 'searchAlphselected';
  160. $("status").style.display="inline";
  161. new Ajax.Request(
  162. 'index.php',
  163. {queue: {position: 'end', scope: 'command'},
  164. method: 'post',
  165. postBody: 'module='+module+'&action='+module+'Ajax&file=ListView&ajax=true&search=true&'+url,
  166. onComplete: function(response) {
  167. $("status").style.display="none";
  168. result = response.responseText.split('&#&#&#');
  169. $("ListViewContents").innerHTML= result[2];
  170. if(result[1] != '')
  171. alert(result[1]);
  172. $('basicsearchcolumns').innerHTML = '';
  173. }
  174. }
  175. );
  176. }
  177. </script>
  178. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  179. $this->_smarty_include(array('smarty_include_tpl_file' => 'Buttons_List.tpl', 'smarty_include_vars' => array()));
  180. $this->_tpl_vars = $_smarty_tpl_vars;
  181. unset($_smarty_tpl_vars);
  182. ?>
  183. <div id="searchingUI" style="display:none;">
  184. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  185. <tr>
  186. <td align=center>
  187. <img src="<?php echo vtiger_imageurl('searching.gif', $this->_tpl_vars['THEME']); ?>
  188. " alt="<?php echo $this->_tpl_vars['APP']['LBL_SEARCHING']; ?>
  189. " title="<?php echo $this->_tpl_vars['APP']['LBL_SEARCHING']; ?>
  190. ">
  191. </td>
  192. </tr>
  193. </table>
  194. </div>
  195. </td>
  196. </tr>
  197. </table>
  198. </td>
  199. </tr>
  200. </table>
  201. <table border=0 cellspacing=0 cellpadding=0 width=98% align=center>
  202. <tr>
  203. <td valign=top><img src="<?php echo vtiger_imageurl('showPanelTopLeft.gif', $this->_tpl_vars['THEME']); ?>
  204. "></td>
  205. <td class="showPanelBg" valign="top" width=100% style="padding:10px;">
  206. <!-- SIMPLE SEARCH -->
  207. <div id="searchAcc" style="display: block;position:relative;">
  208. <form name="basicSearch" method="post" action="index.php" onSubmit="return callSearch('Basic');">
  209. <table width="98%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
  210. <tr>
  211. <td class="searchUIName small" nowrap align="left">
  212. <span class="moduleName"><?php echo $this->_tpl_vars['APP']['LBL_SEARCH']; ?>
  213. </span><br><span class="small"><a href="#" onClick="fnhide('searchAcc');show('advSearch');document.basicSearch.searchtype.value='advance';"><?php echo $this->_tpl_vars['APP']['LBL_GO_TO']; ?>
  214. <?php echo $this->_tpl_vars['APP']['LNK_ADVANCED_SEARCH']; ?>
  215. </a></span>
  216. <!-- <img src="<?php echo vtiger_imageurl('basicSearchLens.gif', $this->_tpl_vars['THEME']); ?>
  217. " align="absmiddle" alt="<?php echo $this->_tpl_vars['APP']['LNK_BASIC_SEARCH']; ?>
  218. " title="<?php echo $this->_tpl_vars['APP']['LNK_BASIC_SEARCH']; ?>
  219. " border=0>&nbsp;&nbsp;-->
  220. </td>
  221. <td class="small" nowrap align=right><b><?php echo $this->_tpl_vars['APP']['LBL_SEARCH_FOR']; ?>
  222. </b></td>
  223. <td class="small"><input type="text" class="txtBox" style="width:120px" name="search_text"></td>
  224. <td class="small" nowrap><b><?php echo $this->_tpl_vars['APP']['LBL_IN']; ?>
  225. </b>&nbsp;</td>
  226. <td class="small" nowrap>
  227. <div id="basicsearchcolumns_real">
  228. <select name="search_field" id="bas_searchfield" class="txtBox" style="width:150px">
  229. <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['SEARCHLISTHEADER']), $this);?>
  230. </select>
  231. </div>
  232. <input type="hidden" name="searchtype" value="BasicSearch">
  233. <input type="hidden" name="module" value="<?php echo $this->_tpl_vars['MODULE']; ?>
  234. " id="curmodule">
  235. <input name="maxrecords" type="hidden" value="<?php echo $this->_tpl_vars['MAX_RECORDS']; ?>
  236. " id='maxrecords'>
  237. <input type="hidden" name="parenttab" value="<?php echo $this->_tpl_vars['CATEGORY']; ?>
  238. ">
  239. <input type="hidden" name="action" value="index">
  240. <input type="hidden" name="query" value="true">
  241. <input type="hidden" name="search_cnt">
  242. </td>
  243. <td class="small" nowrap width=40% >
  244. <input name="submit" type="button" class="crmbutton small create" onClick="callSearch('Basic');" value=" <?php echo $this->_tpl_vars['APP']['LBL_SEARCH_NOW_BUTTON']; ?>
  245. ">&nbsp;
  246. </td>
  247. <td class="small" valign="top" onMouseOver="this.style.cursor='pointer';" onclick="moveMe('searchAcc');searchshowhide('searchAcc','advSearch')">[x]</td>
  248. </tr>
  249. <tr>
  250. <td colspan="7" align="center" class="small">
  251. <table border=0 cellspacing=0 cellpadding=0 width=100%>
  252. <tr>
  253. <?php echo $this->_tpl_vars['ALPHABETICAL']; ?>
  254. </tr>
  255. </table>
  256. </td>
  257. </tr>
  258. </table>
  259. </form>
  260. </div>
  261. <!-- ADVANCED SEARCH -->
  262. <div id="advSearch" style="display:none;">
  263. <form name="advSearch" method="post" action="index.php" onSubmit="return callSearch('Advanced');">
  264. <table cellspacing=0 cellpadding=5 width=98% class="searchUIAdv1 small" align="center" border=0>
  265. <tr>
  266. <td class="searchUIName small" nowrap align="left"><span class="moduleName"><?php echo $this->_tpl_vars['APP']['LBL_SEARCH']; ?>
  267. </span><br><span class="small"><a href="#" onClick="show('searchAcc');fnhide('advSearch')"><?php echo $this->_tpl_vars['APP']['LBL_GO_TO']; ?>
  268. <?php echo $this->_tpl_vars['APP']['LNK_BASIC_SEARCH']; ?>
  269. </a></span></td>
  270. <td class="small" align="right" valign="top" onMouseOver="this.style.cursor='pointer';" onclick="moveMe('searchAcc');searchshowhide('searchAcc','advSearch')">[x]</td>
  271. </tr>
  272. </table>
  273. <table cellpadding="2" cellspacing="0" width="98%" align="center" class="searchUIAdv2 small" border=0>
  274. <tr>
  275. <td align="center" class="small" width=90%>
  276. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  277. $this->_smarty_include(array('smarty_include_tpl_file' => 'AdvanceFilter.tpl', 'smarty_include_vars' => array('SOURCE' => 'customview','COLUMNS_BLOCK' => $this->_tpl_vars['FIELDNAMES'])));
  278. $this->_tpl_vars = $_smarty_tpl_vars;
  279. unset($_smarty_tpl_vars);
  280. ?>
  281. </td>
  282. </tr>
  283. </table>
  284. <table border=0 cellspacing=0 cellpadding=5 width=98% class="searchUIAdv3 small" align="center">
  285. <tr>
  286. <td align="center" class="small"><input type="button" class="crmbutton small create" value=" <?php echo $this->_tpl_vars['APP']['LBL_SEARCH_NOW_BUTTON']; ?>
  287. " onClick="callSearch('Advanced');">
  288. </td>
  289. </tr>
  290. </table>
  291. </form>
  292. </div>
  293. </div>
  294. <div class="small" style="padding: 10px;">
  295. <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
  296. <tr>
  297. <td>
  298. <table class="small" border="0" cellpadding="3" cellspacing="0" width="100%">
  299. <tr>
  300. <td class="dvtTabCache" style="width: 10px;" nowrap="nowrap">&nbsp;</td>
  301. <td class="dvtUnSelectedCell" align="center" nowrap="nowrap"><a href="index.php?action=index&module=Calendar&parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  302. "><?php echo $this->_tpl_vars['APP']['Calendar']; ?>
  303. </a></td>
  304. <td class="dvtTabCache" style="width: 10px;">&nbsp;</td>
  305. <td class="dvtSelectedCell" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['MOD']['LBL_ALL_EVENTS_TODOS']; ?>
  306. </td>
  307. <td class="dvtTabCache" style="width: 100%;">&nbsp;</td>
  308. </tr>
  309. </table>
  310. </td>
  311. </tr>
  312. <tr>
  313. <td align="left" valign="top">
  314. <table class="dvtContentSpace" border="0" cellpadding="3" cellspacing="0" width="100%">
  315. <tr>
  316. <td align="left">
  317. <!-- content cache -->
  318. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  319. <tr>
  320. <td style="padding: 10px;">
  321. <!-- PUBLIC CONTENTS STARTS-->
  322. <div id="ListViewContents" class="small" style="width:100%;position:relative;">
  323. <form name="massdelete" method="POST">
  324. <input name='search_url' id="search_url" type='hidden' value='<?php echo $this->_tpl_vars['SEARCH_URL']; ?>
  325. '>
  326. <input name="idlist" id="idlist" type="hidden">
  327. <input name="change_owner" type="hidden">
  328. <input name="change_status" type="hidden">
  329. <input name="numOfRows" id="numOfRows" type="hidden" value="<?php echo $this->_tpl_vars['NUMOFROWS']; ?>
  330. ">
  331. <input name="excludedRecords" type="hidden" id="excludedRecords" value="<?php echo $this->_tpl_vars['excludedRecords']; ?>
  332. ">
  333. <input name="allids" type="hidden" value="<?php echo $this->_tpl_vars['ALLIDS']; ?>
  334. ">
  335. <input name="selectedboxes" id="selectedboxes" type="hidden" value="<?php echo $this->_tpl_vars['SELECTEDIDS']; ?>
  336. ">
  337. <input name="allselectedboxes" id="allselectedboxes" type="hidden" value="<?php echo $this->_tpl_vars['ALLSELECTEDIDS']; ?>
  338. ">
  339. <input name="current_page_boxes" id="current_page_boxes" type="hidden" value="<?php echo $this->_tpl_vars['CURRENT_PAGE_BOXES']; ?>
  340. ">
  341. <table border=0 cellspacing=1 cellpadding=0 width=100% class="lvtBg">
  342. <tr >
  343. <td>
  344. <table class="layerPopupTransport" width="100%">
  345. <tr>
  346. <td class="small" nowrap width="25%">
  347. <?php echo $this->_tpl_vars['recordListRange']; ?>
  348. </td>
  349. <td align="center">
  350. <table border=0 cellspacing=0 cellpadding=0 class="small">
  351. <tr>
  352. <td style="padding-left:5px;padding-right:5px">
  353. <b><font size =2><?php echo $this->_tpl_vars['APP']['LBL_VIEW']; ?>
  354. </font></b> <SELECT NAME="viewname" id="viewname" class="small" onchange="showDefaultCustomView(this,'<?php echo $this->_tpl_vars['MODULE']; ?>
  355. ','<?php echo $this->_tpl_vars['CATEGORY']; ?>
  356. ')"><?php echo $this->_tpl_vars['CUSTOMVIEW_OPTION']; ?>
  357. </SELECT>
  358. </td>
  359. <td>
  360. <?php if ($this->_tpl_vars['ALL'] == 'All'): ?>
  361. <a href="index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  362. &action=CustomView&parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  363. "><?php echo $this->_tpl_vars['APP']['LNK_CV_CREATEVIEW']; ?>
  364. </a>
  365. <span class="small">|</span>
  366. <span class="small" disabled><?php echo $this->_tpl_vars['APP']['LNK_CV_EDIT']; ?>
  367. </span>
  368. <span class="small">|</span>
  369. <span class="small" disabled><?php echo $this->_tpl_vars['APP']['LNK_CV_DELETE']; ?>
  370. </span></td>
  371. <?php else: ?>
  372. <a href="index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  373. &action=CustomView&parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  374. "><?php echo $this->_tpl_vars['APP']['LNK_CV_CREATEVIEW']; ?>
  375. </a>
  376. <span class="small">|</span>
  377. <a href="index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  378. &action=CustomView&record=<?php echo $this->_tpl_vars['VIEWID']; ?>
  379. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  380. "><?php echo $this->_tpl_vars['APP']['LNK_CV_EDIT']; ?>
  381. </a>
  382. <span class="small">|</span>
  383. <a href="javascript:confirmdelete('index.php?module=CustomView&action=Delete&dmodule=<?php echo $this->_tpl_vars['MODULE']; ?>
  384. &record=<?php echo $this->_tpl_vars['VIEWID']; ?>
  385. &parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  386. ')"><?php echo $this->_tpl_vars['APP']['LNK_CV_DELETE']; ?>
  387. </a>
  388. <?php endif; ?>
  389. <?php if ($this->_tpl_vars['CUSTOMVIEW_PERMISSION']['ChangedStatus'] != '' && $this->_tpl_vars['CUSTOMVIEW_PERMISSION']['Label'] != ''): ?>
  390. <span class="small">|</span>
  391. <a href="#" id="customstatus_id" onClick="ChangeCustomViewStatus(<?php echo $this->_tpl_vars['VIEWID']; ?>
  392. ,<?php echo $this->_tpl_vars['CUSTOMVIEW_PERMISSION']['Status']; ?>
  393. ,<?php echo $this->_tpl_vars['CUSTOMVIEW_PERMISSION']['ChangedStatus']; ?>
  394. ,'<?php echo $this->_tpl_vars['MODULE']; ?>
  395. ','<?php echo $this->_tpl_vars['CATEGORY']; ?>
  396. ')"><?php echo $this->_tpl_vars['CUSTOMVIEW_PERMISSION']['Label']; ?>
  397. </a>
  398. <?php endif; ?>
  399. </td>
  400. </tr>
  401. </table>
  402. </td><!-- Page Navigation -->
  403. <td nowrap width="25%" align="right">
  404. <table border=0 cellspacing=0 cellpadding=0 class="small">
  405. <tr><?php echo $this->_tpl_vars['NAVIGATION']; ?>
  406. </tr>
  407. </table>
  408. </td>
  409. </tr></table>
  410. <table border=0 cellspacing=0 cellpadding=2 width=100% class="small">
  411. <tr>
  412. <td style="padding-right:20px" nowrap>
  413. <?php $_from = $this->_tpl_vars['BUTTONS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  414. foreach ($_from as $this->_tpl_vars['button_check'] => $this->_tpl_vars['button_label']):
  415. ?>
  416. <?php if ($this->_tpl_vars['button_check'] == 'del'): ?>
  417. <input class="crmbutton small delete" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  418. " onclick="return massDelete('<?php echo $this->_tpl_vars['MODULE']; ?>
  419. ')"/>
  420. <?php elseif ($this->_tpl_vars['button_check'] == 's_mail'): ?>
  421. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  422. " onclick="return eMail('<?php echo $this->_tpl_vars['MODULE']; ?>
  423. ',this);"/>
  424. <?php elseif ($this->_tpl_vars['button_check'] == 's_cmail'): ?>
  425. <input class="crmbutton small edit" type="submit" value="<?php echo $this->_tpl_vars['button_label']; ?>
  426. " onclick="return massMail('<?php echo $this->_tpl_vars['MODULE']; ?>
  427. ')"/>
  428. <?php elseif ($this->_tpl_vars['button_check'] == 'c_status'): ?>
  429. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  430. " onclick="return change(this,'changestatus')"/>
  431. <?php elseif ($this->_tpl_vars['button_check'] == 'c_owner'): ?>
  432. <?php if ($this->_tpl_vars['MODULE'] != 'Documents' && $this->_tpl_vars['MODULE'] != 'Products' && $this->_tpl_vars['MODULE'] != 'Faq' && $this->_tpl_vars['MODULE'] != 'Vendors' && $this->_tpl_vars['MODULE'] != 'PriceBooks'): ?>
  433. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  434. " onclick="return change(this,'changeowner')"/>
  435. <?php endif; ?>
  436. <?php endif; ?>
  437. <?php endforeach; endif; unset($_from); ?>
  438. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']): ?>
  439. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  440. foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
  441. ?>
  442. <?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
  443. <?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
  444. <?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
  445. <?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
  446. <?php else: ?>
  447. <?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
  448. <?php endif; ?>
  449. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['customlink_label']; ?>
  450. " onclick="<?php echo $this->_tpl_vars['customlink_href']; ?>
  451. " />
  452. <?php endforeach; endif; unset($_from); ?>
  453. <?php endif; ?>
  454. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && ! empty ( $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW'] )): ?>
  455. &nbsp;
  456. <a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
  457. <b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  458. <?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  459. <img src="<?php echo vtiger_imageurl('arrow_down.gif', $this->_tpl_vars['THEME']); ?>
  460. " border="0"></b>
  461. </a>
  462. <div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
  463. onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
  464. <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  465. <tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  466. <?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  467. &#187;</b></td></tr>
  468. <tr>
  469. <td>
  470. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  471. foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
  472. ?>
  473. <?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
  474. <?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
  475. <?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
  476. <?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
  477. <?php else: ?>
  478. <?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
  479. <?php endif; ?>
  480. <a href="<?php echo $this->_tpl_vars['customlink_href']; ?>
  481. " class="drop_down"><?php echo $this->_tpl_vars['customlink_label']; ?>
  482. </a>
  483. <?php endforeach; endif; unset($_from); ?>
  484. </td>
  485. </tr>
  486. </table>
  487. </div>
  488. <?php endif; ?>
  489. </td>
  490. </tr>
  491. </table>
  492. <div class="calDIV" style="overflow:auto;">
  493. <table border=0 cellspacing=1 cellpadding=3 width=100% class="lvt small" class="small">
  494. <tr>
  495. <td class="lvtCol"><input type="checkbox" name="selectall" id="selectCurrentPageRec" onClick=toggleSelect_ListView(this.checked,"selected_id")></td>
  496. <?php $_from = $this->_tpl_vars['LISTHEADER']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['listviewforeach'] = array('total' => count($_from), 'iteration' => 0);
  497. if ($this->_foreach['listviewforeach']['total'] > 0):
  498. foreach ($_from as $this->_tpl_vars['header']):
  499. $this->_foreach['listviewforeach']['iteration']++;
  500. ?>
  501. <td class="lvtCol"><?php echo $this->_tpl_vars['header']; ?>
  502. </td>
  503. <?php endforeach; endif; unset($_from); ?>
  504. </tr>
  505. <tr>
  506. <td id="linkForSelectAll" class="linkForSelectAll" style="display:none;" colspan=15>
  507. <span id="selectAllRec" class="selectall" style="display:inline;" onClick="toggleSelectAll_Records('<?php echo $this->_tpl_vars['MODULE']; ?>
  508. ',true,'selected_id')"><?php echo $this->_tpl_vars['APP']['LBL_SELECT_ALL']; ?>
  509. <span id="count"> </span> <?php echo $this->_tpl_vars['APP']['LBL_RECORDS_IN']; ?>
  510. <?php echo getTranslatedString($this->_tpl_vars['MODULE'], $this->_tpl_vars['MODULE']); ?>
  511. </span>
  512. <span id="deSelectAllRec" class="selectall" style="display:none;" onClick="toggleSelectAll_Records('<?php echo $this->_tpl_vars['MODULE']; ?>
  513. ',false,'selected_id')"><?php echo $this->_tpl_vars['APP']['LBL_DESELECT_ALL']; ?>
  514. <?php echo getTranslatedString($this->_tpl_vars['MODULE'], $this->_tpl_vars['MODULE']); ?>
  515. </span>
  516. </td>
  517. </tr>
  518. <?php $_from = $this->_tpl_vars['LISTENTITY']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  519. foreach ($_from as $this->_tpl_vars['entity_id'] => $this->_tpl_vars['entity']):
  520. ?>
  521. <tr bgcolor=white onMouseOver="this.className='lvtColDataHover'" onMouseOut="this.className='lvtColData'" id="row_<?php echo $this->_tpl_vars['entity_id']; ?>
  522. ">
  523. <td width="2%"><input type="checkbox" NAME="selected_id" id="<?php echo $this->_tpl_vars['entity_id']; ?>
  524. " value= '<?php echo $this->_tpl_vars['entity_id']; ?>
  525. ' onClick=check_object(this); toggleSelectAll(this.name,"selectall")></td>
  526. <?php $_from = $this->_tpl_vars['entity']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  527. foreach ($_from as $this->_tpl_vars['data']):
  528. ?>
  529. <td><?php echo $this->_tpl_vars['data']; ?>
  530. </td>
  531. <?php endforeach; endif; unset($_from); ?>
  532. </tr>
  533. <?php endforeach; else: ?>
  534. <tr><td style="background-color:#efefef;height:340px" align="center" colspan="<?php echo $this->_foreach['listviewforeach']['iteration']+1; ?>
  535. ">
  536. <div style="border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 45%; position: relative; z-index: 10000000;">
  537. <?php $this->assign('vowel_conf', 'LBL_A'); ?>
  538. <?php $this->assign('MODULE_CREATE', $this->_tpl_vars['SINGLE_MOD']); ?>
  539. <?php if ($this->_tpl_vars['CHECK']['EditView'] == 'yes' && $this->_tpl_vars['MODULE'] != 'Emails' && $this->_tpl_vars['MODULE'] != 'Webmails'): ?>
  540. <table border="0" cellpadding="5" cellspacing="0" width="98%">
  541. <tr>
  542. <td rowspan="2" width="25%"><img src="<?php echo vtiger_imageurl('empty.jpg', $this->_tpl_vars['THEME']); ?>
  543. " height="60" width="61"></td>
  544. <td style="border-bottom: 1px solid rgb(204, 204, 204);" nowrap="nowrap" width="75%"><span class="genHeaderSmall"><?php echo $this->_tpl_vars['APP']['LBL_NO']; ?>
  545. <?php echo $this->_tpl_vars['APP']['ACTIVITIES']; ?>
  546. <?php echo $this->_tpl_vars['APP']['LBL_FOUND']; ?>
  547. !</span></td>
  548. </tr>
  549. <tr>
  550. <td class="small" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['APP']['LBL_YOU_CAN_CREATE']; ?>
  551. <?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['vowel_conf']]; ?>
  552. <?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['MODULE_CREATE']]; ?>
  553. <?php echo $this->_tpl_vars['APP']['LBL_NOW']; ?>
  554. . <?php echo $this->_tpl_vars['APP']['LBL_CLICK_THE_LINK']; ?>
  555. :<br>
  556. &nbsp;&nbsp;-<a href="index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  557. &amp;action=EditView&amp;return_module=Calendar&amp;activity_mode=Events&amp;return_action=DetailView&amp;parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  558. "><?php echo $this->_tpl_vars['APP']['LBL_CREATE']; ?>
  559. <?php echo $this->_tpl_vars['APP']['LBL_AN']; ?>
  560. <?php echo $this->_tpl_vars['APP']['Event']; ?>
  561. </a><br>
  562. &nbsp;&nbsp;-<a href="index.php?module=<?php echo $this->_tpl_vars['MODULE']; ?>
  563. &amp;action=EditView&amp;return_module=Calendar&amp;activity_mode=Task&amp;return_action=DetailView&amp;parenttab=<?php echo $this->_tpl_vars['CATEGORY']; ?>
  564. "><?php echo $this->_tpl_vars['APP']['LBL_CREATE']; ?>
  565. <?php echo $this->_tpl_vars['APP']['LBL_A']; ?>
  566. <?php echo $this->_tpl_vars['APP']['Todo']; ?>
  567. </a>
  568. </td>
  569. </tr>
  570. </table>
  571. <?php else: ?>
  572. <table border="0" cellpadding="5" cellspacing="0" width="98%">
  573. <tr>
  574. <td rowspan="2" width="25%"><img src="<?php echo vtiger_imageurl('empty.jpg', $this->_tpl_vars['THEME']); ?>
  575. " height="60" width="61"></td>
  576. <td style="border-bottom: 1px solid rgb(204, 204, 204);" nowrap="nowrap" width="75%"><span class="genHeaderSmall"><?php echo $this->_tpl_vars['APP']['LBL_NO']; ?>
  577. <?php echo $this->_tpl_vars['APP']['ACTIVITIES']; ?>
  578. <?php echo $this->_tpl_vars['APP']['LBL_FOUND']; ?>
  579. !</span></td>
  580. </tr>
  581. <tr>
  582. <td class="small" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['APP']['LBL_YOU_ARE_NOT_ALLOWED_TO_CREATE']; ?>
  583. <?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['vowel_conf']]; ?>
  584. <?php echo $this->_tpl_vars['APP'][$this->_tpl_vars['MODULE_CREATE']]; ?>
  585. <br>
  586. </td>
  587. </tr>
  588. </table>
  589. <?php endif; ?>
  590. </div>
  591. </td></tr>
  592. <?php endif; unset($_from); ?>
  593. </table>
  594. </div>
  595. <table border=0 cellspacing=0 cellpadding=2 width=100%>
  596. <tr>
  597. <td style="padding-right:20px" nowrap>
  598. <?php $_from = $this->_tpl_vars['BUTTONS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  599. foreach ($_from as $this->_tpl_vars['button_check'] => $this->_tpl_vars['button_label']):
  600. ?>
  601. <?php if ($this->_tpl_vars['button_check'] == 'del'): ?>
  602. <input class="crmbutton small delete" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  603. " onclick="return massDelete('<?php echo $this->_tpl_vars['MODULE']; ?>
  604. ')"/>
  605. <?php elseif ($this->_tpl_vars['button_check'] == 's_mail'): ?>
  606. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  607. " onclick="return eMail('<?php echo $this->_tpl_vars['MODULE']; ?>
  608. ',this)"/>
  609. <?php elseif ($this->_tpl_vars['button_check'] == 's_cmail'): ?>
  610. <input class="crmbutton small edit" type="submit" value="<?php echo $this->_tpl_vars['button_label']; ?>
  611. " onclick="return massMail('<?php echo $this->_tpl_vars['MODULE']; ?>
  612. ')"/>
  613. <?php elseif ($this->_tpl_vars['button_check'] == 'c_status'): ?>
  614. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  615. " onclick="return change(this,'changestatus')"/>
  616. <?php elseif ($this->_tpl_vars['button_check'] == 'c_owner'): ?>
  617. <?php if ($this->_tpl_vars['MODULE'] != 'Documents' && $this->_tpl_vars['MODULE'] != 'Products' && $this->_tpl_vars['MODULE'] != 'Faq' && $this->_tpl_vars['MODULE'] != 'Vendors' && $this->_tpl_vars['MODULE'] != 'PriceBooks'): ?>
  618. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
  619. " onclick="return change(this,'changeowner')"/>
  620. <?php endif; ?>
  621. <?php endif; ?>
  622. <?php endforeach; endif; unset($_from); ?>
  623. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']): ?>
  624. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  625. foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
  626. ?>
  627. <?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
  628. <?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
  629. <?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
  630. <?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
  631. <?php else: ?>
  632. <?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
  633. <?php endif; ?>
  634. <input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['customlink_label']; ?>
  635. " onclick="<?php echo $this->_tpl_vars['customlink_href']; ?>
  636. " />
  637. <?php endforeach; endif; unset($_from); ?>
  638. <?php endif; ?>
  639. <?php if ($this->_tpl_vars['CUSTOM_LINKS'] && ! empty ( $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW'] )): ?>
  640. &nbsp;
  641. <a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
  642. <b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  643. <?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  644. <img src="<?php echo vtiger_imageurl('arrow_down.gif', $this->_tpl_vars['THEME']); ?>
  645. " border="0"></b>
  646. </a>
  647. <div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
  648. onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
  649. <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  650. <tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
  651. <?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
  652. &#187;</b></td></tr>
  653. <tr>
  654. <td>
  655. <?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  656. foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
  657. ?>
  658. <?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
  659. <?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
  660. <?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
  661. <?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
  662. <?php else: ?>
  663. <?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
  664. <?php endif; ?>
  665. <a href="<?php echo $this->_tpl_vars['customlink_href']; ?>
  666. " class="drop_down"><?php echo $this->_tpl_vars['customlink_label']; ?>
  667. </a>
  668. <?php endforeach; endif; unset($_from); ?>
  669. </td>
  670. </tr>
  671. </table>
  672. </div>
  673. <?php endif; ?>
  674. </td>
  675. <td align="right" width=100%>
  676. <table border=0 cellspacing=0 cellpadding=0 class="small">
  677. <tr>
  678. <?php echo $this->_tpl_vars['WORDTEMPLATEOPTIONS']; ?>
  679. <?php echo $this->_tpl_vars['MERGEBUTTON']; ?>
  680. </tr>
  681. </table>
  682. </td>
  683. </tr>
  684. <tr>
  685. <td class="small" nowrap width="50%">
  686. <?php echo $this->_tpl_vars['recordListRange']; ?>
  687. </td>
  688. <!-- Page Navigation -->
  689. <td nowrap width="50%" align="right">
  690. <table border=0 cellspacing=0 cellpadding=0 class="small">
  691. <tr><?php echo $this->_tpl_vars['NAVIGATION']; ?>
  692. </tr>
  693. </table>
  694. </td>
  695. </tr>
  696. </table>
  697. </td>
  698. </tr>
  699. </table>
  700. </form>
  701. <?php echo $this->_tpl_vars['SELECT_SCRIPT']; ?>
  702. </div>
  703. </td></tr></table>
  704. </td></tr></table>
  705. </td></tr></table>
  706. </div>
  707. </td>
  708. <td valign=top><img src="<?php echo vtiger_imageurl('showPanelTopRight.gif', $this->_tpl_vars['THEME']); ?>
  709. "></td>
  710. </tr>
  711. </table>
  712. <div id="changeowner" class="statechange">
  713. <table width="100%" border="0" cellpadding="3" cellspacing="0">
  714. <tr>
  715. <td class="genHeaderSmall" align="left" style="border-bottom:1px solid #CCCCCC;" width="60%"><?php echo $this->_tpl_vars['APP']['LBL_CHANGE_OWNER']; ?>
  716. </td>
  717. <td style="border-bottom: 1px solid rgb(204, 204, 204);">&nbsp;</td>
  718. <td align="right" style="border-bottom:1px solid #CCCCCC;" width="40%"><a href="javascript:fninvsh('changeowner')"><?php echo $this->_tpl_vars['APP']['LBL_CLOSE']; ?>
  719. </a></td>
  720. </tr>
  721. <tr>
  722. <td colspan="3">&nbsp;</td>
  723. </tr>
  724. <tr>
  725. <td width="50%"><b><?php echo $this->_tpl_vars['APP']['LBL_TRANSFER_OWNERSHIP']; ?>
  726. </b></td>
  727. <td width="2%"><b>:</b></td>
  728. <td width="48%">
  729. <form name="change_ownerform_name">
  730. <input type = "radio" id= "user_checkbox" name = "user_lead_owner" <?php if ($this->_tpl_vars['CHANGE_GROUP_OWNER'] != ''): ?> onclick=checkgroup();<?php endif; ?> checked><?php echo $this->_tpl_vars['APP']['LBL_USER']; ?>
  731. &nbsp;
  732. <?php if ($this->_tpl_vars['CHANGE_GROUP_OWNER'] != ''): ?>
  733. <input type = "radio" id = "group_checkbox" name = "user_lead_owner" onclick=checkgroup(); ><?php echo $this->_tpl_vars['APP']['LBL_GROUP']; ?>
  734. <br>
  735. <select name="lead_group_owner" id="lead_group_owner" class="detailedViewTextBox" style="display:none;">
  736. <?php echo $this->_tpl_vars['CHANGE_GROUP_OWNER']; ?>
  737. </select>
  738. <?php endif; ?>
  739. <select name="lead_owner" id="lead_owner" class="detailedViewTextBox">
  740. <?php echo $this->_tpl_vars['CHANGE_OWNER']; ?>
  741. </select>
  742. </form>
  743. </td>
  744. </tr>
  745. <tr><td colspan="3" style="border-bottom:1px dashed #CCCCCC;">&nbsp;</td></tr>
  746. <tr>
  747. <td colspan="3" align="center">
  748. &nbsp;&nbsp;
  749. <input type="button" name="button" class="crmbutton small edit" value="<?php echo $this->_tpl_vars['APP']['LBL_UPDATE_OWNER']; ?>
  750. " onClick="ajaxChangeStatus('owner')">
  751. <input type="button" name="button" class="crmbutton small cancel" value="<?php echo $this->_tpl_vars['APP']['LBL_CANCEL_BUTTON_LABEL']; ?>
  752. " onClick="fninvsh('changeowner')">
  753. </td>
  754. </tr>
  755. </table>
  756. </div>
  757. <script>
  758. <?php echo '
  759. function ajaxChangeStatus(statusname)
  760. {
  761. $("status").style.display="inline";
  762. var viewid = document.massdelete.viewname.value;
  763. var excludedRecords=document.getElementById("excludedRecords").value;
  764. var idstring = document.getElementById(\'allselectedboxes\').value;
  765. if(statusname == \'status\')
  766. {
  767. fninvsh(\'changestatus\');
  768. var url=\'&leadval=\'+document.getElementById(\'lead_status\').options[document.getElementById(\'lead_status\').options.selectedIndex].value;
  769. var urlstring ="module=Users&action=updateLeadDBStatus&return_module=Leads"+url+"&viewname="+viewid+"&idlist="+idstring+"&excludedRecords="+excludedRecords;
  770. }
  771. else if(statusname == \'owner\')
  772. {
  773. if($("user_checkbox").checked)
  774. {
  775. fninvsh(\'changeowner\');
  776. var url=\'&owner_id=\'+document.getElementById(\'lead_owner\').options[document.getElementById(\'lead_owner\').options.selectedIndex].value+\'&owner_type=User\';
  777. '; ?>
  778. var urlstring ="module=Users&action=updateLeadDBStatus&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  779. "+url+"&viewname="+viewid+"&idlist="+idstring+"&excludedRecords="+excludedRecords;
  780. <?php echo '
  781. }
  782. else
  783. {
  784. fninvsh(\'changeowner\');
  785. var url=\'&owner_id=\'+document.getElementById(\'lead_group_owner\').options[document.getElementById(\'lead_group_owner\').options.selectedIndex].value+\'&owner_type=Group\';
  786. '; ?>
  787. var urlstring ="module=Users&action=updateLeadDBStatus&return_module=<?php echo $this->_tpl_vars['MODULE']; ?>
  788. "+url+"&viewname="+viewid+"&idlist="+idstring+"&excludedRecords="+excludedRecords;
  789. <?php echo '
  790. }
  791. }
  792. new Ajax.Request(
  793. \'index.php\',
  794. {queue: {position: \'end\', scope: \'command\'},
  795. method: \'post\',
  796. postBody: urlstring,
  797. onComplete: function(response) {
  798. $("status").style.display="none";
  799. result = response.responseText.split(\'&#&#&#\');
  800. $("ListViewContents").innerHTML= result[2];
  801. if(result[1] != \'\')
  802. alert(result[1]);
  803. $(\'basicsearchcolumns\').innerHTML = \'\';
  804. }
  805. }
  806. );
  807. }
  808. </script>
  809. '; ?>