{* $Id: ShowEvents.tpl 11979 2007-09-26 17:41:31Z kbailey $ * -------------------------------------------------------------- * This template displays a list of all events in the system queue. From this template, a user should be able to * display, edit, delete, and run or stop events in the system queue. * * Smarty Variables: * $events - An array of events that match input criteria. Every item in this array is an array representing an event, * structure as follows: * systemQueueID - The ID of this system queue event. * systemQueueCommand - The MBAPI command that this system queue event will be executing. * systemQueueCommandInput - The full XML input for the MBAPI command to be run. * * (The following parameters only affect recurring items in the queue.) * systemQueueMinute - The frequency of minutes with which to run this event (5 would be every 5 minutes) * systemQueueHour - The frequency of hours with which to run this event (7 would be every 7 hours) * systemQueueDay - The frequency of days with which to run this event (170 would be every 170 days) * systemQueueMonth - The frequency of months with which to run this event * systemQueueYear - The frequency of years with which to run this event * * isRecurring - 1 if this event is recurring, or 0 if otherwise * dateCreated - The UNIX timestamp for which this event was created * dateStarted - The UNIX timestamp for which this event was started * dateFinished - The UNIX timestamp for which this event was finished * * * $actionID - The unique action ID for this page view * $actionName - The action name for this action ID * $imageDirectory - The image directory for this theme * $tplDirectory - The template directory for this theme * $sid - The current sessionID * *} {assign var="showEventStatusBar" value="1"} {assign var="filterArgs" value="isActive=$isActive&systemQueueStatus=`$smarty.request.systemQueueStatus`$systemQueueStatus$systemQueueIDsArgs"} {php}$GLOBALS['__pagePath'] = array('TRANS_SHOW_EVENTS', '');{/php} {include file="$tplDirectory/header.tpl" parentName="TRANS_MANAGE_EVENTS" childName="TRANS_SHOW_EVENTS" sideNavMajor="events" sideNavMinor="events" includeAjaxJS=1}
{"TRANS_EVENTS_SHOW_DESC"|lmsg}
{'TRANS_RUN_EVENTS'|lmsg}
{include file="$tplDirectory/widgets/table/listHeaderSort.tpl" headerClass="firstTD" headerName="TRANS_ID" sortColumn="systemQueueID"} {include file="$tplDirectory/widgets/table/listHeaderSort.tpl" headerName="TRANS_EVENTS_MODULE_HEADER" sortColumn="configGroupID"} {include file="$tplDirectory/widgets/table/listHeaderSort.tpl" headerName="TRANS_EVENTS_COMMAND_HEADER" sortColumn="systemQueueCommand"} {include file="$tplDirectory/widgets/table/listHeaderSortDate.tpl" headerName="TRANS_EVENTS_CREATED_HEADER" sortColumn="systemQueueDateCreated"} {include file="$tplDirectory/widgets/table/listHeaderSortDate.tpl" headerName="TRANS_EVENTS_NEXT_RUN_HEADER" sortColumn="systemQueueDateToRun"} {include file="$tplDirectory/widgets/table/listHeaderSortDate.tpl" headerName="TRANS_EVENTS_LAST_RUN_START_HEADER" sortColumn="systemQueueDateStarted"} {include file="$tplDirectory/widgets/table/listHeaderSortDate.tpl" headerName="TRANS_EVENTS_LAST_RUN_FINISH_HEADER" sortColumn="systemQueueDateFinished"} {include file="$tplDirectory/widgets/table/listHeaderFilter.tpl" filterName="TRANS_STATUS" filterColumn="systemQueueStatus" filterOptions="$statuses" suppressFilterName=1 mergeFilterName=1} {section name=i loop="$events"} {assign var="systemQueueID" value=$events[i].systemQueueID} {if $className=="alt1"} {assign var="className" value="alt2"} {else} {assign var="className" value="alt1"} {/if} {sectionelse} {/section}
{"TRANS_ADDITIONAL_DATA"|lmsg} {include file="$tplDirectory/widgets/context/sortedBy.tpl"}
{$systemQueueID}
{if $events[i].configGroupID} {assign var=configGroupID value=$events[i].configGroupID} {if $panels.$configGroupID} {$panels.$configGroupID} {if $events[i].serverGroupID} {assign var=serverGroupID value=$events[i].serverGroupID} {"TRANS_IN_GROUP"|lmsg} {$serverGroupList.$serverGroupID} {/if} {elseif $registrars.$configGroupID} {$registrars.$configGroupID} {/if} {elseif $events[i].serverGroupID} {assign var=serverGroupID value=$events[i].serverGroupID} {if $serverGroupList.$serverGroupID} {$serverGroupList.$serverGroupID} {/if} {/if} {$events[i].systemQueueCommand} {if $events[i].packageID} {assign var=packageID value=$events[i].packageID} {"TRANS_OF_PACKAGE"|lmsg} {$packageID} {/if} {$events[i].systemQueueDateCreated|getDateTime:full} {$events[i].systemQueueDateToRun|getDateTime:full} {include file="$tplDirectory/widgets/quickEditDateLink.tpl" editID=$systemQueueID editKey="systemQueueID" editActionName="EditEventResponse" editName="TRANS_RUN" editColumn="systemQueueDateToRun" editValue=$events[i].systemQueueDateToRun showHourMin=1 icoFile="ico/quickedit.gif"} {if $events[i].systemQueueIsRecurring} -- {else} {$events[i].systemQueueDateStarted|getDateTime:full} {/if} {if $events[i].systemQueueIsRecurring} -- {else} {$events[i].systemQueueDateFinished|getDateTime:full} {/if} {if $events[i].systemQueueDateFinished}   { {/if} {$events[i].systemQueueStatus|getArrayValueByID:$statuses} {$events[i].systemQueueStatusReason}
  {"TRANS_ACTIONS"|lmsg}   {strip} {* RUN NOW *} { {"TRANS_EVENT_RUN_NEXT_TIME"|lmsg}   {* FORCE RUN NOW *} { {"TRANS_EVENT_RUN_NOW"|lmsg}   {* EDIT *} {include file="$tplDirectory/widgets/actionLink.tpl" page="events.php" actionName="EditEvent" args="systemQueueID=$systemQueueID" icoImage="edit" icoWidth="" icoHeight="" icoStyle="" altText="TRANS_EDIT" titleText="" linkText="TRANS_EDIT" noSpace="1" }   {* DELETE *} {if !$events[i].systemQueueIsRecurring} {include file="$tplDirectory/widgets/actionLink.tpl" page="events.php" actionName="RemoveEvent" args="systemQueueID=$systemQueueID" icoImage="remove" icoWidth="" icoHeight="" icoStyle="" altText="TRANS_DELETE" titleText="" linkText="TRANS_DELETE" noSpace="1" }    {/if} {* DEBUG VIEW COMMAND INPUT *} { {"TRANS_MBAPI_COMMAND_INPUT"|lmsg}    {* DEBUG VIEW COMMAND OUTPUT *} { {"TRANS_MBAPI_COMMAND_OUTPUT"|lmsg}    {if $allowDebugLogging} {* RUN IN DEBUG MODE *} { {"TRANS_RUN_EVENT_WITH_DEBUG"|lmsg}   {/if} {/strip}
{"TRANS_NORESULTS"|lmsg}
{include file="$tplDirectory/widgets/paginationLinks.tpl"} {include file="$tplDirectory/footer.tpl"}