From: Steve Sutton Date: Mon, 28 Nov 2016 21:01:44 +0000 (-0500) Subject: Update for php X-Git-Tag: v1.0.0~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6882d697aa6b81ffe22fc668f0f1baa2f218de39;p=web%2Fwww.mackinacislandpackage.com.git Update for php Replacing =& new calls with = new --- diff --git a/admin/Contact/contact_setup.inc b/admin/Contact/contact_setup.inc index 6da7dcd..3c4539b 100644 --- a/admin/Contact/contact_setup.inc +++ b/admin/Contact/contact_setup.inc @@ -1,16 +1,16 @@ $value) - { - $template = str_replace( "", $value, $template ); - } - } + { + function template_replacement($template,$fieldarr) + { + if(is_array($fieldarr)) + { + foreach($fieldarr as $key=>$value) + { + $template = str_replace( "", $value, $template ); + } + } - return $template; - } - } + return $template; + } + } if(!function_exists("add_image")) - { - function add_image($image,$align) - { - if($image != "") - { - return('
'); - } - } - } + { + function add_image($image,$align) + { + if($image != "") + { + return('
'); + } + } + } // Navigation array $nav = array( - "Report Builder" => "index.phtml", - "Add Contact" => "edit_contact.phtml", - "List Contacts" => "list_contact.phtml", - "Contact Inquiry Fields" => "contact_inquiry.phtml", - "HTML Emails" => "emails.php", - "Saved Reports" => "list_query.phtml", - ); + "Report Builder" => "index.phtml", + "Add Contact" => "edit_contact.phtml", + "List Contacts" => "list_contact.phtml", + "Contact Inquiry Fields" => "contact_inquiry.phtml", + "HTML Emails" => "emails.php", + "Saved Reports" => "list_query.phtml", + ); $navWidth = 7; $query = "select * from contact_inq order by pos;"; $cData = $DB->db_auto_get_data($query); if( is_array( $cData ) ) { - foreach( $cData as $key => $value ) - { - $int_array[$value['id']] = $value['header']; - } + foreach( $cData as $key => $value ) + { + $int_array[$value['id']] = $value['header']; + } } function search_where( $name, $search_where ) { - $out = ' - +