Posts

Showing posts from January, 2018

specific text change by jquery

<script>    jQuery(document).ready(function($){   $(".review-link").text(function () {     return $(this).text().replace("customer reviews", "reviews"); }); }); </script>

how to use number captcha using jquery-captcha-basic

https://github.com/pemre/jquery-captcha-basic

appointment time in dropdown with 15 min slot in php

<?php   $a=explode(',','10:00-11:45, 17:00-19:00'); $count_arr=count($a); $s=array(); for($i=0;$i<$count_arr;$i++) {     $stime=explode('-',$a[$i]);     $s=array_merge($s,$stime); } ?> <?php   $scount=count($s); ?> <select style="width:85px;" name="select1" id="select1">     <?php for($t=0;$t<$scount;$t++){     $start = strtotime($s[$t]);     $t++;     $end   = strtotime($s[$t]);     for($i = $start;$i<$end;$i+=900){         ?>     <option value='<?php echo date('G:i', $i); ?>'><?php echo date('G:i', $i); ?></option>;         <?php     } }         ?> </select>

Show Appointment on the fullcalander in Jquery PHP

<?php $sql="SELECT distinct appoinment_date FROM  `appointment` ORDER BY appointment_id DESC";   $result=mysql_query($sql);   $num_rows=mysql_num_rows($result);   if($num_rows > 0)   {     $appoinment_date=array();      $str = '[';         while($rows=mysql_fetch_array($result))     {         $str_data = '{ title: \'Appointment\', start: \''.$rows["appoinment_date"].'\' },';         $str = $str.$str_data;     }         $str = $str.']'; } ?>     <link href="fullcalendar/css/fullcalendar.css" rel="stylesheet" type="text/css">     <script src="fullcalendar/js/jquery.min.js"></script>     <script src="fullcalendar/js/moment.min.js"></script>     <script src="fullcalendar/js/full...

show data in data tables in ajax respose in php

<?php include_once('config.php'); session_start(); if (!isset($_SESSION['email'])) {     header('Location: admin-login.php');     exit;   }   $selected_date=$_POST['selected_date'];   $sql="SELECT * FROM  `appointment` where appoinment_date='".$selected_date."'  ORDER BY appointment_id DESC";   $result=mysql_query($sql);   $number_of_rows = mysql_num_rows($result);   $msg='';   $msg.='<center>';   $msg.='<strong>';   $msg.='Selected Date:&nbsp;&nbsp;';   $msg.='</strong>';   $msg.='<strong>';   $msg.=$_POST['selected_date'];   $msg.='</strong>';   $msg.='</center>';    $msg.='<table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">                         ...

How to Change the Variable Product Price Range in WooCommerce

/** * Change price format from range to "From:" * * @param float $price * @param obj $product * @return str */ function iconic_variable_price_format ( $price , $product ) {        $prefix = sprintf ( '%s: ' , __ ( 'From' , 'iconic' ) ) ;        $min_price_regular = $product -> get_variation_regular_price ( 'min' , true ) ;      $min_price_sale      = $product -> get_variation_sale_price ( 'min' , true ) ;      $max_price = $product -> get_variation_price ( 'max' , true ) ;      $min_price = $product -> get_variation_price ( 'min' , true ) ;        $price = ( $min_price_sale == $min_price_regular ) ?          wc_price ( $min_price_regular ) :          '<del>'...