<?php
	/*
	** File: add_attribute
	** Description: form for creating an attribute
	** Version: $Revision: 1.9 $
	** Created: 04/21/1999
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: leon $
	** Last Revised: $Date: 1999/12/07 21:45:04 $
	** Log : $Log: add_attribute,v $
	** Log : Revision 1.9  1999/12/07 21:45:04  leon
	** Log : All forms should be using StartForm now...
	** Log :
	** Log : Revision 1.8  1999/10/12 23:14:45  leon
	** Log : Moved localization constants into 'english' module.  Added constant to
	** Log : control whether unregistered shoppers may checkout.
	** Log :
	** Log : Revision 1.7  1999/10/12 00:39:05  chris
	** Log : Moving text into constants in preparation of localization support.
	** Log :
	** Log : Revision 1.6  1999/08/18 22:32:10  leon
	** Log : Returning opening PHP tag to XML-friendly tag
	** Log :
	** Log : Revision 1.5  1999/07/28 19:27:28  leon
	** Log : Mass update based on code donation from a live project
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/

	/* Make sure the user has admin rights. */
	if( !$UserInfo["Permission"]["Administrate"] )
	{
		print(L_ADDATTRIBUTE_DENIED . "<BR>\n");
	}
	else
	{
		print(StartForm("admin_attribute", 'post', 'ADD_ATTRIBUTE', FALSE));

		print(L_ADDATTRIBUTE_NAME);
		print("<INPUT TYPE=\"text\" NAME=\"inputName\" SIZE=\"32\">");
		print("<BR>\n");

		print(L_ADDATTRIBUTE_GRAPHIC);
		print("<INPUT TYPE=\"text\" NAME=\"inputGraphic\" SIZE=\"32\">");
		print("<BR>\n");

		print(L_ADDATTRIBUTE_DISPLAYPRECEDENCE);
		print("<INPUT TYPE=\"text\" NAME=\"inputDisplayPrecedence\" SIZE=\"2\">");
		print("<BR>\n");

		print("<INPUT TYPE=\"submit\" VALUE=\"" . L_ADDATTRIBUTE_ADDATTRIBUTE . "\">\n");
		print("</FORM>\n");
	}

?>
