GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/create-hobbyistaccount.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); $page="my_account"; ?> <? include "includes/header_top.php";?> <script type="text/javascript"> function showimagepreview(input) { if (input.files && input.files[0]) { var filerdr = new FileReader(); filerdr.onload = function(e) { $('#imgprvw').attr('src', e.target.result); } filerdr.readAsDataURL(input.files[0]); } } </script> <script type="text/javascript"> function selectCity(country_id){ if(country_id!="-1"){ loadData('state',country_id); $("#city_dropdown").html("<option value='-1'>Select city</option>"); }else{ $("#state_dropdown").html("<option value='-1'>Select state</option>"); $("#city_dropdown").html("<option value='-1'>Select city</option>"); } } function selectState(state_id){ if(state_id!="-1"){ loadData('city',state_id); }else{ $("#city_dropdown").html("<option value='-1'>Select city</option>"); } } function loadData(loadType,loadId){ var dataString = 'loadType='+ loadType +'&loadId='+ loadId; $("#"+loadType+"_loader").show(); $("#"+loadType+"_loader").fadeIn(400).html('Please wait...'); $.ajax({ type: "POST", url: "loadData.php", data: dataString, cache: false, success: function(result){ $("#"+loadType+"_loader").hide(); $("#"+loadType+"_dropdown").html("<option value='-1'>Select "+loadType+"</option>"); $("#"+loadType+"_dropdown").append(result); } }); } </script> <script language="javascript"> function validate() { if(document.f1.avt_image.value!=""){ var str = document.f1.avt_image.value; var lower = str.toLowerCase(); var newStr = lower.substring(lower.length-4, lower.length); //alert(newStr); if((newStr!=".jpg")&&(newStr!=".jpeg")&&(newStr!=".png")&&(newStr!=".bmp")){ alert("You cannot upload executable files...! Please upload files in jpg or jpeg or png extension."); document.f1.avt_image.focus(); return (false); } } if(document.f1.aboutme.value=="") { alert("Describe something about you"); document.f1.aboutme.focus(); return false; } if(document.getElementById("visitor_country").value =='US') { if (document.getElementById("state_dropdown").value==-1 ) { alert("Select Your State"); document.getElementById("state_dropdown").focus() return false; } if (document.getElementById("city_dropdown").value==-1 ) { alert("Select Your City"); document.getElementById("city_dropdown").focus() return false; } } else { if (document.f1.visitor_city.value=="" ) { alert("Select Your City"); document.f1.visitor_city.focus(); return false; } } /*if(document.f1.check.checked!=true) { alert("You need to check your age."); return false; }*/ } </script> <style type="text/css"> a.tooltips { position: relative; display: inline; } a.tooltips span { position: absolute; width:220px; color: #FFFFFF; background: #000000; height:auto; text-align: center; visibility: hidden; border-radius: 6px; padding:4px; } a.tooltips span:after { content: ''; position: absolute; top: 100%; left: 32%; margin-left: -8px; width: 0; height: 0; border-top: 8px solid #000000; border-right: 8px solid transparent; border-left: 8px solid transparent; } a:hover.tooltips span { visibility: visible; opacity: 0.8; bottom: 30px; left: 50%; margin-left: -76px; z-index: 999; } </style> <body> <? include "includes/header.php";?> <div class="main_bg"> <div style="height:32px;"></div> <div style="width:1000px; margin:0 auto;"> <div class="statedetails"> <div class="stdtls_header"> <span style="color:#000;">Home/Create Hobbyist Account </div> <div class="stdtls_midder"> <div style="height:10px;"></div> <div class="left_containmain"> <div style=" width:960px; margin:0 auto; font-family:'Open Sans',sans-serif; font-size:14px; color:#000;"> <form action="hobbyistprofile-insert.php" method="post" name="f1" style="margin: 0px; padding: 0px;" enctype="multipart/form-data" onSubmit="return validate();"> <input name="submit_form" value="1" type="hidden"> <div class="srv_infodtlssss"> <table border="0" cellspacing="0" cellspacing="0" style="margin:o auto; width:100%;"> <tr height="5"></tr> <tr> <td colspan="2">Main<br/><img src="images/post_ad_divider.png" /></td> </tr> <tr height="10"></tr> <tr> <td class="jointext222"> Picture :</td> <td> <? if($row_email['pic']=="") {?> <img id="imgprvw" src="images/gneraluser.gif" style="width:120px; height:150px; vertical-align:middle; border:1px solid #D4D3D3;"/> <? } else { ?><img id="imgprvw" src="profile_pic/<?=$row_email['pic']?>" style="width:120px; height:150px; vertical-align:middle; border:1px solid #D4D3D3;"/> <? } ?> <input type="file" style="color:#ad7c7c; width:150px;" id="file111" class="textbox" name="avt_image" onChange="showimagepreview(this)"><input type="hidden" name="agencylogo" value="<?=$row_email['pic']?>" /> </td> </tr> <tr height="10"></tr> <tr> <td colspan="2">Contact Info<br/><img src="images/post_ad_divider.png" /></td> </tr> <tr height="10"></tr> <tr height="5"></tr> <!--<tr> <td class="jointext222"> Phone Number :</td> <td> <input name="phnumber" id="weight" class="main_input3333" value="<?=$row_email['agency_ph']?>" type="text" /> </td> </tr> <tr height="5"></tr> <tr> <td class="jointext222"> Instructions :</td> <td> <select id="ins" class="drp_img2" name="instruction"> <option name="PhoneText" value="SMSCalls" <? if($row_email['instruction']=='SMSCalls') { ?> selected="selected" <? } ?> >SMS & Calls</option> <option name="PhoneText" value="SMSonly" <? if($row_email['instruction']=='SMSonly') { ?> selected="selected" <? } ?>>SMS only</option> <option name="PhoneText" value="Callsonly" <? if($row_email['instruction']=='Callsonly') { ?> selected="selected" <? } ?>>Calls only</option> </select> </td> </tr> <tr height="5"></tr>--> <!-- <tr> <td class="jointext222"></td> <td> <input type="checkbox" name="hiddennumber" /> No Hidden Numbers </td> </tr>--> <tr height="5"></tr> <tr> <td class="jointext222"> Email :</td> <td> <input type="text" name="email" value="<?=$_SESSION['reg_email']?>" class="main_input3333" /> </td> </tr> <tr height="5"></tr> <tr> <td class="jointext222"> Skype :</td> <td> <input type="text" name="skype" value="<?=$row_email['skype']?>" class="main_input3333" /> </td> </tr> <tr height="5"></tr> <tr> <td class="jointext222"> MSN :</td> <td> <input type="text" name="msn" value="<?=$row_email['msn']?>" class="main_input3333" /> </td> </tr> <tr height="10"></tr> <tr> <td colspan="2">Location<br/><img src="images/post_ad_divider.png" /></td> </tr> <tr height="5"></tr> <tr> <td class="jointext222"> Working Country :</td> <td> <select class="drp_img2" id="visitor_country" name="visitor_country" onChange="openmobilecareer(this.value)"> <option value="">Select Country</option> <? $sql_country="select * from countries"; $country_res=execute_query($sql_country); while($country_row=mysql_fetch_array($country_res)){ ?> <option value="<?=$country_row['ccode']?>" <? if($country_row['ccode']=='US'){ ?> selected="selected"<? } ?> ><?=$country_row['country']?></option> <? }?> </select> <a class="tooltips"> <img src="images/question.gif" /><span>Country Details.</span></a> </td> </tr> <tr height="5"></tr> <tr> <td colspan="2"> <div style="width:100%; margin:0 auto;" id="openus"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200"> * Working State:</td> <td> <!--<input type="text" name="visitor_state" value="<?=$row_postad['escort_state']?>" class="main_input" />--> <select name="prlState" id="state_dropdown" class="drp_img2" onChange="selectState(this.options[this.selectedIndex].value)"> <option value="-1">Select state</option> <? $sql_state="SELECT * FROM states ORDER BY name"; $res_state=execute_query($sql_state); while($row_state=mysql_fetch_array($res_state)) { ?> <option value="<?=$row_state['id'] ?>"><?=$row_state['name'] ?></option> <? } ?> </select> <a class="tooltips"> <img src="images/question.gif" /><span>State Details.</span></a> </td> </tr> <tr height="5"></tr> <tr> <td width="200"> * Working City:</td> <td> <!--<input type="text" name="visitor_city" value="<?=$row_postad['escort_city']?>" class="main_input" />--> <select name="prlCities" id="city_dropdown" class="drp_img2"> <option value="-1" name="cityname"></option> </select> <a class="tooltips"> <img src="images/question.gif" /><span>City Details.</span></a> </td> </tr> </table> </div> </td> </tr> <tr height="5"></tr> <tr> <td colspan="2"> <div style=" display:none; width:100%; margin:0 auto;" id="openother"> <table border="0" cellpadding="0" cellspacing="0"> <!--<tr> <td width="200"> Working State:</td> <td> <input type="text" name="visitor_state" value="<?=$row_postad['escort_state']?>" class="main_input" /> </td> </tr> <tr height="5"></tr>--> <tr> <td width="200"> * Working City:</td> <td> <input type="text" name="visitor_city" value="<?=$row_postad['escort_city']?>" class="main_input" /> <a class="tooltips"> <img src="images/question.gif" /><span>City Details.</span></a> <!--<select class="drp_img2" id="visitor_city" name="visitor_city"> </select>--> </td> </tr> </table> </div> </td> </tr> <tr height="10"></tr> <tr> <td colspan="2">About Me<br/><img src="images/post_ad_divider.png" /></td> </tr> <tr height="10"></tr> <tr height="5"></tr> <tr> <td colspan="2" class="jointext222"> Describe Something :</td> </tr> <tr height="5"></tr> <tr> <td colspan="2" align="center"><textarea name="aboutme" class="main_input3333" style="width:300px !important; height:300px !important;"><?=stripslashes($row_email['agency_about'])?></textarea></td> </tr> <tr height="5"></tr> <tr height="15"></tr> <tr> <td colspan="2" style="text-align:center"> <input type="image" src="images/submit.png" /> <input type="hidden" name="userName" value="<?=$_SESSION['reg_username']?>" /> <input type="hidden" name="emailAddrs" value="<?=$_SESSION['reg_email']?>" /> <input type="hidden" name="passWord" value="<?=$_SESSION['reg_pass']?>" /> <input type="hidden" name="acctype" value="<?=$_SESSION['reg_acctype']?>" /> <input type="hidden" name="usercountry" value="<?=$_SESSION['countryname']?>" /> <input type="hidden" name="dob" value="<?=$_SESSION['DOB']?>" /> <input type="hidden" name="dobmonth" value="<?=$_SESSION['dob_month']?>" /> </td> </tr> <tr height="20"></tr> </table> </div> <br class="spacer" /> </form> </div> <br class="spacer" /> </div> </div> <div class="stdtls_footer"></div> </div> <br class="spacer" /> </div> </div> <? include "includes/footer.php";?>