{literal}
<script language="JavaScript">
<!--
function removeCheckins(f)
{
if (!hasOneChecked(f, 'item[]')) {
alert('{/literal}{t escape=js}Please choose which entries need to be removed.{/t}{literal}');
return false;
}
if (!confirm('{/literal}{t escape=js}This action will permanently delete the selected entries.{/t}{literal}')) {
return false;
} else {
var features = 'width=420,height=200,top=30,left=30,resizable=yes,scrollbars=yes,toolbar=no,location=no,menubar=no,status=no';
var popupWin = window.open('', '_removeCheckins', features);
popupWin.focus();
return true;
}
}
//-->
</script>
{/literal}
<table width="100%" bgcolor="{$cell_color}" border="0" cellspacing="0" cellpadding="1" align="center">
<form onSubmit="javascript:return removeCheckins(this);" target="_removeCheckins" action="popup.php" method="post">
<input type="hidden" name="cat" value="remove_checkin">
<tr>
<td width="100%">
<table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
<tr>
<td class="default" nowrap>
<b>{t}SCM Integration - Checkins{/t}</b>
</td>
<td align="right" class="default">
[ <a class="link" href="#top">{t}Back to Top{/t}</a> ]
{if $browser.ie5up or $browser.ns6up or $browser.gecko or $browser.safari or $browser.opera5up}
[ <a id="checkins_link" class="link" href="javascript:void(null);" onClick="javascript:toggleVisibility('checkins');">{get_innerhtml element_name="checkins" total=$checkins|@count}</a> ]
{/if}
</td>
</tr>
<tr id="checkins1" {get_display_style element_name="checkins" total=$checkins|@count}>
<td colspan="2">
<table width="100%" cellpadding="2" cellspacing="1">
<tr bgcolor="{$cell_color}">
<td width="5">
{if $checkins != ""}
<input type="button" value="All" class="shortcut" onClick="javascript:toggleSelectAll(this.form, 'item[]');">
{/if}
</td>
<td class="default_white" nowrap>{t}Date{/t}</td>
<td class="default_white">{t}User{/t}</td>
<td class="default_white" nowrap>{t}Module / Directory{/t}</td>
<td class="default_white" nowrap>{t}File{/t}</td>
<td width="55%" class="default_white">{t}Commit Message{/t}</td>
</tr>
{section name="i" loop=$checkins}
{cycle values=$cycle assign="row_color"}
<tr bgcolor="{$row_color}">
<td valign="top">
<input type="checkbox" name="item[]" value="{$checkins[i].isc_id}">
</td>
<td class="default" valign="top" nowrap>{$checkins[i].isc_created_date}</td>
<td class="default" valign="top" >{$checkins[i].isc_username|escape:"html"}</td>
<td class="default" valign="top">{$checkins[i].isc_module|escape:"html"}</td>
<td class="default" valign="top" nowrap>
{if $checkins[i].checkout_url}
<a title="{t 1=$checkins[i].isc_filename}see the log of of %1{/t}" target="_checkout" class="link" href="{$checkins[i].scm_log_url}">{$checkins[i].isc_filename|escape:"html"}</a>
{if $checkins[i].added}
({t}ADDED{/t})
{elseif $checkins[i].removed}
({t}REMOVED{/t})
{else}
<a title="{t 1=$checkins[i].isc_new_version 2=$checkins[i].isc_filename}see the source of revision %1 of %2{/t}" target="_checkout" class="link" href="{$checkins[i].checkout_url}">({$checkins[i].isc_new_version})</a>
{/if}
{else}
{$checkins[i].isc_filename|escape:"html"}
{/if}
{if $checkins[i].diff_url && !$checkins[i].added && !$checkins[i].removed}
[<a title="{t 1=$checkins[i].isc_old_version}see the diff to revision %1{/t}" target="_checkout" class="link" href="{$checkins[i].diff_url}">{t 1=$checkins[i].isc_old_version}diff to %1{/t}</a>]
{/if}
</td>
<td class="default" valign=top>
{$checkins[i].isc_commit_msg}
</td>
</tr>
{sectionelse}
<tr>
<td colspan="6" bgcolor="{$light_color}" class="default" align="center">
<i>{t}No checkins could be found.{/t}</i>
</td>
</tr>
{/section}
<tr>
<td colspan="6" bgcolor="{$cell_color}">
{if $checkins != ""}
<input type="button" value="{t}All{/t}" class="shortcut" onClick="javascript:toggleSelectAll(this.form, 'item[]');">
<input type="submit" class="button" value="{t}Remove Selected{/t}">
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>