<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
@if?!Authenticate@ @AddFile?/grinder/failedlogin.cmvp@ @else@
@if?!CheckAuthCode?AUTH_TITLES=true@ @AddFile?/grinder/nopriv.cmvp@ @else@
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<html>
<head>
<link rel="grinder icon" href="/images/grinder.ico" >
<title>Title Manager</title>
<script language=JavaScript>
<!--
function openUp2(named)
{
var strFeatures="top=200,left=50,resizeable=no,scrollbars=yes,height=400,width=650,alwaysRaised=yes,dependent=yes";
w=window.open("/property.cmvp?ABILITY="+named,
"Ability",strFeatures, false);
}
function NewTitle()
{
var autotitleid=window.prompt('Enter a new unique ID for your Title (no spaces):');
if(autotitleid==null)
return;
if(autotitleid.length==0)
return;
if(autotitleid.indexOf(' ')>=0)
{
if(window.alert) window.alert('No spaces are allowed in your ID!');
return;
}
document.RESOURCES.NEWAUTOTITLEID.value=autotitleid;
document.RESOURCES.FUNCTION.value='REAUTOTITLE';
document.RESOURCES.action='/grinder/autotitledo.cmvp';
document.RESOURCES.submit();
}
function Delete()
{
if(confirm('Delete this title?! Confirm!'))
{
if(confirm('Press OK to Delete this title!'))
{
document.RESOURCES.action='autotitledo.cmvp';
document.RESOURCES.FUNCTION.value='DELAUTOTITLE';
document.RESOURCES.submit();
}
}
}
function EditDone()
{
@if?TitleData?ISNEWAUTOTITLE@
if(confirm('Create this new title?'))
@else@
if(confirm('Submit your changes to this title?'))
@endif@
{
document.RESOURCES.action='autotitledo.cmvp';
document.RESOURCES.FUNCTION.value='EDITAUTOTITLE';
document.RESOURCES.submit();
}
}
function ReShow()
{
document.RESOURCES.FUNCTION.value='';
document.RESOURCES.action='/grinder/autotitle.cmvp';
document.RESOURCES.submit();
}
function ReTitle()
{
document.RESOURCES.FUNCTION.value='REAUTOTITLE';
document.RESOURCES.action='/grinder/autotitledo.cmvp';
document.RESOURCES.submit();
}
function Cancel()
{
window.close();
}
function OpenUp(file,named)
{
var strFeatures="top=200,left=50,scrollbars=yes,resizeable=no,height=400,width=650,alwaysRaised=yes,dependent=yes";
w=window.open("/"+file+"?HELPTOPIC="+named,
"Help",strFeatures, false);
}
function Clicked(action)
{
document.RESOURCES.action=action;
document.RESOURCES.submit();
}
//-->
</script>
</head>
<body BGCOLOR=BLACK>
<FORM ACCEPT-CHARSET="UTF-8" NAME=RESOURCES TARGET=_top METHOD=POST ACTION="autotitle.cmvp">
<INPUT TYPE=HIDDEN NAME=AUTH VALUE="@Authenticate?AUTH@">
<INPUT TYPE=HIDDEN NAME=NEWAUTOTITLEID VALUE="">
<INPUT TYPE=HIDDEN NAME=REPLACE VALUE="">
<INPUT TYPE=HIDDEN NAME=FUNCTION VALUE="">
<INPUT TYPE=HIDDEN NAME=AUTOTITLE VALUE="@RequestParameter?AUTOTITLE@">
<INPUT TYPE=HIDDEN NAME=NEWAUTOTITLE VALUE="@RequestParameter?NEWAUTOTITLE@">
<CENTER>
<TABLE WIDTH=100% BORDER=1 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD>
<FONT COLOR=YELLOW>Title: </FONT>
<FONT COLOR=WHITE SIZE=-1></FONT>
</TD>
<TD>
<INPUT TYPE=TEXT SIZE=20 NAME=TITLE VALUE="@AutoTitleData?TITLE@">
<INPUT TYPE=CHECKBOX NAME=ISREQUIRED @AutoTitleData?ISREQUIRED@><FONT SIZE=-1 COLOR=WHITE>is required</FONT>
</TD>
</TR>
<TR>
<TD><FONT COLOR=YELLOW>Mask <A HREF="javascript:OpenUp('ahelp.cmvp','MASKS')"><FONT COLOR=WHITE><I>?</I></FONT></a>: </FONT></TD>
<TD><INPUT TYPE=TEXT SIZE=40 NAME=MASK VALUE="@AutoTitleData?MASK@"></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH=100% BORDER=0>
<TR>
@if?CheckReqParm?AUTOTITLE=@
<TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=FINISHED VALUE="Create" ONCLICK="EditDone();"></TD>
@else@
<TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=FINISHED VALUE="Modify" ONCLICK="EditDone();"></TD>
<TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=DELETE VALUE="Delete" ONCLICK="Delete();"></TD>
@endif@
<TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=CANCEL VALUE="Cancel" ONCLICK="Cancel();"></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
@endif@
@endif@