GIF89a;
Direktori : /home/serb/public_html/m/ |
Current File : /home/serb/public_html/m/createtour.php |
<? session_start(); if(!($_SESSION['islogin'])) { ?> <script language="javascript"> location.href="index.php"; </script> <? } //include("config.php"); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); /*$sql="SELECT * FROM page_content WHERE id='45'"; $res=execute_query($sql); $row=mysql_fetch_array($res);*/ ?> <? if($_POST) { $stdate=$_POST['startyear'].'-'.$_POST['startmonth'].'-'.$_POST['startdate']; $enddate=$_POST['endyear'].'-'.$_POST['endmonth'].'-'.$_POST['enddate']; $sql_postid="SELECT * FROM escort_details where user_id='".$_SESSION['userid']."'"; $res_postid=execute_query($sql_postid); $row_postad=mysql_fetch_array($res_postid); $sql_tour="Insert into escort_tours(id,postid,userid,country,city,city_place,phone,instruction,email,start_date,end_date)VALUES('','".$row_postad['id']."','".$_SESSION['userid']."','".$_POST['visitor_country']."','".$_POST['city']."','".$_POST['cityarea']."','".$_POST['phone']."','".$_POST['instruction']."','".$_POST['email']."','$stdate','$enddate')"; execute_query($sql_tour); ?> <script language="javascript"> location.href="add-mytour.php"; </script> <? } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <title>Escort Service - Premiere Escort Listings,Escorts,Female Escorts,Models,Call Girls,GEF,Companions</title> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="themes/escserve.css" /> <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" /> <link rel="stylesheet" href="jMobile.css" /> <script src="jquery.min.js"></script> <script src="jqueryMobile.js"></script> <script> $('#frm').validate({ rules: { userName: { required: true }, emailAddrs: { required: true } }, messages: { userName: { required: "Please enter your first name." }, emailAddrs: { required: "Please enter your email." } }, errorPlacement: function (error, element) { error.appendTo(element.parent().prev()); }, submitHandler: function (form) { $(':mobile-pagecontainer').pagecontainer('change', '#success', { reload: false }); return false; } }); </script> </head> <body> <div data-role="page" id="page" data-theme="d" data-transition="flip"> <div id="headerTop"></div> <? include "includes/header.php";?> <div data-role="content" id="searchboxx"> <span style="float:left !important; margin-top:-5px !important;"><a style="float:left;" href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-home ui-btn-icon-notext" data-iconpos="right" title="Go Home">Home</a></span> <span style="float:right !important; margin-top:-5px !important;"><a style="float:right;" href="add-mytour.php" class="ui-btn ui-shadow ui-corner-all ui-icon-back ui-btn-icon-notext" data-iconpos="right" title="My Tour">back</a></span> </div> <div data-role="content"> <h2 id="loginheadertext">Add New Tour</h2> <!--<p id="alsignup">Do you have a promo code? <a href="#" data-transition="flip" id="loginnow">Redeem it now, before you register!</a></p>--> <!-- <p id="loginalertmsg"> Please use your EscortService username and password to login bellow. </p> <p id="loginalertmsg"> Need to Register? <a href="join.html" id="jointextcolor" data-transition="flip" data-prefetch>Get Started Now!</a> </p>--> <form action="<?=$_SERVER['PHP_SELF'] ?>" method="post" name="frm" id="frm" data-ajax="false"> <input name="submit_form" value="1" type="hidden"> <label for="txt-username">Country:<span id="starcolor">*</span></label> <select name="visitor_country" id="visitor_country" visible="1"> <option value="" selected="selected">Please select...</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($row_postad['country_name']==$country_row['ccode']){ ?> selected="selected"<? } ?> ><?=$country_row['country']?></option> <? }?> </select> <label for="txt-username">City:<span id="starcolor">*</span></label> <input type="text" name="city" id="txt-username" value=""> <label for="txt-username">City Area:<span id="starcolor">*</span></label> <input type="text" name="cityarea" id="txt-username" value=""> <label for="txt-email">Phone:<span id="starcolor">*</span></label> <input type="tel" name="phone" id="txt-email" value=""> <label for="txt-password">Instruction:</label> <select name="instruction" id="instruction" visible="1"> <option value="" selected="selected">Please select...</option> <option name="PhoneText" value="SMSCalls">SMS & Calls</option> <option name="PhoneText" value="SMS only">SMS only</option> <option name="PhoneText" value="Calls only">Calls only</option> </select> <label for="txt-email">Email:<span id="starcolor">*</span></label> <? $sql_email="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'"; $res_email=execute_query($sql_email); $row_email=mysql_fetch_array($res_email); ?> <input type="email" name="email" id="txt-email" value="<?=$row_email['email']?>"> <label for="start-date">Start Date</label> <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true"> <select name="startmonth" id="select-choice-month"> <option>Month</option> <option value="">Month</option> <option value="1">1: Jan</option> <option value="2">2: Feb</option> <option value="3">3: Mar</option> <option value="4">4: Apr</option> <option value="5">5: May</option> <option value="6">6: Jun</option> <option value="7">7: Jul</option> <option value="8">8: Aug</option> <option value="9">9: Sep</option> <option value="10">10: Oct</option> <option value="11">11: Nov</option> <option value="12">12: Dec</option> </select> <label for="select-choice-date">Date</label> <select name="startdate" id="select-choice-Date"> <option value="">Date</option> <? for($i=1; $i<=31; $i++){ ?> <option value="<?=$i?>"><?=$i?></option> <? }?> </select> <label for="select-choice-year">Year</label> <select name="startyear" id="select-choice-year"> <option value="">Year</option> <? for($i=2015; $i<=2040; $i++){ ?> <option value="<?=$i?>"><?=$i?></option> <? }?> <!-- etc. --> </select> </fieldset> <label for="txt-cfpassword">End Date:</label> <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true"> <select name="endmonth" id="select-choice-month2"> <option>Month</option> <option value="1">1: Jan</option> <option value="2">2: Feb</option> <option value="3">3: Mar</option> <option value="4">4: Apr</option> <option value="5">5: May</option> <option value="6">6: Jun</option> <option value="7">7: Jul</option> <option value="8">8: Aug</option> <option value="9">9: Sep</option> <option value="10">10: Oct</option> <option value="11">11: Nov</option> <option value="12">12: Dec</option>s <!-- etc. --> </select> <label for="select-choice-date2">Date</label> <select name="enddate" id="select-choice-Date2"> <option value="">Date</option> <? for($i=1; $i<=31; $i++){ ?> <option value="<?=$i?>"><?=$i?></option> <? }?> </select> <label for="select-choice-year2">Year</label> <select name="endyear" id="select-choice-year2"> <option value="">Year</option> <? for($i=2015; $i<=2040; $i++){ ?> <option value="<?=$i?>"><?=$i?></option> <? }?> <!-- etc. --> </select> </fieldset> <br/> <input type="image" src="continue.png" style="height:35px; margin-top:10px;"> </form> <!--<a href="#dlg-invalid-credentials" data-rel="popup" data-transition="pop" data-position-to="window" id="btn-submit" ><img src="continue.png" style="height:35px; margin-top:10px;"></a>--> <div data-role="popup" id="dlg-invalid-credentials" data-dismissible="false" style="max-width:400px;"> <div role="main" class="ui-content"> <h3 class="mc-text-danger">Login Failed</h3> <p>Did you enter the right credentials?</p> <div class="mc-text-center"><a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-b mc-top-margin-1-5">OK</a></div> </div> </div> </div> <div data-role="panel" data-display="push" data-position="right" data-theme="d" id="navMenu"> <? include "includes/right-menubar.php";?> </div><!-- /panel --> <div data-role="footer" > <div id="footerTop"> <? include "includes/footer.php";?> </div> <div id="footerBottom"><p>Copyright 2015 ESCORTSERVICE.ORG | All Rights reserved.</p></div> </div> </div> </body> </html>