GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/
Upload File :
Current File : /home/serb/public_html/faq.php

<? session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 $page="contactus";
 ?>
<? include "includes/header_top.php";?>

<script language="javascript">
	function validate()
	{
		if(document.cntus.userName.value=="")
		{
			alert("Enter your Name");
			document.cntus.userName.focus();
			return false;
		}
		if((document.cntus.emailAddrs.value.indexOf('@',0)<1)||(document.cntus.emailAddrs.value.indexOf('.',0)<1))
		{
			alert("Enter any valid email address");
			document.cntus.emailAddrs.focus();
			return false;
		}		
		
		
		if(document.cntus.phNumber.value=="")
		{
			alert("Enter your Phone Number");
			document.cntus.phNumber.focus();
			return false;
		}	
		if(document.cntus.urQuery.value=="")
		{
			alert("Enter your Query");
			document.cntus.urQuery.focus();
			return false;
		}			

		
		  
		 if(document.cntus.security_code.value=="")
		{
			alert("Enter Security Code");
			document.cntus.security_code.focus();
			return false;
		} 
   		
		  
		/*if(document.f1.check.checked!=true)
		{
			alert("You need to check your age.");
			return false;
		}*/
	}
</script>

<body>
<?
	$sql_gen="select * from escort_details where user_id='".$_SESSION['userid']."'";
	$res_gen=execute_query($sql_gen);	
	$row_gen=mysql_fetch_array($res_gen);
	if($row_gen['gender']=='Male')
	{
		include "includes/boys-header.php";
 		
        
        } else
        {
        	include "includes/header.php";
        }
	  ?>  
 
<div class="main_bg">

 		<div style="height:32px; width:1000px;">
        	        
        </div>
        <div  style="width:1000px; margin:0 auto;">
        	<div class="statedetails">
                	<div class="stdtls_header">
                    	  FAQ                	
                    </div>
                    <div class="stdtls_midder">
                    	<div style=" width:990px; margin:0 auto;">
                        <br/>
                        	 
							 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
										
							 
							 <?
									$sql_faq="SELECT * FROM  faq WHERE status='a'";
									$res_faq=execute_query($sql_faq);
									while($row_faq=mysql_fetch_array($res_faq))
									{
								?> 
								<script>
                                            function textCounter(field,field2,maxlimit)
                                        {
                                         var countfield = document.getElementById(field2);
                                         if ( field.value.length > maxlimit ) {
                                          field.value = field.value.substring( 0, maxlimit );
                                          return false;
                                         } else {
                                          countfield.value = maxlimit - field.value.length;
                                         }
                                        }
                                            $(document).ready(function() {
                                                $('.regcomactbar<?=$row_faq['id']?>').click(function() {
                                                    $(this).closest("div").next().slideToggle();
                                                });
                                               
                                               $("#regcombutton<?=$row_faq['id']?>").click(function () {
                                                    $("#regcomcontain<?=$row_faq['id']?>").slideToggle();
                                                    
                                                });
                                                 
                                        
                                        });
                                        </script>
							 
                            	<div id="regcombutton<?=$row_faq['id']?>" class="addtourbotton">
                                	<p class="freetext" style="text-align:left;">
                                    	<?=$row_faq['id']?>. <?=$row_faq['question']?>
                                    </p>
                                
                                </div>
                                <div id="regcomcontain<?=$row_faq['id']?>" style="display:none; width:900px !important; margin:0 auto; font-size:16px !important;">
                                	<?
										echo stripslashes($row_faq['faq_ans']);
									?>
                                </div>
                                <br/>
                         	
                            <? } ?>                           
                           	       	
                        </div>
                    
                    </div>
                    <div class="stdtls_footer"></div>
                </div>
            
              </div>
            
        </div>

<? include "includes/footer.php";?>

./BlackJoker Mini Shell 1.0