+++ /dev/null
-<?php
-/*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM. |
- | |
- | CiviCRM is free software; you can copy, modify, and distribute it |
- | under the terms of the GNU Affero General Public License |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
- | |
- | CiviCRM is distributed in the hope that it will be useful, but |
- | WITHOUT ANY WARRANTY; without even the implied warranty of |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
- | See the GNU Affero General Public License for more details. |
- | |
- | You should have received a copy of the GNU Affero General Public |
- | License and the CiviCRM Licensing Exception along |
- | with this program; if not, contact CiviCRM LLC |
- | at info[AT]civicrm[DOT]org. If you have questions about the |
- | GNU Affero General Public License or the licensing of CiviCRM, |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing |
- +--------------------------------------------------------------------+
-*/
-
-/**
- *
- * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
- */
-
-/**
- * This class generates form components generic to all the contact types.
- *
- * It delegates the work to lower level subclasses and integrates the changes
- * back in. It also uses a lot of functionality with the CRM API's, so any change
- * made here could potentially affect the API etc. Be careful, be aware, use unit tests.
- *
- */
-class CRM_Contact_Form_Test extends CRM_Core_Form {
- function preProcess() {}
-
- /**
- * This function sets the default values for the form. Note that in edit/view mode
- * the default values are retrieved from the database
- *
- * @access public
- *
- * @return void
- */
- function setDefaultValues() {
- $defaults = array();
- $params = array();
- }
-
- /**
- * Function to actually build the form
- *
- * @return void
- * @access public
- */
- public function buildQuickForm() {
-
- $this->addElement('text', "state", ts('State / Province'), 'onkeyup="getState(this,event, false);" onblur="getState(this,event, false);" autocomplete="off"');
-
- $this->addElement('text', "state_id", ts('State / Province Id'));
- //$this->addElement('text', "country", ts('Country'));
- // $this->addElement('text', "country_id", ts('Country Id'));
- $this->addElement('select', "country", ts('Country'), array('' => ts('- select -')), 'onblur="getState(this,event, true);"');
- }
-
- /**
- * Form submission of new/edit contact is processed.
- *
- * @access public
- *
- * @return void
- */
- public function postProcess() {}
-}
-
+++ /dev/null
-{*
- +--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM. |
- | |
- | CiviCRM is free software; you can copy, modify, and distribute it |
- | under the terms of the GNU Affero General Public License |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
- | |
- | CiviCRM is distributed in the hope that it will be useful, but |
- | WITHOUT ANY WARRANTY; without even the implied warranty of |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
- | See the GNU Affero General Public License for more details. |
- | |
- | You should have received a copy of the GNU Affero General Public |
- | License and the CiviCRM Licensing Exception along |
- | with this program; if not, contact CiviCRM LLC |
- | at info[AT]civicrm[DOT]org. If you have questions about the |
- | GNU Affero General Public License or the licensing of CiviCRM, |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing |
- +--------------------------------------------------------------------+
-*}
-{* test template for testing ajax *}
-<script type="text/javascript" src="{crmURL p='civicrm/contact/StateCountryServer' q="set=1&path=civicrm/contact/StateCountryServer"}"></script>
-<script type="text/javascript" src="{$config->resourceBase}js/Test.js"></script>
-
-<form id="autoCompleteForm" name="autoCompleteForm">
-
-{$form.state.label} {$form.state.html}<br />
-{$form.state_id.label} {$form.state_id.html}<br />
-{$form.country.label} {$form.country.html}<br />
-<!--{$form.country_id.label} {$form.country_id.html}<br /> -->
-<!--
-Enter a State: <input type="text" id="state" name="state" value="" onkeyup="getWord(this,event);" autocomplete="off" onblur="getWord(this,event);"-->
-<!--input type="text" id="state" name="state" value="" onkeyup="getWord(this,event);" autocomplete="off"-->
-
-<!-- Note the autocomplete="off": without it you get errors like;
-"Permission denied to get property XULElement.selectedIndex..."
--->
-<!--
-state id: <input type="text" id="state_id" name="state_id" value="" READONLY>
-<br />
-Country :<input type="text" id="country" name ="country" READONLY>
-country id: <input type="text" name="country_id" id="country_id" value="" READONLY>
--->