%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/crm/cache/smarty/templates_c/
Upload File :
Create Path :
Current File : /var/www/crm/cache/smarty/templates_c/%%74^74F^74FBB9DE%%DashletGenericAutoRefresh.tpl.php

<?php /* Smarty version 2.6.11, created on 2024-01-16 19:42:39
         compiled from include/Dashlets/DashletGenericAutoRefresh.tpl */ ?>
<input type="hidden" id="<?php echo $this->_tpl_vars['dashletId']; ?>
_offset" name="<?php echo $this->_tpl_vars['dashletId']; ?>
_offset" value="0">
<input type="hidden" id="<?php echo $this->_tpl_vars['dashletId']; ?>
_interval" name="<?php echo $this->_tpl_vars['dashletId']; ?>
_interval" value="<?php echo $this->_tpl_vars['dashletRefreshInterval']; ?>
">
<script type='text/javascript'>
<!--
var autoRefreshProcId<?php echo $this->_tpl_vars['strippedDashletId']; ?>
 = '';
if (document.getElementById("<?php echo $this->_tpl_vars['dashletId']; ?>
_interval").value > 0) {
    autoRefreshProcId<?php echo $this->_tpl_vars['strippedDashletId']; ?>
 = setInterval('refreshDashlet<?php echo $this->_tpl_vars['strippedDashletId']; ?>
()', "<?php echo $this->_tpl_vars['dashletRefreshInterval']; ?>
");
}	
function refreshDashlet<?php echo $this->_tpl_vars['strippedDashletId']; ?>
() 
{
    //refresh only if offset is 0
    if ( SUGAR.mySugar && document.getElementById("<?php echo $this->_tpl_vars['dashletId']; ?>
_offset").value == '0' ) {
        SUGAR.mySugar.retrieveDashlet("<?php echo $this->_tpl_vars['dashletId']; ?>
","<?php echo $this->_tpl_vars['url']; ?>
");
    }
}
-->
</script>

Zerion Mini Shell 1.0