You are on page 1of 11

<!DOCTYPE html> <!--<link href="<?php //echo $this->config->base_url(); ?>public/assets/dropzone /css/dropzone.

css" type="text/css" rel="stylesheet" /> --> <link rel="stylesheet" href=" jquery-ui.css" /> <script src=""></script> <script src="<?php echo $this -> config -> base_url(); ?>public/assets/dropzone/ dropzone.js"></script>

<script type='text/javascript' src='<?php echo $this->config->base_url(); ?>js_a utosuggest/jquery.autoSuggest.js'></script> <link rel="stylesheet" type="text/css" href="<?php echo $this->config->base_url( ); ?>js_autosuggest/autoSuggest.css" /> <link rel="stylesheet" href="<?php echo $this->config->base_url();?>css/naeem.cs s" />

<script> $(function() { $( "#datepicker" ).datepicker(); }); </script>

<script> $( document ).ready(function(){ var no_address = $('.no_address').val(); if(no_address == "Please Enter atleast one Shipping address!") { $("#openpopup").trigger('click'); }

$(".css-label.radiotocheck").click(function(){ //$(".checked + label.css-label").css( "background-position", "b ackground-position: 0px 0px;" ); $(".css-label.radiotocheck").css( "background-position", "0px 0p x" ); $(this).css( "background-position", "0px -11px" );

for (var i = 0. case 'friend': $("#my_add_div").hide(). var validation_holder = 0. city = document.prop( "checked". addressline2 = document.val ue. wishlist_id = document.prop( "checked". true ). addressline1 = document.length.value. break.getElementById("city"). .hide().radiotocheck' ).value.getElementById("addressline1"). $("#friend_names"). $("#friend_names").}).value. } }). function add_this_address() { // alert("Accessed").getElementById("category"). $("#my_add_div").change(function(){ $( '.getElementById("state").value.getElementById("zip").getElementsByName('address'). }).hide(). var rates = document.val(). $(this). } } switch (rate_value) { case 'myadd': $("#friend_drop_down"). $('. break.value.fadeIn(). case 'manually': $("#friend_drop_down").getElementById("addressline2"). $("#my_add_div"). false ).hide(). var rate_value.hide().hide().fadeIn(). i < rates.getElementById("wishlist_id_manuall").checked) { rate_value = rates[i]. var baseurl = $('#baseurl').radiotocheck'). $("#friend_names").value. category = document. i++) { if (rates[i]. zip = document.trigger('click'). $("#openpopup").fadeIn(). $("#friend_drop_down"). break. state = document.value.

"). } if( addressline2 == "") {$("span. city : city. success : function(data) { $('#Manually_pp').html("Address category require d. data : { addressline1 : addressline1.addressline2").city"). } else {$("span. } } // end the manually type . addressline1"). } else { $("sp").addClas s('validate').} if(validation_holder == 1){ return false. //data will be containing the vote count which y ou have echoed from the controller } }). validation_holder = 1.html("").addClass('validate'). } if(city == "") {$("span.").state").").htm l("").addCl ass('validate'). state : state. validation_holder = 1.} if(category == ""){$("span. } else {$("span.html("").html("Zip code required.} if( zip =="" ) {$("span.category").html("").html("Street Add ress2 is required.ajax({ url : baseurl + 'address/adding_address'.city"). category : category }. type : "POST".addClass('validate'). } if( state == "" ) {$("span.addCl ass('validate'). } else { $. validation_holder ="). addressline2 : addressline2. wishlist_id : wishlist_id. validation_holder = 1. } else {$("span.state"). } else {$("span."). cache : false. } else {$("span.addressline1").fadeIn().addClass('validate'). validation_holder = 1.html("").if(addressline1 ==""){ $("span. 'close').foundation('reveal'.").html(data).html("Street Addre ss1 is required. $("#manually_div"). zip : zip.html("State required. validation_holder = 1.category").html("City name required.html("").").addressline2"). $("#manually_div").

getElementById("friend_user_id"). }). }). } else { $("#private_event_names").hide(). $search ) ) !== false ) { . {selectedItemProp: "first_name".fadeIn().value.html(data).autoSuggest('<?php echo $this->config->base_url(). var baseurl = $('#baseurl'). </script> <?php function str_replace_last( $search .val(). $('#friend_id_hidden'). searchObjProps: "first_name".s electedValuesProp:"user_id"}). } </script> <script type="text/javascript" > function checkbox_click() { if($('#private_event').click(function () { var a=$(".fadeIn(). cache : false. ?>friends/frie nds_suggestion'.val(a). } } $(function(){ $("#suggest4"). $("#friend_drop_down"). //data will be containing the vote count which y ou have echoed from the controller } }). $replace . $.val(). $('#start_event').ajax({ url : baseurl + 'address/addresses_of_fiends'.as-values"). type : "POST". success : function(data) { $("#friend_drop_down"). $str ) { if( ( $pos = strrpos( $str .function friend_address() { var d = document. data : { user_id : d }.is(':checked')) { $("#private_event_names").

Duis autem vel eum iriure do lor in hendrerit in vulputate velit esse molestie consequat. ?>images/eve nts/create_events/grid-star. $search_length ). $str = substr_replace( $str . ?>"/> <!--Events --> <section id="create-event"> <div class="row"> <div class="small-12 columns align-middle"> <h2 class="page-title">Create event</h2> </div> </div> <div class="row"> <div class="small-6 small-centered columns align-middle"> <img src="<?php echo $this -> config -> base_url().</p> </div> </div> <div class="row"> <div class="small-6 small-offset columns"> <div class="drop-image align-middle"> <form action="<?php echo $this -> config -> base _url(). ?>" /> </form> </div> <?php echo form_open('event/event_started') ?> . quis nostrud exerci tation ullamcorper suscipi t lobortis nisl ut aliquip ex ea commodo consequat. vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui bl andit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilis i. consectetuer adipiscing elit. ?>images/events/create_events/drop-image-plus. ?>upload/upload_coverphoto" class="dropzone" > <img src="<?php echo $this -> config -> base_url (). } return $str.png" > <input type="hidden" name="wishlist_id" value="< ?php echo $wishlist_id_cont. } ?> <input type="hidden" class="no_address" name="no_address" value="<?php echo $thi s->session->userdata('no_address'). Ut wisi enim ad minim veniam. $replace .$search_length = strlen( $search ).png" /> </div> </div> <div class="row"> <div class="small-12 columns align-middle"> <p>Lorem ipsum dolor sit amet. $pos . sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutp at.

JQuery UI date picker--> <input name="event_date" required type="text" id="datep icker" /> <!-<input type="text" name="event_date" id="datepicker" req uired data-errormessage-value-missing="Please Enter the Event date" placeholder="mm/dd//yyyy"/> --> <label class="ping_head">Event Description</label> <br/> <textarea name="message_des" required data-errormessage -value-missing="Please Enter Your Message Description.My Address </div> ." class="css-checkbox" name="privte_event" id="private_event" value="Yes" /> <label for="private_event" name="demo_lbl_1" class="csslabel ping_head">Private Events</label> <br /> <div id="private_event_names" style="display: none."></textarea> <input type="checkbox" type="hidden" onclick="checkbox_c lick(). ?>" id="baseurl" /> <label class="ping_head">Shipping Address</label> <br /> <div class="input_text"> <input id="demo_box_2" class="css-checkbox radiotocheck" ty pe="checkbox" name="address" value="myadd"/> <label for="demo_box_2" name="demo_lbl_2" class="css-label r adiotocheck">My Address</label> </div> <!-name="address" <div class="input_text"> <input type="checkbox" class="checkButtons radiotocheck" value="myadd"/> &nbsp. ?>" /> id_hidden" /> <label class="ping_head">Event Title</label> <input type="text" name="event_title" id="event_title" r equired data-errormessage-value-missing="Please Enter the Event Title" /> <label class="ping_head">Event Date</label> <!-.<input class="align-middle" type="text" placeholder="Cop y and past your video URL"> <input type="hidden" id="friend_id_hidden" name="friend_ <!-.the comma separated friend's ids. --> <input type="hidden" name="wishlist_id" value="<?php ech o $wishlist_id_cont."> <input type="text" id='suggest4' name="suggest_f" /> </div> <input type="hidden" value="<?php echo $this->config->ba se_url().

?> <?php echo $address['country']."> .Hidden." onclick="f riend_address()." id="friend_user_id"> <?php foreach($friends as $user_friends) {?> <option value="<?php echo $user_friends['user_id'].--> <div id="my_add_div" style = "display: none. ?> </option> <?php endforeach. Appear when user click on MY ADDRESS --> <!- <?php if(count($addresses)){ ?> <select name="address_id" id="address_id "> <?php foreach($addresses as $address) : ?> <option value="<?php echo $address['user _address_id']. ?>."> <!-. ?> <?php echo $address['zip_code'].Div for the friends names --> <?php if(count($friends)){ ?> <select class="right_align_select" onFocus=" outline:none. ?>"><?php echo $user _friends['first_name']. ?> </select> <?php } else echo 'Whoops! No address Found!'. ?>"> <?php echo $address['street_address1']. Choose from freind's list --> </div> <div id="friend_names" style="display: none. ?> <?php echo $user_friends['last_name']. <?php echo $address['street_address2']. ?></option> . ?> </div> <div class="input_text"> <div class="left_alignment_int"> <input id="demo_box_3" name="address" class="css-checkbox radiotocheck" type="checkbox" value="friend"/> <label for="demo_box_3" name="demo_lbl_3" class="css-label radiotoche ck">Choose from freind's list</label> <!-<input type="checkbox" name="address" class="checkButtons radiotocheck" value="friend"/> &nbsp.

$shipping_total=0. ?> <div class="small-4 columns side-text"> <ul class="small-block-grid-2 siderbar-percentage"> . } ?> </div> </div> <div id="friend_drop_down"> </div> <input type="hidden" data-reveal-id="Manually_pp" id="openpopup" /> <div class="input_text"> <input id="demo_box_4" class="css-checkbox radiotocheck" type="c heckbox" name="address" value="manually" /> <label for="demo_box_4" name="demo_lbl_4" class="css-label r adiotocheck">Manually type</label> <!-<input type="checkbox" class="checkButtons radiotocheck " name="address" value="manually" /> &nbsp.<div class="small-6 small-offset columns"> is closed --> <?php $i=0."> </div> <input type="submit" class="button_edit" value="start event" id="start_ event" /> <!-<input type="submit" class="button small event-button" id="start_event" value="start event" /> --> </form> </div><!-. $total_price=0.<?php } ?> </select> <?php } else { echo "Whoops! No any friend!". count($wishlist_item) ?> <?php $size_of_array = sizeof($wishlist_item). Manually type: <br/>--> </div> <div id="manually_div" class="box_text" style="display: none.

' />'. ?> <?php $swap[$i] = $wish_item['priority'].png"> </a> <?php } ?> <!-. ?> </ul> . ?></ p> <?php $total_price=$total_price + $wish_item['original_price'] .'.$result.png"></a> --> </li> </ul> </li> <?php endforeach . ?>images/events/arrow-up-down. $wishlist_id_creating = $wish_item['wishlist_id'].png"> --> <div class="sidebar-show-per"> <?php $result = str_replace_last('.<?php foreach($wishlist_item as $wish_item): ?> <?php $i++. ?> <p class="product-status">$<?php echo $wish_item['original_price'].<a href="#"></a> <a href="#"><img src="images/events/arro w-down. ?> <?php echo '<img src ='. ?>index. ?> <?php $shipping_total=$shipping_total + $wish_item['shipping_price'] ?> <p class="item-name"><?php echo $wish_item['item_name']. ?>" > <img src="<?php echo $this -> config -> base_url().<img src="images/events/thumb_image.php/event/swap/<?php echo $wishlist_id_creating. ?></p> <p class="item-url"> <a href="<?php echo $wish_item['product_url'].<a href="#"></a> --> </p> </li> <li><!-. ?> <li> <h3 class="item-number"><?php echo $i. ?> </div> <ul class="small-block-grid-1 arrows arow_2"> <li> <?php if($i!=$size_of_array) { ?> <a href="<?php echo $this -> config -> b ase_url().$wish_item['image _url']).'. ?>/ <?php echo $wid. ?>" target=_blank> Go to URL </a> <!-.'_thumb. ?>/<?php echo $i. ?></h3> <?php $wid = $wish_item['wishlist_item_id'].

. ?></sp an></p> </div> </div> </div> </div> </section> <!--Events--> <!--Popup Code--> <!-. ?> " id="baseurl" /> <input type="hidden" value="<?php echo $wishlist_item[0]['wishlist_id']."><span class="category"></span> <input type="text" class="add_item_input_box" id="addressline1" placehol der="Street Address1.. ?></sp an><br> shipping total:<span> $<?php echo $shipping_total .<div class="total_box"> <div class="right_aligment_total"> <h1>$<?php echo $total_price+$shipping_total .." ><span class="city"></span> <input type="text" class="add_item_input_box" id="state" placeholder="Co untry name." ><span class="state"></span> <input type="text" class="add_item_input_box" id="zip" placeholder="Zip Code." ><span class="addressline2"></span> <input type="text" class="add_item_input_box" id="city" placeholder="Cit y name.... ?>" id="wishlist_id_manuall" /> <p><font color="red"> <?php echo $this->session->us erdata('no_address'). ?> </font></p> <input type="text" class="add_item_input_box" id="category" required dat a-errormessage-value-missing="Please Enter the Category" placeholder="Home/Work/ Other. $this->session->unset_u serdata('no_address').""><span class="zip"></span> ..Add manuall address --> <div id="Manually_pp" class="reveal-modal small re-model wishListPopup"> <div class="wishListPopupHeading align-middle"> <h4>TOMOMONO</h4> </div> <div class="popup-form"> <div id="in_center" class="row in_center"> <input type="hidden" value="<?php echo $this -> config -> base_url(). ?></h1> <p>gift total+tax: <span>$<?php echo $total_price ."><span class="addressline1"></span> <input type="text" class="add_item_input_box" id="addressline2" placehol der="Street Address2.

" value="Add this address"> </div> </div> </div> <!--End Popup--> .<input type="submit" class="button add_item_popup" onclick="add_this_add ress().