Anda di halaman 1dari 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; }

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

//................................. Dynamic pop_up_box

function unloadBox(id) {

// TO Unload the Popupbox

$('#pop_box_'+id).fadeOut("slow"); $('#maindiv').css({ // this is just for style "opacity": "1" }); } function loadBox(id) { // To Load the Popupbox //alert(id); //alert(a); $('#pop_box_'+id).fadeIn("slow"); $('#maindiv').css({ // this is just for style "opacity": "0.3" }); }

// <!-- javascript closed--> </script>

</head>

<body bgcolor="Add8E6" style="width: 1000px;"> <?php $commenturl="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQU EST_URI'];?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s )[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US /all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')) ;</script> <?php echo validation_errors(); ?> <?php echo form_open('wishlist/create_event'); ?> <p align="right" align="center"><input type="submit" name="submi t" value="Add To Event" /></p> <!-<input type="checkbox" name="item" value="1234" /> -->

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

<hr style="width: 25%" align="left" /> </form> <!--................... Div for the item details.... --> <div id="pop_box_<?php echo $i; ?>" class="myPopUp"> <?php echo form_open('main/add_to_pool') ?>

<h3>Item Details. </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'];?>" 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(); ?>index.php/wishlist/delete_item/<?php echo $somethinggoo d_item['user_item_id'];?>"> <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> '.'Your Product: ' . $somethinggood_item['item_name'] ?></h2> <br /> <?php echo '<img src ="'.$somethinggood_item['image_url'].'" alt="Upload Here!" width="150" hei ght="150"/>'; ?> <br /> <?php echo 'Product Url: <a href="'.$s

omethinggood_item['product_url'].'" target=_blank>' .'URL' . '</a>' .'<p><b> Product Price:</b> '.$s omethinggood_item['original_price'].'</p>'; ?> <a href="#" id="popupBoxClose" onCli ck="javascript:unloadBox(<?php echo $i; ?>);">Close</a> <fb:comments href="<?php echo $co mmenturl?>/<?php echo $somethinggood_item['user_item_id'];?>" 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;">

>

<div id="popup_box_addmore" style="diplay:none;" class="mypopup" <!-- OUR PopupBox DIV--> <?php echo validation_errors(); ?> <?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..." /></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..." ></ textarea><br /> </td>

</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..." /></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();">Cl ose</a> </div> <!-- Closing the popup div --> <!-- Main Page --> <!--<div id="container"> <h1>sample</h1> -->

</body> </html>

Anda mungkin juga menyukai