ValidateLogin('none,sales,antibodies', "index.html", " to submit antibodies"); $pageheader = new BannerMenus_cellbio($link, $DB_USER_TABLE, $path); $title = 'Submit antibody :: ProteinSimple'; $description = ''; /* The page's main menu section - 'about' 'products' 'applications' 'learn' 'support' 'contact' or 'shop' */ $section = 'learn'; // Custom page code global $HTTP_POST_VARS; global $HTTP_GET_VARS; CleanHTTPVars(); $formname = "regform"; $thefunction = $HTTP_POST_VARS["thefunction"]; $captcha = $HTTP_POST_VARS["captcha"]; $antibody_userid = 0; $id = GetParam0("id"); if ($id > 0) { $query = "SELECT id, live, userid, assay, performance, protein, vendor, product_code, protein_isoform, species, cell_model, separated_by, dilutions, apparent_mw, submitted_by, contact, keywords FROM cellbio_antibodies WHERE id=$id;"; $result = mysql_query($query, $link); $rows = mysql_num_rows($result); if ($rows > 0) { $antibody_userid = mysql_result($result, 0, "userid"); $protein = mysql_result($result, 0, "protein"); $vendor = mysql_result($result, 0, "vendor"); $product_code = mysql_result($result, 0, "product_code"); $protein_isoform = mysql_result($result, 0, "protein_isoform"); $species = mysql_result($result, 0, "species"); if ($species != 'rabbit polyclonal' && $species != 'rabbit monoclonal' && $species != 'mouse monoclonal') { $species_other = $species; $species = "other"; } $cell_model = mysql_result($result, 0, "cell_model"); $dilutions = mysql_result($result, 0, "dilutions"); $apparent_mw = mysql_result($result, 0, "apparent_mw"); $performance = mysql_result($result, 0, "performance"); if ($performance != 'Specific Antibody' && $performance != 'Clean Peak Profile Specific Antibody' && $performance != 'Complex Peak Profile Non-Specific Antibody' && $performance != 'Many Peaks Observed' && $performance != 'No Profile Observed') { $performance_other = $species; $performance = "other"; } $submitted_by = mysql_result($result, 0, "submitted_by"); $separated_by = mysql_result($result, 0, "separated_by"); $contact = mysql_result($result, 0, "contact"); } } else { $protein = $HTTP_POST_VARS["protein"]; $vendor = $HTTP_POST_VARS["vendor"]; $product_code = $HTTP_POST_VARS["product_code"]; $protein_isoform = $HTTP_POST_VARS["protein_isoform"]; $species = $HTTP_POST_VARS["species"]; $species_other = $HTTP_POST_VARS["species_other"]; $cell_model = $HTTP_POST_VARS["cell_model"]; $dilutions = $HTTP_POST_VARS["dilutions"]; $apparent_mw = $HTTP_POST_VARS["apparent_mw"]; $performance = $HTTP_POST_VARS["performance"]; $performance_other = $HTTP_POST_VARS["performance_other"]; $submitted_by = $HTTP_POST_VARS["submitted_by"]; $separated_by = $HTTP_POST_VARS["separated_by"]; $contact = $HTTP_POST_VARS["contact"]; } $dbrecord = new DBRecord($link, "../", $formname); // If a reCAPTCHA form was submitted. This replaces '$thefunction == "reg"' as the primary form-submission check. if (isset($_POST["g-recaptcha-response"])) { // reCAPTCHA code to check the form response. $secretkey = '6LfO3BwUAAAAABERH0zxa1Fis8L4XSWpIod7pE7D'; $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secretkey&response=" . $_POST['g-recaptcha-response']); $responseData = json_decode($response); // If reCAPTCHA is verified, submit the form. if ($responseData->success) { // This is the original form submission check. if ( !empty($thefunction) && $thefunction == "reg" ) { $dbrecord = Register($link, $dbrecord, $captcha, $userid, $id); } } // reCAPTCHA detected a problem, post error message. else { $dbrecord->c_errors["message"] = "The reCAPTCHA box indicated an error.  Please try again!"; } } $prefix = " "; $suffix = ""; // End custom page code /* Start page */ page_head_start($title, $description); // Load any additional CSS and JS files here // Required for reCAPTCHA V2 widget. See below. ?> page_body_header($section,$userid); page_body_content_start(); // Main content area start (for use with right sidebar) page_body_content_main_with_right_sidebar_start(); ?>

Submit antibody

<= Back to Antibodies

GetFieldError("message") . $suffix ?>

0 && $antibody_userid != $userid) { ?>

Unauthorized access! Please contact tech support.

ProteinSimple very much appreciates your collaboration.

EditText("protein", "Protein Target: *", $protein, 50, true, $prefix . $dbrecord->GetFieldError("protein") . $suffix . "
 Please choose name based on Uniprot nomenclature, omit modifications.", "top"); $dbrecord->EditText("vendor", "Antibody Vendor: *", $vendor, 50, true, $prefix . $dbrecord->GetFieldError("vendor") . $suffix . "
 Please add antibody supplier.", "top"); $dbrecord->EditText("product_code", "Product Number: *", $product_code, 50, true, $prefix . $dbrecord->GetFieldError("product_code") . $suffix . "
 Please add as needed to order.", "top"); $dbrecord->EditText("protein_isoform", "Protein Isoform:", $protein_isoform, 50, true, $prefix . $dbrecord->GetFieldError("protein_isoform") . $suffix . "
 Protein isoform specificity as described by vendor. For example: p(Thr46) 4EBP1.", "top"); $dbrecord->EditBlockStart("Antibody Species: *", "top"); $showblock = $species == "rabbit polyclonal" || $species == "rabbit monoclonal" || $species == "mouse monoclonal" || empty($species) || $species == "" || $species == "-" ? "none" : "block"; $select_extra = "onchange=\"if(document.$formname.species.options[document.$formname.species.selectedIndex].value=='other') {DisplayBlock('speciesblock');} else {DisplayNone('speciesblock');}\""; ?>
EditDropList('species', "", $species, "-,rabbit polyclonal,rabbit monoclonal,mouse monoclonal,other", "-Choose-,rabbit polyclonal,rabbit monoclonal,mouse monoclonal,Other ->", false, "", "middle", $select_extra); ?>
EditText("species_other", "", $species_other, 20, false); ?>
GetFieldError("species") . $suffix; ?>
EditBlockEnd(); $dbrecord->EditBlockStart("Cell Model(s): *", "top"); $dbrecord->EditText("cell_model", "", $cell_model, 40, false, $prefix . $dbrecord->GetFieldError("cell_model") . $suffix, "top"); echo "
Separated by: "; $dbrecord->EditDropList("separated_by", "Separated by:", $separated_by, "-#Charge#Size-All#Size-Wes-Sally-Peggy", "-Undefined-#Charge#Size-All#Size-Wes, Sally Sue/Peggy Sue", false, "", "middle", "", "#"); $dbrecord->EditBlockEnd(); $dbrecord->EditText("dilutions", "Dilutions Tested: *", $dilutions, 50, true, $prefix . $dbrecord->GetFieldError("dilutions") . $suffix, "top"); // $dbrecord->EditBlockStart("Performance
Assessment: *", "top"); // $showblock = $performance == "Specific Antibody" || $performance == "Clean Peak Profile Specific Antibody" || $performance == "Complex Peak Profile Non-Specific Antibody" || $performance == "Many Peaks Observed" || $performance == "No Profile Observed" || empty($performance) || $performance == "" || $performance == "-" ? "none" : "block"; // $select_extra = "onchange=\"if(document.$formname.performance.options[document.$formname.performance.selectedIndex].value=='other') {DisplayBlock('performanceblock');} else {DisplayNone('performanceblock');}\""; ?> EditBlockEnd(); //$dbrecord->EditText("performance", "Performance
Assessment: *", $performance, 50, true, $prefix . $dbrecord->GetFieldError("performance") . $suffix . "
 Please write one sentence on your opinion of this antibody.", "top"); $dbrecord->EditText("apparent_mw", "Apparent MW:", $apparent_mw, 50, true, $prefix . $dbrecord->GetFieldError("apparent_mw") . $suffix . "
 Apparent MW in kDa on Simple Western.", "top"); $dbrecord->EditText("submitted_by", "Submitted by:", $submitted_by, 50, true, $prefix . $dbrecord->GetFieldError("submitted_by") . $suffix . "
 Please share who you are.", "top"); $dbrecord->EditText("contact", "Contact:", $contact, 50, true, $prefix . $dbrecord->GetFieldError("contact") . $suffix . "
 Please add e-mail address or telephone number.", "top"); ?>  

Before submitting, follow instructions below.

Submit Antibody

GetString(); // $dbrecord->DisplayText("Type string:
(No spaces)", $captcha->GetDisplayString()); // $dbrecord->EditText("echocaptcha", "", "", 15, true, $prefix . $dbrecord->GetFieldError("echocaptcha") . $suffix); // $dbrecord->RowSpacer(25); ?>

 

CheckFieldError("protein"); $dbrecord->CheckFieldError("vendor"); $dbrecord->CheckFieldError("product_code"); $dbrecord->CheckFieldError("species", "required", false, $species == "-" || ($species == "other" && (empty($species_other) || $species_other == ""))); $dbrecord->CheckFieldError("cell_model"); $dbrecord->CheckFieldError("dilutions"); //$dbrecord->CheckFieldError("performance", "required", false, $performance == "-" || ($performance == "other" && (empty($performance_other) || $performance_other == ""))); //$dbrecord->CheckFieldError("performance"); //$dbrecord->CheckFieldError("echocaptcha", "string does not match", false, strtolower($echocaptcha) != strtolower($captcha)); if ($dbrecord->GetErrorCount() > 0) { return $dbrecord; } // If the user is making changes after verifying, update the existing database record: if ($antibodyid > 0) { $query = "UPDATE cellbio_antibodies SET protein='$protein', vendor='$vendor', product_code='$product_code', protein_isoform='$protein_isoform', species='$species_text', cell_model='$cell_model', apparent_mw='$apparent_mw', separated_by='$separated_by', dilutions='$dilutions', submitted_by='$submitted_by', contact='$contact' WHERE id=$antibodyid;"; $result = mysql_query($query, $link); } else { // Add into the database, but don't make it live yet: $query = "INSERT INTO cellbio_antibodies (created, live, userid, protein, vendor, product_code, protein_isoform, species, cell_model, apparent_mw, separated_by, dilutions, submitted_by, contact) VALUES (NOW(), 0, $userid, '$protein', '$vendor', '$product_code', '$protein_isoform', '$species_text', '$cell_model', '$apparent_mw', '$separated_by', '$dilutions', '$submitted_by', '$contact');"; $result = mysql_query($query, $link); $antibodyid = GetLastInsertID($link); } GoToPage("verify_antibody.html?id=$antibodyid"); exit; } mysql_close($link); ?>