"; $mode = $g[mode];$ac = $g[ac]; if ($mode == ""){ $other = "templates/index_page.html"; } //////////////////////////////////////FAQ if ($mode == "faq"){ $r = q("select * from faq where w='1'"); while($q = s($r)){$i++; $answers .= "
  • $q[question]
    1. $q[answer]


    "; $questions .= "
  • $q[question]"; } $body = "


    Frequently Asked Questions:

      $questions

      $answers

     

     

    "; } //////////////////////////////////////FAQ //////////////////////////////////////pages if ($mode == 'disclaimer'){ $q = s(q("select * from tsys where name='discr'")); $body = "


    Disclaimer:

    $q[sys_value]



    "; } if ($mode == 'testimonials'){ $q = s(q("select * from tsys where name='testimonials'")); $body = "


    Testimonials:

    $q[sys_value]



    "; } if ($mode == 'terms'){ $q = s(q("select * from tsys where name='terms'")); print ''; print "


    Terms and Conditions:

    $q[sys_value]

    Close window.

    "; exit; } if ($mode == 'privacy'){ $q = s(q("select * from tsys where name='policy'")); $body = "


    Privacy Policy:

    $q[sys_value]



    "; } //////////////////////////////////////pages //////////////////////////////////////LINKS if ($mode == 'links'){ $r = q("select * from links order by name"); $body = "
     

    Links:

    "; while($q = s($r)){ $body .= " "; } $body .="
    Website Name: $q[name]
    Summary: $q[descr]

     

     

     

    "; } //////////////////////////////////////LINKS ////////////////////////////////////////////////Search if ($mode == "drugsearch"){ $current = "templates/search_page.html"; $r = q("select * from drugs where drugname!='' order by drugname"); while($q = s($r)){ $drug_list .= "".strtoupper($q[drugname]).""; } $left_img = ""; $r = q("select * from drugs where drugname like '%".strtoupper($g[q])."%' order by drugname"); if (n($r) != "" && n($r)!= 0){ $body .= "

    ALL drugs that contain \"".strtoupper($g[q])."\":

    "; $body .= "";$i=""; while($q = s($r)){$i++; if ($i == 1){$body .= "";} $url = $addr."search/".urlencode($q[drugname]).'.html'; $body .= ""; } $body .= "
    ".strtoupper($q[drugname])." "; if ($i == 3){$i="";} } if ($i == 1){ $body .= ""; } if ($i == 2){ $body .= "
    "; } else{ $body .= "


    Drug Search:
    ".strtoupper($g[q])."

    Unfortunately, we are unable to locate ".strtoupper($g[q])." without a prescription from ANY online pharmacy.

    However, we did find ".n(q("select id from pharm where drugs='' and status=0"))." online pharmacies that may offer ".strtoupper($g[q])." but, we were unable to verify the inventory of prescription medication.

    Lastly, please verify the spelling of the medication and try again or perform a search using either the
    Drug List or By Letter searches.

    "; } } if ($mode == "search"){ $current = "templates/search_page.html"; $r = q("select * from drugs where drugname!='' order by drugname"); while($q = s($r)){ $drug_list .= "".strtoupper($q[drugname]).""; } $left_img = ""; if ($ac == ""){$other = 'templates/search_index.htm';} if ($ac == 'byletter'){ $numpage = $g[numpage]; if ($numpage == ""){$numpage = 30;} $page = $g[page];if ($page == ""){$page =0;}$s = $page*$numpage; $body .= "


    ALL drugs that begin with the letter "".strtoupper($g[letter])."":

    "; $r = q("select * from drugs where drugname like '$g[letter]%' order by drugname limit $s,$numpage"); if (n($r) == ""){ $body .= "

    Unfortunately, we were unable to locate any drugs beginning with the letter ".strtoupper($g[letter])." without a prescription from any online pharmacy.

    However, we did find ".n(q("select id from pharm where drugs='' and status=0"))." online pharmacies that may offer ".strtoupper($g[letter])." but, we were unable to verify the inventory of prescription medication.

    In addition, you can perform a seach using either the drug list or enter the correct spelling of the drug In drug search.

    "; } else{ $i=""; while($q = s($r)){$i++; if ($i == 1){$body .= "";} $body .= "";$i="";} } if ($i == 1){$body .= "".put_pages1($g[page], "select count(drugname) from drugs where drugname like '$g[letter]%'",$numpage,$addr."searchbyletter/letter_$g[letter]"); } } $body .= "
  • ".strtoupper($q[drugname]).""; if ($i == 3){$body .= "
  • ";} if ($i == 2){$body .= "";} $fd = s(q("select count(drugname) from drugs where drugname like '$g[letter]%'")); if ($fd[0] > $numpage){ $body .= "

    "; } if ($ac == "search"){ $g[q] = trim(strtolower($g[q])); if (preg_match("/drug:/",$g[q],$a) != 0){ $g[q] = preg_replace("/drug:/",'',$g[q]); $query = strtoupper($g[q]); } else{ $query = "%".strtoupper($g[q])."%"; } $r = q("select * from drugs where drugname like '$query'"); if (n($r)!=""){ $q = s($r); $body .= "


    Drug Search:
    ".strtoupper($q[drugname])."

    We found ".n(q("select id from pharm where (drugs like '%$q[drugname]%' or drugs like '%".strtoupper($q[drugname])."%' or drugs like '%".ucwords($q[drugname])."%') and status=0"))." online pharmacies selling ".strtoupper($q[drugname])." without a prescription.

    We also found ".n(q("select id from pharm where drugs='' and status=0"))." additional online pharmacies that may offer ".strtoupper($q[drugname])." but, we were unable to verify the inventory of prescription medication.

    In order to purchase
    ".strtoupper($q[drugname])." today without a prescription from any of the online pharmacies within the membersí area, you will need to become one of our valued members.

    "; } else{ $body .= "


    Drug Search:
    ".strtoupper($g[q])."

    Unfortunately, we are unable to locate ".strtoupper($g[q])." without a prescription from ANY online pharmacy.

    However, we did find ".n(q("select id from pharm where drugs='' and status=0"))." online pharmacies that may offer ".strtoupper($g[q])." but, we were unable to verify the inventory of prescription medication.

    Lastly, please verify the spelling of the medication and try again or perform a search using either the
    Drug List or By Letter searches.

    "; } } } ////////////////////////////////////////////////End Search ////////////////////////////////////////////////Contacts if ($mode == "contact"){ /* $body .= "

    Contact Us

    "; if ($_SERVER['REQUEST_METHOD'] == "POST"){ $headers = "From: $server[admin_email]\r\n". "Reply-To: $server[admin_email]\r\n"."X-Mailer: MedicationJunction.com"; $message = " Contact form on MedicationJunction.com Name: $p[name] e-mail: $p[email] IP: $_SERVER[REMOTE_ADDR] $p[message]"; mail($server[admin_email],"Contact form on MedicationJunction.com",strip_tags($message),$headers); $body .= "

    Your email was successfully sent. We will answer you soon.

    "; } else{ $body .= "
    Please take this time to read the F.A.Q. (Frequently Asked Questions) prior to contacting us since it has an assortment of questions submitted by past and current members as well as our answers to those question which you will find extrememly helpful.

    If your question is not addressed in the F.A.Q., we will then reply to your request and immediatley post the new question and answer for others to read.

    Your Name:
    Your Email Address:
    Message:
     
    "; } */ $body .= ''; } ////////////////////////////////////////////////Contacts $meta= array("body"=>$body,"addr"=>$addr,"top1"=>gettpdrugs(1),"top2"=>gettpdrugs(2),"left_img"=>$left_img,"drug_list"=>$drug_list,"last_news"=>last_news($addr)); templates($current,$other,$meta); ?>