/**
* contact_setup.phtml
-*
-* Config setting for the admin contact application
-*
+*
+* Config setting for the admin contact application
+*
* PHP versions 4 and 5
-*
+*
* @category Toolkit
* @package Contacts
* @author Steve Sutton <steve@gaslightmedia.com>
* @link <>
*/
extract($_REQUEST);
-// The Contact Type array is now is one location and is used by the
+// The Contact Type array is now is one location and is used by the
// Toolkit_Contacts_Admin_EditContact class
$conf = new Config;
$contactRoot =& $conf->parseConfig(
if (!defined("HTML_EMAIL")) {
/**
- * HTML_EMAIL = ON or OFF
+ * HTML_EMAIL = ON or OFF
*/
define("HTML_EMAIL", "ON");
}
/**
* NEWSLETTER 1 or true will allow newsletters
*/
- define("NEWSLETTER", 1); //bool- does the contact database mail out a newsletter?
+ define("NEWSLETTER", 1); //bool- does the contact database mail out a newsletter?
}
if (!function_exists("template_read")) {
/**
* Short description for function
- *
+ *
* Long description (if any) ...
- *
+ *
* @param unknown $template Parameter description (if any) ...
- *
+ *
* @return string Return description (if any) ...
*/
function template_read($template)
* insert an array into another array after position.
* You can specify an associative array key or index key
* to dictact the positioning of the new array
-*
+*
* @param array &$array array to be used
* @param unknown $position position to add array
* @param unknown $insert_array array to be inserted
-*
-* @return void
+*
+* @return void
*/
function array_insert(&$array, $position, $insert_array)
{
/**
* Short description for function
- *
+ *
* Long description (if any) ...
- *
+ *
* @param unknown $template Parameter description (if any) ...
* @param unknown $data Parameter description (if any) ...
- *
+ *
* @return unknown Return description (if any) ...
*/
function explode_template($template, $data)
/**
* Short description for function
- *
+ *
* Long description (if any) ...
- *
+ *
* @param unknown $template Parameter description (if any) ...
* @param array $fieldarr Parameter description (if any) ...
- *
+ *
* @return unknown Return description (if any) ...
*/
function template_replacement($template, $fieldarr)
/**
* Short description for function
- *
+ *
* Long description (if any) ...
- *
+ *
* @param string $image Parameter description (if any) ...
* @param string $align Parameter description (if any) ...
- *
+ *
* @return string Return description (if any) ...
*/
function add_image($image, $align)
$int_array[$value['id']] = $value['header'];
}
}
-$contactTypesSetup =
+$contactTypesSetup =
$contactRoot->getItem('section', 'contact_types')
->toArray();
$cType = $contactTypesSetup['contact_types'];
/**
* Short description for function
-*
+*
* Long description (if any) ...
-*
+*
* @param string $name Parameter description (if any) ...
* @param string $search_where Parameter description (if any) ...
-*
+*
* @return string Return description (if any) ...
*/
function search_where($name, $search_where)
{
$out = '
<select name="'.$name.'">
- <option value="1" '.( ( !isset( $search_type ) || $search_type == "0" ) ? 'selected' : '' ).'>Anywhere
- <option value="2" '.( ( $search_where == '1' ) ? 'selected' : '' ).'>Begining
+ <option value="1" '.( ( !isset( $search_type ) || $search_type == "0" ) ? 'selected' : '' ).'>Anywhere
+ <option value="2" '.( ( $search_where == '1' ) ? 'selected' : '' ).'>Begining
<option value="3" '.( ( $search_where == '2' ) ? 'selected' : '' ).'>Ending
</select>';
return $out;
/**
* Short description for function
-*
+*
* Long description (if any) ...
-*
+*
* @param string $name Parameter description (if any) ...
* @param string $search_type Parameter description (if any) ...
-*
+*
* @return string Return description (if any) ...
*/
function search_type($name, $search_type)
{
$out = '
<select name="'.$name.'">
- <option value="2" '.( ( !isset( $search_type ) || $search_type == '2' ) ? 'selected' : '' ).'>And
+ <option value="2" '.( ( !isset( $search_type ) || $search_type == '2' ) ? 'selected' : '' ).'>And
<option value="3" '.( ( $search_type == '3' ) ? 'selected' : '' ).'>Or
<option value="4" '.( ( $search_type == '4' ) ? 'selected' : '' ).'>Not
</select>';
/**
* Short description for function
-*
+*
* Long description (if any) ...
-*
+*
* @param string $name Parameter description (if any) ...
* @param string $search_type Parameter description (if any) ...
-*
+*
* @return string Return description (if any) ...
*/
function search_bool($name, $search_type)
{
$out = '
<select name="'.$name.'">
- <option value="n" '.( !isset( $search_type ) ? 'selected' : '' ).'>Don\'t Care
+ <option value="n" '.( !isset( $search_type ) ? 'selected' : '' ).'>Don\'t Care
<option value="1" '.( ( $search_type == '1' ) ? 'selected' : '' ).'>Yes
<option value="0" '.( ( $search_type == '0' ) ? 'selected' : '' ).'>No
</select>';
/**
* Short description for function
-*
+*
* Long description (if any) ...
-*
+*
* @param unknown $field Parameter description (if any) ...
-*
+*
* @return boolean Return description (if any) ...
*/
function interest($field)
* Description for define
*/
define("SEQUENCE", $sequence);
-
+$config = parse_ini_file(BASE .'Toolkit/Contacts/config.ini', true);
+$gender_sel = $config['gender'];
+$handicap_sel = $config['handicap'];
/**
* Description for define
*/
$DB_fields[] = array("name" => "fax", "title" => "Fax", "type" => "text");
$DB_fields[] = array("name" => "email", "title" => "Email", "type" => "text");
$DB_fields[] = array("name" => "mail_ok", "title" => "Mail Ok?", "type" => "radio");
+$DB_fields[] = array("name" => "golfvacation", "title" => "Golf Vacation Planners?", "type" => "radio");
$DB_fields[] = array("name" => "interest", "title" => "Interest", "type" => "interest");
$DB_fields[] = array("name" => "contact_type", "title" => "Contact Type", "type" => "drop", "drop" => $cType);