From: Steve Sutton Date: Mon, 28 Nov 2016 20:20:47 +0000 (-0500) Subject: Updates for php X-Git-Tag: v1.0.0~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d3fc8f75d9258a42a09ac9e98634f3d77814a7c9;p=web%2Fwww.mackinacislandpackage.com.git Updates for php Removing calls to deprecated functions ereg eregi ereg_relpace session_register session_unregister --- diff --git a/admin/Contact/index.phtml b/admin/Contact/index.phtml index 50e776d..9012fb8 100755 --- a/admin/Contact/index.phtml +++ b/admin/Contact/index.phtml @@ -1,23 +1,25 @@ -db_exec($qs); $total = pg_result($res,0,'total'); @@ -29,26 +31,26 @@ html_nav_table($nav,$navWidth); There 1) + elseif($total > 1) { echo "are $total contacts"; } - else + else { echo "is $total contact"; } ?> in the database. - + Search: - + Search records for:
@@ -78,8 +80,8 @@ html_nav_table($nav,$navWidth); if(all == 0) { if(ping == 0) { errors += '-You must select a search type\n'; - } - } + } + } for(var i=0;i<;i++) { if(this.ifields.options[i].selected) { @@ -92,29 +94,29 @@ html_nav_table($nav,$navWidth); this.rfvalue.value += ':' + this.return_fields.options[i].value; } } - + for(var i=0;i<1;i++) { if(this.dates.options[i].selected) { this.rdvalue.value += ':' + this.dates.options[i].value; } } - + if(all == 0) { if(this.fvalue.value == '') { errors += '-You must select at least one field to search in\n'; } } - + if(this.rfvalue.value == '') { errors += '-You must select at least one field for output\n'; } - + if(all == 1) { if(errors == '') { return(true); } } - + if(errors == '') { return(true); } @@ -124,7 +126,7 @@ html_nav_table($nav,$navWidth); msg += 'the following and resubmit\n\n'; msg += errors + '\n\n'; msg += '_______________________________________\n\n'; - + alert(msg); return(false); } @@ -188,8 +190,8 @@ html_nav_table($nav,$navWidth); ?>
Search Type:
@@ -213,7 +215,7 @@ html_nav_table($nav,$navWidth); $res = db_auto_get_data($qs); if(is_array($res)) { - foreach($res as $i=>$data) + foreach($res as $i=>$data) { ?>