You are on page 1of 7

<html> <head> <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui .

css" rel="stylesheet" type="text/css" /> <script src="../include/jquery-1.9.1.js"> </script> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type= "text/javascript"></script> <script type="text/javascript" src="http://cloud.github.com/downloads/javant o/civem.js/civem-0.0.7.min.js"> </script> <style> .myPopUp{ display:none; /* Hide the DIV */ position:fixed; _position:absolute; /* hack for internet explorer 6 */ height:auto; width:600px; background:#FFFFFF; left: 300px; top: 120px; z-index:100; /* Layering ( on-top of others), if you have lots of layers : I just maximized, you can change it yourself */ margin-left: 15px; /* additional features, can be omitted */ border:2px solid #ff0000; padding:15px; font-size:15px; -moz-box-shadow: 0 0 5px #ff0000; -webkit-box-shadow: 0 0 5px #ff0000; box-shadow: 0 0 5px #ff0000; } #popup_box{ display:none; /* Hide the DIV */ position:fixed; _position:absolute; /* hack for internet explorer 6 */ height:300px; width:600px; background:#FFFFFF; left: 300px; top: 150px; z-index:100; /* Layering ( on-top of others), if you have lots of layers : I just maximized, you can change it yourself */ margin-left: 15px; /* additional features, can be omitted */ border:2px solid #ff0000; padding:15px; font-size:15px; -moz-box-shadow: 0 0 5px #ff0000; -webkit-box-shadow: 0 0 5px #ff0000; box-shadow: 0 0 5px #ff0000; }

. position:absolute. Dynamic pop_up_box ... color:#6fa5e2.onclick = function() { loadPopupBox_addmore(). /*Sample*/ width:100%.ready( function() { // When site loaded. } </style> <script type="text/javascript"> $(document)... text-decoration:none...#container { background: #d2d2d2. } function loadPopupBox_addmore() { // To Load the Popupbox $('#popup_box_addmore').. right:5px..... add. // For the addmore POPup function unloadPopupBox_addmore() { x' $('#popup_box_addmore')... $('#maindiv'). line-height:15px.css({ // this is just for style "opacity": "0... } /* This is for the positioning of the Close Link */ #popupBoxClose { font-size:20px. top:5px..15" }).. $('#maindiv')... font-weight:500.fadeOut("slow"). load the Popupbox First var add = document...css({ // this is just for style "opacity": "1" }).fadeIn("slow").getElementById("addmore")... } }).. } // TO Unload the Popupbo //.... } a{ cursor: pointer. height:100%.....

$('#maindiv').facebook.insertBefore(js. ?> <?php echo form_open('wishlist/create_event'). js.$_SERVER['HTTP_HOST']. if (d.src = "//connect. s.css({ // this is just for style "opacity": "1" }). }(document. fjs.$_SERVER['REQU EST_URI']. id) { var js.fadeIn("slow"). 'facebook-jssdk')) . //alert(a).3" }).getElementById(id)) {return. $('#pop_box_'+id).css({ // this is just for style "opacity": "0.js#xfbml=1".</script> <?php echo validation_errors(). fjs)."> <?php $commenturl="http://".getElementsByTagName(s )[0]. ?> <p align="right" align="center"><input type="submit" name="submi t" value="Add To Event" /></p> <!-<input type="checkbox" name="item" value="1234" /> --> . fjs = d. } // <!-. js.net/en_US /all.fadeOut("slow"). $('#maindiv').} js = d. 'script'.createElement(s).id = id. } function loadBox(id) { // To Load the Popupbox //alert(id).javascript closed--> </script> </head> <body bgcolor="Add8E6" style="width: 1000px.function unloadBox(id) { // TO Unload the Popupbox $('#pop_box_'+id).parentNode.?> <div id="fb-root"></div> <script>(function(d.

p hp/wishlist/sort_by/created_on"><input type="button" value="Sort by Date Added" align="center"/></a></h3> </div> <h2 style=" text-align: center.<div id="sort" style=" float: left. ?> <br /> <a href="<?php echo $this->config->base_url()."> <?php if(isset($_SESSION['add_ item'])) {echo $_SESSION['add_it em']. ?>)." value="Item Details"> <input type="checkbox" name="item[]" value="<?php echo $somethin ggood_item['user_item_id'] . } ?> </h2> <table style="width: 100%"> <tr> <td> <?php $i=0. "> <h1 align="center" style="color: WHITE"> MY WISHLIST </h 1> <br/> <h3 align="center" style="color: WHITE"> Sort By: <a href="<?php echo $this->config->base_url().?></h 2> <br/> <?php echo '<img src ="'. ?>index. ?>index. width: 5 00px.'" alt="Upload Here!" width="150" height="150"/>'.$somethinggood_item['image_url' ].$somethinggood_item['item_name']. foreach ($user_item as $somethinggood_item): $i= $i + 1. unset($_SESSION['add_i tem']). ?>"> Add To WishList </input> .?>/ 1/0" >Upload Image</a> <input type="button" onClick="javascript:loadBox (<?php echo $i. background-color:red. height: 250px.p hp/wishlist/upload_item_image/<?php echo $somethinggood_item['user_item_id']. ?> <?php echo '<h2>'. ?>index. background: 66CC99.p hp/wishlist/sort_by/original_price"><input type="button" value="Sort by Price" align="center"/></a> <a href="<?php echo $this->config->base_url().

. ?>" class="myPopUp"> <?php echo form_open('main/add_to_pool') ?> <h3>Item Details..<hr style="width: 25%" align="left" /> </form> <!--. ?>index..... ?> <br /> <?php echo 'Product Url: <a href="'.. --> <div id="pop_box_<?php echo $i.?>" name="user_item_i d" /> <?php if( $somethinggood_item[ 'user_id'] == $this->session->userdata('user_id')) { ?> <a href="<?php echo $thi s->config->base_url()..?>"> <input type="but ton" value="Delete" align="center"/></a> <?php } else { ?> <input type="su bmit" value="Add This To My Pool" align="right"> <br/> <?php } ?> <?php echo '<h2> '.$somethinggood_item['image_url']..... Div for the item details......'Your Product: ' .$s ...'" alt="Upload Here!" width="150" hei ght="150"/>'.. $somethinggood_item['item_name'] ?></h2> <br /> <?php echo '<img src ="'.php/wishlist/delete_item/<?php echo $somethinggoo d_item['user_item_id'].. </h3> <table> <input type="hid den" value="<?php echo $somethinggood_item['user_id']?>" name="searched_user_id" /> <input type="hid den" value="<?php echo $somethinggood_item['user_item_id'].

.'" target=_blank>' . ?> <?php echo form_open('wishlist/add_item') ?> <h2 align="center">Add a new item to wishlist</h2> <table align="center"> <tr> <td><label for="title">Name</label> </td> <td><input type="input" name="name" required dat a-errormessage-value-missing="Please Enter the product Name" placeholder="Produc t Name. ?>)." class="mypopup" <!-.$s omethinggood_item['original_price'].">Close</a> <fb:comments href="<?php echo $co mmenturl?>/<?php echo $somethinggood_item['user_item_id']."> > <div id="popup_box_addmore" style="diplay:none." /></td> </tr> <tr> <td><label for="text">URL</label> </td> <td><textarea name="url" required data-errormess age-value-missing="Please Enter the URL" placeholder="URL of the Product. ?> <a href="#" id="popupBoxClose" onCli ck="javascript:unloadBox(<?php echo $i.." ></ textarea><br /> </td> .'<p><b> Product Price:</b> '.OUR PopupBox DIV--> <?php echo validation_errors().'</p>'.?>" num_posts="8" widt h="500"></fb:comments> </table> <br /> </form> </div> <?php endforeach ?> </td> </tr> </table> <input type="button" id="addmore" name="addmore" value="Add more items"/ style= "float: right. '</a>' ...omethinggood_item['product_url'].'URL' .

" /></td> </tr> <tr> <td></td> <td align="center"> <input type="submit" name="s ubmit" value="Enter Values" align="center"/> </td> </tr> </table> <a href="#" id="popupBoxClose" onclick="javascript:unloadPopupBox_addmore().Main Page --> <!--<div id="container"> <h1>sample</h1> --> </body> </html> ..">Cl ose</a> </div> <!-.Closing the popup div --> <!-..</tr> <tr> <td><label for="text">Price</label></td> <td> <input type="number" name="price" required data-errormessage-value-missing="Please Enter the Price" placeholder="Price of t he product.