jQuery UI Datepicker Add Days (check-in,check-out,no. of nights)

<div class=”cus-select” style=”width:90px;”> <input type=”text” name=”check_in[<?=$_GET[‘i’]?>]” class=”custom-sel-box check_in checkin_out” style=”width:90px;” onchange=”getDetail(‘<?=$_GET[‘i’]?>’)” > </div> <div class=”cus-select” style=”width:90px; margin-left: 14px;”> <input type=”text” name=”check_out[<?=$_GET[‘i’]?>]” class=”custom-sel-box check_out checkin_out” style=”width:90px;” onchange=”getDetail(‘<?=$_GET[‘i’]?>’)” > </div> <div class=”cus-select” style=”width:90px; margin-left: 14px;”> <select name=”nights[<?=$_GET[‘i’]?>]” class=”custom-sel-box nights” style=”width:90px;” onchange=”getDetail(‘<?=$_GET[‘i’]?>’)” > <option value=”2″>2</option> <option value=”3″>3</option> <option value=”4″>4</option> <option value=”5″>5</option> <option value=”6″>6</option> <option value=”7″>7</option> <option value=”8″>8</option> <option … Read more

Sending multiple files in email using PHP

<?php // array with filenames to be sent as attachment $files = array(“emi_pdf/Self_Employee_1330438553.pdf”, “emi_pdf/Self_Employee_1330439327.pdf”,”emi_pdf/Self_Employee_1330438611.pdf”); // email fields: to, from, subject, and so on $to = “abc.kumar@gmail.com”; $from = “me@domain.com”; $subject = “send email with pdf attachment”; $message = “<p>Please see the attachment.</p>”; $headers = “From: $from”; // boundary $semi_rand = md5(time()); $mime_boundary = “==Multipart_Boundary_x{$semi_rand}x”; // … Read more

Generate a PDF and send as attachment in Email

One way: In PHP // download fpdf class (http://fpdf.org) require(“/fpd/fpdf.php”); // fpdf object $pdf = new FPDF(); // generate a simple PDF (for more info, see http://fpdf.org/en/tutorial/) $pdf->AddPage(); $pdf->SetFont(“Arial”,”B”,14); $pdf->Cell(40,10, “this is a pdf example”); // email stuff (change data below) $to = “target@domain.com”; $from = “me@domain.com”; $subject = “send email with pdf attachment”; $message … Read more

jquery using confirm box

$(‘.drop-cross-img’).live(“click”, function(){ var cross_img = $(this); var item_id = cross_img.attr(‘alt’); var item_tbl = cross_img.attr(‘rel’); //alert(item_tbl); var confirmation = confirm(‘Are you sure, you want to delete it?’); if(confirmation){ jQuery.ajax({ type:’POST’, url: “common/function_outfits.php”, data: “ajax=true&activity=delete_item&itemID=”+item_id+”&action=”+item_tbl, success: function(data){ if(data==’Item Deleted.’){ cross_img.parent().remove(); } } }); } });

jquery validationEngine form submit with ajax [Solved]

/* * Inline Form Validation Engine 1.7, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-relative.net * * Form validation engine allowing custom regex rules to be added. * Thanks to Francois Duquette and Teddy Limousin * and everyone helping me find bugs on the forum * Licenced under the MIT Licence */ $(document).ready(function() … Read more

Simple viewer flickr

This site automatically publishes the images of this set in my Flickr album, without any manual intervention on my part. Ready to create your own? Here we go: 1 ° / Find a host To host your site, you need a server. If you want to use a free hosting, you can opt for Free, … Read more

Add Lumis Gallery to your site

The advantage of Lumis Gallery, is to propose a solution: – All your Flickr sets are taken into account – Comments are displayed directly on your site – You also get a “blog” automatic, which displays the descriptions of your Flickr account you choose – You have a page with a map of the world … Read more