ggxw /SugarCRM/cache/smarty/templates_c/%%61^61A^61A04A66%%Popup.tpl.php

Language PHP Lines 447
MD5 Hash d37661775f2503290562d5de7a6deb62
Repository https://github.com/guolong/ggxw.git View Raw File
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<?php /* Smarty version 2.6.11, created on 2012-10-26 17:20:49
         compiled from cache/modules/Campaigns/Popup.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'sugar_getjspath', 'cache/modules/Campaigns/Popup.tpl', 8, false),array('function', 'sugar_getimage', 'cache/modules/Campaigns/Popup.tpl', 72, false),array('function', 'sugar_action_menu', 'cache/modules/Campaigns/Popup.tpl', 125, false),array('function', 'counter', 'cache/modules/Campaigns/Popup.tpl', 130, false),array('function', 'sugar_translate', 'cache/modules/Campaigns/Popup.tpl', 135, false),array('function', 'sugar_evalcolumn_old', 'cache/modules/Campaigns/Popup.tpl', 186, false),array('function', 'sugar_currency_format', 'cache/modules/Campaigns/Popup.tpl', 188, false),array('function', 'multienum_to_array', 'cache/modules/Campaigns/Popup.tpl', 203, false),array('function', 'sugar_field', 'cache/modules/Campaigns/Popup.tpl', 209, false),array('modifier', 'default', 'cache/modules/Campaigns/Popup.tpl', 133, false),array('modifier', 'lower', 'cache/modules/Campaigns/Popup.tpl', 135, false),)), $this); ?>

<?php $this->assign('alt_start', $this->_tpl_vars['navStrings']['start']);  $this->assign('alt_next', $this->_tpl_vars['navStrings']['next']);  $this->assign('alt_prev', $this->_tpl_vars['navStrings']['previous']);  $this->assign('alt_end', $this->_tpl_vars['navStrings']['end']); ?>


<script type="text/javascript" src="<?php echo smarty_function_sugar_getjspath(array('file' => 'include/javascript/sugar_3.js'), $this);?>
"></script>
<script type="text/javascript" src="<?php echo smarty_function_sugar_getjspath(array('file' => 'include/javascript/popup_helper.js'), $this);?>
"></script>
<script type="text/javascript">
	<?php echo $this->_tpl_vars['ASSOCIATED_JAVASCRIPT_DATA']; ?>


<?php echo '
function clearAll() {
   for(i=0; i < document.popup_query_form.length; i++) {
       if(/select/i.test(document.popup_query_form.elements[i].type)) {
          for(x=0; x < document.popup_query_form.elements[i].options.length; x++) {
             document.popup_query_form.elements[i].options[x].removeAttribute(\'selected\');
          }
       }
   }
}
'; ?>

</script>
<?php echo $this->_tpl_vars['SEARCH_FORM_HEADER']; ?>

<table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
<tr>
<td>
<form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td>
<?php echo $this->_tpl_vars['searchForm']; ?>

</td></tr>
<tr>
<td>
<input type="hidden" name="module" value="<?php echo $this->_tpl_vars['module']; ?>
" />
<input type="hidden" name="action" value="Popup" />
<input type="hidden" name="query" value="true" />
<input type="hidden" name="func_name" value="" />
<input type="hidden" name="request_data" value="<?php echo $this->_tpl_vars['request_data']; ?>
" />
<input type="hidden" name="populate_parent" value="false" />
<input type="hidden" name="hide_clear_button" value="true" />
<input type="hidden" name="record_id" value="" />
<?php echo $this->_tpl_vars['MODE']; ?>

<input type="submit" name="button" class="button" id="search_form_submit"
	title="<?php echo $this->_tpl_vars['APP']['LBL_SEARCH_BUTTON_TITLE']; ?>
"
	value="<?php echo $this->_tpl_vars['APP']['LBL_SEARCH_BUTTON_LABEL']; ?>
" />
<input type="reset" onclick="SUGAR.searchForm.clear_form(this.form); return false;" class="button" id="search_form_clear"
	title="<?php echo $this->_tpl_vars['APP']['LBL_CLEAR_BUTTON_TITLE']; ?>
"
	value="<?php echo $this->_tpl_vars['APP']['LBL_CLEAR_BUTTON_LABEL']; ?>
"/>
</td>
<td align='right'></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?php echo $this->_tpl_vars['jsLang']; ?>

<?php echo $this->_tpl_vars['LIST_HEADER']; ?>

<?php if ($this->_tpl_vars['should_process']): ?>
	<table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
		<tr class='pagination'  role='presentation'>
			<td colspan='<?php echo $this->_tpl_vars['colCount']+1; ?>
' align='right'>
				<table border='0' cellpadding='0' cellspacing='0' width='100%'>
					<tr>
						<td align='left' >
							&nbsp;</td>
						<td  align='right' nowrap='nowrap'>						
							<?php if ($this->_tpl_vars['pageData']['urls']['startPage']): ?>
								<button type='button' id='popupViewStartButton' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(0, "<?php echo $this->_tpl_vars['moduleString']; ?>
");'<?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
"' <?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_start'])), $this);?>

								</button>						
								<!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(0, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
</a>&nbsp;-->
							<?php else: ?>
								<button type='button' id='popupViewStartButton' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
' class='button' disabled>
									<?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--<?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
&nbsp;&nbsp;-->
							<?php endif; ?>
							<?php if ($this->_tpl_vars['pageData']['urls']['prevPage']): ?>
								<button type='button' id='popupViewPrevButton' title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
, "<?php echo $this->_tpl_vars['moduleString']; ?>
")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
"'<?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_prev'])), $this);?>

								</button>
								<!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
</a>&nbsp;-->
							<?php else: ?>
								<button type='button' id='popupViewPrevButton' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
'>
									<?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--<?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
&nbsp;-->
							<?php endif; ?>
								<span class='pageNumbers'>(<?php if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] == 0): ?>0<?php else:  echo $this->_tpl_vars['pageData']['offsets']['current']+1;  endif; ?> - <?php echo $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']; ?>
 <?php echo $this->_tpl_vars['navStrings']['of']; ?>
 <?php if ($this->_tpl_vars['pageData']['offsets']['totalCounted']):  echo $this->_tpl_vars['pageData']['offsets']['total'];  else:  echo $this->_tpl_vars['pageData']['offsets']['total'];  if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] != $this->_tpl_vars['pageData']['offsets']['total']): ?>+<?php endif;  endif; ?>)</span>
							<?php if ($this->_tpl_vars['pageData']['urls']['nextPage']): ?>
								<button type='button' id='popupViewNextButton' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
, "<?php echo $this->_tpl_vars['moduleString']; ?>
")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
"'<?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_next'])), $this);?>

								</button>
								<!--&nbsp;<a href='<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['next']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
</a>&nbsp;-->
							<?php else: ?>
								<button type='button' id='popupViewNextButton' class='button' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
' disabled>
									<?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['next']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
-->
							<?php endif; ?>
							<?php if ($this->_tpl_vars['pageData']['urls']['endPage'] && $this->_tpl_vars['pageData']['offsets']['total'] != $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
								<button type='button' id='popupViewEndButton' title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
, "<?php echo $this->_tpl_vars['moduleString']; ?>
")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
"'<?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_end'])), $this);?>

								</button>
								<!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['end']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
</a></td>-->
							<?php elseif (! $this->_tpl_vars['pageData']['offsets']['totalCounted'] || $this->_tpl_vars['pageData']['offsets']['total'] == $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
								<button type='button' id='popupViewEndButton' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
'>
								 	<?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['end']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
-->
							<?php endif; ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	
		<tr height='20'>
			<?php if ($this->_tpl_vars['prerow']): ?>
				<td nowrap="nowrap" width="43px" class="selectCol td_alt">
				<div style="width:43px">
					<?php echo smarty_function_sugar_action_menu(array('id' => $this->_tpl_vars['link_select_id'],'params' => $this->_tpl_vars['selectLink']), $this);?>

				</div>
				</td>
				<td class='td_alt' nowrap="nowrap" width='1%'>&nbsp;</td>
			<?php endif; ?>
			<?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>

			<?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['colHeader'] => $this->_tpl_vars['params']):
?>
				<th scope='col' width='<?php echo $this->_tpl_vars['params']['width']; ?>
%' nowrap="nowrap">
					<div style='white-space: normal;'width='100%' align='<?php echo ((is_array($_tmp=@$this->_tpl_vars['params']['align'])) ? $this->_run_mod_handler('default', true, $_tmp, 'left') : smarty_modifier_default($_tmp, 'left')); ?>
'>
	                <?php if (((is_array($_tmp=@$this->_tpl_vars['params']['sortable'])) ? $this->_run_mod_handler('default', true, $_tmp, true) : smarty_modifier_default($_tmp, true))): ?>
                                <a href="<?php echo $this->_tpl_vars['pageData']['urls']['orderBy'];  echo ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)); ?>
" onclick='sListView.save_checks(0, "<?php echo $this->_tpl_vars['moduleString']; ?>
");' class='listViewThLinkS1'><?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['label'],'module' => $this->_tpl_vars['pageData']['bean']['moduleDir']), $this);?>
&nbsp;&nbsp;
						<?php if (((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['params']['orderBy'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['colHeader']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['colHeader'])))) ? $this->_run_mod_handler('lower', true, $_tmp) : smarty_modifier_lower($_tmp)) == $this->_tpl_vars['pageData']['ordering']['orderBy']): ?>
							<?php if ($this->_tpl_vars['pageData']['ordering']['sortOrder'] == 'ASC'): ?>
                                <?php ob_start();  echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT_DESC'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('arrowAlt', ob_get_contents());ob_end_clean(); ?>
                                <?php ob_start(); ?>arrow_down.<?php echo $this->_tpl_vars['arrowExt'];  $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('imageName', ob_get_contents());ob_end_clean(); ?>
								<?php echo smarty_function_sugar_getimage(array('name' => ($this->_tpl_vars['imageName']),'ext' => 'gif','width' => ($this->_tpl_vars['arrowWidth']),'height' => ($this->_tpl_vars['arrowHeight']),'alt' => ($this->_tpl_vars['arrowAlt']),'other_attributes' => 'align="absmiddle" border="0"'), $this);?>

							<?php else: ?>
                                <?php ob_start();  echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT_ASC'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('arrowAlt', ob_get_contents());ob_end_clean(); ?>
                                <?php ob_start(); ?>arrow_up.<?php echo $this->_tpl_vars['arrowExt'];  $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('imageName', ob_get_contents());ob_end_clean(); ?>
								<?php echo smarty_function_sugar_getimage(array('name' => ($this->_tpl_vars['imageName']),'ext' => 'gif','width' => ($this->_tpl_vars['arrowWidth']),'height' => ($this->_tpl_vars['arrowHeight']),'alt' => ($this->_tpl_vars['arrowAlt']),'other_attributes' => 'align="absmiddle" border="0"'), $this);?>

							<?php endif; ?>
						<?php else: ?>
                            <?php ob_start();  echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SORT'), $this); $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('arrowAlt', ob_get_contents());ob_end_clean(); ?>
                            <?php ob_start(); ?>arrow.<?php echo $this->_tpl_vars['arrowExt'];  $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('imageName', ob_get_contents());ob_end_clean(); ?>
							<?php echo smarty_function_sugar_getimage(array('name' => ($this->_tpl_vars['imageName']),'ext' => 'gif','width' => ($this->_tpl_vars['arrowWidth']),'height' => ($this->_tpl_vars['arrowHeight']),'alt' => ($this->_tpl_vars['arrowAlt']),'other_attributes' => 'align="absmiddle" border="0"'), $this);?>

						<?php endif; ?>
					<?php else: ?>
						<?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['label'],'module' => $this->_tpl_vars['pageData']['bean']['moduleDir']), $this);?>

					<?php endif; ?>
					</div>
				</th>
				<?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>

			<?php endforeach; endif; unset($_from); ?>
			<?php if (! empty ( $this->_tpl_vars['quickViewLinks'] )): ?>
			<td class='td_alt' nowrap="nowrap" width='1%'>&nbsp;</td>
			<?php endif; ?>
		</tr>
			
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['rowIteration'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['rowIteration']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['rowData']):
        $this->_foreach['rowIteration']['iteration']++;
?>
			<?php if ((1 & $this->_foreach['rowIteration']['iteration'])): ?>
				<?php $this->assign('_rowColor', $this->_tpl_vars['rowColor'][0]); ?>
			<?php else: ?>
				<?php $this->assign('_rowColor', $this->_tpl_vars['rowColor'][1]); ?>
			<?php endif; ?>
			<tr height='20' class='<?php echo $this->_tpl_vars['_rowColor']; ?>
S1'>
				<?php if ($this->_tpl_vars['prerow']): ?>
				<td width='1%' nowrap='nowrap'>
						<input onclick='sListView.check_item(this, document.MassUpdate)' type='checkbox' class='checkbox' name='mass[]' value='<?php echo $this->_tpl_vars['rowData']['ID']; ?>
'>
				</td>
				<td width='1%' nowrap='nowrap'>
						<?php echo $this->_tpl_vars['pageData']['additionalDetails'][$this->_tpl_vars['id']]; ?>

				</td>
				<?php endif; ?>
				<?php echo smarty_function_counter(array('start' => 0,'name' => 'colCounter','print' => false,'assign' => 'colCounter'), $this);?>

				<?php $_from = $this->_tpl_vars['displayColumns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['params']):
?>
					<td scope='row' align='<?php echo ((is_array($_tmp=@$this->_tpl_vars['params']['align'])) ? $this->_run_mod_handler('default', true, $_tmp, 'left') : smarty_modifier_default($_tmp, 'left')); ?>
' valign=top class='<?php echo $this->_tpl_vars['_rowColor']; ?>
S1' bgcolor='<?php echo $this->_tpl_vars['_bgColor']; ?>
'>
						<?php if ($this->_tpl_vars['params']['link'] && ! $this->_tpl_vars['params']['customCode']): ?>
							
							<<?php echo ((is_array($_tmp=@$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']][$this->_tpl_vars['params']['ACLTag']])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN'])); ?>
 href='javascript:void(0)' onclick="send_back('<?php if ($this->_tpl_vars['params']['dynamic_module']):  echo $this->_tpl_vars['rowData'][$this->_tpl_vars['params']['dynamic_module']];  else:  echo ((is_array($_tmp=@$this->_tpl_vars['params']['module'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']));  endif; ?>','<?php echo ((is_array($_tmp=@$this->_tpl_vars['rowData'][$this->_tpl_vars['params']['id']])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rowData']['ID']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rowData']['ID'])); ?>
');"><?php echo $this->_tpl_vars['rowData'][$this->_tpl_vars['col']]; ?>
</<?php echo ((is_array($_tmp=@$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']][$this->_tpl_vars['params']['ACLTag']])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['tag'][$this->_tpl_vars['id']]['MAIN'])); ?>
>
	
						<?php elseif ($this->_tpl_vars['params']['customCode']): ?> 
							<?php echo smarty_function_sugar_evalcolumn_old(array('var' => $this->_tpl_vars['params']['customCode'],'rowData' => $this->_tpl_vars['rowData']), $this);?>

						<?php elseif ($this->_tpl_vars['params']['currency_format']): ?> 
							<?php echo smarty_function_sugar_currency_format(array('var' => $this->_tpl_vars['rowData'][$this->_tpl_vars['col']],'round' => $this->_tpl_vars['params']['currency_format']['round'],'decimals' => $this->_tpl_vars['params']['currency_format']['decimals'],'symbol' => $this->_tpl_vars['params']['currency_format']['symbol'],'convert' => $this->_tpl_vars['params']['currency_format']['convert'],'currency_symbol' => $this->_tpl_vars['params']['currency_format']['currency_symbol']), $this);?>

						<?php elseif ($this->_tpl_vars['params']['type'] == 'bool'): ?>
								<input type='checkbox' disabled=disabled class='checkbox'
								<?php if (! empty ( $this->_tpl_vars['rowData'][$this->_tpl_vars['col']] )): ?>
									checked=checked
								<?php endif; ?>
								/>
                        <?php elseif ($this->_tpl_vars['params']['type'] == 'multienum'): ?> 
								<?php echo smarty_function_counter(array('name' => 'oCount','assign' => 'oCount','start' => 0), $this);?>

								<?php echo smarty_function_multienum_to_array(array('string' => $this->_tpl_vars['rowData'][$this->_tpl_vars['col']],'assign' => 'vals'), $this);?>

								<?php $_from = $this->_tpl_vars['vals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
									<?php echo smarty_function_counter(array('name' => 'oCount'), $this);?>

									<?php echo smarty_function_sugar_translate(array('label' => $this->_tpl_vars['params']['options'],'select' => $this->_tpl_vars['item']), $this); if ($this->_tpl_vars['oCount'] != count ( $this->_tpl_vars['vals'] )): ?>,<?php endif; ?> 
								<?php endforeach; endif; unset($_from); ?>
                        <?php else: ?>
                            <?php echo smarty_function_sugar_field(array('parentFieldArray' => $this->_tpl_vars['rowData'],'vardef' => $this->_tpl_vars['params'],'displayType' => 'ListView','field' => $this->_tpl_vars['col']), $this);?>

						<?php endif; ?>
					</td>
					<?php echo smarty_function_counter(array('name' => 'colCounter'), $this);?>

				<?php endforeach; endif; unset($_from); ?>
		 	
		<?php endforeach; endif; unset($_from); ?>
		<tr class='pagination' role='presentation'>
			<td colspan='<?php echo $this->_tpl_vars['colCount']+1; ?>
' align='right'>
				<table border='0' cellpadding='0' cellspacing='0' width='100%'>
					<tr>
						<td align='left' >
							&nbsp;</td>
						<td  align='right' nowrap='nowrap'>						
							<?php if ($this->_tpl_vars['pageData']['urls']['startPage']): ?>
								<button type='button' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(0, "<?php echo $this->_tpl_vars['moduleString']; ?>
");'<?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
"' <?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_start'])), $this);?>

								</button>						
								<!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['startPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(0, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'start','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
</a>&nbsp;-->
							<?php else: ?>
								<button type='button' title='<?php echo $this->_tpl_vars['navStrings']['start']; ?>
' class='button' disabled>
									<?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--<?php echo smarty_function_sugar_getimage(array('name' => 'start_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['start'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['start']; ?>
&nbsp;&nbsp;-->
							<?php endif; ?>
							<?php if ($this->_tpl_vars['pageData']['urls']['prevPage']): ?>
								<button type='button' title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
, "<?php echo $this->_tpl_vars['moduleString']; ?>
")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
"'<?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_prev'])), $this);?>

								</button>
								<!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['prevPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['prev']; ?>
, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo smarty_function_sugar_getimage(array('name' => 'previous','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
</a>&nbsp;-->
							<?php else: ?>
								<button type='button' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
'>
									<?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--<?php echo smarty_function_sugar_getimage(array('name' => 'previous_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['previous'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
&nbsp;<?php echo $this->_tpl_vars['navStrings']['previous']; ?>
&nbsp;-->
							<?php endif; ?>
								<span class='pageNumbers'>(<?php if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] == 0): ?>0<?php else:  echo $this->_tpl_vars['pageData']['offsets']['current']+1;  endif; ?> - <?php echo $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']; ?>
 <?php echo $this->_tpl_vars['navStrings']['of']; ?>
 <?php if ($this->_tpl_vars['pageData']['offsets']['totalCounted']):  echo $this->_tpl_vars['pageData']['offsets']['total'];  else:  echo $this->_tpl_vars['pageData']['offsets']['total'];  if ($this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage'] != $this->_tpl_vars['pageData']['offsets']['total']): ?>+<?php endif;  endif; ?>)</span>
							<?php if ($this->_tpl_vars['pageData']['urls']['nextPage']): ?>
								<button type='button' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
, "<?php echo $this->_tpl_vars['moduleString']; ?>
")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
"'<?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_next'])), $this);?>

								</button>
								<!--&nbsp;<a href='<?php echo $this->_tpl_vars['pageData']['urls']['nextPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['next']; ?>
, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['next']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
</a>&nbsp;-->
							<?php else: ?>
								<button type='button' class='button' title='<?php echo $this->_tpl_vars['navStrings']['next']; ?>
' disabled>
									<?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['next']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'next_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['next'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
-->
							<?php endif; ?>
							<?php if ($this->_tpl_vars['pageData']['urls']['endPage'] && $this->_tpl_vars['pageData']['offsets']['total'] != $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
								<button type='button' title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
' class='button' <?php if ($this->_tpl_vars['prerow']): ?>onclick='return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
, "<?php echo $this->_tpl_vars['moduleString']; ?>
")' <?php else: ?> onClick='location.href="<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
"'<?php endif; ?>>
									<?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'other_attributes' => 'align="absmiddle" border="0" ','alt' => ($this->_tpl_vars['alt_end'])), $this);?>

								</button>
								<!--<a href='<?php echo $this->_tpl_vars['pageData']['urls']['endPage']; ?>
' <?php if ($this->_tpl_vars['prerow']): ?>onclick="return sListView.save_checks(<?php echo $this->_tpl_vars['pageData']['offsets']['end']; ?>
, '<?php echo $this->_tpl_vars['moduleString']; ?>
')"<?php endif; ?> ><?php echo $this->_tpl_vars['navStrings']['end']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
</a></td>-->
							<?php elseif (! $this->_tpl_vars['pageData']['offsets']['totalCounted'] || $this->_tpl_vars['pageData']['offsets']['total'] == $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']): ?>
								<button type='button' class='button' disabled title='<?php echo $this->_tpl_vars['navStrings']['end']; ?>
'>
								 	<?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>

								</button>
								<!--&nbsp;<?php echo $this->_tpl_vars['navStrings']['end']; ?>
&nbsp;<?php echo smarty_function_sugar_getimage(array('name' => 'end_off','ext' => ".png",'alt' => $this->_tpl_vars['navStrings']['end'],'other_attributes' => 'align="absmiddle" border="0" '), $this);?>
-->
							<?php endif; ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<?php if ($this->_tpl_vars['prerow']): ?>
	<script>
	<?php echo 'function lvg_dtails(id){return SUGAR.util.getAdditionalDetails( \'';  echo $this->_tpl_vars['module'];  echo '\',id, \'adspan_\'+id);}'; ?>

	</script>
	<?php endif;  else: ?>
	<?php echo $this->_tpl_vars['APP']['LBL_SEARCH_POPULATE_ONLY']; ?>

<?php endif; ?>
Back to Top