/** * Get domain status icon by value * * @param string Domain status value * @return string Domain status icon */ function stats_dom_status_icon($dom_status) { $dom_status_icons = stats_dom_status_icons(); return isset($dom_status_icons[$dom_status]) ? $dom_status_icons[$dom_status] : ''; }
else { jQuery( '#iprange_status_icon' ).html( '' ); } } ); <?php } ?> <?php if ($current_User->check_perm('stats', 'edit')) { // User can edit Domain ?> var domain_status_icons = new Array; <?php $domain_status_icons = stats_dom_status_icons(); foreach ($domain_status_icons as $status => $icon) { // Init js array with Domain status icons ?> domain_status_icons['<?php echo $status; ?> '] = '<?php echo $icon; ?> '; <?php } ?> jQuery( '#edited_domain_status, #edited_initial_referer_status' ).change( function()