I'm going to expand on this for a number of reasons. Nothing personal, really!!

I've changed the way that this works due to the fact that the URL is modified and appends '&1' to the URL and after about an hour of it refreshing there, it can look rather ugly. Therefore, this change is purely aesthetic.
Step 1:Open the 'theme.php' file in your selected theme directory. In the HTML <head> tag you should find the 'help' pop-up javascript code that is there. It should look like:
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=<?php echo $db_settings['charset']; ?>">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-- Help Popup Window Code
function popup() {
window.open ("help.php", "help","location=1,status=1,scrollbars=1,width=400,height=250");
}
// -->
</script>
</HEAD>
Inside of this existing code (it makes no sense to add javascript tags), add the following:
<!-- Auto Refresh Code
function AutoRefresh() {
var url = "YOUR-ETICKET-URL-HERE/admin.php"
if (top.window.location.href == url) {
setTimeout("window.location.reload(true);",60000);
}
}
<!-- Manual Refresh Code
function ManualRefresh() {
window.location.reload(true);
}
<!-- End Refresh Codes
//-->
Make sure you update "YOUR-ETICKET-URL-HERE" with your actual information! With that change, the full code should look like this:
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=<?php echo $db_settings['charset']; ?>">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-- Help Popup Window Code
function popup() {
window.open ("help.php", "help","location=1,status=1,scrollbars=1,width=400,height=250");
}
//-->
<!-- Auto Refresh Code
function AutoRefresh() {
var url = "YOUR-ETICKET-URL-HERE/admin.php"
if (top.window.location.href == url) {
setTimeout("window.location.reload(true);",60000);
}
}
<!-- Manual Refresh Code
function ManualRefresh() {
window.location.reload(true);
}
<!-- End Refresh Codes
// -->
</script>
</HEAD>
With that done, you'll need to make one more small change to the <body> tag. It should look like this:
<BODY onLoad="javascript:AutoRefresh();">
Step 1 is now done. Save and close the theme.php file.
Step 2Open the main.html.php file from within your select theme folder. At the bottom of the code, just before the </div> tag (which is right before the </form> tag), and after the PHP 'endif;' tag, add the following:
<!-- Refresh Button MOD START -->
<DIV ID="refresh_link"><a href="javascript:ManualRefresh()" CLASS="inputsubmit" TITLE="<?php echo LANG_TIP_REFRESH; ?>"><?php echo LANG_REFRESH; ?></A></DIV>
<!-- Refresh button MOD END -->
The whole section should now look like this:
<?php endif; ?>
<!-- Refresh Button MOD START -->
<DIV ID="refresh_link"><a href="javascript:ManualRefresh()" CLASS="inputsubmit" TITLE="<?php echo LANG_TIP_REFRESH; ?>"><?php echo LANG_REFRESH; ?></A></DIV>
<!-- Refresh button MOD END -->
</DIV>
<!-- buttons end -->
</FORM>
Step 2 is done. Save the file and close it.
Step 3Open the customized.css file (if you don't have one of these, see
this post) and add the following anywhere you feel like adding it:
#refresh_link {
display: inline;
padding-left: 5px;
}
Step 3 is done. Save the file and close it.
All done!
The reason that the 'Refresh' button was changed is because if you click on the "Refresh" button, you'll notice it's actually been made a form input item. This causes some browsers, such as Firefox, to ask you if you want to reload the page because there have been form entries that will be resent. Since clicking the 'Refresh' button did not actually submit anything, it's not needed. The change prevents the browser from asking you when the page is trying to auto refresh.
Furthermore, the auto refresh will ONLY occur on the URL that you specify (in this case, only the 'admin.php' page. If you've searched for something or have basically change the URL from exactly what you type, it will not auto refresh.
UPDATENow, if you want to specify an array of URL's (?a=view_open, ?a=view_onhold, etc), then your javascript for the AutoRefresh() function should look like:
<!-- Auto Refresh Code
function AutoRefresh() {
var urls = new Array(7);
urls[0] = "YOUR-ETICKET-URL-HERE/admin.php"
urls[1] = "YOUR-ETICKET-URL-HERE/admin.php?a=view_new"
urls[2] = "YOUR-ETICKET-URL-HERE/admin.php?a=view_open"
urls[3] = "YOUR-ETICKET-URL-HERE/admin.php?a=view_onhold"
urls[4] = "YOUR-ETICKET-URL-HERE/admin.php?a=view_awaitingcustomer"
urls[5] = "YOUR-ETICKET-URL-HERE/admin.php?a=view_reopened"
urls[6] = "YOUR-ETICKET-URL-HERE/admin.php?a=view_all"
for (x=0; x<7; x++) {
if (top.window.location.href == url) {
setTimeout("window.location.reload(true);",60000);
}
}
}
That will then automatically refresh the page for the above given URL's. You can add more or remove some if you wish, just make sure you update the whole script properly.