assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("FLD_MODULE", $_REQUEST['fld_module']); if(isset($_REQUEST["duplicate"]) && $_REQUEST["duplicate"] == "yes") { $error='Custom Field in the Name '.$_REQUEST["fldlabel"].' already exists. Please specify a different Label'; $xtpl->assign("DUPLICATE_ERROR", $error); $xtpl->assign("LABELVALUE", $_REQUEST["fldlabel"]); $xtpl->assign("LENGTHVALUE", $_REQUEST["fldlength"]); $xtpl->assign("DECIMALVALUE", $_REQUEST["flddecimal"]); $xtpl->assign("PICKLISTVALUE", $_REQUEST["fldPickList"]); //$xtpl->assign("FLDTYPEVALUE", $_REQUEST["fldType"]); $typeVal = Array( 'Text'=>'0', 'Number'=>'1', 'Percent'=>'2', 'Currency'=>'3', 'Date'=>'4', 'Email'=>'5', 'Phone'=>'6', 'Picklist'=>'7', 'URL'=>'8'); $xtpl->assign("FLDTYPEVALUE", $typeVal[$_REQUEST["fldType"]]); } else { $xtpl->assign("FLDTYPEVALUE", "0"); } $xtpl->parse("main"); $xtpl->out("main"); ?>