All pastes #382401 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-05 16:33 UTC
rendered paste body
$example_add_client = array (

	"LDAP" => new sw_LDAP(),

	"CLIENT" => new sw_Client,

	"CLIENT_LOAD" => "entornodigital",

	// Declare if the page is cacheable

	"CACHE" => FALSE,

	// Set the header file to load, and any Java Script includes

        "HEADER" => array ("TEMPLATE_FILE" => "page_header",
			   "JAVASCRIPT" => array ("MM_images",
				   		  "mousexy",
						  "color_box_change",
						  "AJS",
						  "AJS_fx",
						  "greybox",
						  "calendar1"
						 ),
			  ),

	// Create the structure of the tabs menu

	"TABS" => array (
	        "Search" => array ("Google" => "http://www.google.com/",
				   "Yahoo" => "http://www.yahoo.com/",
				   "Lycos" => "http://www.lycos.com/"),

       		"Linux" => array ("SubVS" => "http://www.subvs.co.uk/",
				  "Ubuntu" => "http://www.ubuntu.com/",
				  "SUSE/Novell" => "http://www.suse.com/",
				  "Linux" => "http://www.linux.org",
				  "Kernel" => "http://www.kernel.org/",
				  "SlackWare" => "http://www.slackware.org",
				  "DistroWatch" => "http://www.distrowatch.org"),

        	"Hacking" => array ("Milw0rm" => "http://www.milw0rm.com/",
				    "Hackers Choice" => "http://www.thc.org/",
				    "Asta La Vista" => "http://www.astalavista.com/"),

        	"General" => array ("Entorno" => "http://www.entorno.com/",
				    "The Register" => "http://www.theregister.co.uk/",
				    "BBC News" => "http://news.bbc.co.uk/"),

		"Hello" => array ("Miles" => "http://www.milesbarry.com/",
				  "Anything" => "http://www.anything.com/"),
	),

	// Define the centre section of the page

        "CENTRE" => array (

			// Load a centre page file

			   "CENTRE_FILE" => "page_centre",

			// Load any sub-elements of the centre page

                           "CENTRE_CONTAINS" => array (
						       "TITLE_BAR" => "title_bar",
                                                       "FORM" => "new_client"
                                                      ),

			// Replace any tags as required

			   "FORM_REPLACE" => array (

					// Company Information Section

					     "COMPANY_INFORMATION" => "COMPANY INFORMATION",
		   			     "TB_COMPANY_NAME" => array (
								        "textBox" => array ("sw_cl_name", "Name", "negro", "cambia_capa('com_inf')", &$example_add_client[CLIENT]->o),
									),
                                             "TB_COMPANY_ADDR" => array (
                                                                        "textBox" => array ("sw_cl_addr", "Address", "negro", "cambia_capa('com_inf')", "Calle Santa Anna"),
                                                                        ),
                                             "TB_COMPANY_CITY" => array (
                                                                        "textBox" => array ("sw_cl_city", "City", "negro", "cambia_capa('com_inf')", "Barcelona"),
                                                                        ),
                                             "TB_COMPANY_POSTCODE" => array (
                                                                        "textBox" => array ("sw_cl_postcode", "Postcode", "negro", "cambia_capa('com_inf')", "08290"),
                                                                        ),
                                             "TB_COMPANY_COUNTRY" => array (
                                                                        "countryList" => array (""),
                                                                        ),
                                             "TB_COMPANY_TELEPHONE" => array (
                                                                        "textBox" => array ("sw_cl_telephone", "Telephone", "negro", "cambia_capa('com_inf')", "")
                                                                        ),
                                             "TB_COMPANY_FAX" => array (
                                                                        "textBox" => array ("sw_cl_fax", "Fax", "negro", "cambia_capa('com_inf')",""),
                                                                        ),
                                             "TB_COMPANY_EMAIL" => array (
                                                                        "textBox" => array ("sw_cl_email", "Email", "negro", "cambia_capa('com_inf')",""),
                                                                        ),
                                             "TB_COMPANY_REFERENCE" => array (
                                                                        "textBox" => array ("sw_cl_reference", "Reference", "negro", "cambia_capa('com_inf')",""),
                                                                        ),

					// Service Settings Section

					     "TB_SERVICE_FROM_DATE" => array (
									"calendarBox" => array ("sw_cl_sfrom", "Valid From", "negro", "ser_set"),
									),
                                             "TB_SERVICE_UNTIL_DATE" => array (
                                                                        "calendarBox" => array ("sw_cl_suntil", "Valid Until", "negro", "ser_set"),
                                                                        ),

                                             ),

	),

	// Load the footer

        "FOOTER" => "page_footer"

);