<NME> catalog.cmvp
<BEF> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
@if?!Authenticate@ @AddFile?/grinder/failedlogin.cmvp@ @else@
@if?!CheckAuthCode?AUTH_CATALOG=true@ @AddFile?/grinder/nopriv.cmvp@ @else@
<html>
	<META CHARSET="utf-8"/>
<head>
    <link rel="grinder icon" href="/images/grinder.ico" >
    <title>Catalog Manager</title>
    <script language=JavaScript>
    <!--
        function NewFaction(catalogid,action)
        {
            if(confirm('Create a file in your resources directory called '+catalogid+'?'))
            {
                var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=550,width=750,alwaysRaised=yes,dependent=yes";
                w=window.open("catalog.cmvp?AUTH=@Authenticate?AUTH@&FACTION="+catalogid+action,
                	"Faction",strFeatures, false);
            }
        }
        function Catalog(catalogid,action)
        {
            var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=600,width=750,alwaysRaised=yes,dependent=yes";
            w=window.open("catalog.cmvp?AUTH=@Authenticate?AUTH@&FACTION="+catalogid+action,
            	"Faction",strFeatures, false);
        }
        function CatalogMob(mobcode,x)
        {
            var w;
            mobcode=encodeURI(mobcode);
            mobcode=mobcode.replace("#","%23");
            var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=600,width=650,alwaysRaised=yes,dependent=yes";
            var xtra='';
            if(x.length > 0)
            {
                x=encodeURI(x);
                xtra='&NEWMOBNAME='+x
            }
            w=window.open("editmobform.cmvp?AUTH=@Authenticate?AUTH@&AREA=ANY&ROOM=ANY&MOB="+mobcode+"&SINGLEMOB=true"+xtra,
            	"MAP",strFeatures, false);
        }
        
        function trim(stringToTrim) 
        {
            return stringToTrim.replace(/^\s+|\s+$/g,"");
        }
        
        function NewCatalogItem(itemcode,x)
        {
            x=trim(x);
            if(x.length == 0)
            {
                if(alert) alert('Enter a name for your new catalog item');
                return;
            }
            CatalogItem(itemcode,x);
        }
        
        function NewCatalogMob(mobcode,x)
        {
            x=trim(x);
            if(x.length == 0)
            {
                if(alert) alert('Enter a name for your new catalog mob');
                return;
            }
            CatalogMob(mobcode,x);
        }
        
        function CatalogItem(itemcode,x)
        {
            var w;
            itemcode=encodeURI(itemcode);
            itemcode=itemcode.replace("#","%23");
            var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=600,width=650,alwaysRaised=yes,dependent=yes";
            var xtra='';
            if(x.length > 0)
            {
                x=encodeURI(x);
                xtra='&NEWITEMNAME='+x
            }
            w=window.open("edititemform.cmvp?AUTH=@Authenticate?AUTH@&AREA=ANY&ROOM=ANY&ITEM="+itemcode+"&SINGLEITEM=true"+xtra,
            	"MAP",strFeatures, false);
        }
        
        function Clicked(action)
        {
            document.RESOURCES.action=action;
            document.RESOURCES.submit();
        }
        function Refresh(sortby)
        {
            document.RESOURCES.action='catalog.cmvp';
            document.RESOURCES.SORTBY.value=sortby;
            document.RESOURCES.submit();
        }
        function ToMob()
        {
            document.RESOURCES.MODE.value='';
            document.RESOURCES.CATACAT.value='';
            document.RESOURCES.OPTIONALCOLUMN.value='';
            Refresh(document.RESOURCES.SORTBY.value);
        }
        function ToCat(cat)
        {
            document.RESOURCES.CATACAT.value=cat;
            Refresh(document.RESOURCES.SORTBY.value);
        }
        function ToItem()
        {
            document.RESOURCES.MODE.value='ITEM';
            document.RESOURCES.CATACAT.value='';
            document.RESOURCES.OPTIONALCOLUMN.value='';
            Refresh(document.RESOURCES.SORTBY.value);
        }
        function EditItemDone()
        {
            Refresh(document.RESOURCES.SORTBY.value);
        }
        function EditMobDone()
        {
            Refresh(document.RESOURCES.SORTBY.value);
        }
    //-->
    </script>
</head>
<body BGCOLOR=BLACK>
    <TABLE WIDTH=100% BORDER=0>
    <TR>
    <TD WIDTH=33% ALIGN=LEFT VALIGN=TOP></TD>
    <TD WIDTH=33% ALIGN=CENTER VALIGN=TOP><IMG SRC="/grinder/images/grinder.gif" WIDTH=78 HEIGHT=122 ALT="" BORDER="0"></TD>
    <TD WIDTH=33% ALIGN=RIGHT VALIGN=TOP>
        <TABLE WIDTH=50% BORDER=1>
        <TR><TD BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK SIZE=-1><B>Menu</B></FONT></TD></TR>
        <TR><TD><a href="javascript:Clicked('/grinder/loggedin.cmvp');"><FONT COLOR=WHITE SIZE=-1><B>MUDGrinder Menu</B></FONT></A></TD></TR>
        <TR><TD><a href="javascript:Refresh(document.RESOURCES.SORTBY.value);"><FONT COLOR=WHITE SIZE=-1><B>Refresh Page</B></FONT></A></TD></TR>
        </TABLE>
    </TD>
    </TR>
    </TABLE>
<CENTER>
<FORM  ACCEPT-CHARSET="UTF-8" NAME=RESOURCES TARGET=_top METHOD=POST ACTION="catalogs.cmvp">
<INPUT TYPE=HIDDEN NAME=AUTH VALUE="@Authenticate?AUTH@">
<INPUT TYPE=HIDDEN NAME=MODE VALUE="@RequestParameter?MODE@">
<INPUT TYPE=HIDDEN NAME=CATACAT VALUE="@RequestParameter?CATACAT@">
@AddRequestParameter?CURRCAT=@@RequestParameter?CATACAT@@ @
<INPUT TYPE=HIDDEN NAME=SORTBY VALUE="@RequestParameter?SORTBY@">
    <TABLE WIDTH=100% BORDER=1>
    <TR><TD WIDTH=100% COLSPAN=2 BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK><H2>CoffeeMud @MudServerVersion@ Catalog Manager</H2></FONT></TD></TR>
    @if?CheckReqParm?MODE=@
        <TR>
        <TD WIDTH=50% BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK>MOBs</FONT></TD>
        <TD WIDTH=50% ALIGN=CENTER><a href="javascript:ToItem()"><FONT COLOR=WHITE>Items</FONT></a></TD>
        </TR>
        <TR>
        <TD WIDTH=100% COLSPAN=2>
        <TABLE WIDTH=100% BORDER=1>
            @CatalogCatNext?RESET@
                @if?CheckReqParm?CURRCAT=@
                    <TD WIDTH=@CatalogCatNext?MOBS&WIDTH@% ALIGN=CENTER BGCOLOR=WHITE><FONT COLOR=BLACK>All</FONT></TD>
                @else@
                    <TD WIDTH=@CatalogCatNext?MOBS&WIDTH@% ALIGN=CENTER><a href="javascript:ToCat('')"><FONT COLOR=WHITE>All</FONT></a></TD>
                @endif@
            @loop@
                @CatalogCatNext?MOBS&ALL@
        <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>
            <TABLE WIDTH=100% BORDER=1>
            <TR>
            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>
            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>
            <TD WIDTH=20%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>
            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>
            </TR>
            @CatalogItemNext?RESET@
            @loop@
                @endif@
            @back@
        </TABLE>
        @AddRequestParameter?CATACAT=@@RequestParameter?CURRCAT@@ @
        </TD>
        </TR>
        <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>
            <TABLE WIDTH=100% BORDER=1>
            <TR>
            <TD WIDTH=5%><a href="javascript:Refresh('USAGE');"><B><FONT COLOR=YELLOW>#</FONT></b></a></TD>
            <TD WIDTH=30%><a href="javascript:Refresh('NAME');"><B><FONT COLOR=YELLOW>Name</FONT></b></a></TD>
            <TD WIDTH=10%><a href="javascript:Refresh('LEVEL');"><B><FONT COLOR=YELLOW>Level</FONT></b></a></TD>
            <TD WIDTH=10%><a href="javascript:Refresh('CLASS');"><B><FONT COLOR=YELLOW>Class</FONT></b></a></TD>
            <TD WIDTH=10%><a href="javascript:Refresh('RACE');"><B><FONT COLOR=YELLOW>Race</FONT></b></a></TD>
            @if?CheckReqParm?OPTIONALCOLUMN=@
	            <TD WIDTH=10%><a href="javascript:Refresh('GENDER');"><B><FONT COLOR=YELLOW>Gender</FONT></b></a></TD>
	        @else@
	            <TD WIDTH=10%><a href="javascript:Refresh('@RequestParameter?OPTIONALCOLUMN@');"><B><I><FONT COLOR=YELLOW>@RequestParameter?OPTIONALCOLUMN@</FONT></I></b></a></TD>
	        @endif@
            <TD WIDTH=25%><a href="javascript:Refresh('AREA');"><B><FONT COLOR=YELLOW>Area</FONT></b></a></TD>
            </TR>
            @CatalogMobNext?RESET@
            @loop@
            @CatalogMobNext?ALL@
                <TR>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_USAGE@</B></FONT></a></TD>
                <TD><a href="javascript:CatalogMob('@RequestParameter?MOB@','')"><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_NAME@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_LEVEL@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_CLASS@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_RACE@</B></FONT></a></TD>
	            @if?CheckReqParm?OPTIONALCOLUMN=@
	                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_GENDER@</B></FONT></a></TD>
	            @else@
	                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_@@RequestParameter?OPTIONALCOLUMN@@ @</B></FONT></a></TD>
	            @endif@
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_AREA@</B></FONT></a></TD>
                </TR>
            @back@
            <TR>
            <TD COLSPAN=6><a href="javascript:NewCatalogMob('NEWCATA-'+document.RESOURCES.NEWOBJECT.value,document.RESOURCES.NEWOBJECT.value)"><FONT COLOR=WHITE><B>Create New:</a> <INPUT TYPE=TEXT NAME=NEWOBJECT SIZE=70></B></FONT></TD>
            </TR>
            </TABLE>
        </TD></TR>
    @else@
        <TR>
        <TD WIDTH=50% ALIGN=CENTER><a href="javascript:ToMob()"><FONT COLOR=WHITE>MOBs</FONT></a></TD>
        <TD WIDTH=50% BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK>Items</FONT></TD>
        </TR>
        <TR>
        <TD WIDTH=100% COLSPAN=2>
        <TABLE WIDTH=100% BORDER=1>
            @CatalogCatNext?RESET@
                @if?CheckReqParm?CURRCAT=@
                    <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER BGCOLOR=WHITE><FONT COLOR=BLACK>All</FONT></TD>
                @else@
                    <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER><a href="javascript:ToCat('')"><FONT COLOR=WHITE>All</FONT></a></TD>
                @endif@
            @loop@
                @CatalogCatNext?ITEMS&ALL@
                
                @if?CheckReqParm?CATACAT=@@RequestParameter?CURRCAT@@ @
                <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER BGCOLOR=WHITE>
                    <FONT COLOR=BLACK>@RequestParameter?CATACAT@</FONT>
                </TD>
                @else@
                <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER BGCOLOR=BLACK>
                    <a href="javascript:ToCat('@RequestParameter?CATACAT@')">
                    <FONT COLOR=WHITE>@RequestParameter?CATACAT@</FONT>
                    </a>
                </TD>
                @endif@
            @back@
        </TABLE>
        @AddRequestParameter?CATACAT=@@RequestParameter?CURRCAT@@ @
        </TD>
        </TR>
        <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>
            <TABLE WIDTH=100% BORDER=1>
            <TR>
            <TD WIDTH=5%><a href="javascript:Refresh('USAGE');"><B><FONT COLOR=YELLOW>#</FONT></b></a></TD>
            <TD WIDTH=25%><a href="javascript:Refresh('NAME');"><B><FONT COLOR=YELLOW>Name</FONT></b></a></TD>
            <TD WIDTH=5%><a href="javascript:Refresh('LEVEL');"><B><FONT COLOR=YELLOW>Level</FONT></b></a></TD>
            <TD WIDTH=10%><a href="javascript:Refresh('CLASS');"><B><FONT COLOR=YELLOW>Class</FONT></b></a></TD>
            <TD WIDTH=5%><a href="javascript:Refresh('VALUE');"><B><FONT COLOR=YELLOW>Value</FONT></b></a></TD>
            <TD WIDTH=20%><a href="javascript:Refresh('AREA');"><B><FONT COLOR=YELLOW>Area</FONT></b></a></TD>
            @if?CheckReqParm?OPTIONALCOLUMN=@
	            <TD WIDTH=5%><a href="javascript:Refresh('RATE');"><B><FONT COLOR=YELLOW>Rate</FONT></b></a></TD>
	            <TD WIDTH=5%><a href="javascript:Refresh('LIVE');"><B><FONT COLOR=YELLOW>State</FONT></b></a></TD>
	            <TD WIDTH=20%><a href="javascript:Refresh('MASK');"><B><FONT COLOR=YELLOW>MOB Mask</FONT></b></a></TD>
	        @else@
	            <TD COLSPAN=3 WIDTH=30%><a href="javascript:Refresh('@RequestParameter?OPTIONALCOLUMN@');"><B><I><FONT COLOR=YELLOW>@RequestParameter?OPTIONALCOLUMN@</FONT></I></b></a></TD>
            @endif@
            </TR>
            @CatalogItemNext?RESET@
            @loop@
            @CatalogItemNext?ALL@
                <TR>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_USAGE@</B></FONT></a></TD>
                <TD><a href="javascript:CatalogItem('@RequestParameter?ITEM@','')"><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_NAME@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_LEVEL@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_CLASS@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_VALUE@</B></FONT></a></TD>
                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_AREA@</B></FONT></a></TD>
	            @if?CheckReqParm?OPTIONALCOLUMN=@
	                @if?CheckReqParm?CATALOG_ITEM_RATE=@
	                    <TD COLSPAN=3><FONT COLOR=WHITE>N/A</FONT></a></TD>
	                @else@
	                    <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_RATE@</B></FONT></a></TD>
	                    <TD><FONT COLOR=WHITE><B>@if?RequestParameter?CATALOG_ITEM_LIVE@Live@else@Dead@endif@</B></FONT></a></TD>
	                    <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_MASK@</B></FONT></a></TD>
	                @endif@
	            @else@
                    <TD COLSPAN=3><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_@@RequestParameter?OPTIONALCOLUMN@@ @</B></FONT></a></TD>
	            @endif@
                </TR>
            @back@
            <TR>
            <TD COLSPAN=7><a href="javascript:NewCatalogItem('NEWCATA-'+document.RESOURCES.NEWOBJECT.value,document.RESOURCES.NEWOBJECT.value)"><FONT COLOR=WHITE><B>Create New:</a> <INPUT TYPE=TEXT NAME=NEWOBJECT SIZE=70></B></FONT></TD>
            </TR>
            </TABLE>
        </TD></TR>
    @endif@
    </TABLE>
    <P>
    <TABLE WIDTH=100% BORDER=0>
    <TR>
    <TD WIDTH=33% ALIGN=LEFT>
    <FONT COLOR=WHITE SIZE=-1>?+Column?: </FONT><INPUT TYPE=TEXT SIZE=10 NAME=OPTIONALCOLUMN VALUE="@RequestParameter?OPTIONALCOLUMN@">
    </TD>
    <TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=REFRESH VALUE="Refresh" ONCLICK="Refresh(document.RESOURCES.SORTBY.value);"></TD>
    <TD WIDTH=33% ALIGN=CENTER>
    </TD>
    </TR>
    </TABLE>
    <CENTER>
    </CENTER>
</FORM>
</BODY>
</HTML>
@endif@
@endif@

<MSG> 

git-svn-id: svn://192.168.1.10/public/CoffeeMud@7048 0d6f1817-ed0e-0410-87c9-987e46238f29

<DFF> @@ -166,10 +166,10 @@
         <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>
             <TABLE WIDTH=100% BORDER=1>
             <TR>
-            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>
-            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>
-            <TD WIDTH=20%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>
-            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>
+            <TD WIDTH=25%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>
+            <TD WIDTH=5%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>
+            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>
+            <TD WIDTH=60%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>
             </TR>
             @CatalogItemNext?RESET@
             @loop@

{'commit': 'diff --git a/web/admin/grinder/catalog.cmvp b/web/admin/grinder/catalog.cmvp\nindex 71822ef9ec..ae468f7be1 100644\n--- a/web/admin/grinder/catalog.cmvp\n+++ b/web/admin/grinder/catalog.cmvp\n@@ -166,10 +166,10 @@\n         <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>\r\n             <TABLE WIDTH=100% BORDER=1>\r\n             <TR>\r\n-            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>\r\n-            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>\r\n-            <TD WIDTH=20%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>\r\n-            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>\r\n+            <TD WIDTH=25%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>\r\n+            <TD WIDTH=5%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>\r\n+            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>\r\n+            <TD WIDTH=60%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>\r\n             </TR>\r\n             @CatalogItemNext?RESET@\r\n             @loop@\r\n', 'commit_subject': '', 'repo_name': 'bozimmerman/CoffeeMud', 'committer': {'name': 'bozimmerman', 'email': 'dc45fe023482b3b890b5e574e53c1d051f45b1ef@zimmers.net', 'time_sec': '1211577633', 'tz_offset': '0', 'date': {'seconds': '1211577633'}}, 'commit_tree': '1a1aa55bcc07f1a4309ebe5b156cda9610baea12', 'commit_message': '\n\ngit-svn-id: svn://192.168.1.10/public/CoffeeMud@7048 0d6f1817-ed0e-0410-87c9-987e46238f29\n', 'language_name': 'JavaScript', 'license': 'apache-2.0', 'hunks': '@@ -166,10 +166,10 @@\n         <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>\r\n             <TABLE WIDTH=100% BORDER=1>\r\n             <TR>\r\n-            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>\r\n-            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>\r\n-            <TD WIDTH=20%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>\r\n-            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>\r\n+            <TD WIDTH=25%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>\r\n+            <TD WIDTH=5%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>\r\n+            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>\r\n+            <TD WIDTH=60%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>\r\n             </TR>\r\n             @CatalogItemNext?RESET@\r\n             @loop@\r\n', 'addition_count': 4, 'deletion_count': 4, 'src_file': 'a/web/admin/grinder/catalog.cmvp', 'tgt_file': 'b/web/admin/grinder/catalog.cmvp', 'file_extension': '.cmvp', 'before_file': '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n<META HTTP-EQUIV="Pragma" CONTENT="no-cache">\n@if?!Authenticate@ @AddFile?/grinder/failedlogin.cmvp@ @else@\n@if?!CheckAuthCode?AUTH_CATALOG=true@ @AddFile?/grinder/nopriv.cmvp@ @else@\n<html>\n\t<META CHARSET="utf-8"/>\n<head>\n    <link rel="grinder icon" href="/images/grinder.ico" >\n    <title>Catalog Manager</title>\n    <script language=JavaScript>\n    <!--\n        function NewFaction(catalogid,action)\n        {\n            if(confirm(\'Create a file in your resources directory called \'+catalogid+\'?\'))\n            {\n                var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=550,width=750,alwaysRaised=yes,dependent=yes";\n                w=window.open("catalog.cmvp?AUTH=@Authenticate?AUTH@&FACTION="+catalogid+action,\n                \t"Faction",strFeatures, false);\n            }\n        }\n        function Catalog(catalogid,action)\n        {\n            var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=600,width=750,alwaysRaised=yes,dependent=yes";\n            w=window.open("catalog.cmvp?AUTH=@Authenticate?AUTH@&FACTION="+catalogid+action,\n            \t"Faction",strFeatures, false);\n        }\n        function CatalogMob(mobcode,x)\n        {\n            var w;\n            mobcode=encodeURI(mobcode);\n            mobcode=mobcode.replace("#","%23");\n            var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=600,width=650,alwaysRaised=yes,dependent=yes";\n            var xtra=\'\';\n            if(x.length > 0)\n            {\n                x=encodeURI(x);\n                xtra=\'&NEWMOBNAME=\'+x\n            }\n            w=window.open("editmobform.cmvp?AUTH=@Authenticate?AUTH@&AREA=ANY&ROOM=ANY&MOB="+mobcode+"&SINGLEMOB=true"+xtra,\n            \t"MAP",strFeatures, false);\n        }\n        \n        function trim(stringToTrim) \n        {\n            return stringToTrim.replace(/^\\s+|\\s+$/g,"");\n        }\n        \n        function NewCatalogItem(itemcode,x)\n        {\n            x=trim(x);\n            if(x.length == 0)\n            {\n                if(alert) alert(\'Enter a name for your new catalog item\');\n                return;\n            }\n            CatalogItem(itemcode,x);\n        }\n        \n        function NewCatalogMob(mobcode,x)\n        {\n            x=trim(x);\n            if(x.length == 0)\n            {\n                if(alert) alert(\'Enter a name for your new catalog mob\');\n                return;\n            }\n            CatalogMob(mobcode,x);\n        }\n        \n        function CatalogItem(itemcode,x)\n        {\n            var w;\n            itemcode=encodeURI(itemcode);\n            itemcode=itemcode.replace("#","%23");\n            var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=600,width=650,alwaysRaised=yes,dependent=yes";\n            var xtra=\'\';\n            if(x.length > 0)\n            {\n                x=encodeURI(x);\n                xtra=\'&NEWITEMNAME=\'+x\n            }\n            w=window.open("edititemform.cmvp?AUTH=@Authenticate?AUTH@&AREA=ANY&ROOM=ANY&ITEM="+itemcode+"&SINGLEITEM=true"+xtra,\n            \t"MAP",strFeatures, false);\n        }\n        \n        function Clicked(action)\n        {\n            document.RESOURCES.action=action;\n            document.RESOURCES.submit();\n        }\n        function Refresh(sortby)\n        {\n            document.RESOURCES.action=\'catalog.cmvp\';\n            document.RESOURCES.SORTBY.value=sortby;\n            document.RESOURCES.submit();\n        }\n        function ToMob()\n        {\n            document.RESOURCES.MODE.value=\'\';\n            document.RESOURCES.CATACAT.value=\'\';\n            document.RESOURCES.OPTIONALCOLUMN.value=\'\';\n            Refresh(document.RESOURCES.SORTBY.value);\n        }\n        function ToCat(cat)\n        {\n            document.RESOURCES.CATACAT.value=cat;\n            Refresh(document.RESOURCES.SORTBY.value);\n        }\n        function ToItem()\n        {\n            document.RESOURCES.MODE.value=\'ITEM\';\n            document.RESOURCES.CATACAT.value=\'\';\n            document.RESOURCES.OPTIONALCOLUMN.value=\'\';\n            Refresh(document.RESOURCES.SORTBY.value);\n        }\n        function EditItemDone()\n        {\n            Refresh(document.RESOURCES.SORTBY.value);\n        }\n        function EditMobDone()\n        {\n            Refresh(document.RESOURCES.SORTBY.value);\n        }\n    //-->\n    </script>\n</head>\n<body BGCOLOR=BLACK>\n    <TABLE WIDTH=100% BORDER=0>\n    <TR>\n    <TD WIDTH=33% ALIGN=LEFT VALIGN=TOP></TD>\n    <TD WIDTH=33% ALIGN=CENTER VALIGN=TOP><IMG SRC="/grinder/images/grinder.gif" WIDTH=78 HEIGHT=122 ALT="" BORDER="0"></TD>\n    <TD WIDTH=33% ALIGN=RIGHT VALIGN=TOP>\n        <TABLE WIDTH=50% BORDER=1>\n        <TR><TD BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK SIZE=-1><B>Menu</B></FONT></TD></TR>\n        <TR><TD><a href="javascript:Clicked(\'/grinder/loggedin.cmvp\');"><FONT COLOR=WHITE SIZE=-1><B>MUDGrinder Menu</B></FONT></A></TD></TR>\n        <TR><TD><a href="javascript:Refresh(document.RESOURCES.SORTBY.value);"><FONT COLOR=WHITE SIZE=-1><B>Refresh Page</B></FONT></A></TD></TR>\n        </TABLE>\n    </TD>\n    </TR>\n    </TABLE>\n<CENTER>\n<FORM  ACCEPT-CHARSET="UTF-8" NAME=RESOURCES TARGET=_top METHOD=POST ACTION="catalogs.cmvp">\n<INPUT TYPE=HIDDEN NAME=AUTH VALUE="@Authenticate?AUTH@">\n<INPUT TYPE=HIDDEN NAME=MODE VALUE="@RequestParameter?MODE@">\n<INPUT TYPE=HIDDEN NAME=CATACAT VALUE="@RequestParameter?CATACAT@">\n@AddRequestParameter?CURRCAT=@@RequestParameter?CATACAT@@ @\n<INPUT TYPE=HIDDEN NAME=SORTBY VALUE="@RequestParameter?SORTBY@">\n    <TABLE WIDTH=100% BORDER=1>\n    <TR><TD WIDTH=100% COLSPAN=2 BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK><H2>CoffeeMud @MudServerVersion@ Catalog Manager</H2></FONT></TD></TR>\n    @if?CheckReqParm?MODE=@\n        <TR>\n        <TD WIDTH=50% BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK>MOBs</FONT></TD>\n        <TD WIDTH=50% ALIGN=CENTER><a href="javascript:ToItem()"><FONT COLOR=WHITE>Items</FONT></a></TD>\n        </TR>\n        <TR>\n        <TD WIDTH=100% COLSPAN=2>\n        <TABLE WIDTH=100% BORDER=1>\n            @CatalogCatNext?RESET@\n                @if?CheckReqParm?CURRCAT=@\n                    <TD WIDTH=@CatalogCatNext?MOBS&WIDTH@% ALIGN=CENTER BGCOLOR=WHITE><FONT COLOR=BLACK>All</FONT></TD>\n                @else@\n                    <TD WIDTH=@CatalogCatNext?MOBS&WIDTH@% ALIGN=CENTER><a href="javascript:ToCat(\'\')"><FONT COLOR=WHITE>All</FONT></a></TD>\n                @endif@\n            @loop@\n                @CatalogCatNext?MOBS&ALL@\n        <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>\r\n            <TABLE WIDTH=100% BORDER=1>\r\n            <TR>\r\n            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>\r\n            <TD WIDTH=10%><B><FONT COLOR=YELLOW>Level</FONT></b></TD>\r\n            <TD WIDTH=20%><B><FONT COLOR=YELLOW>Class</FONT></b></TD>\r\n            <TD WIDTH=30%><B><FONT COLOR=YELLOW>Value</FONT></b></TD>\r\n            </TR>\r\n            @CatalogItemNext?RESET@\r\n            @loop@\r\n                @endif@\n            @back@\n        </TABLE>\n        @AddRequestParameter?CATACAT=@@RequestParameter?CURRCAT@@ @\n        </TD>\n        </TR>\n        <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>\n            <TABLE WIDTH=100% BORDER=1>\n            <TR>\n            <TD WIDTH=5%><a href="javascript:Refresh(\'USAGE\');"><B><FONT COLOR=YELLOW>#</FONT></b></a></TD>\n            <TD WIDTH=30%><a href="javascript:Refresh(\'NAME\');"><B><FONT COLOR=YELLOW>Name</FONT></b></a></TD>\n            <TD WIDTH=10%><a href="javascript:Refresh(\'LEVEL\');"><B><FONT COLOR=YELLOW>Level</FONT></b></a></TD>\n            <TD WIDTH=10%><a href="javascript:Refresh(\'CLASS\');"><B><FONT COLOR=YELLOW>Class</FONT></b></a></TD>\n            <TD WIDTH=10%><a href="javascript:Refresh(\'RACE\');"><B><FONT COLOR=YELLOW>Race</FONT></b></a></TD>\n            @if?CheckReqParm?OPTIONALCOLUMN=@\n\t            <TD WIDTH=10%><a href="javascript:Refresh(\'GENDER\');"><B><FONT COLOR=YELLOW>Gender</FONT></b></a></TD>\n\t        @else@\n\t            <TD WIDTH=10%><a href="javascript:Refresh(\'@RequestParameter?OPTIONALCOLUMN@\');"><B><I><FONT COLOR=YELLOW>@RequestParameter?OPTIONALCOLUMN@</FONT></I></b></a></TD>\n\t        @endif@\n            <TD WIDTH=25%><a href="javascript:Refresh(\'AREA\');"><B><FONT COLOR=YELLOW>Area</FONT></b></a></TD>\n            </TR>\n            @CatalogMobNext?RESET@\n            @loop@\n            @CatalogMobNext?ALL@\n                <TR>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_USAGE@</B></FONT></a></TD>\n                <TD><a href="javascript:CatalogMob(\'@RequestParameter?MOB@\',\'\')"><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_NAME@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_LEVEL@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_CLASS@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_RACE@</B></FONT></a></TD>\n\t            @if?CheckReqParm?OPTIONALCOLUMN=@\n\t                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_GENDER@</B></FONT></a></TD>\n\t            @else@\n\t                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_@@RequestParameter?OPTIONALCOLUMN@@ @</B></FONT></a></TD>\n\t            @endif@\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_MOB_AREA@</B></FONT></a></TD>\n                </TR>\n            @back@\n            <TR>\n            <TD COLSPAN=6><a href="javascript:NewCatalogMob(\'NEWCATA-\'+document.RESOURCES.NEWOBJECT.value,document.RESOURCES.NEWOBJECT.value)"><FONT COLOR=WHITE><B>Create New:</a> <INPUT TYPE=TEXT NAME=NEWOBJECT SIZE=70></B></FONT></TD>\n            </TR>\n            </TABLE>\n        </TD></TR>\n    @else@\n        <TR>\n        <TD WIDTH=50% ALIGN=CENTER><a href="javascript:ToMob()"><FONT COLOR=WHITE>MOBs</FONT></a></TD>\n        <TD WIDTH=50% BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK>Items</FONT></TD>\n        </TR>\n        <TR>\n        <TD WIDTH=100% COLSPAN=2>\n        <TABLE WIDTH=100% BORDER=1>\n            @CatalogCatNext?RESET@\n                @if?CheckReqParm?CURRCAT=@\n                    <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER BGCOLOR=WHITE><FONT COLOR=BLACK>All</FONT></TD>\n                @else@\n                    <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER><a href="javascript:ToCat(\'\')"><FONT COLOR=WHITE>All</FONT></a></TD>\n                @endif@\n            @loop@\n                @CatalogCatNext?ITEMS&ALL@\n                \n                @if?CheckReqParm?CATACAT=@@RequestParameter?CURRCAT@@ @\n                <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER BGCOLOR=WHITE>\n                    <FONT COLOR=BLACK>@RequestParameter?CATACAT@</FONT>\n                </TD>\n                @else@\n                <TD WIDTH=@CatalogCatNext?ITEMS&WIDTH@% ALIGN=CENTER BGCOLOR=BLACK>\n                    <a href="javascript:ToCat(\'@RequestParameter?CATACAT@\')">\n                    <FONT COLOR=WHITE>@RequestParameter?CATACAT@</FONT>\n                    </a>\n                </TD>\n                @endif@\n            @back@\n        </TABLE>\n        @AddRequestParameter?CATACAT=@@RequestParameter?CURRCAT@@ @\n        </TD>\n        </TR>\n        <TR><TD WIDTH=100% COLSPAN=2 VALIGN=TOP>\n            <TABLE WIDTH=100% BORDER=1>\n            <TR>\n            <TD WIDTH=5%><a href="javascript:Refresh(\'USAGE\');"><B><FONT COLOR=YELLOW>#</FONT></b></a></TD>\n            <TD WIDTH=25%><a href="javascript:Refresh(\'NAME\');"><B><FONT COLOR=YELLOW>Name</FONT></b></a></TD>\n            <TD WIDTH=5%><a href="javascript:Refresh(\'LEVEL\');"><B><FONT COLOR=YELLOW>Level</FONT></b></a></TD>\n            <TD WIDTH=10%><a href="javascript:Refresh(\'CLASS\');"><B><FONT COLOR=YELLOW>Class</FONT></b></a></TD>\n            <TD WIDTH=5%><a href="javascript:Refresh(\'VALUE\');"><B><FONT COLOR=YELLOW>Value</FONT></b></a></TD>\n            <TD WIDTH=20%><a href="javascript:Refresh(\'AREA\');"><B><FONT COLOR=YELLOW>Area</FONT></b></a></TD>\n            @if?CheckReqParm?OPTIONALCOLUMN=@\n\t            <TD WIDTH=5%><a href="javascript:Refresh(\'RATE\');"><B><FONT COLOR=YELLOW>Rate</FONT></b></a></TD>\n\t            <TD WIDTH=5%><a href="javascript:Refresh(\'LIVE\');"><B><FONT COLOR=YELLOW>State</FONT></b></a></TD>\n\t            <TD WIDTH=20%><a href="javascript:Refresh(\'MASK\');"><B><FONT COLOR=YELLOW>MOB Mask</FONT></b></a></TD>\n\t        @else@\n\t            <TD COLSPAN=3 WIDTH=30%><a href="javascript:Refresh(\'@RequestParameter?OPTIONALCOLUMN@\');"><B><I><FONT COLOR=YELLOW>@RequestParameter?OPTIONALCOLUMN@</FONT></I></b></a></TD>\n            @endif@\n            </TR>\n            @CatalogItemNext?RESET@\n            @loop@\n            @CatalogItemNext?ALL@\n                <TR>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_USAGE@</B></FONT></a></TD>\n                <TD><a href="javascript:CatalogItem(\'@RequestParameter?ITEM@\',\'\')"><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_NAME@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_LEVEL@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_CLASS@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_VALUE@</B></FONT></a></TD>\n                <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_AREA@</B></FONT></a></TD>\n\t            @if?CheckReqParm?OPTIONALCOLUMN=@\n\t                @if?CheckReqParm?CATALOG_ITEM_RATE=@\n\t                    <TD COLSPAN=3><FONT COLOR=WHITE>N/A</FONT></a></TD>\n\t                @else@\n\t                    <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_RATE@</B></FONT></a></TD>\n\t                    <TD><FONT COLOR=WHITE><B>@if?RequestParameter?CATALOG_ITEM_LIVE@Live@else@Dead@endif@</B></FONT></a></TD>\n\t                    <TD><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_MASK@</B></FONT></a></TD>\n\t                @endif@\n\t            @else@\n                    <TD COLSPAN=3><FONT COLOR=WHITE><B>@RequestParameter?CATALOG_ITEM_@@RequestParameter?OPTIONALCOLUMN@@ @</B></FONT></a></TD>\n\t            @endif@\n                </TR>\n            @back@\n            <TR>\n            <TD COLSPAN=7><a href="javascript:NewCatalogItem(\'NEWCATA-\'+document.RESOURCES.NEWOBJECT.value,document.RESOURCES.NEWOBJECT.value)"><FONT COLOR=WHITE><B>Create New:</a> <INPUT TYPE=TEXT NAME=NEWOBJECT SIZE=70></B></FONT></TD>\n            </TR>\n            </TABLE>\n        </TD></TR>\n    @endif@\n    </TABLE>\n    <P>\n    <TABLE WIDTH=100% BORDER=0>\n    <TR>\n    <TD WIDTH=33% ALIGN=LEFT>\n    <FONT COLOR=WHITE SIZE=-1>?+Column?: </FONT><INPUT TYPE=TEXT SIZE=10 NAME=OPTIONALCOLUMN VALUE="@RequestParameter?OPTIONALCOLUMN@">\n    </TD>\n    <TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=REFRESH VALUE="Refresh" ONCLICK="Refresh(document.RESOURCES.SORTBY.value);"></TD>\n    <TD WIDTH=33% ALIGN=CENTER>\n    </TD>\n    </TR>\n    </TABLE>\n    <CENTER>\n    </CENTER>\n</FORM>\n</BODY>\n</HTML>\n@endif@\n@endif@\n', 'message': '\n\ngit-svn-id: svn://192.168.1.10/public/CoffeeMud@7048 0d6f1817-ed0e-0410-87c9-987e46238f29\n', 'author_name': 'bozimmerman', 'lang': 'cmvp'}