Jump to content

rejoice

Members
  • Posts

    14
  • Joined

  • Last visited

rejoice's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi friends,I require your assistance here.Is it possible to import profile details from the existing social networking sites such as “myspace.com”, “bebo.com” and “hi5.com”? The site myyearbook.com can import the profile details of the myspace.com easily and it displays the myspace.com profile details of one user in its own site. How do I make it possible for my own site?Thanks in advance.
  2. Hi friends,I have to make one web development environment in my machine running in windows.I downloaded the require files such as php- php-5.2.0-Win32mysql- mysql-essential-4.1.21-win32Apache- httpd-2.0.59-win32-srcWhich one may i start to install first? and is there any guide to install all these setup?. Please help me regarding this.thanks in advance.
  3. <?php if($_REQUEST[zip]==1){ $select = "SELECT order_id,od_date,contact_person,office_name,office_add,menu,zipcode FROM orders where order_date between '".$_REQUEST[acd]."' and '".$_REQUEST[end_acd]."' and type='Rep' order by zipcode"; $export = mysql_query($select); $fields = mysql_num_fields($export);}else{ $select = "SELECT order_id,od_date,contact_person,office_name,office_add,menu,zipcode FROM orders where order_date between '".$_REQUEST[acd]."' and '".$_REQUEST[end_acd]."' and type='Rep'"; $export = mysql_query($select); $fields = mysql_num_fields($export); }?><?php $header = 'Order No'. "\t";$header .= 'Order Date'. "\t";$header .= 'Contact Person'. "\t";$header .= 'Office Name'. "\t";$header .= 'Office Address'. "\t";$header .= 'Menu'. "\t";$header .= 'Zip code'. "\t"; /* for ($i = 0; $i < $fields; $i++) { $header .= mysql_field_name($export, $i) . "\t"; } */?> <?php while($row = mysql_fetch_row($export)) { $line = ''; foreach($row as $value) { if ((!isset($value)) OR ($value == "")) { $value = "\t"; } else { $value = str_replace('"', '""', $value); $value = '"' . $value . '"' . "\t"; } $line .= $value; } $data .= trim($line)."\n"; } $data = str_replace("\r","",$data); ?> <?php if ($data == "") { $data = "\n(0) Records Found!\n"; } ?><?php header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=Reporders.xls"); header("Pragma: no-cache"); header("Expires: 0"); print "$header\n$data"; ?>
  4. Hi all, I need to get the length of mp3 song alike length of video file.Is it possible to get the length of a mp3 song? Please assist me regarding this. Thanks in advance.
  5. Upload Photo.php<?session_start();if(!$_SESSION["member_id"])header("location:login.php");include "include/header1.php";include "include/config.inc.php";$eid1=$_SESSION["member_id"];if($_FILES){ $_REQUEST['photos']; $path=$_SERVER[DOCUMENT_ROOT]; $uploaddir= $path."./match/user/user_images/"; $image_name = $_FILES['photos']['name']; $cimg = str_replace("","_",$image_name); $upload_file = $uploaddir . $cimg; $type=substr($upload_file,-4,4); $names=time()."_".$eid1."$type"; $new_name=$uploaddir.time()."_".$_SESSION["member_id"]."$type"; /* $cimages=$_FILES['photos']['name']; $cimag=str_replace(" ","_",$cimages); $uploadfiles=$uploaddir.$cimag; $uploadfiles=$cimag; $uploaddir.$uploadfiles; */ $uploadfiles=$cimg; //$uploaddir.$uploadfiles; move_uploaded_file($_FILES['photos']['tmp_name'], $upload_file);//$uploaddir. $new=rename($upload_file,$new_name); $qry=("update register set user_image='".$names."' where member_id='".$_SESSION["member_id"]."'"); $exc=mysql_query($qry); //$my=mysql_fetch_array($exc); //echo "select * from register where user_id='".$_REQUEST['eid']."'"; ?><script> window.location='success_upload_photo.php'; </script> <? }//echo "select * from register where user_id='".$_REQUEST['eid']."'"; ?></td> </tr> <tr> <td align="left" valign="middle" bgcolor="#e2e2e2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th height="25" align="left" valign="middle" scope="col"><span class="pink_text"><a href="#" class="pink_text">My Match :</a></span><span class="style1"><a href="update_member.php" class="sky_text"> My Membership</a> </span><span class="pink_text">|</span><span class="style1"> <a href="#" class="sky_text">My Profile </a></span><span class="pink_text">|</span><span class="style1"> <a href="favourites.php" class="sky_text">My Favorites</a> </span><span class="pink_text">|</span><span class="style1"> <a href="#" class="sky_text">My Contacts</a> </span><span class="pink_text">|</span><span class="sky_text"> <a href="match_finder.php" class="sky_text">Matchfinder</a> </span><span class="pink_text">|</span></th> </tr> <? $sel_status="select * from register where member_id='".$_SESSION["member_id"]."'"; $exe_status=mysql_query($sel_status); $fet_status=mysql_fetch_array($exe_status); $status=$fet_status['status']; $user_image_sta=$fet_status['user_image']; if($status == 1) { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span></td> </tr> <? } elseif($status == 2) { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span><span class="pink_text">|</span><span class="sky_text"><a href="upload_photo.php"class="sky_text"> Upload Photo</a></span><? if($user_image_sta<>"NOIMAGE.jpg"){?><span class="pink_text"> | </span><span class="sky_text"><a href="remove_upload_photo.php" class="sky_text">Remove Photo</a></span><? }?></td> </tr> <? } elseif($status == 3) { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span><span class="pink_text">|</span><span class="sky_text"><a href="upload_photo.php"class="sky_text"> Upload Photo</a></span><? if($user_image_sta<>"NOIMAGE.jpg"){?><span class="pink_text"> | </span><span class="sky_text"><a href="remove_upload_photo.php" class="sky_text">Remove Photo</a></span><? }?><span class="pink_text"> | </span><span class="sky_text"><a href="profile_suspend.php" class="sky_text">Suspend Profile</a></span></td> </tr> <? } else { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span><span class="pink_text"> | </span><span class="sky_text"><a href="profile_reactive.php" class="sky_text"> Re-Activate Profile</a></span></td> </tr> <? } ?> </table></td> </tr> </table> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="248"> </td> <td width="191"> </td> </tr> <tr> <td valign="top"> </td> <td> </td> </tr> <tr> <td valign="top"><div align="center"> <table width="566" border="0" cellpadding="0" cellspacing="0"> <TR> <TD width="562" align="left" vAlign=top class="blue-border"> <form name="a" action="" method="post" enctype="multipart/form-data"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th colspan="3" class="bg_text_heading" scope="col">Upload Photo </th> </tr> <tr> <td> </td> <td align="left" valign="top"> </td> <td> </td> </tr> <tr> <td width="15"> </td> <td align="left" valign="top" class="text-plain">Most members search by photos, so add your photo and receive more interest from other members. It only takes a few minutes.</td> <td width="15"> </td> </tr> <tr> <td width="15"> </td> <td align="left" valign="top"> </td> <td width="15"> </td> </tr> <tr> <td> </td> <td align="left" valign="top" class="text-plain">Click on the browse button to find the photo on the computer </td> <td> </td> </tr> <tr> <td> </td> <td align="left" valign="top"> </td> <td> </td> </tr> <tr> <td colspan="3" class="bg_text_heading"><B>Guidelines</B></td> </tr> <tr> <td> </td> <td align="left" valign="top"> </td> <td> </td> </tr> <tr> <td> </td> <td align="left" valign="top"><UL class="text-plain"> <LI>The file must be either a BMP, JPG or a GIF <LI>The maximum file size is 1.5 Mb <LI>Crop out large white spaces <LI class="style2">Sexual references, nudity, or offensive material is not permitted. <LI class="style2">Cartoons, illustrations, photos of anyone other than yourself are not permitted. </LI> </UL></td> <td> </td> </tr> <tr> <td> </td> <td align="left" valign="top"> </td> <td> </td> </tr> <tr> <td> </td> <td align="left" valign="top" class="text-plain">Appropriate content for your photo, <A class=milLnkDefault href="java script:pop('create_profile','Appropriate_Content')">click here</A> </td> <td> </td> </tr> <tr> <td> </td> <td align="center" valign="top"><input name="photos" type="file" size="30"></td> <td> </td> </tr> <tr> <td> </td> <td align="center" valign="top"> </td> <td> </td> </tr> <tr> <td> </td> <td align="center" valign="top"><table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="6" scope="col"><img src="images/lf_blubtn.gif" width="6" height="25"></td> <td align="center" background="images/bg_blubtn.gif" class="blubtn_text" scope="col"><a href="java script:document.a.submit(); document.a.action='success_upload.php?eid=<?=$_REQUEST['eid']?>'" class="blubtn_text">Upload Photo</a> </td> <td width="5" align="right" valign="top" scope="col"><img src="images/rt_blubtn.gif" width="5" height="24"></td> </tr> </table></td> <td> </td> </tr> <tr> <td width="15"> </td> <td align="left" valign="top"> </td> <td width="15"> </td> </tr> </table></form></TD> </TR> </table> </div></td> <td><p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2"><div align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0" > <tr> <td align="center" scope="row"><span class="logintext"> <?include "include/footer1.php";?></td> </tr> </table> </div></td> </tr> </table></td> </tr> </table></td> </tr></table></body></html>success_upload_photo.php<? session_start();if(!$_SESSION["member_id"])header("location:login.php");include "include/config.inc.php";$_REQUEST['eid'];$qry = mysql_query("SELECT * FROM register WHERE member_id='".$_SESSION["member_id"]."'");//echo "SELECT * FROM register WHERE user_id='".$_REQUEST['eid']."'"; $res_qry = mysql_fetch_object($qry);$image=$res_qry->user_image;if( $image!=''){$image="../user/user_images/".$image;}else{$image="user_images/noimages.jpg";}?><link href="wedeliverlovestyles.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.profile_active_text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #FF0066;}--></style></head><body topmargin="0" leftmargin="0"><table width="100%" height="590"border="0" cellpadding="0" cellspacing="0" background="#56595C"> <tr> <td align="center" valign="top" bgcolor="#56595C" scope="col"><table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#e2e2e2"> <tr> <td align="left" valign="top" scope="col"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><?include "include/header1.php";?></td> </tr> <tr> <td align="left" valign="middle" bgcolor="#e2e2e2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th height="25" align="left" valign="middle" scope="col"><span class="pink_text"><a href="#" class="pink_text">My Match :</a></span><span class="style1"><a href="update_member.php" class="sky_text"> My Membership</a> </span><span class="pink_text">|</span><span class="style1"> <a href="#" class="sky_text">My Profile </a></span><span class="pink_text">|</span><span class="style1"> <a href="#" class="sky_text">My Favourites</a> </span><span class="pink_text">|</span><span class="style1"> <a href="#" class="sky_text">My Contacts</a> </span><span class="pink_text">|</span><span class="sky_text"> <a href="#" class="sky_text">Matchfinder</a> </span><span class="pink_text">|</span></th> </tr> <? $sel_status="select * from register where member_id='".$_SESSION["member_id"]."'"; $exe_status=mysql_query($sel_status); $fet_status=mysql_fetch_array($exe_status); $status=$fet_status['status']; $user_image_sta=$fet_status['user_image']; if($status == 1) { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span></td> </tr> <? } elseif($status == 2) { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span><span class="pink_text">|</span><span class="sky_text"><a href="upload_photo.php"class="sky_text"> Upload Photo</a></span><? if($user_image_sta<>"NOIMAGE.jpg"){?><span class="pink_text"> | </span><span class="sky_text"><a href="remove_upload_photo.php" class="sky_text">Remove Photo</a></span><? }?></td> </tr> <? } else { ?> <tr> <td height="25" align="left" valign="middle"><span class="sky_text"><a href="profile_status.php" class="sky_text">Profile Status</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="profile-modify_page1.php" class="sky_text">Modify Profile</a> </span><span class="pink_text">| </span><span class="sky_text"><a href="preview_profile.php" class="sky_text">Preview my profile</a> </span><span class="pink_text">|</span><span class="sky_text"><a href="upload_photo.php"class="sky_text"> Upload Photo</a></span><? if($user_image_sta<>"NOIMAGE.jpg"){?><span class="pink_text"> | </span><span class="sky_text"><a href="remove_upload_photo.php" class="sky_text">Remove Photo</a></span><? }?><span class="pink_text"> | </span><span class="sky_text">Suspend Profile </span></td> </tr> <? } ?> </table></td> </tr> </table> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="248"> </td> <td width="191"> </td> </tr> <tr> <td valign="top"> </td> <td> </td> </tr> <tr> <td valign="top"><div align="center"> <table width="566" border="0" cellpadding="0" cellspacing="0"> <TR> <TD width="562" align="left" vAlign=top class="blue-border"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"> </th> <td align="left" valign="top" class="box_headng" scope="col"> </td> <th scope="col"> </th> </tr> <tr> <th width="15" scope="col"> </th> <td align="left" valign="top" class="box_headng" scope="col">Your Photo has uploaded Successfully! </td> <th width="15" scope="col"> </th> </tr> <tr> <td> </td> <td align="center" valign="top" class="text-plain"> </td> <td> </td> </tr> <tr> <td> </td> <td height="300" align="center" valign="top" class="text-plain"><table width="60%" border="0" cellspacing="0" cellpadding="0"> <tr> <th height="300" class="blue-border" scope="col"><img src="<?=$image?>" height="250" width="300"></th> </tr> </table></td> <td> </td> </tr> <tr> <td width="15"> </td> <td align="left" valign="top"> </td> <td width="15"> </td> </tr> </table></TD> </TR> </table> </div></td> <td></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="15" scope="col"> </th> <th align="center" valign="middle" class="profile_extramenu" scope="col"><img src="images/things.gif" width="18" height="17"></th> <td align="left" valign="middle" class="profile_extramenu" scope="col"><a href="#" class="profile_extramenu">Things to do ! </a></td> <th width="5" scope="col"> </th> <td align="center" valign="middle" class="profile_extramenu" scope="col"><img src="images/homr.gif" width="23" height="23"></td> <td align="left" valign="middle" class="profile_extramenu" scope="col"><a href="match_finder_contacts.php" class="profile_extramenu">Like to go Home? </a></td> <th width="5" scope="col"> </th> <td align="center" valign="middle" class="profile_extramenu" scope="col"><img src="images/search1.gif" width="19" height="22"></td> <td align="left" valign="middle" class="profile_extramenu" scope="col"><a href="search_easy.php" class="profile_extramenu">Start Searching..... </a></td> </tr> </table></td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2"><div align="left"></div></td> </tr> <tr> <td colspan="2"><div align="center"> </div></td> </tr> </table></td> </tr> </table></td> </tr></table></body></html> <?include "include/footer1.php";?>search_results_newestprofile1.php<?ob_start();session_start(); include "include/config.inc.php";$on=$_REQUEST['s_online_now'];$ph=$_REQUEST['s_photo'];$pro=$_REQUEST['s_photo_gallery'];//echo $pro;//echo $on;$coun=$_REQUEST['category']; $ser=$_REQUEST['looking']; $frm=$_REQUEST['s_age_from']; $to=$_REQUEST['s_age_to']; $mem=$_REQUEST['s_member_id']; $username=$_REQUEST['s_known_as']; $langus=$_REQUEST['s_profile_language_id']; $smoke=$_REQUEST['sm_smoke_id']; $drink=$_REQUEST['sm_alcohol_id']; $vegita=$_REQUEST['sm_vegetarian_id']; $resent=$_REQUEST['s_recent_id']; $child=$_REQUEST['s_children']; $edu=$_REQUEST['sm_education_id']; $mat1=$_REQUEST['sm_marital_any']; $mat2=$_REQUEST['sm_marital_att']; $mat3=$_REQUEST['sm_marital_div']; $mat4=$_REQUEST['sm_marital_married']; $mat5=$_REQUEST['sm_marital_sep']; $mat6=$_REQUEST['sm_marital_sin']; $mat7=$_REQUEST['sm_marital_wid']; $rel1=$_REQUEST['sm_match_any']; $rel2=$_REQUEST['sm_match_acti']; $rel3=$_REQUEST['sm_match_cas']; $rel4=$_REQUEST['sm_match_fri']; $rel5=$_REQUEST['sm_match_marr']; $rel6=$_REQUEST['sm_match_rela']; $rel7=$_REQUEST['sm_match_rom']; $rel8=$_REQUEST['sm_match_tra']; $eye1=$_REQUEST['sm_eye_colour_any']; $eye2=$_REQUEST['sm_eye_colour_bla']; $eye3=$_REQUEST['sm_eye_colour_blue']; $eye4=$_REQUEST['sm_eye_colour_brown']; $eye5=$_REQUEST['sm_eye_colour_green']; $eye6=$_REQUEST['sm_eye_colour_grey']; $eye7=$_REQUEST['sm_eye_colour_hazel']; $hair1=$_REQUEST['sm_hair_colour_any']; $hair2=$_REQUEST['sm_hair_colour_anb']; $hair3=$_REQUEST['sm_hair_colour_bal']; $hair4=$_REQUEST['sm_hair_colour_bla']; $hair5=$_REQUEST['sm_hair_colour_blo']; $hair6=$_REQUEST['sm_hair_colour_bro']; $hair7=$_REQUEST['sm_hair_colour_ligbro']; $hair8=$_REQUEST['sm_hair_colour_other']; $hair9=$_REQUEST['sm_hair_colour_red']; $hair10=$_REQUEST['sm_hair_colour_white']; $height1=$_REQUEST['sm_height_any']; $height2=$_REQUEST['sm_height_below']; $height3=$_REQUEST['sm_height_to']; $height4=$_REQUEST['sm_height_just']; $height5=$_REQUEST['sm_height_abov']; $body1=$_REQUEST['sm_weight_any']; $body2=$_REQUEST['sm_weight_ample']; $body3=$_REQUEST['sm_weight_athle']; $body4=$_REQUEST['sm_weight_avera']; $body5=$_REQUEST['sm_weight_cudd']; $body6=$_REQUEST['sm_weight_slim']; $body7=$_REQUEST['sm_weight_verycu']; $Activity=$_REQUEST['Activity']; $casual=$_REQUEST['casual']; $Friendship=$_REQUEST['Friendship']; $Marriage=$_REQUEST['Marriage']; $Relationship=$_REQUEST['Relationship']; $Romance=$_REQUEST['Romance']; $Travel=$_REQUEST['Travel']; ////////////////advanced search/////////////////////////////////// $race=''; if(is_array($_REQUEST['race'])) { foreach($_REQUEST['race'] as $val) { $race=$race.$val.","; } } $race=substr($race, 0, (strlen($race)-1)); $race_parts=explode(",",$race); if(is_array($race_parts)) { $race_query='('; } foreach($race_parts as $val) { $race_query.=' int_id like \'%'.$val.'%\' or '; } $race_query=ereg_replace("( or )+$","",$race_query); $race_query.=' ) '; $race_query; $interest=''; if(is_array($_REQUEST['interests'])) { foreach($_REQUEST['interests'] as $val) { $interest=$interest.$val.","; } } $interest=substr($interest, 0, (strlen($interest)-1)); $interest_parts=explode(",",$interest); if(is_array($interest_parts)) { $interest_query='('; } foreach($interest_parts as $val) { $interest_query.=' int_id like \'%'.$val.'%\' or '; } $interest_query=ereg_replace("( or )+$","",$interest_query); $interest_query.=' ) '; $interest_query; //echo "interest:".$interest; $religion=''; if(is_array($_REQUEST['religion'])) { foreach($_REQUEST['religion'] as $val) { $religion=$religion.$val.","; } } $religion=substr($religion, 0, (strlen($religion)-1)); $religion_parts=explode(",",$religion); if(is_array($religion_parts)) { $religion_query='('; } foreach($religion_parts as $val) { $religion_query.=' int_id like \'%'.$val.'%\' or '; } $religion_query=ereg_replace("( or )+$","",$religion_query); $religion_query.=' ) '; $religion_query; $language=''; if(is_array($_REQUEST['language'])) { foreach($_REQUEST['language'] as $val) { $language=$language.$val.","; } } $language=substr($language, 0, (strlen($language)-1)); $language_parts=explode(",",$language); if(is_array($language_parts)) { $language_query='('; } foreach($language_parts as $val) { $language_query.=' lan1_id like \'%'.$val.'%\' or lan2_id like \'%'.$val.'%\' or lan3_id like \'%'.$val.'%\' or lan4_id like \'%'.$val.'%\' or '; } $language_query=ereg_replace("( or )+$","",$language_query); $language_query.=' ) '; $language_query; ////////////////end advanced search/////////////////////////////////// $sort=$_REQUEST['s_sort_id']; /* show_pages shows the links to the different pages it gets passed the current offset and the total number of images to show on one page ($display_length) */ //$total=$gettotalusers % 3; //$divi=$gettotalusers-$total; //$divi; //if(($gettotalusers MOD 3) == 0 ) //{ /////////////////////////testing//////////////////////////////////// // $search_q=""; if($_POST) { $flag=0; if($looking!="") { $search_q=$search_q." gender='$looking'"; $flag=1; } if($s_age_from!="" && $s_age_to!="") { if($flag==1){ $search_q=$search_q." and age BETWEEN $s_age_from and $s_age_to"; } else{ $search_q=$search_q; $flag=1; } } if($category!="") { if($flag==1){ $search_q=$search_q." and countryid='$category'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_smoke_id!="") { if($flag==1){ $search_q=$search_q." and smok='$sm_smoke_id'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_alcohol_id!="") { if($flag==1){ $search_q=$search_q." and drink='$sm_alcohol_id'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_vegetarian_id!="") { if($flag==1){ $search_q=$search_q." and food='$sm_vegetarian_id'"; } else{ $search_q=$search_q; $flag=1; } } if($s_children!="") { if($flag==1){ $search_q=$search_q." and child='$s_children'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_education_id!="") { if($flag==1){ $search_q=$search_q." and edu_id='$sm_education_id'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_any!="") { if($flag==1){ $search_q=$search_q."and ( marriage_status='$sm_marital_any'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_att!="") { if($flag==1){ $search_q=$search_q."or marriage_status='$sm_marital_att'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_div!="") { if($flag==1){ $search_q=$search_q."or marriage_status='$sm_marital_div'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_married!="") { if($flag==1){ $search_q=$search_q."or marriage_status='$sm_marital_married'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_sep!="") { if($flag==1){ $search_q=$search_q."or marriage_status='$sm_marital_sep'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_sin!="") { if($flag==1){ $search_q=$search_q."or marriage_status='$sm_marital_sin'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_marital_wid!="") { if($flag==1){ $search_q=$search_q."or marriage_status='$sm_marital_wid' ) "; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_any!="") { if($flag==1){ $search_q=$search_q." and eye_id like '%$sm_eye_colour_any%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_bla!="") { if($flag==1){ $search_q=$search_q." or eye_id like '%$sm_eye_colour_bla%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_blue!="") { if($flag==1){ $search_q=$search_q." or eye_id like '%$sm_eye_colour_blue%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_brown!="") { if($flag==1){ $search_q=$search_q." or eye_id like '%$sm_eye_colour_brown%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_green!="") { if($flag==1){ $search_q=$search_q." or eye_id like '%$sm_eye_colour_green%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_grey!="") { if($flag==1){ $search_q=$search_q." or eye_id like '%$sm_eye_colour_grey%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_eye_colour_hazel!="") { if($flag==1){ $search_q=$search_q." or eye_id like '%$sm_eye_colour_hazel%' "; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_any!="") { if($flag==1){ $search_q=$search_q."and hair_id like '%$sm_hair_colour_any%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_anb!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_anb%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_bal!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_bal%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_bla!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_bla%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_blo!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_blo%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_bro!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_bro%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_ligbro!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_ligbro%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_other!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_other%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_red!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_red%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_hair_colour_white!="") { if($flag==1){ $search_q=$search_q."or hair_id like '%$sm_hair_colour_white%' "; } else{ $search_q=$search_q; $flag=1; } } ///////////////////height/////////////// if($sm_height_any!="") { if($flag==1){ $search_q=$search_q." and height_id like '%$sm_height_any%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_height_below!="") { if($flag==1){ $search_q=$search_q." or height_id like '%$sm_height_below%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_height_to!="") { if($flag==1){ $search_q=$search_q." or height_id like '%$sm_height_to%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_height_just!="") { if($flag==1){ $search_q=$search_q." or height_id like '%$sm_height_just%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_height_abov!="") { if($flag==1){ $search_q=$search_q." or height_id like '%$sm_height_abov%' "; } else{ $search_q=$search_q; $flag=1; } } /////////////end Height////////////////// /////////////body////////////////// if($sm_weight_any!="") { if($flag==1){ $search_q=$search_q."and body_id like '%$sm_weight_any%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_weight_ample!="") { if($flag==1){ $search_q=$search_q."or body_id like '%$sm_weight_ample%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_weight_athle!="") { if($flag==1){ $search_q=$search_q."or body_id like '%$sm_weight_athle%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_weight_avera!="") { if($flag==1){ $search_q=$search_q."or body_id like '%$sm_weight_avera%'"; } else{ $search_q=$search_q; $flag=1; } } if($sm_weight_cudd!="") { if($flag==1){ $search_q=$search_q."or body_id like '%$sm_weight_cudd%' "; } else{ $search_q=$search_q; $flag=1; } } if($sm_weight_slim!="") { if($flag==1){ $search_q=$search_q."or body_id like '%$sm_weight_slim%' "; } else{ $search_q=$search_q; $flag=1; } } if($sm_weight_verycu!="") { if($flag==1){ $search_q=$search_q."or body_id like '%$sm_weight_verycu%' "; } else{ $search_q=$search_q; $flag=1; } } //////////////body end////////////// ///////////////race/////////////// if($race!="") { if($flag==1){ $search_q=$search_q." and $race_query"; } else{ $search_q=$search_q; $flag=1; } } ///////////////race end/////////// ///////////////Religion /////////////// if($religion!="") { if($flag==1){ $search_q=$search_q." and $religion_query"; } else{ $search_q=$search_q; $flag=1; } } ///////////////Religion end/////////// ///////////////language /////////////// if($language!="") { if($flag==1){ $search_q=$search_q." and $language_query "; } else{ $search_q=$search_q; $flag=1; } } /* if($language!="") { if($flag==1){ $search_q=$search_q." or $language_query1 "; } else{ $search_q=$search_q; $flag=1; } } if($language!="") { if($flag==1){ $search_q=$search_q." or $language_query2 "; } else{ $search_q=$search_q; $flag=1; } } if($language!="") { if($flag==1){ $search_q=$search_q." or $language_query3 "; } else{ $search_q=$search_q; $flag=1; } } */ /*if($language!="") { if($flag==1){ $search_q=$search_q." and lan1_id in('$language') or lan2_id in ('$language') or lan3_id in('$language') or lan4_id in ('$language') "; } else{ $search_q=$search_q; $flag=1; } }*/ ///////////////Religion end/////////// ///////////////interest /////////////// if($interest!="") { if($flag==1){ $search_q=$search_q." and $interest_query "; } else{ $search_q=$search_q; $flag=1; } } ///////////////interest end/////////// if($s_member_id!="") { if($flag==0){ $search_q=$search_q." member_id='$s_member_id' and status='3'"; } else{ $search_q=$search_q."status='3'"; $flag=1; } } if($s_known_as!="") { if($flag==0){ $search_q=$search_q." uname='$s_known_as' and status='3'"; } else{ $search_q=$search_q."status='3'"; $flag=1; } } //////////////mutual match/////////// if(($casual != "") || ($Friendship != "") || ($Romance != "") || ($Relationship != "") || ($Travel != "") || ($Marriage != "")) { $muual="select * from relationship where casual = '".$casual."' or romance = '".$Romance."' or relationship = '".$Relationship."' or marriage = '".$Marriage."'";//echo "select * from relationship where casual = '".$casual."' or romance = '".$Romance."' or relationship = '".$Relationship."' or marriage = '".$Marriage."'";$out=mysql_query($muual);$qry = "SELECT * FROM register,relationship where relationship.`casual`='".$casual."' or relationship.`romance` = '".$Romance."' or relationship.`relationship` = '".$Relationship."' or relationship.`marriage` = '".$Marriage."'and register.status='3' and register.`gender` = '".$looking."' and regster.`age` BETWEEN '".$s_age_from."' AND '".$s_age_to."' and register.member_id=relationship.member_id";//echo "SELECT * FROM register,relationship where relationship.`friendship`='".$Friendship."' or relationship.`casual`='".$casual."' or relationship.`romance` = '".$Romance."' or relationship.`relationship` = '".$Relationship."' or relationship.`marriage` = '".$Marriage."'and register.status='3' and register.`gender` = '".$looking."' and regster.`age` BETWEEN '".$s_age_from."' AND '".$s_age_to."' and register.member_id=relationship.member_id";//echo "SELECT * FROM register,relationship where relationship.`friendship`='".$Friendship."' or relationship.`romance`='".$Romance."' or relationship.`casual`='".$casual."' and register.status='3' and register.member_id=relationship.member_id";$re=@mysql_num_rows($out);for($i=0;$i<$re;$i++) { $get=mysql_fetch_array($out); $mem=$get['member_id']; } } ////////////////mutual match end/////////// if($_SESSION['member_id'] != '') { $search_q=$search_q." and member_id != '".$_SESSION['member_id']."'"; } if($_REQUEST['s_online_now'] == '1') { $search_q=$search_q." and online = '1'"; } if($_REQUEST['s_photo'] == 'yes') { $search_q=$search_q." and user_image != ''"; } $_SESSION[qry_str]=false;} ////////////////////////else part////////////// else { if($_REQUEST['s_online_now'] == '1') { $search_q=$search_q." and online = '1'"; } if($_REQUEST['s_photo'] == 'yes') { $search_q=$search_q." and user_image != ''"; } $qry=$_SESSION[qry_str]; } if($_REQUEST['query1']) { $qry=$_REQUEST['query1']; $qry= stripslashes($qry); if(!$_SESSION[qry_str]) { $_SESSION[qry_str]=$qry;} else{ $qry=$_SESSION[qry_str];} } else { if($s_sort_id=="") { if($_REQUEST['s_online_now'] == '1') { $search_q=$search_q." and online = '1'"; } if($_REQUEST[
  6. Viewusers.php<? //session_start(); include "include/header.php";include "include/config.inc.php";//include "eventscode/View_activity.php";//if ($_SESSION[user]){$qry = mysql_query("SELECT * FROM register");$num = mysql_num_rows($qry);$num = floor($num/10);if($_REQUEST['act']){ $delete="delete from register where user_id='".$_REQUEST['qty_id']."'"; $delet_sql=mysql_query($delete)or die(mysql_error()); }if($_REQUEST['pro_id']) { $selquery="UPDATE register SET "; if($_REQUEST['fn']=="1") $selquery.="status='0'"; else $selquery.="status='1'"; $selquery.=" WHERE user_id=".$_REQUEST['pro_id']; $selresult = mysql_query($selquery) or die(mysql_error()); }?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>Match</title> <link href="css/style.css" rel="stylesheet" type="text/css"></head><body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#E6E6E6"><table border="0" cellpadding="0" cellspacing="0" width="768" align="center"><tr valign="top"> <td width="185" background="images/fon_left03.gif"><? include 'leftmenu.php'; ?></td> <td bgcolor="#FFFFFF" width="572"><div align="center"><img src="images/m_top.gif" width="572" height="8" alt="" border="0"></div><p class="px5"><table border="0" cellpadding="0" cellspacing="0" width="95%" align="center" height="25" background="images/fon_bar01.gif"> <tr> <td><table border="0" cellpadding="0" cellspacing="0" background="" bgcolor="#FFFFFF"> <tr> <td><img src="images/e03.gif" width="21" height="21" alt="" border="0" align="left"></td> <td><p class="bar01" style="color: #DA0008; font-size: 18px;">Admin </p></td> </tr> </table></td> </tr></table><br><table width="95%" border="0"> <tr class="right"> <td align="center" bgcolor="#FFFFFF"><b> </b></td> <td align="center" bgcolor="#FFFFFF"><b> </b></td> </tr> <tr> <td><table width="90%" border="0" cellpadding=0 cellspacing=0 align="center"> <tr bgcolor="#FFFFFF"> <td colspan="4"><div align="center" class="msg"></div></td> </tr> <tr class="right"> <td align="center" bgcolor="#FFFFFF"><U>List of Users </U></td> <td align="center" bgcolor="#FFFFFF"><b></b></td> </tr> <tr class="right"> <td align="center" bgcolor="#FFFFFF"><b></b></td> <td align="center" bgcolor="#FFFFFF"><b></b></td> </tr> <? if($msg1){?> <tr class="right"> <td align="center" colspan=3><? echo "<font color='red'>Updated Successfully</font>";?></td> </tr> <tr> <td align="center" colspan=3> </td> </tr><?}?> <tr bgcolor="#FFFFFF"> <td colspan=3 align="right"> <table width="95%" align="center" border="1" bordercolor="#FF3300" style="border-collapse:collapse"> <tr height="22"> <th width="50">Sl. No</th> <th width="200">User Name</th> <th width="200">Member ID</th> <th width="200">Mail Address</th> <th>Action</th> </tr> <? $pgs=5; $cur_page = $_REQUEST['page']; $list_per_page =$pgs; $current_page = $cur_page; $select="select * from register order by uname asc"; $select_sql=mysql_query($select)or die(mysql_error()); $num=mysql_num_rows($select_sql); $total_rows = $num; $total_pages = ceil($total_rows/$list_per_page); if ($current_page == "" || $current_page == 0) $current_page = 1; $start_rec_no = (($current_page-1) * $list_per_page) + 1; $end_rec_no = $current_page * $list_per_page; $sql = "select * from register limit ".($start_rec_no - 1).", $list_per_page "; $res = mysql_query($sql); echo mysql_error(); while (mysql_num_rows($res) <= 0) { $current_page = $current_page - 1; $start_rec_no = (($current_page-1) * $list_per_page) + 1; $end_rec_no = $current_page * $list_per_page; $sql = "select * from register limit ".($start_rec_no -1)." , $list_per_page "; $res = mysql_query($sql); echo mysql_error(); if ($current_page <= 0) { $current_page = 1; break; } }if($current_page!=1) { $firstpage="<a href='viewuser.php?page=1&pg=$pgs'><img src=images/red_arrow_first.GIF border=0></a>"; } $previous_page = $current_page - 1; if ($previous_page > 0) $previous_page_link = "<a href='viewuser.php?page=$previous_page&pg=$pgs' class='link1'><img src=images/red_arrow_left.GIF border=0></a> "; else $previous_page_link = " "; $next_page = $current_page + 1; if ($next_page <= $total_pages) $next_page_link = " <a href='viewuser.php?page=$next_page&pg=$pgs' class='link1'><img src=images/red_arrow_right.GIF border=0></a>"; else $next_page_link = " "; $pages_link = ""; for ($i=1; $i<=$total_pages; $i++) { if ($i == $current_page) $pages_link.=" <span >".$i."</span> "; else $pages_link.=" <a href='viewuser.php?page=$i&pg=$pgs' class='link1'>$i</a> "; if ($i%30 == 0 ) $pages_link.="<br>"; } if($current_page!=$total_pages) { $lastpage="<a href='viewuser.php?page=$total_pages&pg=$pgs' class='link1'><img src=images/red_arrow_last.GIF border=0></a>"; } $count = 0; $sl = 0;/***************page end******************/$i=0;$m=0; $k=0; while($res=mysql_fetch_object($select_sql)){ $k++; $sl++; $count++; $m++; if ($count >= $start_rec_no && $count <= $end_rec_no) { if($m%2==0) {?><tr bgcolor="#D3D8E7" class="right_text"><?} else {?><tr bgcolor="#eef0eb" class="right_text"><?}?><td align=center><?=$k?></td><td align=center><?=$res->uname." ".$res->user_lname?></td><td align=center><?=$res->member_id ?></td><td align=center><?=$res->email ?></td><td align=center class='link' ><a href='view_individual_user.php?eid=<?=$res->user_id?>' ><IMG SRC="images/view.gif" BORDER="0" ALT="View"></a> <a href='viewuser.php>act=del&&qty_id=<?=$res->user_id?>' onclick="return confirm('Are you sure to delete this User?');"><IMG SRC="images/b_drop.png" BORDER="0" ALT="Delete"></a> <a href='edit_user.php?eid=<?=$res->user_id?>' ><IMG SRC="images/b_edit.png" BORDER="0" ALT="Edit"></a> <? if($res->status == "1") { ?> <a href="viewuser.php?fn=1&pro_id=<?=$res->user_id?>"><IMG SRC="images/e4.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="Enabled"></a> <?}else{?> <a href="viewuser.php?fn=0&pro_id=<?=$res->user_id?>"><IMG SRC="images/e3.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="Disabled"></a> <?}?></td> </tr> <?}}?> </table> </td> </tr> <tr class="right"> <td align="center" bgcolor="#FFFFFF" colspan="3"><b> </b></td> </tr> <tr> <td colspan="4" align="right"><FONT color="#000000" size=2 face=verdana class="left"><b><?=$firstpage?> <?=$previous_page_link?> <?=$pages_link?> <?=$next_page_link?> <?=$lastpage?> </b></font></td> </tr></table></td> </tr></table></td></table><table border="0" cellpadding="0" cellspacing="0" width="758" align="center"><tr> <td height="52" align="right" background="images/bot.gif"> </td></tr><tr> <td><p align="right" style="margin-right: 200px;">Copyright ©2006 wedeliverlove.com</p></td></tr></table><!-- <FONT color="#000000" size=2 face=verdana class="left"><b> Page: <?=$pages_link?> </b></font> --></body></html><?//}else{ //header('location: index.php');//}?>edit_user.php<?//ob_start();//session_start();include "include/header.php";include "include/config.inc.php";//include "spiffyCal/spiffyCal_v2_1.js";//if($_SESSION['user1'])//{ $sel11="select * from register where user_id='".$_REQUEST['eid']."'"; $sel_sql11=mysql_query($sel11)or die(mysql_error()); $rowss=mysql_fetch_object($sel_sql11);$date=$rowss->dob;$dob = explode("-",$date);$year= $dob[0];$month=array("Select Month","January","February","March","April","May","June","July","Augest","September","October","November","December");$mo= $dob[1];$day= $dob[2]; if($_REQUEST['add']) if($_POST) { $sel="select * from register where user_id ='".$_REQUEST['eid']."'"; $sel_sql=mysql_query($sel)or die(mysql_error()); $num=mysql_num_rows($sel_sql); $da=$_REQUEST['dy']; $mon=$_REQUEST['nth']; $ye=$_REQUEST['yr']; $dob=$ye."-".$mon."-".$da; /*if($num) { $msg="Country Already Exists"; }else{*/ $int="update register set uname='".$_REQUEST['uname']."',email='".$_REQUEST['email']."',phone='".$_REQUEST['phone']."',gender='".$_REQUEST['gender']."',countryid='".$state."',dob='".$dob."', relig='".$relig."', eye_id='".$eye."', hair_id='".$hair."', race_id='".$race."', height_id='".$height."' , body_id='".$body."', int_id='".$inter."' where user_id='".$_REQUEST['eid']."'"; $int_sql=mysql_query($int)or die(mysql_error()); header("location:viewuser.php?eid=$_REQUEST[eid]&msg1=1"); //} $inti1="update login set uname='".$_REQUEST['uname']."',email='".$_REQUEST['email']."',countryid='".$res_qry1->countries_id ."' where id='".$_REQUEST['eid']."'"; $int_sql1=mysql_query($inti1)or die(mysql_error()); header("location:viewuser.php?eid=$_REQUEST[eid]&msg1=1"); }?><script language="javascript">function valid(){ if(document.frm.uname.value =="") { alert("Please enter the User Name"); document.frm.uname.focus(); return false; } if(document.frm.uname.value!="") { var MN = document.frm.uname.value.substring(0,1); if ( MN == ' ') { alert("\n First character should not be a space "); document.frm.uname.value=""; document.frm.uname.focus(); return false; } } if(document.frm.email.value!="") { var FN = document.frm.email.value.substring(0,1); if ( FN == ' ') { alert("\n In the email, first character should not be a space "); document.frm.email.select(); document.frm.email.focus(); return false; } } if(document.frm.email.value==""){ alert("Please enter a email address"); document.frm.email.focus(); return false; } if(document.frm.email.value=="") { alert("Please enter your email address"); document.frm.email.focus(); return false; } if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(reg.email.value)) { //ok; } else { alert("Invalid email address! Please re-enter."); document.frm.email.focus(); return false; } return true;}</script><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <title>wedeliverlove.com</title> <link href="css/style.css" rel="stylesheet" type="text/css"><div id="spiffycalendar" class="text"></div> <link rel="stylesheet" type="text/css" href="javascript/spiffyCal/spiffyCal_v2_1.css"><script language="JavaScript" src="javascript/spiffyCal/spiffyCal_v2_1.js"></script><script language="javascript"> var d = new ctlSpiffyCalendarBox("d", "frm", "dob","button1","",scBTNMODE_CUSTOMBLUE); //var w = new ctlSpiffyCalendarBox("w", "weekly", "weekly_text","button2","",scBTNMODE_CUSTOMBLUE);</script> </head><body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#E6E6E6"><table border="0" cellpadding="0" cellspacing="0" width="768" align="center"><tr valign="top"> <td width="185" background="images/fon_left03.gif"><? include 'leftmenu.php'; ?></td> <td bgcolor="#FFFFFF" width="572"><div align="center"><img src="images/m_top.gif" width="572" height="8" alt="" border="0"></div><p class="px5"><table border="0" cellpadding="0" cellspacing="0" width="95%" align="center" height="25" background="images/fon_bar01.gif"> <tr> <td><table border="0" cellpadding="0" cellspacing="0" background="" bgcolor="#FFFFFF"> <tr> <td><img src="images/e03.gif" width="21" height="21" alt="" border="0" align="left"></td> <td><p class="bar01" style="color: #DA0008; font-size: 18px;">Admin </p></td> </tr> </table></td> </tr></table><br><table width="95%" border="0"> <tr class="right"> <td align="center" bgcolor="#FFFFFF"><b> </b></td> <td align="center" bgcolor="#FFFFFF"><b> </b></td> </tr> <tr> <td><table width="90%" border="0" cellpadding=0 cellspacing=0 align="center"> <tr bgcolor="#FFFFFF"> <td colspan="4"><div align="center" class="msg"></div></td> </tr> <tr class="right"> <td align="center" bgcolor="#FFFFFF"><b></b></td> <td align="center" bgcolor="#FFFFFF"><b></b></td> </tr> <tr> <td colspan=3 class="text_b" align=center><b> Edit User Details</b></td> </tr> <tr> <td class="text_red" align="center" colspan=3><?=$msg?></td> </tr> <? if($msg1){?> <tr class="right"> <td align="center" colspan=3><? echo "<font color='red'>Updated Successfully</font>";?></td> </tr> <tr> <td align="center" colspan=3> </td> </tr><?}?> <tr><td colspan=3> </td></tr> <form name="frm" method="POST" Onsubmit="valid()"> <tr class="right"><td width="100"> </td><td>User Details</td> <td><input name="uname" type="text" class="InpBox" value="<?=$rowss->uname?>"></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Email Address</td> <td><input name="email" type="text" class="InpBox" value="<?=$rowss->email?>"></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Phone</td> <td><input name="phone" type="text" class="InpBox" value="<?=$rowss->phone?>"></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Gender</td> <td><input name="gender" type="text" class="InpBox" value="<?=$rowss->gender?>"></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Country</td> <td><select class=InpBox name="state"> <? $qry1 = mysql_query("SELECT * FROM countries WHERE countries_id ='".$rowss->countryid."'"); $res_qry1 = mysql_fetch_object($qry1); $getphone="SELECT * FROM countries order by countries_id"; $exe=mysql_query($getphone) or die(mysql_error()); $rows=mysql_num_rows($exe); for($i=0;$i<=$rows;$i++){ $data=mysql_fetch_array($exe); if($data['countries_id']==$state) echo"<option value=".$rowss->countryid." selected>".$res_qry1->countries_name."</option>"; else echo"<option value=".$data['countries_id'].">".$data['countries_name']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Reliegion</td> <td><select class=InpBox name="relig"> <? $qry2 = mysql_query("SELECT * FROM religion WHERE rel_id ='".$rowss->relig."'"); $res_qry2 = mysql_fetch_object($qry2); $getphone2="SELECT * FROM religion order by rel_id"; $exe2=mysql_query($getphone2) or die(mysql_error()); $rows2=mysql_num_rows($exe2); for($i=0;$i<=$rows2;$i++){ $data2=mysql_fetch_array($exe2); if($data2['rel_id']==$relig) echo"<option value=".$rowss->relig." selected>".$res_qry2->religion_name."</option>"; else echo"<option value=".$data2['rel_id'].">".$data2['religion_name']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Eye Color</td> <td><select class=InpBox name="eye"> <? $qry3 = mysql_query("SELECT * FROM eye WHERE eye_id ='".$rowss->eye_id."'"); $res_qry3 = mysql_fetch_object($qry3); $getphone3="SELECT * FROM eye order by eye_id"; $exe3=mysql_query($getphone3) or die(mysql_error()); $rows3=mysql_num_rows($exe3); for($i=0;$i<=$rows3;$i++){ $data3=mysql_fetch_array($exe3); if($data3['rel_id']==$eye) echo"<option value=".$rowss->eye_id." selected>".$res_qry3->eye_color."</option>"; else echo"<option value=".$data3['eye_id'].">".$data3['eye_color']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Hair Color</td> <td><select class=InpBox name="hair"> <? $qry4 = mysql_query("SELECT * FROM haircolor WHERE hair_id ='".$rowss->hair_id."'"); $res_qry4 = mysql_fetch_object($qry4); $getphone4="SELECT * FROM haircolor order by hair_id"; $exe4=mysql_query($getphone4) or die(mysql_error()); $rows4=mysql_num_rows($exe4); for($i=0;$i<=$rows4;$i++){ $data4=mysql_fetch_array($exe4); if($data4['hair_id']==$hair) echo"<option value=".$rowss->hair_id." selected>".$res_qry4->hair_color."</option>"; else echo"<option value=".$data4['hair_id'].">".$data4['hair_color']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Race</td> <td><select class=InpBox name="race"> <? $qry5 = mysql_query("SELECT * FROM race WHERE race_id ='".$rowss->race_id."'"); $res_qry5 = mysql_fetch_object($qry5); $getphone5="SELECT * FROM race order by race_id"; $exe5=mysql_query($getphone5) or die(mysql_error()); $rows5=mysql_num_rows($exe5); for($i=0;$i<=$rows5;$i++){ $data5=mysql_fetch_array($exe5); if($data5['race_id']==$race) echo"<option value=".$rowss->race_id." selected>".$res_qry5->race_name."</option>"; else echo"<option value=".$data5['race_id'].">".$data5['race_name']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Height</td> <td><select class=InpBox name="height"> <? $qry6 = mysql_query("SELECT * FROM height WHERE height_id ='".$rowss->height_id."'"); $res_qry6 = mysql_fetch_object($qry6); $getphone6="SELECT * FROM height order by height_id"; $exe6=mysql_query($getphone6) or die(mysql_error()); $rows6=mysql_num_rows($exe6); for($i=0;$i<=$rows6;$i++){ $data6=mysql_fetch_array($exe6); if($data6['height_id']==$height) echo"<option value=".$rowss->height_id." selected>".$res_qry6->height."</option>"; else echo"<option value=".$data6['height_id'].">".$data6['height']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Body Type</td> <td><select class=InpBox name="body"> <? $qry7 = mysql_query("SELECT * FROM body WHERE body_id ='".$rowss->body_id."'"); $res_qry7 = mysql_fetch_object($qry7); $getphone7="SELECT * FROM body order by body_id"; $exe7=mysql_query($getphone7) or die(mysql_error()); $rows7=mysql_num_rows($exe7); for($i=0;$i<=$rows7;$i++){ $data7=mysql_fetch_array($exe7); if($data7['body_id']==$body) echo"<option value=".$rowss->body_id." selected>".$res_qry7->body_type."</option>"; else echo"<option value=".$data7['body_id'].">".$data7['body_type']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Interest</td> <td><select class=InpBox name="inter"> <? $qry8 = mysql_query("SELECT * FROM interest WHERE int_id ='".$rowss->int_id."'"); $res_qry8 = mysql_fetch_object($qry8); $getphone8="SELECT * FROM interest order by int_id"; $exe8=mysql_query($getphone8) or die(mysql_error()); $rows8=mysql_num_rows($exe8); for($i=0;$i<=$rows8;$i++){ $data8=mysql_fetch_array($exe8); if($data8['int_id']==$inter) echo"<option value=".$rowss->int_id." selected>".$res_qry8->inter."</option>"; else echo"<option value=".$data8['int_id'].">".$data8['inter']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Language</td> <td><select class=InpBox name="lan"> <? $qry9 = mysql_query("SELECT * FROM language WHERE lan_id ='".$rowss->lan_id."'"); $res_qry9 = mysql_fetch_object($qry9); $getphone9="SELECT * FROM language order by lan_id"; $exe9=mysql_query($getphone9) or die(mysql_error()); $rows9=mysql_num_rows($exe9); for($i=0;$i<=$rows9;$i++){ $data9=mysql_fetch_array($exe9); if($data9['lan_id']==$lan) echo"<option value=".$rowss->lan_id." selected>".$res_qry9->language_name."</option>"; else echo"<option value=".$data9['lan_id'].">".$data9['language_name']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Education</td> <td><select class=InpBox name="edu"> <? $qry10 = mysql_query("SELECT * FROM education WHERE edu_id ='".$rowss->edu_id."'"); $res_qry10 = mysql_fetch_object($qry10); $getphone10="SELECT * FROM education order by edu_id"; $exe10=mysql_query($getphone10) or die(mysql_error()); $rows10=mysql_num_rows($exe10); for($i=0;$i<=$rows10;$i++){ $data10=mysql_fetch_array($exe10); if($data10['edu_id']==$edu) echo"<option value=".$rowss->edu_id." selected>".$res_qry10->education."</option>"; else echo"<option value=".$data10['edu_id'].">".$data10['education']."</option>"; } ?> </select></td></tr> <tr><td colspan=3> </td></tr> <tr class="right"><td width="100"> </td><td>Date of Birth</td> <td> <!-- <input name="dob" type="text" class="InpBox" value="<?// $rowss->dob?>"> --> <SELECT class="" name="dy"><?=$day?> <? for($i=01;$i<=31;$i++) { ?> <OPTION value="<?=$i?>"<? if($day==$i) echo "selected";?>><? if($i < 10) {echo "0";}echo $i?></OPTION> <? } ?> </SELECT> <SELECT class="" name="nth"> <? for($monthc = 0;$monthc < 13; $monthc++) { if($mo==$monthc) $sel = "Selected"; else $sel = ""; ?> <OPTION value="<? if($monthc < 10) {echo "0";}echo $monthc;?>" <?=$sel?>><?=$month[$monthc]?></OPTION><? }?> </SELECT> <SELECT class="" name="yr"> <? for($i=1916;$i<=(date('Y')-16);$i++) { ?> <OPTION value="<?=$i?>"<? if($year==$i) echo "selected";?>><?=$i?></OPTION> <? } ?></td> </tr> <tr><td colspan=3> </td></tr> <tr><td colspan=3 align="center"><input name="add" type="submit" class="SubBtn" value="Update"></td></tr> </form> </table> </td> </tr> <tr class="right"> <td align="center" bgcolor="#FFFFFF" colspan="3"><b> </b></td> </tr> </table></td></table> <table border="0" cellpadding="0" cellspacing="0" width="758" align="center"><tr> <td height="52" align="right" background="images/bot.gif"> </td></tr><tr> <td><p align="right" style="margin-right: 200px;">Copyright ©2006 wedeliverlove.com</p></td></tr></table><?//}else{ //header('location: index.php');//}?>User/Join.php<? session_start();include "include/header.php";include "include/config.inc.php";if($_POST){ $uname=$_REQUEST['uname']; $pass=$_REQUEST['pass']; $email=$_REQUEST['email']; $gender=$_REQUEST['gender']; $dat=$_REQUEST['dat']; $mon=$_REQUEST['mon']; $month=array("Select Month","January","February","March","April","May","June","July","Augest","September","October","November","December"); $yr=$_REQUEST['yr']; $dob=$yr."-".$mon."-".$dat; $today=date('y-m-d'); //echo $ag=date('Y'-$dat); $ag=(date('Y')-$yr);// echo $today; //echo $dob; $category=$_REQUEST['category']; $look=$_REQUEST['look'];$names="MM".rand();$names;$_SESSION["member_id"]=$names;$alias = mt_rand();$alias = $alias . "@wedeliverlove.com"; $sele="select * from register where uname='$uname' ";$sql_sele=mysql_query($sele)or die(mysql_error());$num=mysql_num_rows($sql_sele);$sele2="select * from register where email='$email' ";$sql_sele2=mysql_query($sele2)or die(mysql_error());$num2=mysql_num_rows($sql_sele2);if($num!=0){$msg="User Name Already Exist";}if($num2!=0){$msg="Mail Address Already Exist";}if(($num==0) &&($num2==0)) { $insert="insert into register(user_id,uname,pass,email,alias_email,gender,dob,countryid,looking,Cre_date,last_view,member_id,age) values('','$uname','$pass','$email','$alias','$gender','$dob','$category','$look','$today','$today','$names','$ag')"; $sql_insert= mysql_query($insert) or die("not executed"); $msg="Registered Sucessfully"; $insert1="INSERT INTO members( member_id ) VALUES ('$names') "; $sql=mysql_query($insert1); $insert2="INSERT INTO relationship(`member_id`,`friendship`,`marriage`,`relationship`,`romance`,`casual`,`travel Partner`) VALUES ('$names','0','0','0','0','0','0') "; $sql2=mysql_query($insert2); ?> <script> window.location='subscribe.php'; </script> <?$subject=" Wedeliver Love";$body ='<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title><link href="style.css" rel="stylesheet" type="text/css"><style type="text/css"><!--a:link { color: #000000; text-decoration: none;}a:visited { text-decoration: none;}a:hover { text-decoration: none;}a:active { text-decoration: none;}--></style></head><body><link href="http://g-antssoft.com/wedeliverlove.com/style.css" rel="stylesheet" type="text/css"><table width="780" align="center" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="72"> </td> <td width="626" height="51"><img src="http://g-antssoft.com/wedeliverlove.com/images/TITLE.jpg" width="235" height="51"></td> <td width="74"> </td> </tr> <tr> <td height="19"> </td> <td> </td> <td> </td> </tr> <tr> <td height="71"> </td> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#99CC00"> <!--DWLayoutTable--> <tr> <td width="626" height="69" align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FF0000"> <!--DWLayoutTable--> <tr> <td width="577" height="34" valign="top"><table width="109%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="20" height="34" rowspan="2" valign="top"><div align="left"></div></td> <td width="604" valign="top"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td valign="top"><div align="left"> <p><SPAN class="style1" style="COLOR: #284b9d">Hi</SPAN><SPAN class="style1" style="COLOR: #9acb00">' .$name.'</SPAN> </p> <p>Welcome to wedeliverlove.com, the best place to meet quality singles and find that special someone. Heres how to get started:</p> </div></td> </tr> </table></td> </tr> <tr> <td height="19" valign="top"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="69" valign="top"> <p><a href="http://g-antssoft.com/wedeliverlove.com/login.php?ed=' .$names.'"><font color="blue"><ul>1. Click here, to confirm your e-mail address </a></ul>></font><br> 2. Post a free profile <br> 3. Search for quality singles <br> 4. Subscribe to communicate! </br></p> <p> </p></td> </tr> <tr> <td height="69" valign="top">Why confirm my e-mail address? <br>Its important for Match.com members to be able to communicate with each other. We ask members to confirm their<br> e-mail address to ensure messages reach their intended destination. Confirm your e-mail address now to: <br>- Receive contacts from other members<br>- Contact other members<br>- Post a free profile<br>- Receive Matchfinder, an optional weekly newsletter introducing you to singles in your area <br><br>Note: clicking the above link will automatically sign you in to wedeliverlove.com.</td> </tr> </table></td> </tr> </table></td> <td> </td> </tr> <tr> <td height="19"> </td> <td><p> </p> <p><B class=matchContent>Membership Information</B><BR> Wedeliverlove.com is delighted to have you as a new member! Below are your membership and login details. Please keep these in a secure, safe place: </p> <P> <TABLE cellSpacing=0 cellPadding=0 width=550 border=0> <TBODY> <TR> <TD align=left width=100><P class=matchContentBold>Username <BR> Password <BR> Member ID <BR> E-mail </P></TD> <TD align=left width=450><P class=matchContentBold>:'. $uname .'<BR> : '.$pass.' <BR> : '.$names.' <BR> : '.$email.'</P></TD> </TR> </TBODY> </TABLE> <p></P></td> <td> </td> </tr> <tr> <td> </td> <td><div align="left"><span class="style9">Please do not reply directly to this email. If your require assistance, please click on the Help link on our site </span></div></td> <td> </td> </tr> <tr> <td rowspan="2"> </td> <td><span class="style9">Your Webdeliverlove.com Memeber Support Team</span></td> <td rowspan="2"> </td> </tr> <tr> <td><span class="style9"><a href="http://g-antssoft.com/wedeliverlove.com" style="text-decoration:none">http://g-antssoft.com/wedeliverlove.com/</a></span></td> </tr></table></body></html>';$to ="$email" . ",";$to .="Admin@wedeliverlove.com";//$headers.="From:" $Email;//mail("anand@g-antssoft.com","Testing","SampleTesting");$headers = "MIME-Version: 1.0\r\n";$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";$headers .="From:admin@wedeliverlove.com.com "; /* To send HTML mail, you can set the Content-type header. */ //$headers = "From:".$Email." Content-type: multipart/mixed"; /* additional headers *///n$headers .= "To: Anand <anand@g-antssoft.com>, Dhanabalan <dhanabalan@g-antssoft.com\r\n";//$headers .= "From: Price Quoto <".$Name.">\r\n";$llll=mail($to,$subject,$body,$headers);}else {?> <? $msg; $flag=1; } // } }?><script language="javascript">function validation(){ if(document.reg.uname.value!="") { var FN = document.reg.uname.value.substring(0,1); if ( FN == ' ') { alert("\n In the username, first character should not be a space "); document.reg.uname.select(); document.reg.uname.focus(); return false; } } if(document.reg.uname.value=="") { alert("Please enter a username"); document.reg.uname.focus(); return false; } if(document.reg.pass.value!="") { var FN = document.reg.pass.value.substring(0,1); if ( FN == ' ') { alert("\n In the password, first character should not be a space "); document.reg.pass.select(); document.reg.pass.focus(); return false; } } if(document.reg.pass.value=="") { alert("Please enter a password"); document.reg.pass.focus(); return false; } if((document.reg.pass.value)!=(document.reg.cpass.value)) { alert("Password does not match") document.reg.pass.focus(); return false; } if(document.reg.email.value!="") { var FN = document.reg.email.value.substring(0,1); if ( FN == ' ') { alert("\n In the email, first character should not be a space "); document.reg.email.select(); document.reg.email.focus(); return false; } } if(document.reg.email.value=="") { alert("Please enter your email address"); document.reg.email.focus(); return false; } if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(reg.email.value)) { //ok; } else { alert("Invalid email address! Please re-enter.") document.reg.email.focus(); return false; } if((document.reg.email.value) != (document.reg.cemail.value)) { alert("Email Address does not match") document.reg.email.focus(); return false; } if(document.reg.gender.value=="") { alert("Please Select Gender"); document.reg.gender.focus(); return false; } if(document.reg.category.value=="") { alert("Please Select Country"); document.reg.category.focus(); return false; } if(document.reg.p_agree.checked==true) { return true; } else{ alert("Please Agree the Member Terms and Condition"); //document.reg.p_agree.focus(); return false; } }</script><link href="wedeliverlovestyles.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.profile_active_text { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #FF0066;}.profile_active_text1 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #FF0066;}.style1 {font-weight: bold}--></style></head><body topmargin="0" leftmargin="0"><table width="100%"border="0" cellpadding="0" cellspacing="0" background="#56595C"> <tr> <td align="center" valign="top" bgcolor="#56595C" scope="col"><table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#e2e2e2"> <tr> <td width="781" align="left" valign="top" scope="col"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td scope="col"> </td> </tr> <tr> <td align="left" valign="top" bgcolor="#e2e2e2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th height="25" align="left" valign="middle" scope="col"><span class="pink_text"><a href="#" class="pink_text">My Match :</a></span><span class="style1"><a href="search_easy.htm" class="sky_text"> Easy Search </a> </span><span class="pink_text">|</span><span class="style1"> <a href="search_advanced.htm" class="sky_text">Advanced Search </a></span><span class="pink_text">|</span><span class="style1"> <a href="search_member.htm" class="sky_text">Member Search </a> </span><span class="pink_text">|</span><span class="style1"> <a href="search_mutualmatch.htm" class="sky_text">Mutul Matching </a> </span></th> </tr> </table></td> </tr> </table> <table width="780" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" valign="top"> </td> </tr> <tr> <td width="10" rowspan="2" valign="top"></td> <td valign="top"><span class="reg-heading"><STRONG class=milHexBlue>Subscribe today to communicate instantly...</STRONG></span><BR> <SPAN class=milTxt18><STRONG class=number> </STRONG></SPAN></td> </tr> <tr> <td align="center" valign="top"><SPAN class=milTxt18><STRONG class=number>with millions of quality singles</STRONG></SPAN></td> </tr> <tr> <td colspan="2" valign="top"> </td> </tr> <tr> <td colspan="2" valign="top"><table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="15"> </td> <td align="left" valign="top"><div align="center"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td width="165" valign="top"><div id="join01d"> <div style="text-align:center; "><span class="help_menu"><strong class="milHexFuschia">5,301</strong></span><br> <span class="milHexBlue"><strong class="box_headng">members online now!</strong><br> </span></div> <table border="0" cellpadding="1" cellspacing="0" width="160"> <tr align="left"> <td colspan="3" valign="bottom" class="milTxt10"> </td> </tr> <tr align="left"> <td colspan="3" valign="bottom" class="milTxt10"><strong class="box_headng">1. Register:</strong></td> </tr> <tr> <td rowspan="4" valign="top"><div style="height:50px; width:6px; background-color:#A8B7DC; "><img src="#request.r_match_url_images#/s.gif" height="1" width="1"></div></td> <td valign="top" class="photo_smalltext">- </td> <td align="left" valign="middle" class="photo_smalltext"><span class="milHexGrey">View full member profiles</span></td> </tr> <tr> <td valign="top" class="photo_smalltext">- </td> <td align="left" valign="middle" class="photo_smalltext"><span class="milHexGrey">Receive previews of new singles</span></td> </tr> <tr> <td valign="top" class="photo_smalltext">-</td> <td align="left" valign="middle" class="photo_smalltext"><span class="milHexGrey">Post your own free photo profile</span></td> </tr> <tr> <td valign="top" class="photo_smalltext">-</td> <td align="left" valign="middle" class="photo_smalltext"><span class="milHexGrey">Use advanced search</span></td> </tr> <tr> <td colspan="3" height="20" valign="bottom" class="milTxt10"> </td> </tr> <tr align="left"> <td height="20" colspan="3" valign="bottom" class="milTxt10"><strong class="box_headng">2. Subscribe:</strong></td> </tr> <tr> <td rowspan="3" valign="top"><div style="height:50px; width:6px; background-color:#A8B7DC; "><img src="#request.r_match_url_images#/s.gif" height="1" width="1"></div></td> <td valign="top" class="photo_smalltext">- </td> <td align="left" valign="middle" class="photo_smalltext"><span class="milHexGrey">Contact other singles in your area</span></td> </tr> <tr> <td valign
  7. newinfoform.php<? ob_start(); session_start(); include "function/db_connection.php"; extract($_REQUEST); if($submit=="Continue") { $db="SELECT * FROM dental_users where name='".$name."'"; $db1=mysql_query($db) or die(mysql_error()); $db2=mysql_num_rows($db1); $dbmail="SELECT * FROM dental_users where emailid='".$email."'"; $dbexemail=mysql_query($dbmail) or die(mysql_error()); $dbnum=mysql_num_rows($dbexemail); if($dbnum!=0) { $msg="E-Mail Address Already exists,Please Choose Another E-mail Address"; } else { $name=$name; $btitle=$clinicname; $address=$add1; $city=$city; $state=$state; $zip=$zip; $tele=$_REQUEST['tele']; $pho= $_REQUEST['phone']; $num= $_REQUEST['number']; $mobile=$tele.$pho.$num; $folder=$name;//$_REQUEST['folder']; $email=$email; if($_REQUEST['web']=='1') { $siteaddress="yes"; }else { $siteaddress=$url; } $firstdegree=$degree; $firstspecalisation=$specalisation; $firstcollege=$_REQUEST['collage']; $otheracc=$_REQUEST['otheracc']; $bullet_pts=$_REQUEST[listing]; $bullet_pts1=$_REQUEST[listing1]; $bullet_pts2=$_REQUEST[listing2]; $aboutus=$_REQUEST[aboutus]; $testothers1=$_REQUEST[testothers1]; $testothers=$_REQUEST[testothers]; //$awards=$awards; if( $_REQUEST['photos']==" " or $_REQUEST['pro_image']==1) { $uploadfiles='coupon3_05.gif'; } else { $path=$_SERVER[DOCUMENT_ROOT]; $uploaddir= $path."/userimages/"; $image_name = $_FILES['photos']['name']; $cimg = str_replace("","_",$image_name); $upload_file = $uploaddir . $cimg; /* $cimages=$_FILES['photos']['name']; $cimag=str_replace(" ","_",$cimages); $uploadfiles=$uploaddir.$cimag; $uploadfiles=$cimag; $uploaddir.$uploadfiles; */ $uploadfiles=$cimg; } //$uploaddir.$uploadfiles; move_uploaded_file($_FILES['photos']['tmp_name'], $upload_file);//$uploaddir. $sql="INSERT INTO dental_users(name,businesstitle,folder_name,address,city,state,zipcode,mobileno,emailid,siteaddress,firstdegree ,firstspecalisation,firstcollege,otheracc,bullet_pts,bullet_pts1,bullet_pts2,aboutus,coupon,others,userimage)values('$name','$btitle','$folder','$address','$city','$state','$zip','$mobile','$email','$siteaddress','$firstdegree','$firstspecalisation','$firstcollege','$otheracc','$bullet_pts','$bullet_pts1','$bullet_pts2','$aboutus','$seltemplate','$testothers','$uploadfiles')"; $sq=mysql_query($sql) or die(mysql_error()); $newid=mysql_insert_id(); $ctitle=$ctitle; $coffer=$coffer; $cmsg=$cmsg; $cell="INSERT INTO dental_coupons(c_id,user_id,cname,coffer,cdesc)values('$seltemplate','$newid','$ctitle','$coffer','$cmsg')"; $qry=mysql_query($cell) or die(mysql_error()); $monmor=$_REQUEST['mam']; $monaft=$_REQUEST['mpm']; $tuesmor=$_REQUEST['tam']; $tuesaft=$_REQUEST['tpm']; $wedmor=$_REQUEST['wam']; $wedaft=$_REQUEST['wpm']; $thurmor=$_REQUEST['tham']; $thuraft=$_REQUEST['thpm']; $frimor=$_REQUEST['fam']; $friaft=$_REQUEST['fpm']; $satmor=$_REQUEST['sam']; $sataft=$_REQUEST['spm']; $sunmor=$_REQUEST['suam']; $sunaft=$_REQUEST['supm']; $sql1="INSERT INTO dental_timings(user_id,mon_mor,tues_mor,wed_mor,thur_mor,fri_mor,sat_mor,sun_mor,mon_eve,tue_eve,wed_eve,thur_eve,fri_eve,sat_eve,sun_eve)values('$newid','$monmor','$tuesmor','$wedmor','$thurmor','$frimor','$satmor','$sunmor','$monaft','$tuesaft','$wedaft','$thuraft','$friaft','$sataft','$sunaft')"; $sq1=mysql_query($sql1) or die(mysql_error()); $sql2="INSERT INTO dental_payment(user_id,Cash,Checks,Visa,MasterCard,American_exp,Discove,Financing,insurances)values('$newid','$checkbox1','$checkbox2','$checkbox3','$checkbox4','$checkbox5','$checkbox6','$checkbox7','$checkbox8')"; $sq2=mysql_query($sql2) or die(mysql_error()); $sql3="INSERT INTO `dental_specialties` ( `user_id` , `checkup` , `toothache` , `fillings` , `denures` , `cracked` , `extraction` , `sore` , `crowns` , `teeth` , `veneers` , `implants` , `braces` ) VALUES ('$newid', '$checkbox9', '$checkbox10', '$checkbox11', '$checkbox12', '$checkbox13', '$checkbox14', '$checkbox15', '$checkbox16', '$checkbox17', '$checkbox18', '$checkbox19', '$checkbox20')"; $sq3=mysql_query($sql3) or die(mysql_error()); $qr1="select * from dental_users where user_id='".$newid."'"; $rs1=mysql_query($qr1) or die(mysql_error()); $arr_rs=mysql_fetch_array($rs1); $cid=$arr_rs['folder_name']; //mkdir($cid); mkdir($cid,0777); $efile = $cid."/"."index.php"; $handle=fopen($efile, 'w'); echo $somecontent = '<? $storeid="'.$newid.'";include "../profile.php"?>'; fwrite($handle,$somecontent); fclose($handle); chmod($way.$cid,0777); $efile = $way.$cid."/"."index11.php"; $handle=fopen($efile, 'w'); echo $somecontent = '<? $storeid="'.$newid.'";include "../profile11.php"?>'; fwrite($handle,$somecontent); fclose($handle); echo "<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=regadded.php\">"; //header("location: adduser1.php?id=$newid"); } }?><HTML><HEAD><meta http-equiv="Content-Language" content="en-us"><TITLE>:: Welcome ::</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"><link href="request.css" rel="stylesheet" type="text/css"><link href="site.css" rel="stylesheet" type="text/css"><script language=JavaScript>function checkLen(x,y){if (y.length==x.maxLength) { var next=x.tabIndex if (next<document.getElementById("theForm55").length) { document.getElementById("theForm55").elements[next].focus() return false; } }}function temps(){ window.open('1coupon.php', 'tinyWindow', 'toolbar,width=500,height=600');}function temps1(){ window.open('2coupon.php', 'tinyWindow', 'toolbar,width=450,height=500');}function temps2(){ window.open('3coupon.php', 'tinyWindow', 'toolbar,width=500,height=600');}function test(src) { //var emailReg = "^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$"; var emailReg = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i var regex = new RegExp(emailReg); return regex.test(src);}function validate(){ extArray = new Array(".gif", ".jpg"); var invalid = " "; /*if (document.theForm55.clinicname.value == '') { alert('Please enter the Practice’s Name'); document.theForm55.clinicname.focus(); return false; }*/ if(document.theForm55.clinicname.value!="") { var MN = document.theForm55.clinicname.value.substring(0,1); if ( MN == ' ') { alert("\n In the Practice’s Name, first character should not be a space "); document.theForm55.clinicname.focus(); return false; } } if (document.theForm55.name.value == "") { alert('Please enter the Name'); document.theForm55.name.focus(); return false; } if(document.theForm55.name.value!="") { var MN = document.theForm55.name.value.substring(0,1); if ( MN == ' ') { alert("\n In the Name, first character should not be a space "); document.theForm55.name.focus(); return false; } } /*if (document.theForm55.folder.value == "") { alert('Please enter the Folder name'); document.theForm55.folder.focus(); return false; } if (document.theForm55.folder.value.indexOf(invalid) > -1) { alert("Sorry, spaces are not allowed."); document.theForm55.folder.focus(); return false; }*/ if (document.theForm55.add1.value == '') { alert('Please enter the address'); document.theForm55.add1.focus(); return false; } if(document.theForm55.add1.value!="") { var MN = document.theForm55.add1.value.substring(0,1); if ( MN == ' ') { alert("\n In the Address, first character should not be a space"); document.theForm55.add1.focus(); return false; } } if (document.theForm55.city.value == '') { alert('Please enter the city'); document.theForm55.city.focus(); return false; } if(document.theForm55.city.value!="") { var MN = document.theForm55.city.value.substring(0,1); if ( MN == ' ') { alert("\n In the City, first character should not be a space"); document.theForm55.city.focus(); return false; } } if (document.theForm55.state.value == '0') { alert('Please select the state'); document.theForm55.state.focus(); return false; } if(document.theForm55.state.value!="") { var MN = document.theForm55.state.value.substring(0,1); if ( MN == ' ') { alert("\n In the State, first character should not be a space"); document.theForm55.state.focus(); return false; } } if (document.theForm55.zip.value == "") { alert('Please enter the zip code'); document.theForm55.zip.focus(); return false; } if(document.theForm55.zip.value!="") { var MN = document.theForm55.zip.value.substring(0,1); if ( MN == ' ') { alert("\n In the Zip Code, first character should not be a space"); document.theForm55.zip.focus(); return false; } } var zipcode=document.theForm55.zip.value; if(isNaN(zipcode)==true) { alert("The Zip Code Should Be In Numerals"); document.theForm55.zip.value=""; document.theForm55.zip.focus(); return false; } num=document.theForm55.zip.value.length; if(num<5) { alert("Enter 5 Digit Zip Code"); document.theForm55.zip.value=""; document.theForm55.zip.focus(); return false; } if (document.theForm55.tele.value == '') { alert('Please enter Telephone Number'); document.theForm55.tele.focus(); return false; } if(document.theForm55.tele.value!="") { var MN = document.theForm55.tele.value.substring(0,1); if ( MN == ' ') { alert("\n In the Telephone, first character should not be a space"); document.theForm55.tele.focus(); return false; } } var faxnos=document.theForm55.tele.value; if(isNaN(faxnos)==true) { alert("The Telephone Number Should Be In Numerals"); document.theForm55.tele.value=""; document.theForm55.tele.focus(); return false; } /*if (document.theForm55.photos.value == "") { alert('Please Upload The Image'); document.theForm55.photos.focus(); return false; }*/ if(document.theForm55.photos.value!="") { validformFile = /(.gif|.GIF|.jpg|.JPG)$/; if(!validformFile.test(document.theForm55.photos.value)) { alert("Please only upload files that end in types: " + (extArray.join(" ")) + "\nPlease select a new " + "file to upload and submit again."); document.theForm55.photos.focus(); document.theForm55.photos.select(); return false; } } /* var url = document.theForm55.site.value; if(url == "") { alert("Please enter your `Link URL`"); document.formlink.linkURL.focus(); return false; } var urlRegxp = /^(www.|https:\/\/www.){1}([\w]+)(.[\w]+){1,2}$/; if (urlRegxp.test(url) != true) { alert("Please enter valid URL!"); document.formlink.linkURL.focus(); document.formlink.linkURL.select(); return false; }*/ if (document.theForm55.degree.value == "") { alert('Please enter the Name of college'); document.theForm55.degree.focus(); return false; } if (document.theForm55.specalisation.value == '') { alert("Please enter the Name of School"); document.theForm55.specalisation.value=""; document.theForm55.specalisation.focus(); return false; } if(document.theForm55.specalisation.value!="") { var MN = document.theForm55.specalisation.value.substring(0,1); if ( MN == ' ') { alert("\n In the School, first character should not be a space "); document.theForm55.specalisation.focus(); return false; } } if (document.theForm55.collage.value == "") { alert('Please enter the Name of dental school'); document.theForm55.collage.focus(); return false; } if(document.theForm55.collage.value!="") { var MN = document.theForm55.collage.value.substring(0,1); if ( MN == ' ') { alert("\n In the Dental School, first character should not be a space "); document.theForm55.collage.focus(); return false; } } /*if (document.theForm55.awards.value == "") { alert('Please enter the Awards'); document.theForm55.awards.focus(); return false; }*/ if((document.theForm55.checkbox1.checked==false)&&(document.theForm55.checkbox2.checked==false)&&(document.theForm55.checkbox3.checked==false)&&(document.theForm55.checkbox4.checked==false)&&(document.theForm55.checkbox5.checked==false)&&(document.theForm55.checkbox6.checked==false)&&(document.theForm55.checkbox7.checked==false)&&(document.theForm55.checkbox8.checked==false)) { alert('Please select atleast one payment'); return false; }}</SCRIPT><script LANGUAGE="JavaScript"> function check() { pvalue=document.theForm55.phone_no.value.length; if(pvalue==3) document.theForm55.phone_no1.focus(); } function check1() { pvalue=document.theForm55.phone_no1.value.length; if(pvalue==3) document.theForm55.phone_no2.focus(); }</script></HEAD><BODY background="images/bg-2.jpg" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><!-- ImageReady Slices (header.psd) --><TABLE align="center" WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 > <TR> <TD COLSPAN=3 height="31"> <IMG SRC="images/header_01.jpg" WIDTH=750 HEIGHT=31 ALT=""></TD> </TR> <TR> <TD height="69"> <IMG SRC="images/header_02.jpg" WIDTH=201 HEIGHT=69 ALT=""></TD> <TD height="69"> <IMG SRC="images/header_03.jpg" WIDTH=362 HEIGHT=69 ALT=""></TD> <TD height="69"> <IMG SRC="images/header_04.jpg" WIDTH=187 HEIGHT=69 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 height="15"> <IMG SRC="images/header_05.jpg" WIDTH=750 HEIGHT=15 ALT=""></TD> </TR> <TR> <TD COLSPAN=3 height="18"> <img src="images/header_06_form1.gif" width="750" height="18"></TD> </TR> <TR> <TD COLSPAN=3 height="19"> <img src="images/header_07_form2.gif" width="750" height="19"></TD> </TR> <TR> <TD COLSPAN=3 height="20"> <img src="images/dental_header_form6.jpg" width="750" height="20"></TD> </TR> <TR> <TD background="images/bg_req.jpg" WIDTH=750 height="35" border=1 align="center" COLSPAN=3> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="97%" id="AutoNumber1" bgcolor="#FFFFFF"> <tr> <td width="720" align="right" height="27"> <a class="link" href="website_options.html">Website Options </a> | <a class="link" href="doctorslounge.html">Website Info</a><a class="link" href="website_options.html"> </a> | <a class="link" href="contact.php">Contact</a><a class="link" href="website_options.html"> </a> | <a class="link" href="index.php">Home</a></td> </tr> </table> </TD> </TR> <TR> <TD background="images/bg_req.jpg" WIDTH=750 height="1" border=1 align="center" COLSPAN=3> </TD> </TR> <TR> <TD background="images/bg_req.jpg" WIDTH=750 border=1 align="center" COLSPAN=3> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="97%" > <tr> <td width="150%" align="center" height="19"> <FORM name="theForm55" enctype="multipart/form-data" method="post" onSubmit="return validate();"action =""> <table width="719" border="0" align="center" cellpadding="3" cellspacing="0" ><TR><TD align=center colspan=3 class=11 height=1><font family=arial color=red><?=$msg;?></font></TD></tr> <tr > <td class="text0" align="right" width="129" height="23"><strong class="style22">Practice’s Name </strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <input name="clinicname" type="text" class="InpBox" size="20" Maxlength="70" value="<?=$_REQUEST['clinicname'];?>"></td> </tr> <tr> <td class="text0" align="right" width="129" ><strong class="style22">Doctor’s Name</strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <input name="name" type="text" Maxlength="70" class="InpBox" size="20" value="<?=$_REQUEST['name'];?>"></td> </tr> <!--<tr> <td class="text0" align="right" width="179" height="23"><strong class="style22">Folder Name</strong></td> <td class="text0" width="4" height="23"><strong>:</strong></td> <td width="250" height="23"> <input name="folder" type="text" class="InpBox" size="20" Maxlength="70" value="<?//=$_REQUEST['folder'];?>"></td> </tr>--> <tr> <td class="text0" align="right" width="129" height="23"><strong class="style22">Address</strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <input type="text" Maxlength="70" class="InpBox" size="20" value="<?=$_REQUEST['add1'];?>" name=add1></td> </tr> <tr> <td class="text0" align="right" width="129" height="23"><strong class="style22">City</strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <input type="text" class="InpBox" value="<?=$_REQUEST['city'];?>" name=city size="20"></td> </tr> <TR> <td class="text0" align="right" width="129" height="23"><strong class="style22">State</strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <select class=InpBox name="state"> <option value="0">State</option> <? $getphone="SELECT * FROM dental_state order by state_id"; $exe=mysql_query($getphone) or die(mysql_error()); $rows=mysql_num_rows($exe); for($i=0;$i<=$rows;$i++) { $data=mysql_fetch_array($exe); if($data['state_id']==$state) echo"<option value=".$data['state_id']." selected>".$data['state_name']."</option>"; else echo"<option value=".$data['state_id'].">".$data['state_name']."</option>"; } ?> </select> </TD></TR> <tr> <td class="text0" align="right" width="129" height="23"><strong class="style22">Zip Code</strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <input type="text" class=InpBox value="<?=$_REQUEST['zip'];?>" name=zip maxlength=5 size="20"></td> </tr> <tr> <td class="text0" align="right" width="129" height="23"><strong class="style22">Telephone</strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <input name="tele" type="text" maxlength="3" tabindex="7" onKeyUp="checkLen(this,this.value)" class="InpBox" size="3" value="<?=$_REQUEST['tele'];?>"> - <input name="phone" type="text" maxlength="3"tabindex="8"onkeyup="checkLen(this,this.value)" class="InpBox" size="3" value="<?=$_REQUEST['phone'];?>">- <input name="number" type="text" maxlength="4" tabindex="9"onKeyUp="checkLen(this,this.value)" class="InpBox" size="5" value="<?=$_REQUEST['number'];?>"></td> </tr> <tr> <td class="style22" align="right"width="129" height="25">Website URL</td> <td class="text0" width="9" valign="top" height="25"><strong>: </strong></td> <td valign="top" height="25"> www. <input name="url" type="text" Maxlength="70" class="InpBox" size="20" value="<?$_REQUEST['url'];?>"> <input type="radio" value="web" name="web"> I don't have a web site.</td> </tr> <tr> <td class="text0" align="right" width="129" height="23"><strong> <span class="style22">Email Address</span><br> </strong></td> <td class="text0" width="9" height="23" valign="top"><strong>:</strong></td> <td height="23" valign="top"> <input name="email" type="text" Maxlength="70" class="InpBox" size="20" value="<?=$_REQUEST['email'];?>"> <input type="radio" value="1" name="email"> Please respond on my behalf for new patient inquiries </td> </tr> <tr> <td class="text0" align="right" width="129" height="23"><strong class="style22">Image </strong></td> <td class="text0" width="9" height="23"><strong>:</strong></td> <td width="563" height="23"> <INPUT class=InpBox style="WIDTH: 160px" type="file" name="photos" size="30"></td></tr> <TR> <TD align=left height="19" class=text0> </TD> <TD align=left height="19" class=text0> </TD> <TD align=left height="19" class=text0> <!-- coupon3_05 --> <input name="pro_image" type="radio" value="1"> Please Provide </TD> </TR> <TR> <TD align=left height="19" class=text0> </TD> <TD align=left height="19" class=text0> </TD> <TD align=left height="19" class=text0><span class="style22">Upload Image with width=91 and height=115</span></TD></TR> <tr> <td colspan="2" height="19" align="right" valign="top" class="style22">Create Special Offer Coupon: <span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"> </span></td> <td width="563" height="25" align=left valign="top" class="style6"> <table width=100% height="144" border=0 > <tr> <td width="30%"> <input type=radio name="seltemplate" value="1" onclick="temps();"><span class="style6">Coupon1</span><br> <img border="0" src="images/thumb.gif" name="temp1" width="150" height="117"> </td> <td width="32%"> <input type=radio name="seltemplate" value="2" onclick="temps1();"><span class="style6">Coupon2</span><br> <img border="0" src="images/thumb1.gif" name="temp2" width="150" height="117"></td> <td > <input type=radio name="seltemplate" value="3" onclick="temps2();"> <span class="style6">Coupon3<br> <img src="images/thumb2.gif" width="150" height="117"></span><br> </td> <input type="hidden" name="ctitle"> <input type="hidden" name="coffer"> <input type="hidden" name="cmsg"> </tr> </table> <!--<td width="250" height="19" class="style6"> <textarea name="testothers1" rows="5" cols="40" class="InpBox1"><?=$_REQUEST[testothers1]?> </textarea>--> </td> </tr> <tr > <td height="60" align="right" > <input name="submit" type="submit" class="SubBtn" value="Continue"></td><td> </td><td> <input name="Submit2" type="reset" class="SubBtn" value="Reset"> </td> </tr> </table> <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750"> <tr> <td width="730" height="49" align="center" bgcolor="#339999"><span class="style2">Dental Arts Center 2005</span> </td> </tr></table></BODY></HTML>listing.php<? ob_start(); include "includes/header.php"; include_once ("db_mysql.inc"); include_once ("phpZipLocator.php"); include_once ("ZipCodesRange.class.php"); $db = new db_sql; $zipLoc = new zipLocator; extract($_REQUEST); $zipcode=$_REQUEST['zipcode'];//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////initialization, pass in DB connection, from zip code, distance in miles.$zip = new ZipCodesRange($link,'90302','9','US');//configuration$zip->setTableName('zipdata'); //optional, default is zips.$zip->setZipColumn('zipcode'); //optional, default is zip.$zip->setLonColumn('lon'); //optional, default is lon.$zip->setLatColumn('lat'); //optional, default is lat.//do the work$zip->setZipCodesInRange(); //call to initialize zip array//zip code output, other processing can be done from this array.$zipArray = $zip->getZipCodesInRange();echo '<pre>';print_r($zipArray);echo '</pre>';//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if($zipcode!="") { $zipOne=$zipcode; $getmiles="select zipcode from dental_settings where settings_id=1"; $exedistance=mysql_query($getmiles) or die(mysql_error()); $getdistancedata=mysql_fetch_array($exedistance); $milesselected=$getdistancedata['zipcode']; $radius =$milesselected; $zipArray = $zipLoc->inradius($zipOne,$radius); print_r($zipArray); echo $getusers="select * from dental_users where (zipcode='". @implode ("' or zipcode='",$zipArray)."') order by user_id asc"; } else { $getusers="select * from dental_users where city='".$city."' and state='".$state."'"; } $executeusers=mysql_query($getusers) or die(mysql_error()); while($myrows=mysql_fetch_array($executeusers)) { $UserId.=$myrows[0].","; } $User_Id=ereg_replace(",$","",$UserId); $gettotalusers=mysql_num_rows($executeusers);?><? $executeusers=@mysql_query("select * from dental_users where status != 'yes' and user_id in($User_Id) order by rand() limit 3 "); $gettotalusers=@mysql_num_rows($executeusers); //New End for($i=0;$i<$gettotalusers;$i++) { $getuserdata=mysql_fetch_array($executeusers); $userid=$getuserdata['user_id']; $username=$getuserdata['name']; $folder=$getuserdata['folder_name']; $btitle=$getuserdata['businesstitle']; $address=$getuserdata['address']; $city=$getuserdata['city']; $stateid=$getuserdata['state']; $getstate="select * from dental_state where state_id='".$stateid."'"; $exestate=mysql_query($getstate) or die(mysql_error()); $getstatedata=mysql_fetch_array($exestate); $state=$getstatedata['state_name']; $zipcode=$getuserdata['zipcode']; $mobile=$getuserdata['mobileno']; $mailid=$getuserdata['emailid']; $site=$getuserdata['siteaddress']; $userimage=$getuserdata['userimage']; $description1=$getuserdata['bullet_pts']; $description2=$getuserdata['bullet_pts1']; $description3=$getuserdata['bullet_pts2']; $dentalist_rank=$getuserdata['rank']; $FilePath="userimages/".$userimage; $fileflag=0; if(!file_exists($FilePath)) { $fileflag=1; } if( $fileflag==1) { $FilePath = "userimages/noimages.jpg"; }?><TABLE align="center" WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="10" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#111111"><link href="site.css" rel="stylesheet" type="text/css"><style><!--a.whiteurl:link{color:"#ffffff";text-decoration:"underline";font-size: 12px;font-weight: bold;}a.whiteurl:hover{color:"#ffffff";text-decoration:"none";font-size: 12px;font-weight: bold;}a.whiteurl:active{color:"#ffffff";text-decoration:"underline";font-size: 12px;font-weight: bold;}a.whiteurl:visited{color:"#ffffff";text-decoration:"underline";font-size: 12px;font-weight: bold;} --></style> <? //$dentalist_rank=$getuserdata['rank'];//Falsh2 Start //$dentalist_rank=$getuserdata['rank']; if($dentalist_rank == 0) { ?><TR><TD COLSPAN=7 height="24"><IMG SRC="images/listing_01.gif" WIDTH=750 HEIGHT=24 ALT=""></TD></TR><TR><TD background="images/listing_02.gif" WIDTH=28 HEIGHT=1> </TD><TD WIDTH=262 rowspan="3" align="center" valign="top"> <table border="0" cellpadding="2" cellspacing="0" bordercolor="#111111" width="98%" style="border-collapse: collapse"> <tr> <td colspan=2 align=left width="52%" class=style22 ><b><font color=055130 size="3"> <?=$btitle;?></font></b></td> </tr> <tr> <td colspan=2 align=left width="52%" class=style22 ><b><font color=055130>Dr. <?=$username;?></font></b></td> </tr> <tr> <td width="100%" align=left class=style22 colspan="2"><b><font color=055130><?=$address;?><br><?=$city;?>, <?=$state;?> <?=$zipcode;?></font></b></td> </tr> <tr> <td width="100%" class=style22 align=left colspan="2"> <a href="#"onclick="java script:window.open('http://www.mapquest.com/maps/map.adp?country=US&countryid=US&addtohistory=&searchtype=address&cat=&address=<?=$address;?>&city=<?=$city;?>&state=<?=$state;?>&zipcode=<?=$zipcode;?>','mywindow','scrollbars=yes,width=1000,height=700')" class="whiteurl"><b> <font color="055130">Map it! </font></b></a></td> <!-- <a href="http://www.mapquest.com/maps/map.adp?country=US&countryid=US&addtohistory=&searchtype=address&cat=&address=<?=$address;?>&city=<?=$city;?>&state=<?=$state;?>&zipcode=<?=$zipcode;?>" target=_blank class=textwhitelink>Map it!</a> --> </tr> <tr> <td width="100%" class="style22" align=left colspan="2"><a name=s1"<?=$i?>"></a><a href="#<?=$i?>"><IFRAME frameBorder=0 height=19 width=190 id=tickermain6 marginHeight=0 marginWidth=0 scrolling=no src="phone1.php?mobile=<?=$mobile;?>" width=150></IFRAME><!--onclick="fun2(event)"tarket=_blank class="whiteurl"><b><font color=055130>Local Phone Number</font></b>--></a></td> </tr> </table> </center> </div> </TD> <TD background="images/listing_04.gif" WIDTH=19 HEIGHT=1> </TD> <TD background="images/listing_05.gif" WIDTH=129 HEIGHT=1> </TD> <TD background="images/listing_06.gif" WIDTH=21 HEIGHT=1> </TD> <TD WIDTH=260 HEIGHT=1 rowspan="3" align="center" valign="top"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="1"> <tr> <td width="100%" align="center" height="12"> <img src="images/123.gif"> <!--<img src="images/light color"> --> <table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="90%" height="82"> <tr> <td width="100%" class="textwhitebold" align="left" height="16"><b><font color="white" size="2"> <!--Services --></font></b></tr><tr><td width="100%" class="style22" align="left" height="54" valign="top"><table width=100% border=0></table></td></tr><tr><td><?$link="counting.php?uid=".$getuserdata['user_id']."&site=".$site."";?><? if($site!="") { ?><a href="<?=$link?>" class=style22 target="_blank"><img border="0" src="images/view_profile.jpg" width="88" height="29" class="style22"></a> <? } else {?> <? } ?> <a href="<?=$folder?>/index11.php" class=style22 target="_blank"><img border="0" src="images/special_offer.jpg" width="88" height="29" class="style22"></a></td></tr> </tr> </table> </td> </tr> <tr> <td width="100%" align="center" height="1"> </td> </tr> </table> </TD> <TD background="images/listing_08.gif" WIDTH=31 HEIGHT=1> </TD> </TR> <TR> <TD height="27"> <IMG SRC="images/left1.gif" WIDTH=28 HEIGHT=135 ALT=""></TD> <TD height="27"> <IMG SRC="images/right1.gif" WIDTH=19 HEIGHT=135 ALT=""></TD> <TD background="images/photospace1.gif" WIDTH=129 HEIGHT=135 align="center"> <img border="0" src="<?=$FilePath;?>" width="91" height="115" class="imgborder"></TD> <TD height="27"> <IMG SRC="images/left2.gif" WIDTH=21 HEIGHT=135 ALT=""></TD> <TD height="27"> <IMG SRC="images/right2.gif" WIDTH=31 HEIGHT=135 ALT=""></TD> </TR> <TR> <TD background="images/listing_16.gif" WIDTH=28 HEIGHT=1> </TD> <TD background="images/listing_18.gif" WIDTH=19 HEIGHT=1> </TD> <TD background="images/listing_19.gif" WIDTH=129 HEIGHT=1 align="center"> </TD> <TD background="images/listing_20.gif" WIDTH=21 HEIGHT=1> </TD> <TD background="images/listing_22.gif" WIDTH=31 HEIGHT=1> </TD> </TR> <TR> <TD COLSPAN=7 height="31"> <IMG SRC="images/listing_23.gif" WIDTH=750 HEIGHT=31 ALT=""></TD> </TR></TABLE> <? } //Falsh2 End ?><?}?><? $executeusers=@mysql_query("select * from dental_users where status != 'yes' and user_id in($User_Id) order by rank asc"); $gettotalusers=@mysql_num_rows($executeusers); //New End for($i=0;$i<$gettotalusers;$i++) { $getuserdata=mysql_fetch_array($executeusers); $userid=$getuserdata['user_id']; $username1=$getuserdata['name']; $folder=$getuserdata['folder_name']; $btitle1=$getuserdata['businesstitle']; $address1=$getuserdata['address']; $city1=$getuserdata['city']; $stateid=$getuserdata['state']; $getstate="select * from dental_state where state_id='".$stateid."'"; $exestate=mysql_query($getstate) or die(mysql_error()); $getstatedata=mysql_fetch_array($exestate); $state=$getstatedata['state_name']; $zipcode1=$getuserdata['zipcode']; $mobile=$getuserdata['mobileno']; $mailid=$getuserdata['emailid']; $site1=$getuserdata['siteaddress']; $userimage=$getuserdata['userimage']; $description1=$getuserdata['bullet_pts']; $description2=$getuserdata['bullet_pts1']; $description3=$getuserdata['bullet_pts2']; $dentalist_rank=$getuserdata['rank']; $FilePath="userimages/".$userimage;?></td></tr><tr><td><? //Falsh2 Start; // $dentalist_rank=$getuserdata['rank']; if($dentalist_rank == 1) { ?><TABLE align="center" WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 height="190" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#111111"><TR><TD COLSPAN=7 height="24"><!--<img src="images/listing_guru.gif" width=750 height=24 alt="">--></TD></TR><TR><TD background="" WIDTH=10 HEIGHT=1> </TD><TD WIDTH=262 HEIGHT=1 rowspan="3" align="center" valign="top"> <table border="0" cellpadding="2" cellspacing="0" bordercolor="#111111" width="276%" style="border-collapse: collapse"> <tr> <td colspan=2 align=left width="52%" ><font size="4" face="Times New Roman, Times, serif"> <?=$btitle1;?></font></td> </tr><tr> <td colspan=2 align=left width="52%" ><font size="3" face="Times New Roman, Times, serif">Dr. <?=$username1;?></font></td> </tr> <tr> <td width="100%" align=left colspan="2"><font size="2"><?=$address1;?> <br><?=$city1;?>, <?=$state1;?> <?=$zipcode1;?></font></td> </tr> <tr> <td width="100%" align=left colspan="2"> <a href="#" onclick="java script:window.open('http://www.mapquest.com/maps/map.adp?country=US&countryid=US&addtohistory=&searchtype=address&cat=&address=<?=$address;?>&city=<?=$city;?>&state=<?=$state;?>&zipcode=<?=$zipcode;?>','mywindow','scrollbars=yes,width=1000,height=700')" class=""><font size="2">Map it! </font></a></td> <!-- <a href="http://www.mapquest.com/maps/map.adp?country=US&countryid=US&addtohistory=&searchtype=address&cat=&address=<?=$address1;?>&city=<?=$city1;?>&state=<?=$state1;?>&zipcode=<?=$zipcode1;?>" target=_blank class=textwhitelink>Map it!</a> --> </tr> <tr> <td width="100%" align=left colspan="2"><a name=s"<?=$i?>"></a><a href="#<?=$i?>"> <IFRAME frameBorder=0 height=25 width=190 id=tickermain6 marginHeight=0 marginWidth=0 scrolling=no src="phone.php?mobile=<?=$mobile;?>" width=150></IFRAME> </a></td> </tr> <tr> <td width="100%" size = "1" align=left colspan="2"><a target="blank" href=http://<?=$site1 ?>> <font size="2"><?=$site1?> </font></a></td> </tr> </table> </TR> <TR> <TD > <!-- <img src="images/left1.gif" width=28 height=135 alt=""> --></TD> </TR> </TABLE> <? } ?><?}?><? if($gettotalusersd<=0 and $gettotalusers<=0) { //echo "<font color=\"#FFFFFF\">" . "No match found within your area.........." . "</font>"; echo "<table height=350 width=100% align=center bgcolor=\"#FFFFFF\">"; echo "<tr><td align=center class=style22><B> No match found within your area..........</B>"; echo "<br><br> <a href=index.php class=style22>Go Back</a></td></tr>"; echo "</table>"; }?> </td></tr><? include "includes/footer.php"; ?><script language="JavaScript" type="text/JavaScript"><!--function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);}function fun1(event){ x=event.clientX; y=event.clientY; myRef = window.open('http://dentalartcenter.com/viewphone.php?mobile=<?=$mobile;?>','mywin','left='+x+',top='+y+',width=150,height=15,toolbar=0,resizable=0');}//--></script><script language="JavaScript" type="text/JavaScript"><!--function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);}function fun2(event){ x=event.clientX; y=event.clientY; myRef = window.open('http://dentalartcenter.com/viewphone1.php?mobile=<?=$mobile;?>','mywin','left='+x+',top='+y+',width=150,height=15,toolbar=0,resizable=0');}//--></script>
  8. Hi everyone,I need a help.In my site i use the tag,<input type="file" name="file">Here I need to change the label of the browse button from "Browse...." to "Upload".How do I change that?Thanks in advance.
  9. Hi everyone,I need a help.In my site i use the tag,<input type="file" name="file">Here I need to change the label of the browse button from "Browse...." to "Upload".How do I change that?Thanks in advance.
  10. Hi all, I am in need flash media player for my project... Can anyone guide me for it? Is there any free source of this?Thanks in adance.Regards,Rejoice.
  11. Hi all, I am in need of a work that is done in the site url,http://www.1to1tutor.org/flash/loginguest.htmlVisit the the above url and login with your last name as login name. Thereafter you will be logged into it. Now you can see one tool. By using that you can draw lines, circles and etc., If anyone know the opensource of this kind of tool, please mention the URL. This work only pending in my projectThanks in advance....Regards,Rejoice
  12. Dear all,Is the Apache server with 1.3.36 applicable to Win32 environment? If applicable...telll me from where can i download...? Thanks in advance...
  13. Dear all, Is the Apache server with 1.3.36 applicable to Win32 environment? If applicable...telll me from where can i download...? Thanks in advance...
  14. Hi all, I am in need of a work that is done in the site url, http://www.1to1tutor.org/flash/loginguest.htmlVisit the the above url and login with your last name as login name. Thereafter you will be logged into it. Now you can see one tool. By using that you can draw lines, circles and etc., If anyone know the opensource of this kind of tool, please mention the URL. This work only pending in my projectThanks in advance....Regards,Rejoice
×
×
  • Create New...