Location: PHPKode > projects > eqEpic > eqEpic0.7.8/lists/chklist_rngedit.php
<?php 
session_start();
ob_start();
?>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php include ("../ewconfig.php") ?>
<?php include ("../db.php") ?>
<?php include ("chklist_rnginfo.php") ?>
<?php include ("../advsecu.php") ?>
<?php include ("../phpmkrfn.php") ?>
<?php
if (!IsLoggedIn() && (@$_COOKIE[ewCookieAutoLogin] == "autologin" && @$_COOKIE[ewCookiePassword] <> "")) {
	ob_end_clean();
	header("Location: ../login.php");
	exit();
}
LoadUserLevel();
$ewCurSec = (IsLoggedIn())? CurrentUserLevelPriv("chklist_rng") : GetAnonymousPriv("chklist_rng");	
if (($ewCurSec & ewAllowEdit) <> ewAllowEdit) {
	ob_end_clean();
	header("Location: ../MyProfile.php");
	exit();
}
?>
<?php

// Load key from QueryString
$x_rng_name = @$_GET["rng_name"];

// Get action
$sAction = @$_POST["a_edit"];
if ($sAction == "") {
	$sAction = "I";	// Display record	
} else {

	// Get fields from form
	$x_rng_name = @$_POST["x_rng_name"];
	$x_step001 = @$_POST["x_step001"];
	$x_step002 = @$_POST["x_step002"];
	$x_step003 = @$_POST["x_step003"];
	$x_step004 = @$_POST["x_step004"];
	$x_step005 = @$_POST["x_step005"];
	$x_step006 = @$_POST["x_step006"];
	$x_step007 = @$_POST["x_step007"];
	$x_step008 = @$_POST["x_step008"];
	$x_step009 = @$_POST["x_step009"];
	$x_step010 = @$_POST["x_step010"];
	$x_step011 = @$_POST["x_step011"];
	$x_step012 = @$_POST["x_step012"];
	$x_step013 = @$_POST["x_step013"];
	$x_step014 = @$_POST["x_step014"];
	$x_step015 = @$_POST["x_step015"];
	$x_step016 = @$_POST["x_step016"];
	$x_step017 = @$_POST["x_step017"];
	$x_step018 = @$_POST["x_step018"];
	$x_step019 = @$_POST["x_step019"];
	$x_step020 = @$_POST["x_step020"];
	$x_step021 = @$_POST["x_step021"];
	$x_step022 = @$_POST["x_step022"];
	$x_step023 = @$_POST["x_step023"];
	$x_step024 = @$_POST["x_step024"];
	$x_step025 = @$_POST["x_step025"];
	$x_step026 = @$_POST["x_step026"];
	$x_step027 = @$_POST["x_step027"];
	$x_step028 = @$_POST["x_step028"];
	$x_step029 = @$_POST["x_step029"];
	$x_step030 = @$_POST["x_step030"];
	$x_step031 = @$_POST["x_step031"];
	$x_step032 = @$_POST["x_step032"];
	$x_step033 = @$_POST["x_step033"];
	$x_step034 = @$_POST["x_step034"];
	$x_step035 = @$_POST["x_step035"];
	$x_step036 = @$_POST["x_step036"];
	$x_step037 = @$_POST["x_step037"];
	$x_step038 = @$_POST["x_step038"];
	$x_step039 = @$_POST["x_step039"];
	$x_step040 = @$_POST["x_step040"];
	$x_step041 = @$_POST["x_step041"];
	$x_step042 = @$_POST["x_step042"];
	$x_step043 = @$_POST["x_step043"];
	$x_step044 = @$_POST["x_step044"];
	$x_step045 = @$_POST["x_step045"];
	$x_step046 = @$_POST["x_step046"];
	$x_step047 = @$_POST["x_step047"];
	$x_step048 = @$_POST["x_step048"];
	$x_step049 = @$_POST["x_step049"];
	$x_step050 = @$_POST["x_step050"];
	$x_step051 = @$_POST["x_step051"];
	$x_step052 = @$_POST["x_step052"];
	$x_step053 = @$_POST["x_step053"];
	$x_step054 = @$_POST["x_step054"];
	$x_step055 = @$_POST["x_step055"];
	$x_step056 = @$_POST["x_step056"];
	$x_step057 = @$_POST["x_step057"];
	$x_step058 = @$_POST["x_step058"];
	$x_step059 = @$_POST["x_step059"];
	$x_step060 = @$_POST["x_step060"];
	$x_step061 = @$_POST["x_step061"];
	$x_step062 = @$_POST["x_step062"];
	$x_step063 = @$_POST["x_step063"];
	$x_step064 = @$_POST["x_step064"];
	$x_step065 = @$_POST["x_step065"];
	$x_step066 = @$_POST["x_step066"];
	$x_step067 = @$_POST["x_step067"];
	$x_step068 = @$_POST["x_step068"];
	$x_step069 = @$_POST["x_step069"];
	$x_step070 = @$_POST["x_step070"];
	$x_step071 = @$_POST["x_step071"];
	$x_step072 = @$_POST["x_step072"];
	$x_step073 = @$_POST["x_step073"];
	$x_step074 = @$_POST["x_step074"];
	$x_step075 = @$_POST["x_step075"];
	$x_step076 = @$_POST["x_step076"];
	$x_step077 = @$_POST["x_step077"];
	$x_step078 = @$_POST["x_step078"];
	$x_step079 = @$_POST["x_step079"];
	$x_step080 = @$_POST["x_step080"];
	$x_step081 = @$_POST["x_step081"];
	$x_step082 = @$_POST["x_step082"];
	$x_step083 = @$_POST["x_step083"];
	$x_step084 = @$_POST["x_step084"];
	$x_step085 = @$_POST["x_step085"];
	$x_step086 = @$_POST["x_step086"];
	$x_step087 = @$_POST["x_step087"];
	$x_step088 = @$_POST["x_step088"];
	$x_step089 = @$_POST["x_step089"];
	$x_step090 = @$_POST["x_step090"];
	$x_step091 = @$_POST["x_step091"];
	$x_step092 = @$_POST["x_step092"];
	$x_step093 = @$_POST["x_step093"];
	$x_step094 = @$_POST["x_step094"];
	$x_step095 = @$_POST["x_step095"];
	$x_step096 = @$_POST["x_step096"];
	$x_step097 = @$_POST["x_step097"];
	$x_step098 = @$_POST["x_step098"];
	$x_step099 = @$_POST["x_step099"];
	$x_step100 = @$_POST["x_step100"];
	$x_step101 = @$_POST["x_step101"];
	$x_step102 = @$_POST["x_step102"];
	$x_step103 = @$_POST["x_step103"];
	$x_step104 = @$_POST["x_step104"];
	$x_step105 = @$_POST["x_step105"];
	$x_step106 = @$_POST["x_step106"];
	$x_step107 = @$_POST["x_step107"];
	$x_step108 = @$_POST["x_step108"];
	$x_step109 = @$_POST["x_step109"];
	$x_step110 = @$_POST["x_step110"];
	$x_step111 = @$_POST["x_step111"];
	$x_step112 = @$_POST["x_step112"];
	$x_step113 = @$_POST["x_step113"];
	$x_step114 = @$_POST["x_step114"];
	$x_step115 = @$_POST["x_step115"];
	$x_step116 = @$_POST["x_step116"];
	$x_step117 = @$_POST["x_step117"];
	$x_step118 = @$_POST["x_step118"];
	$x_step119 = @$_POST["x_step119"];
	$x_step120 = @$_POST["x_step120"];
	$x_step121 = @$_POST["x_step121"];
	$x_step122 = @$_POST["x_step122"];
	$x_step123 = @$_POST["x_step123"];
	$x_step124 = @$_POST["x_step124"];
	$x_step125 = @$_POST["x_step125"];
	$x_step126 = @$_POST["x_step126"];
	$x_step127 = @$_POST["x_step127"];
}
if (($x_rng_name == "") || (is_null($x_rng_name))) {
	ob_end_clean();
	header("Location: ../MyProfile.php");
	exit();
}
$conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT);
switch ($sAction) {
	case "I": // Display record
		if (!LoadData($conn)) { // Load record
			$_SESSION[ewSessionMessage] = "No records found";
			phpmkr_db_close($conn);
			ob_end_clean();
			header("Location: ../MyProfile.php");
			exit();
		}
		break;
	case "U": // Update
		if (EditData($conn)) { // Update record
			$_SESSION[ewSessionMessage] = "Ranger Epic Checklist Updated";
			phpmkr_db_close($conn);
			ob_end_clean();
			header("Location: ../MyProfile.php");
			exit();
		}
		break;
}
?>
<?php include ("../sources/header_lists.php") ?>
<script type="text/javascript">
<!--
EW_LookupFn = "../ewlookup.php"; // ewlookup file name
EW_AddOptFn = "../ewaddopt.php"; // ewaddopt.php file name

//-->
</script>
<script type="text/javascript" src="../ewp.js"></script>
<script type="text/javascript">
$(document).ready(function(){

        function visibleCheck() {
                var $this = $(this);
                var ul = $this.siblings("ul");
                if ($this.is(":checked"))
                        ul.hide("normal");
                else
                        ul.show("normal");
        }
        $(":checkbox")
                .click(visibleCheck)
                .each(visibleCheck);
});
</script>
<p>&nbsp;</p>
<form name="fchklist_rngadd" id="fchklist_rngadd" action="chklist_rngedit.php" method="post">
<p>
<input type="hidden" name="a_edit" value="U">
<?php
if (@$_SESSION[ewSessionMessage] <> "") {
?>
<p><div class="ewmsg"><?php echo $_SESSION[ewSessionMessage]; ?></div></p>
<?php
	$_SESSION[ewSessionMessage] = ""; // Clear message
}
?>
<span class="chktitle">Ranger Epic Checklist</span>
<input type="hidden" id="x_rng_name" name="x_rng_name" value="<?php echo @$x_rng_name; ?>" />
<ul>
	<li><input type="checkbox" name="x_step001" value="Y"<?php if ($x_step001 == "Y") { ?> checked<?php } ?> /> Pre-Quest 1.5 (Unsolved)
		<ul>
			<li><input type="checkbox" name="x_step002" value="Y"<?php if ($x_step002 == "Y") { ?> checked<?php } ?> />
			Part 1
				<ul>
					<li><input type="checkbox" name="x_step003" value="Y"<?php if ($x_step003 == "Y") { ?> checked<?php } ?> />
					Talk to Targen Stonefall (+1390, -150 Second floor Nedaria's Landing)
					</li>
					<li><input type="checkbox" name="x_step004" value="Y"<?php if ($x_step004 == "Y") { ?> checked<?php } ?> />
					Forage a Blasted Stone in (The Bloodfields)
					</li>
					<li><input type="checkbox" name="x_step005" value="Y"<?php if ($x_step005 == "Y") { ?> checked<?php } ?> />
					Give a Blasted Stone to Targen
						<ul>
							<li><input type="checkbox" name="x_step006" value="Y"<?php if ($x_step006 == "Y") { ?> checked<?php } ?> />
							Receive a Washed Blasted Stone
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step007" value="Y"<?php if ($x_step007 == "Y") { ?> checked<?php } ?> />
					Talk more to Targen Stonefall
					</li>
					<li><input type="checkbox" name="x_step008" value="Y"<?php if ($x_step008 == "Y") { ?> checked<?php } ?> />
					Receive Targen's Emulsion and Sample Cloth (2 Slot Container)
					</li>
					<li><input type="checkbox" name="x_step009" value="Y"<?php if ($x_step009 == "Y") { ?> checked<?php } ?> />
					Kill Stone Collector (+110, +420 Ruins of Old Paineel)
						<ul>
							<li><input type="checkbox" name="x_step010" value="Y"<?php if ($x_step010 == "Y") { ?> checked<?php } ?> />
							Loot a Dusty Stone
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step011" value="Y"<?php if ($x_step011 == "Y") { ?> checked<?php } ?> />
					Combine in the Sample Cloth: Targen's Emulsion + Dusty Stone
						<ul>
							<li><input type="checkbox" name="x_step012" value="Y"<?php if ($x_step012 == "Y") { ?> checked<?php } ?> />
							Receive Rock of Odus
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step013" value="Y"<?php if ($x_step013 == "Y") { ?> checked<?php } ?> />
					Give Rock of Odus to Targen (Nedaria's Landing)
						<ul>
							<li><input type="checkbox" name="x_step014" value="Y"<?php if ($x_step014 == "Y") { ?> checked<?php } ?> />
							Receive a Polished Blasted Stone
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step015" value="Y"<?php if ($x_step015 == "Y") { ?> checked<?php } ?> />
					Talk to Xanuusus (Loc?? North Karana)
					</li>
					<li><input type="checkbox" name="x_step016" value="Y"<?php if ($x_step016 == "Y") { ?> checked<?php } ?> />
					Give the Polished Blasted Stone to Xanuusus
						<ul>
							<li><input type="checkbox" name="x_step017" value="Y"<?php if ($x_step017 == "Y") { ?> checked<?php } ?> />
							Receive Polished Blasted Stone
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step018" value="Y"<?php if ($x_step018 == "Y") { ?> checked<?php } ?> />
					Receive Poem of the Storms
					</li>
					<li><input type="checkbox" name="x_step019" value="Y"<?php if ($x_step019 == "Y") { ?> checked<?php } ?> />
					Rest Unsolved =/
					</li>
				</ul>
			</li>
		</ul>
	</li>
	<li><input type="checkbox" name="x_step020" value="Y"<?php if ($x_step020 == "Y") { ?> checked<?php } ?> /> 1.5
		<ul>
			<li><input type="checkbox" name="x_step021" value="Y"<?php if ($x_step021 == "Y") { ?> checked<?php } ?> />
			Part 1 - Borrowed Medicine Bag
				<ul>
					<li><input type="checkbox" name="x_step022" value="Y"<?php if ($x_step022 == "Y") { ?> checked<?php } ?> />
					Talk to Athele (-3600, -1600 East Karana)
					</li>
					<li><input type="checkbox" name="x_step023" value="Y"<?php if ($x_step023 == "Y") { ?> checked<?php } ?> />
					Forage Sickly Maiden's Hair (Rathe Mountains)
					</li>
					<li><input type="checkbox" name="x_step024" value="Y"<?php if ($x_step024 == "Y") { ?> checked<?php } ?> />
					Give hair to Althele (East Karana)
						<ul>
							<li><input type="checkbox" name="x_step025" value="Y"<?php if ($x_step025 == "Y") { ?> checked<?php } ?> />
							Receive Tuft of Sicky Maiden's Hair
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step026" value="Y"<?php if ($x_step026 == "Y") { ?> checked<?php } ?> />
					Give Tuft to Corun Finisc (Surefall Glade)
					</li>
					<li><input type="checkbox" name="x_step027" value="Y"<?php if ($x_step027 == "Y") { ?> checked<?php } ?> />
					Receive a Medicine bag and 6 vials back
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step028" value="Y"<?php if ($x_step028 == "Y") { ?> checked<?php } ?> />
			Part 2 - Fletching a Go Go
				<ul>
					<li><input type="checkbox" name="x_step029" value="Y"<?php if ($x_step029 == "Y") { ?> checked<?php } ?> />
					Buy a Fletching kit, Smithing hammer and Whittling Knife (Abysmal sea)
					</li>
					<li><input type="checkbox" name="x_step030" value="Y"<?php if ($x_step030 == "Y") { ?> checked<?php } ?> />
					Forage a Fallen Tree branch (Draniks Scar)
					</li>
					<li><input type="checkbox" name="x_step031" value="Y"<?php if ($x_step031 == "Y") { ?> checked<?php } ?> />
					Forage in any OOW zone for 8x 'Golanda Nut (Higher level zones = better forage rates)
					</li>
					<li><input type="checkbox" name="x_step032" value="Y"<?php if ($x_step032 == "Y") { ?> checked<?php } ?> />
					Forage Pine Sap (Jaggedpine Forest or Nedaria's Landing)
					</li>
					<li><input type="checkbox" name="x_step033" value="Y"<?php if ($x_step033 == "Y") { ?> checked<?php } ?> />
					Kill Phase Spiders in Dragon Necropolis
						<ul>
							<li><input type="checkbox" name="x_step034" value="Y"<?php if ($x_step034 == "Y") { ?> checked<?php } ?> />
							Loot 4 Phase Spider Silk
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step035" value="Y"<?php if ($x_step035 == "Y") { ?> checked<?php } ?> />
					Combine in Fletching Kit: Smithy hammer + Golanda Nut
						<ul>
							<li><input type="checkbox" name="x_step036" value="Y"<?php if ($x_step036 == "Y") { ?> checked<?php } ?> />
							Receive Fibrous Rope
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step037" value="Y"<?php if ($x_step037 == "Y") { ?> checked<?php } ?> />
					Combine in Fletching Kit: 8x Fibrous Rope
						<ul>
							<li><input type="checkbox" name="x_step038" value="Y"<?php if ($x_step038 == "Y") { ?> checked<?php } ?> />
							Receive Eight-Loop Lasso
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step039" value="Y"<?php if ($x_step039 == "Y") { ?> checked<?php } ?> />
					Combine in Fletching Kit: 4x Phase Spider Silk + Pine Sap
						<ul>
							<li><input type="checkbox" name="x_step040" value="Y"<?php if ($x_step040 == "Y") { ?> checked<?php } ?> />
							Receive Phase Netting
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step041" value="Y"<?php if ($x_step041 == "Y") { ?> checked<?php } ?> />
					Combine in Fletching Kit: Fallen Tree Branch + Whittling Knife
						<ul>
							<li><input type="checkbox" name="x_step042" value="Y"<?php if ($x_step042 == "Y") { ?> checked<?php } ?> />
							Receive eLong Net Pole
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step043" value="Y"<?php if ($x_step043 == "Y") { ?> checked<?php } ?> />
					Combine in Fletching Kit: Long Net Pole + Phase Netting
						<ul>
							<li><input type="checkbox" name="x_step044" value="Y"<?php if ($x_step044 == "Y") { ?> checked<?php } ?> />
							Receive Large Butterfly Net
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step045" value="Y"<?php if ($x_step045 == "Y") { ?> checked<?php } ?> />
			Part 3 - Six Blood Samples
				<ul>
					<li><input type="checkbox" name="x_step046" value="Y"<?php if ($x_step046 == "Y") { ?> checked<?php } ?> />
					Capture a twitching swordfish (Sirens Grotto)
					</li>
					<li><input type="checkbox" name="x_step047" value="Y"<?php if ($x_step047 == "Y") { ?> checked<?php } ?> />
					Capture a bloated drogan spider (Temple of Droga)
					</li>
					<li><input type="checkbox" name="x_step048" value="Y"<?php if ($x_step048 == "Y") { ?> checked<?php } ?> />
					Capture a leprous chokidai (Chardok B)
					</li>
					<li><input type="checkbox" name="x_step049" value="Y"<?php if ($x_step049 == "Y") { ?> checked<?php } ?> />
					Capture a sickly mosquito (Cazic Thule)
					</li>
					<li><input type="checkbox" name="x_step050" value="Y"<?php if ($x_step050 == "Y") { ?> checked<?php } ?> />
					Combine in Fletching Kit: each captured animal + a magic Vial (Do combine for each captured animal)
						<ul>
							<li><input type="checkbox" name="x_step051" value="Y"<?php if ($x_step051 == "Y") { ?> checked<?php } ?> />
							Receive Blood Sample
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step052" value="Y"<?php if ($x_step052 == "Y") { ?> checked<?php } ?> />
					Kill Neurologic Huntress In Western Wastes
						<ul>
							<li><input type="checkbox" name="x_step053" value="Y"<?php if ($x_step053 == "Y") { ?> checked<?php } ?> />
							Loot Neuralgic Wyvern Blood
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step054" value="Y"<?php if ($x_step054 == "Y") { ?> checked<?php } ?> />
					Kill Asteatotic Highborn in Veksar
						<ul>
							<li><input type="checkbox" name="x_step055" value="Y"<?php if ($x_step055 == "Y") { ?> checked<?php } ?> />
							Loot Asteatotic Veksar Blood
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step056" value="Y"<?php if ($x_step056 == "Y") { ?> checked<?php } ?> />
					Combine in the medicine bag: all 6 bloods
						<ul>
							<li><input type="checkbox" name="x_step057" value="Y"<?php if ($x_step057 == "Y") { ?> checked<?php } ?> />
							Receive Corun's Notes
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step058" value="Y"<?php if ($x_step058 == "Y") { ?> checked<?php } ?> />
			Part 4 - Red Dogwood Seed
				<ul>
					<li><input type="checkbox" name="x_step059" value="Y"<?php if ($x_step059 == "Y") { ?> checked<?php } ?> />
					Talk to Shana Liskia (West Freport)
					</li>
					<li><input type="checkbox" name="x_step060" value="Y"<?php if ($x_step060 == "Y") { ?> checked<?php } ?> />
					Hand the Notes to Shana
						<ul>
							<li><input type="checkbox" name="x_step061" value="Y"<?php if ($x_step061 == "Y") { ?> checked<?php } ?> />
							Recieve Coruns notes-annotated
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step062" value="Y"<?php if ($x_step062 == "Y") { ?> checked<?php } ?> />
					Kill an ancient thought horror (The Deep)
						<ul>
							<li><input type="checkbox" name="x_step063" value="Y"<?php if ($x_step063 == "Y") { ?> checked<?php } ?> />
							Loot Thick Spinal Fluid
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step064" value="Y"<?php if ($x_step064 == "Y") { ?> checked<?php } ?> />
					Give Thick Spinal Fluid and Notes to Shana Liskia (West Freeport)
						<ul>
							<li><input type="checkbox" name="x_step065" value="Y"<?php if ($x_step065 == "Y") { ?> checked<?php } ?> />
							Receive Mind Crystal
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step066" value="Y"<?php if ($x_step066 == "Y") { ?> checked<?php } ?> />
					Talk to Thorlis (East Karana)
						<ul>
							<li><input type="checkbox" name="x_step067" value="Y"<?php if ($x_step067 == "Y") { ?> checked<?php } ?> />
							Say, "you are diseased" (several times) 
								<ul>
									<li><input type="checkbox" name="x_step068" value="Y"<?php if ($x_step068 == "Y") { ?> checked<?php } ?> />
									Receive a Red Crystal and a Violet Crystal
									</li>
								</ul>
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step069" value="Y"<?php if ($x_step069 == "Y") { ?> checked<?php } ?> />
					Give the 2 crystals to Shana Liskia (West Freeport)
						<ul>
							<li><input type="checkbox" name="x_step070" value="Y"<?php if ($x_step070 == "Y") { ?> checked<?php } ?> />
							Receive Letter to Corun
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step071" value="Y"<?php if ($x_step071 == "Y") { ?> checked<?php } ?> />
					Give Letter and Mind Crystal to Corun
						<ul>
							<li><input type="checkbox" name="x_step072" value="Y"<?php if ($x_step072 == "Y") { ?> checked<?php } ?> />
							Receive Red Dogwood Seed
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step073" value="Y"<?php if ($x_step073 == "Y") { ?> checked<?php } ?> />
			Part 5 - The Two Blessings
				<ul>
					<li><input type="checkbox" name="x_step074" value="Y"<?php if ($x_step074 == "Y") { ?> checked<?php } ?> />
					Kill Marshal Histient (The Bloodfields)
					</li>
					<li><input type="checkbox" name="x_step075" value="Y"<?php if ($x_step075 == "Y") { ?> checked<?php } ?> />
					Talk to Grinbik the Fertile
						<ul>
							<li><input type="checkbox" name="x_step076" value="Y"<?php if ($x_step076 == "Y") { ?> checked<?php } ?> />
							Receive Grinbik's Blessing
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step077" value="Y"<?php if ($x_step077 == "Y") { ?> checked<?php } ?> />
					Kill Spiritbinder Trenzar (Natimbi)
					</li>
					<li><input type="checkbox" name="x_step078" value="Y"<?php if ($x_step078 == "Y") { ?> checked<?php } ?> />
					Talk to Senvial
						<ul>
							<li><input type="checkbox" name="x_step079" value="Y"<?php if ($x_step079 == "Y") { ?> checked<?php } ?> />
							Receive Senvial's Blessing
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step080" value="Y"<?php if ($x_step080 == "Y") { ?> checked<?php } ?> />
					Grab Fertile Earth ground spawn (+1380 -960 Jaggedpine Forest)
					</li>
					<li><input type="checkbox" name="x_step081" value="Y"<?php if ($x_step081 == "Y") { ?> checked<?php } ?> />
					Combine in the Fertile Earth: 2 Blessings + Red Dogwood Seed
						<ul>
							<li><input type="checkbox" name="x_step082" value="Y"<?php if ($x_step082 == "Y") { ?> checked<?php } ?> />
							Recevie Heartwood and Dogwood Seed
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step083" value="Y"<?php if ($x_step083 == "Y") { ?> checked<?php } ?> />
					Give the Dogwood Seed to Corun (Surefall Glade)
						<ul>
							<li><input type="checkbox" name="x_step084" value="Y"<?php if ($x_step084 == "Y") { ?> checked<?php } ?> />
							Receive Block of Purest Silver
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step085" value="Y"<?php if ($x_step085 == "Y") { ?> checked<?php } ?> />
			Part 6 - Heartwood Blade
				<ul>
					<li><input type="checkbox" name="x_step086" value="Y"<?php if ($x_step086 == "Y") { ?> checked<?php } ?> />
					Kill Svenril Fireskin (Insta spawn on +1400, -900 The Ruined City of Dranik)
					</li>
					<li><input type="checkbox" name="x_step087" value="Y"<?php if ($x_step087 == "Y") { ?> checked<?php } ?> />
					Talk to Uisima
						<ul>
							<li><input type="checkbox" name="x_step088" value="Y"<?php if ($x_step088 == "Y") { ?> checked<?php } ?> />
							Give Uisuma Heartwood
								<ul>
									<li><input type="checkbox" name="x_step089" value="Y"<?php if ($x_step089 == "Y") { ?> checked<?php } ?> />
									Receive Wind-blessed Heartwood
									</li>
								</ul>
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step090" value="Y"<?php if ($x_step090 == "Y") { ?> checked<?php } ?> />
					Combine in a Fletching kit: Wind-blessed Heartwood + Block of Purest Silver
						<ul>
							<li><input type="checkbox" name="x_step091" value="Y"<?php if ($x_step091 == "Y") { ?> checked<?php } ?> />
							Receive Heartwood Blade (1.5)
							</li>
						</ul>
					</li>
				</ul>
			</li>
		</ul>
	</li>
		<li><input type="checkbox" name="x_step092" value="Y"<?php if ($x_step092 == "Y") { ?> checked<?php } ?> />2.0
		<ul>
			<li><input type="checkbox" name="x_step093" value="Y"<?php if ($x_step093 == "Y") { ?> checked<?php } ?> />
			Part 1 - Spirit Cage
				<ul>
					<li><input type="checkbox" name="x_step094" value="Y"<?php if ($x_step094 == "Y") { ?> checked<?php } ?> />
					Talk to a Wayfarer's Brotherhood Officer (Loc?? Nedaria's Landing)
					</li>
					<li><input type="checkbox" name="x_step095" value="Y"<?php if ($x_step095 == "Y") { ?> checked<?php } ?> />
					Attack Siflu - he will become unaggro'd when low on health(Noble's Causeway)
						<ul>
							<li><input type="checkbox" name="x_step096" value="Y"<?php if ($x_step096 == "Y") { ?> checked<?php } ?> />
							Talk to Siflu
								<ul>
									<li><input type="checkbox" name="x_step097" value="Y"<?php if ($x_step097 == "Y") { ?> checked<?php } ?> />
									Received Heated Loadstone
									</li>
								</ul>
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step098" value="Y"<?php if ($x_step098 == "Y") { ?> checked<?php } ?> />
					Kill a Mangled Muramite Captain (Wall of Slaughter)
						<ul>
							<li><input type="checkbox" name="x_step099" value="Y"<?php if ($x_step099 == "Y") { ?> checked<?php } ?> />
							Loot the Traveler's Journal and Spirit Manacles
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step100" value="Y"<?php if ($x_step100 == "Y") { ?> checked<?php } ?> />
					Hand the Traveler's Journal to the Wayfarers Brotherhood Officer (Nedaria's Landing)
					</li>
					<li><input type="checkbox" name="x_step101" value="Y"<?php if ($x_step101 == "Y") { ?> checked<?php } ?> />
					Kill A Delirious Miner or A Broken Skull Bruiser (Torgiran Mines)
						<ul>
							<li><input type="checkbox" name="x_step102" value="Y"<?php if ($x_step102 == "Y") { ?> checked<?php } ?> />
							Loot a Crooked Cage (6 Slot Container)
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step103" value="Y"<?php if ($x_step103 == "Y") { ?> checked<?php } ?> />
					Kill Mephits (Planes of Fire and Water)
						<ul>
							<li><input type="checkbox" name="x_step104" value="Y"<?php if ($x_step104 == "Y") { ?> checked<?php } ?> />
							Loot A Living Fragment of Fire and A Living Fragment of Water (Rare Drops)
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step105" value="Y"<?php if ($x_step105 == "Y") { ?> checked<?php } ?> />
					Combine inside the Crooked Cage: the two fragments + Earthcaller + Swiftwind + the Heated Loadstone + the Spirit Manacles
						<ul>
							<li><input type="checkbox" name="x_step106" value="Y"<?php if ($x_step106 == "Y") { ?> checked<?php } ?> />
							Receive Spirit Cage (2 Slot containe) and Swiftwind and Earthcaller
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step107" value="Y"<?php if ($x_step107 == "Y") { ?> checked<?php } ?> />
			Part 2 - Elemental Ice Spirit Cage
				<ul>
					<li><input type="checkbox" name="x_step108" value="Y"<?php if ($x_step108 == "Y") { ?> checked<?php } ?> />
					Kill Craftmaster Tieranu - Triggered Spawn (Riftseeker's Sanctum)
						<ul>
							<li><input type="checkbox" name="x_step109" value="Y"<?php if ($x_step109 == "Y") { ?> checked<?php } ?> />
							Receive Ring of Warmth
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step110" value="Y"<?php if ($x_step110 == "Y") { ?> checked<?php } ?> />
					Kill Herrian Warfrost - Triggered spawn (Loc?? Wall of Slaughter)
						<ul>
							<li><input type="checkbox" name="x_step111" value="Y"<?php if ($x_step111 == "Y") { ?> checked<?php } ?> />
							Receive Hoarfrost Wand
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step112" value="Y"<?php if ($x_step112 == "Y") { ?> checked<?php } ?> />
					Combine in Spirit cage: Ring of Warmth + Hoarfrost Wand
						<ul>
							<li><input type="checkbox" name="x_step113" value="Y"<?php if ($x_step113 == "Y") { ?> checked<?php } ?> />
							Receive Elemental Ice Spirit Cage
							</li>
						</ul>
					</li>
				</ul>
			</li>
			<li><input type="checkbox" name="x_step114" value="Y"<?php if ($x_step114 == "Y") { ?> checked<?php } ?> />
			Part 3 - Finale
				<ul>
					<li><input type="checkbox" name="x_step115" value="Y"<?php if ($x_step115 == "Y") { ?> checked<?php } ?> />
					Globe of Discordant Energy - Drops from 4 mobs in complete clearing of Citidel of Anguish
					</li>
					<li><input type="checkbox" name="x_step116" value="Y"<?php if ($x_step116 == "Y") { ?> checked<?php } ?> />
					Must be in Citadel of Anguish for the remaining steps
					</li>
					<li><input type="checkbox" name="x_step117" value="Y"<?php if ($x_step117 == "Y") { ?> checked<?php } ?> />
					Combine in Elemental Ice Spirit Cage: Globe of Discordant Energy
						<ul>
							<li><input type="checkbox" name="x_step118" value="Y"<?php if ($x_step118 == "Y") { ?> checked<?php } ?> />
							Receive Globe of Discordant Energy
							</li>
							<li><input type="checkbox" name="x_step119" value="Y"<?php if ($x_step119 == "Y") { ?> checked<?php } ?> />
							Oshimai, Spirit of the High Air Spawns
							</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step120" value="Y"<?php if ($x_step120 == "Y") { ?> checked<?php } ?> />
					Hand Globe of Discordant Energy + Elemental Ice Spirit Cage + Heartwood Blade (Take off augs) to Oshimai
						<ul>
							<li><input type="checkbox" name="x_step121" value="Y"<?php if ($x_step121 == "Y") { ?> checked<?php } ?> />
							Receive Aurora, the Heartwood Blade (2.0)
							</li>
						</ul>
					</li>
				</ul>
			</li>
		</ul>
	</li>
		<li><input type="checkbox" name="x_step122" value="Y"<?php if ($x_step122 == "Y") { ?> checked<?php } ?> />2.5
		<ul>
			<li><input type="checkbox" name="x_step123" value="Y"<?php if ($x_step123 == "Y") { ?> checked<?php } ?> />
			An Epic Augment (Quest - Dreadspire Keep)
				<ul>
					<li><input type="checkbox" name="x_step124" value="Y"<?php if ($x_step124 == "Y") { ?> checked<?php } ?> />
					Kill ??
						<ul>
							<li><input type="checkbox" name="x_step125" value="Y"<?php if ($x_step125 == "Y") { ?> checked<?php } ?> />
							Loot??</li>
						</ul>
					</li>
					<li><input type="checkbox" name="x_step126" value="Y"<?php if ($x_step126 == "Y") { ?> checked<?php } ?> />
					Turn in ?? to Eric Von Schnelling (Loc?? Zone??)
						<ul>
							<li><input type="checkbox" name="x_step127" value="Y"<?php if ($x_step127 == "Y") { ?> checked<?php } ?> />
							Receive ??</li>
						</ul>
					</li>
				</ul>
			</li>
		</ul>
	</li>
</ul>
<p></p>
<input type="submit" name="btnAction" id="btnAction" value="Save Ranger Checklist" class="button" />
</form>
<?php include ("../footer.php") ?>
<?php
phpmkr_db_close($conn);
?>
<?php

//-------------------------------------------------------------------------------
// Function LoadData
// - Variables setup: field variables

function LoadData($conn)
{
	global $x_rng_name;
	$sFilter = ewSqlKeyWhere;
	$x_rng_name =  (get_magic_quotes_gpc()) ? stripslashes($x_rng_name) : $x_rng_name;
	$sFilter = str_replace("@rng_name", AdjustSql($x_rng_name), $sFilter); // Replace key value
	if ((CurrentUserID() <> "-1") && (CurrentUserID() <> "")) {

	//$sFilter .= " AND " . str_replace("#UserID", AdjustSql(CurrentuserID()), ewSqlUserIDFilter);
	$sFilter .= " AND " . ewSqlUserIDFilter;
	$sFilter = str_replace("#Key", "`rng_name`", $sFilter);
	$sFilter = str_replace("#UserID", AdjustSql(CurrentUserID()), $sFilter);
	}
	$sSql = ewBuildSql(ewSqlSelect, ewSqlWhere, ewSqlGroupBy, ewSqlHaving, ewSqlOrderBy, $sFilter, "");
	$rs = phpmkr_query($sSql,$conn) or die("Failed to execute query at line " . __LINE__ . ": " . phpmkr_error($conn) . '<br>SQL: ' . $sSql);
	if (phpmkr_num_rows($rs) == 0) {
		$bLoadData = false;
	} else {
		$bLoadData = true;
		$row = phpmkr_fetch_array($rs);

		// Get the field contents
		$GLOBALS["x_rng_name"] = $row["rng_name"];
		$GLOBALS["x_step001"] = $row["step001"];
		$GLOBALS["x_step002"] = $row["step002"];
		$GLOBALS["x_step003"] = $row["step003"];
		$GLOBALS["x_step004"] = $row["step004"];
		$GLOBALS["x_step005"] = $row["step005"];
		$GLOBALS["x_step006"] = $row["step006"];
		$GLOBALS["x_step007"] = $row["step007"];
		$GLOBALS["x_step008"] = $row["step008"];
		$GLOBALS["x_step009"] = $row["step009"];
		$GLOBALS["x_step010"] = $row["step010"];
		$GLOBALS["x_step011"] = $row["step011"];
		$GLOBALS["x_step012"] = $row["step012"];
		$GLOBALS["x_step013"] = $row["step013"];
		$GLOBALS["x_step014"] = $row["step014"];
		$GLOBALS["x_step015"] = $row["step015"];
		$GLOBALS["x_step016"] = $row["step016"];
		$GLOBALS["x_step017"] = $row["step017"];
		$GLOBALS["x_step018"] = $row["step018"];
		$GLOBALS["x_step019"] = $row["step019"];
		$GLOBALS["x_step020"] = $row["step020"];
		$GLOBALS["x_step021"] = $row["step021"];
		$GLOBALS["x_step022"] = $row["step022"];
		$GLOBALS["x_step023"] = $row["step023"];
		$GLOBALS["x_step024"] = $row["step024"];
		$GLOBALS["x_step025"] = $row["step025"];
		$GLOBALS["x_step026"] = $row["step026"];
		$GLOBALS["x_step027"] = $row["step027"];
		$GLOBALS["x_step028"] = $row["step028"];
		$GLOBALS["x_step029"] = $row["step029"];
		$GLOBALS["x_step030"] = $row["step030"];
		$GLOBALS["x_step031"] = $row["step031"];
		$GLOBALS["x_step032"] = $row["step032"];
		$GLOBALS["x_step033"] = $row["step033"];
		$GLOBALS["x_step034"] = $row["step034"];
		$GLOBALS["x_step035"] = $row["step035"];
		$GLOBALS["x_step036"] = $row["step036"];
		$GLOBALS["x_step037"] = $row["step037"];
		$GLOBALS["x_step038"] = $row["step038"];
		$GLOBALS["x_step039"] = $row["step039"];
		$GLOBALS["x_step040"] = $row["step040"];
		$GLOBALS["x_step041"] = $row["step041"];
		$GLOBALS["x_step042"] = $row["step042"];
		$GLOBALS["x_step043"] = $row["step043"];
		$GLOBALS["x_step044"] = $row["step044"];
		$GLOBALS["x_step045"] = $row["step045"];
		$GLOBALS["x_step046"] = $row["step046"];
		$GLOBALS["x_step047"] = $row["step047"];
		$GLOBALS["x_step048"] = $row["step048"];
		$GLOBALS["x_step049"] = $row["step049"];
		$GLOBALS["x_step050"] = $row["step050"];
		$GLOBALS["x_step051"] = $row["step051"];
		$GLOBALS["x_step052"] = $row["step052"];
		$GLOBALS["x_step053"] = $row["step053"];
		$GLOBALS["x_step054"] = $row["step054"];
		$GLOBALS["x_step055"] = $row["step055"];
		$GLOBALS["x_step056"] = $row["step056"];
		$GLOBALS["x_step057"] = $row["step057"];
		$GLOBALS["x_step058"] = $row["step058"];
		$GLOBALS["x_step059"] = $row["step059"];
		$GLOBALS["x_step060"] = $row["step060"];
		$GLOBALS["x_step061"] = $row["step061"];
		$GLOBALS["x_step062"] = $row["step062"];
		$GLOBALS["x_step063"] = $row["step063"];
		$GLOBALS["x_step064"] = $row["step064"];
		$GLOBALS["x_step065"] = $row["step065"];
		$GLOBALS["x_step066"] = $row["step066"];
		$GLOBALS["x_step067"] = $row["step067"];
		$GLOBALS["x_step068"] = $row["step068"];
		$GLOBALS["x_step069"] = $row["step069"];
		$GLOBALS["x_step070"] = $row["step070"];
		$GLOBALS["x_step071"] = $row["step071"];
		$GLOBALS["x_step072"] = $row["step072"];
		$GLOBALS["x_step073"] = $row["step073"];
		$GLOBALS["x_step074"] = $row["step074"];
		$GLOBALS["x_step075"] = $row["step075"];
		$GLOBALS["x_step076"] = $row["step076"];
		$GLOBALS["x_step077"] = $row["step077"];
		$GLOBALS["x_step078"] = $row["step078"];
		$GLOBALS["x_step079"] = $row["step079"];
		$GLOBALS["x_step080"] = $row["step080"];
		$GLOBALS["x_step081"] = $row["step081"];
		$GLOBALS["x_step082"] = $row["step082"];
		$GLOBALS["x_step083"] = $row["step083"];
		$GLOBALS["x_step084"] = $row["step084"];
		$GLOBALS["x_step085"] = $row["step085"];
		$GLOBALS["x_step086"] = $row["step086"];
		$GLOBALS["x_step087"] = $row["step087"];
		$GLOBALS["x_step088"] = $row["step088"];
		$GLOBALS["x_step089"] = $row["step089"];
		$GLOBALS["x_step090"] = $row["step090"];
		$GLOBALS["x_step091"] = $row["step091"];
		$GLOBALS["x_step092"] = $row["step092"];
		$GLOBALS["x_step093"] = $row["step093"];
		$GLOBALS["x_step094"] = $row["step094"];
		$GLOBALS["x_step095"] = $row["step095"];
		$GLOBALS["x_step096"] = $row["step096"];
		$GLOBALS["x_step097"] = $row["step097"];
		$GLOBALS["x_step098"] = $row["step098"];
		$GLOBALS["x_step099"] = $row["step099"];
		$GLOBALS["x_step100"] = $row["step100"];
		$GLOBALS["x_step101"] = $row["step101"];
		$GLOBALS["x_step102"] = $row["step102"];
		$GLOBALS["x_step103"] = $row["step103"];
		$GLOBALS["x_step104"] = $row["step104"];
		$GLOBALS["x_step105"] = $row["step105"];
		$GLOBALS["x_step106"] = $row["step106"];
		$GLOBALS["x_step107"] = $row["step107"];
		$GLOBALS["x_step108"] = $row["step108"];
		$GLOBALS["x_step109"] = $row["step109"];
		$GLOBALS["x_step110"] = $row["step110"];
		$GLOBALS["x_step111"] = $row["step111"];
		$GLOBALS["x_step112"] = $row["step112"];
		$GLOBALS["x_step113"] = $row["step113"];
		$GLOBALS["x_step114"] = $row["step114"];
		$GLOBALS["x_step115"] = $row["step115"];
		$GLOBALS["x_step116"] = $row["step116"];
		$GLOBALS["x_step117"] = $row["step117"];
		$GLOBALS["x_step118"] = $row["step118"];
		$GLOBALS["x_step119"] = $row["step119"];
		$GLOBALS["x_step120"] = $row["step120"];
		$GLOBALS["x_step121"] = $row["step121"];
		$GLOBALS["x_step122"] = $row["step122"];
		$GLOBALS["x_step123"] = $row["step123"];
		$GLOBALS["x_step124"] = $row["step124"];
		$GLOBALS["x_step125"] = $row["step125"];
		$GLOBALS["x_step126"] = $row["step126"];
		$GLOBALS["x_step127"] = $row["step127"];
	}
	phpmkr_free_result($rs);
	return $bLoadData;
}
?>
<?php

//-------------------------------------------------------------------------------
// Function EditData
// - Variables used: field variables

function EditData($conn)
{
	global $x_rng_name;
	$sFilter = ewSqlKeyWhere;
	$sTmp =  (get_magic_quotes_gpc()) ? stripslashes($x_rng_name) : $x_rng_name;
	$sFilter = str_replace("@rng_name", AdjustSql($sTmp), $sFilter); // Replace key value
	if ((CurrentUserID() <> "-1") && (CurrentUserID() <> "")) { // Non system admin

	//$sFilter .= " AND " . str_replace("#UserID", AdjustSql(CurrentUserID()), ewSqlUserIDFilter);
	$sFilter .= " AND " . ewSqlUserIDFilter;
	$sFilter = str_replace("#Key", "`rng_name`", $sFilter);
	$sFilter = str_replace("#UserID", AdjustSql(CurrentUserID()), $sFilter);
	}
	$sSql = ewBuildSql(ewSqlSelect, ewSqlWhere, ewSqlGroupBy, ewSqlHaving, ewSqlOrderBy, $sFilter, "");
	$rs = phpmkr_query($sSql,$conn) or die("Failed to execute query at line " . __LINE__ . ": " . phpmkr_error($conn) . '<br>SQL: ' . $sSql);

	// Get old recordset
	$oldrs = phpmkr_fetch_array($rs);
	if (phpmkr_num_rows($rs) == 0) {
		return false; // Update Failed
	} else {
	$x_rng_name = @$_POST["x_rng_name"];
	$x_step001 = @$_POST["x_step001"];
	$x_step002 = @$_POST["x_step002"];
	$x_step003 = @$_POST["x_step003"];
	$x_step004 = @$_POST["x_step004"];
	$x_step005 = @$_POST["x_step005"];
	$x_step006 = @$_POST["x_step006"];
	$x_step007 = @$_POST["x_step007"];
	$x_step008 = @$_POST["x_step008"];
	$x_step009 = @$_POST["x_step009"];
	$x_step010 = @$_POST["x_step010"];
	$x_step011 = @$_POST["x_step011"];
	$x_step012 = @$_POST["x_step012"];
	$x_step013 = @$_POST["x_step013"];
	$x_step014 = @$_POST["x_step014"];
	$x_step015 = @$_POST["x_step015"];
	$x_step016 = @$_POST["x_step016"];
	$x_step017 = @$_POST["x_step017"];
	$x_step018 = @$_POST["x_step018"];
	$x_step019 = @$_POST["x_step019"];
	$x_step020 = @$_POST["x_step020"];
	$x_step021 = @$_POST["x_step021"];
	$x_step022 = @$_POST["x_step022"];
	$x_step023 = @$_POST["x_step023"];
	$x_step024 = @$_POST["x_step024"];
	$x_step025 = @$_POST["x_step025"];
	$x_step026 = @$_POST["x_step026"];
	$x_step027 = @$_POST["x_step027"];
	$x_step028 = @$_POST["x_step028"];
	$x_step029 = @$_POST["x_step029"];
	$x_step030 = @$_POST["x_step030"];
	$x_step031 = @$_POST["x_step031"];
	$x_step032 = @$_POST["x_step032"];
	$x_step033 = @$_POST["x_step033"];
	$x_step034 = @$_POST["x_step034"];
	$x_step035 = @$_POST["x_step035"];
	$x_step036 = @$_POST["x_step036"];
	$x_step037 = @$_POST["x_step037"];
	$x_step038 = @$_POST["x_step038"];
	$x_step039 = @$_POST["x_step039"];
	$x_step040 = @$_POST["x_step040"];
	$x_step041 = @$_POST["x_step041"];
	$x_step042 = @$_POST["x_step042"];
	$x_step043 = @$_POST["x_step043"];
	$x_step044 = @$_POST["x_step044"];
	$x_step045 = @$_POST["x_step045"];
	$x_step046 = @$_POST["x_step046"];
	$x_step047 = @$_POST["x_step047"];
	$x_step048 = @$_POST["x_step048"];
	$x_step049 = @$_POST["x_step049"];
	$x_step050 = @$_POST["x_step050"];
	$x_step051 = @$_POST["x_step051"];
	$x_step052 = @$_POST["x_step052"];
	$x_step053 = @$_POST["x_step053"];
	$x_step054 = @$_POST["x_step054"];
	$x_step055 = @$_POST["x_step055"];
	$x_step056 = @$_POST["x_step056"];
	$x_step057 = @$_POST["x_step057"];
	$x_step058 = @$_POST["x_step058"];
	$x_step059 = @$_POST["x_step059"];
	$x_step060 = @$_POST["x_step060"];
	$x_step061 = @$_POST["x_step061"];
	$x_step062 = @$_POST["x_step062"];
	$x_step063 = @$_POST["x_step063"];
	$x_step064 = @$_POST["x_step064"];
	$x_step065 = @$_POST["x_step065"];
	$x_step066 = @$_POST["x_step066"];
	$x_step067 = @$_POST["x_step067"];
	$x_step068 = @$_POST["x_step068"];
	$x_step069 = @$_POST["x_step069"];
	$x_step070 = @$_POST["x_step070"];
	$x_step071 = @$_POST["x_step071"];
	$x_step072 = @$_POST["x_step072"];
	$x_step073 = @$_POST["x_step073"];
	$x_step074 = @$_POST["x_step074"];
	$x_step075 = @$_POST["x_step075"];
	$x_step076 = @$_POST["x_step076"];
	$x_step077 = @$_POST["x_step077"];
	$x_step078 = @$_POST["x_step078"];
	$x_step079 = @$_POST["x_step079"];
	$x_step080 = @$_POST["x_step080"];
	$x_step081 = @$_POST["x_step081"];
	$x_step082 = @$_POST["x_step082"];
	$x_step083 = @$_POST["x_step083"];
	$x_step084 = @$_POST["x_step084"];
	$x_step085 = @$_POST["x_step085"];
	$x_step086 = @$_POST["x_step086"];
	$x_step087 = @$_POST["x_step087"];
	$x_step088 = @$_POST["x_step088"];
	$x_step089 = @$_POST["x_step089"];
	$x_step090 = @$_POST["x_step090"];
	$x_step091 = @$_POST["x_step091"];
	$x_step092 = @$_POST["x_step092"];
	$x_step093 = @$_POST["x_step093"];
	$x_step094 = @$_POST["x_step094"];
	$x_step095 = @$_POST["x_step095"];
	$x_step096 = @$_POST["x_step096"];
	$x_step097 = @$_POST["x_step097"];
	$x_step098 = @$_POST["x_step098"];
	$x_step099 = @$_POST["x_step099"];
	$x_step100 = @$_POST["x_step100"];
	$x_step101 = @$_POST["x_step101"];
	$x_step102 = @$_POST["x_step102"];
	$x_step103 = @$_POST["x_step103"];
	$x_step104 = @$_POST["x_step104"];
	$x_step105 = @$_POST["x_step105"];
	$x_step106 = @$_POST["x_step106"];
	$x_step107 = @$_POST["x_step107"];
	$x_step108 = @$_POST["x_step108"];
	$x_step109 = @$_POST["x_step109"];
	$x_step110 = @$_POST["x_step110"];
	$x_step111 = @$_POST["x_step111"];
	$x_step112 = @$_POST["x_step112"];
	$x_step113 = @$_POST["x_step113"];
	$x_step114 = @$_POST["x_step114"];
	$x_step115 = @$_POST["x_step115"];
	$x_step116 = @$_POST["x_step116"];
	$x_step117 = @$_POST["x_step117"];
	$x_step118 = @$_POST["x_step118"];
	$x_step119 = @$_POST["x_step119"];
	$x_step120 = @$_POST["x_step120"];
	$x_step121 = @$_POST["x_step121"];
	$x_step122 = @$_POST["x_step122"];
	$x_step123 = @$_POST["x_step123"];
	$x_step124 = @$_POST["x_step124"];
	$x_step125 = @$_POST["x_step125"];
	$x_step126 = @$_POST["x_step126"];
	$x_step127 = @$_POST["x_step127"];
	// Field rng_name
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_rng_name"]) : $GLOBALS["x_rng_name"]; 
	$theValue = ($theValue != "") ? " '" . $theValue . "'" : "NULL";
	$fieldList["`rng_name`"] = $theValue;
	// Field step001
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step001"]) : $GLOBALS["x_step001"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step001`"] = $theValue;
	// Field step002
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step002"]) : $GLOBALS["x_step002"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step002`"] = $theValue;
	// Field step003
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step003"]) : $GLOBALS["x_step003"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step003`"] = $theValue;
	// Field step004
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step004"]) : $GLOBALS["x_step004"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step004`"] = $theValue;
	// Field step005
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step005"]) : $GLOBALS["x_step005"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step005`"] = $theValue;
	// Field step006
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step006"]) : $GLOBALS["x_step006"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step006`"] = $theValue;
	// Field step007
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step007"]) : $GLOBALS["x_step007"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step007`"] = $theValue;
	// Field step008
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step008"]) : $GLOBALS["x_step008"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step008`"] = $theValue;
	// Field step009
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step009"]) : $GLOBALS["x_step009"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step009`"] = $theValue;
	// Field step010
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step010"]) : $GLOBALS["x_step010"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step010`"] = $theValue;
	// Field step011
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step011"]) : $GLOBALS["x_step011"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step011`"] = $theValue;
	// Field step012
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step012"]) : $GLOBALS["x_step012"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step012`"] = $theValue;
	// Field step013
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step013"]) : $GLOBALS["x_step013"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step013`"] = $theValue;
	// Field step014
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step014"]) : $GLOBALS["x_step014"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step014`"] = $theValue;
	// Field step015
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step015"]) : $GLOBALS["x_step015"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step015`"] = $theValue;
	// Field step016
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step016"]) : $GLOBALS["x_step016"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step016`"] = $theValue;
	// Field step017
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step017"]) : $GLOBALS["x_step017"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step017`"] = $theValue;
	// Field step018
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step018"]) : $GLOBALS["x_step018"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step018`"] = $theValue;
	// Field step019
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step019"]) : $GLOBALS["x_step019"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step019`"] = $theValue;
	// Field step020
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step020"]) : $GLOBALS["x_step020"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step020`"] = $theValue;
	// Field step021
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step021"]) : $GLOBALS["x_step021"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step021`"] = $theValue;
	// Field step022
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step022"]) : $GLOBALS["x_step022"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step022`"] = $theValue;
	// Field step023
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step023"]) : $GLOBALS["x_step023"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step023`"] = $theValue;
	// Field step024
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step024"]) : $GLOBALS["x_step024"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step024`"] = $theValue;
	// Field step025
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step025"]) : $GLOBALS["x_step025"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step025`"] = $theValue;
	// Field step026
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step026"]) : $GLOBALS["x_step026"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step026`"] = $theValue;
	// Field step027
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step027"]) : $GLOBALS["x_step027"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step027`"] = $theValue;
	// Field step028
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step028"]) : $GLOBALS["x_step028"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step028`"] = $theValue;
	// Field step029
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step029"]) : $GLOBALS["x_step029"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step029`"] = $theValue;
	// Field step030
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step030"]) : $GLOBALS["x_step030"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step030`"] = $theValue;
	// Field step031
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step031"]) : $GLOBALS["x_step031"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step031`"] = $theValue;
	// Field step032
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step032"]) : $GLOBALS["x_step032"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step032`"] = $theValue;
	// Field step033
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step033"]) : $GLOBALS["x_step033"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step033`"] = $theValue;
	// Field step034
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step034"]) : $GLOBALS["x_step034"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step034`"] = $theValue;
	// Field step035
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step035"]) : $GLOBALS["x_step035"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step035`"] = $theValue;
	// Field step036
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step036"]) : $GLOBALS["x_step036"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step036`"] = $theValue;
	// Field step037
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step037"]) : $GLOBALS["x_step037"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step037`"] = $theValue;
	// Field step038
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step038"]) : $GLOBALS["x_step038"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step038`"] = $theValue;
	// Field step039
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step039"]) : $GLOBALS["x_step039"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step039`"] = $theValue;
	// Field step040
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step040"]) : $GLOBALS["x_step040"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step040`"] = $theValue;
	// Field step041
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step041"]) : $GLOBALS["x_step041"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step041`"] = $theValue;
	// Field step042
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step042"]) : $GLOBALS["x_step042"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step042`"] = $theValue;
	// Field step043
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step043"]) : $GLOBALS["x_step043"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step043`"] = $theValue;
	// Field step044
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step044"]) : $GLOBALS["x_step044"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step044`"] = $theValue;
	// Field step045
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step045"]) : $GLOBALS["x_step045"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step045`"] = $theValue;
	// Field step046
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step046"]) : $GLOBALS["x_step046"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step046`"] = $theValue;
	// Field step047
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step047"]) : $GLOBALS["x_step047"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step047`"] = $theValue;
	// Field step048
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step048"]) : $GLOBALS["x_step048"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step048`"] = $theValue;
	// Field step049
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step049"]) : $GLOBALS["x_step049"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step049`"] = $theValue;
	// Field step050
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step050"]) : $GLOBALS["x_step050"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step050`"] = $theValue;
	// Field step051
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step051"]) : $GLOBALS["x_step051"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step051`"] = $theValue;
	// Field step052
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step052"]) : $GLOBALS["x_step052"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step052`"] = $theValue;
	// Field step053
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step053"]) : $GLOBALS["x_step053"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step053`"] = $theValue;
	// Field step054
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step054"]) : $GLOBALS["x_step054"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step054`"] = $theValue;
	// Field step055
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step055"]) : $GLOBALS["x_step055"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step055`"] = $theValue;
	// Field step056
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step056"]) : $GLOBALS["x_step056"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step056`"] = $theValue;
	// Field step057
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step057"]) : $GLOBALS["x_step057"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step057`"] = $theValue;
	// Field step058
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step058"]) : $GLOBALS["x_step058"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step058`"] = $theValue;
	// Field step059
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step059"]) : $GLOBALS["x_step059"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step059`"] = $theValue;
	// Field step060
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step060"]) : $GLOBALS["x_step060"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step060`"] = $theValue;
	// Field step061
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step061"]) : $GLOBALS["x_step061"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step061`"] = $theValue;
	// Field step062
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step062"]) : $GLOBALS["x_step062"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step062`"] = $theValue;
	// Field step063
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step063"]) : $GLOBALS["x_step063"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step063`"] = $theValue;
	// Field step064
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step064"]) : $GLOBALS["x_step064"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step064`"] = $theValue;
	// Field step065
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step065"]) : $GLOBALS["x_step065"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step065`"] = $theValue;
	// Field step066
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step066"]) : $GLOBALS["x_step066"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step066`"] = $theValue;
	// Field step067
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step067"]) : $GLOBALS["x_step067"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step067`"] = $theValue;
	// Field step068
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step068"]) : $GLOBALS["x_step068"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step068`"] = $theValue;
	// Field step069
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step069"]) : $GLOBALS["x_step069"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step069`"] = $theValue;
	// Field step070
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step070"]) : $GLOBALS["x_step070"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step070`"] = $theValue;
	// Field step071
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step071"]) : $GLOBALS["x_step071"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step071`"] = $theValue;
	// Field step072
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step072"]) : $GLOBALS["x_step072"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step072`"] = $theValue;
	// Field step073
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step073"]) : $GLOBALS["x_step073"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step073`"] = $theValue;
	// Field step074
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step074"]) : $GLOBALS["x_step074"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step074`"] = $theValue;
	// Field step075
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step075"]) : $GLOBALS["x_step075"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step075`"] = $theValue;
	// Field step076
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step076"]) : $GLOBALS["x_step076"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step076`"] = $theValue;
	// Field step077
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step077"]) : $GLOBALS["x_step077"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step077`"] = $theValue;
	// Field step078
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step078"]) : $GLOBALS["x_step078"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step078`"] = $theValue;
	// Field step079
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step079"]) : $GLOBALS["x_step079"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step079`"] = $theValue;
	// Field step080
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step080"]) : $GLOBALS["x_step080"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step080`"] = $theValue;
	// Field step081
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step081"]) : $GLOBALS["x_step081"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step081`"] = $theValue;
	// Field step082
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step082"]) : $GLOBALS["x_step082"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step082`"] = $theValue;
	// Field step083
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step083"]) : $GLOBALS["x_step083"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step083`"] = $theValue;
	// Field step084
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step084"]) : $GLOBALS["x_step084"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step084`"] = $theValue;
	// Field step085
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step085"]) : $GLOBALS["x_step085"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step085`"] = $theValue;
	// Field step086
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step086"]) : $GLOBALS["x_step086"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step086`"] = $theValue;
	// Field step087
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step087"]) : $GLOBALS["x_step087"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step087`"] = $theValue;
	// Field step088
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step088"]) : $GLOBALS["x_step088"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step088`"] = $theValue;
	// Field step089
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step089"]) : $GLOBALS["x_step089"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step089`"] = $theValue;
	// Field step090
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step090"]) : $GLOBALS["x_step090"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step090`"] = $theValue;
	// Field step091
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step091"]) : $GLOBALS["x_step091"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step091`"] = $theValue;
	// Field step092
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step092"]) : $GLOBALS["x_step092"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step092`"] = $theValue;
	// Field step093
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step093"]) : $GLOBALS["x_step093"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step093`"] = $theValue;
	// Field step094
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step094"]) : $GLOBALS["x_step094"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step094`"] = $theValue;
	// Field step095
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step095"]) : $GLOBALS["x_step095"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step095`"] = $theValue;
	// Field step096
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step096"]) : $GLOBALS["x_step096"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step096`"] = $theValue;
	// Field step097
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step097"]) : $GLOBALS["x_step097"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step097`"] = $theValue;
	// Field step098
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step098"]) : $GLOBALS["x_step098"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step098`"] = $theValue;
	// Field step099
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step099"]) : $GLOBALS["x_step099"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step099`"] = $theValue;
	// Field step100
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step100"]) : $GLOBALS["x_step100"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step100`"] = $theValue;
	// Field step101
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step101"]) : $GLOBALS["x_step101"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step101`"] = $theValue;
	// Field step102
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step102"]) : $GLOBALS["x_step102"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step102`"] = $theValue;
	// Field step103
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step103"]) : $GLOBALS["x_step103"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step103`"] = $theValue;
	// Field step104
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step104"]) : $GLOBALS["x_step104"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step104`"] = $theValue;
	// Field step105
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step105"]) : $GLOBALS["x_step105"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step105`"] = $theValue;
	// Field step106
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step106"]) : $GLOBALS["x_step106"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step106`"] = $theValue;
	// Field step107
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step107"]) : $GLOBALS["x_step107"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step107`"] = $theValue;
	// Field step108
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step108"]) : $GLOBALS["x_step108"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step108`"] = $theValue;
	// Field step109
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step109"]) : $GLOBALS["x_step109"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step109`"] = $theValue;
	// Field step110
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step110"]) : $GLOBALS["x_step110"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step110`"] = $theValue;
	// Field step111
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step111"]) : $GLOBALS["x_step111"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step111`"] = $theValue;
	// Field step112
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step112"]) : $GLOBALS["x_step112"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step112`"] = $theValue;
	// Field step113
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step113"]) : $GLOBALS["x_step113"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step113`"] = $theValue;
	// Field step114
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step114"]) : $GLOBALS["x_step114"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step114`"] = $theValue;
	// Field step115
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step115"]) : $GLOBALS["x_step115"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step115`"] = $theValue;
	// Field step116
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step116"]) : $GLOBALS["x_step116"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step116`"] = $theValue;
	// Field step117
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step117"]) : $GLOBALS["x_step117"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step117`"] = $theValue;
	// Field step118
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step118"]) : $GLOBALS["x_step118"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step118`"] = $theValue;
	// Field step119
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step119"]) : $GLOBALS["x_step119"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step119`"] = $theValue;
	// Field step120
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step120"]) : $GLOBALS["x_step120"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step120`"] = $theValue;
	// Field step121
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step121"]) : $GLOBALS["x_step121"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step121`"] = $theValue;
	// Field step122
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step122"]) : $GLOBALS["x_step122"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step122`"] = $theValue;
	// Field step123
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step123"]) : $GLOBALS["x_step123"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step123`"] = $theValue;
	// Field step124
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step124"]) : $GLOBALS["x_step124"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step124`"] = $theValue;
	// Field step125
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step125"]) : $GLOBALS["x_step125"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step125`"] = $theValue;
	// Field step126
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step126"]) : $GLOBALS["x_step126"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step126`"] = $theValue;
	// Field step127
	$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_step127"]) : $GLOBALS["x_step127"]; 
	$theValue = (strtoupper($theValue) != "Y") ? " 'N'" : " 'Y'";
	$fieldList["`step127`"] = $theValue;

		// Updating event
		if (Recordset_Updating($fieldList, $oldrs)) {

			// Update
			$sSql = "UPDATE `chklist_rng` SET ";
			foreach ($fieldList as $key=>$temp) {
				$sSql .= "$key = $temp, ";
			}
			if (substr($sSql, -2) == ", ") {
				$sSql = substr($sSql, 0, strlen($sSql)-2);
			}
			$sSql .= " WHERE " . $sFilter;
			phpmkr_query($sSql,$conn) or die("Failed to execute query at line " . __LINE__ . ": " . phpmkr_error($conn) . '<br>SQL: ' . $sSql);
			$result = (phpmkr_affected_rows($conn) >= 0);

			// Updated event
			if ($result) Recordset_Updated($fieldList, $oldrs);
		} else {
			$result = false; // Update Failed
		}
	}
	return $result;
}

// Updating Event
function Recordset_Updating(&$newrs, $oldrs)
{

	// Enter your customized codes here
	return true;
}

// Updated event
function Recordset_Updated($newrs, $oldrs)
{
	$table = "chklist_rng";
}
?>
Return current item: eqEpic