Register for your free account! | Forgot your password?

Go Back   elitepvpers > The Black Market > Other Trading > Coders Trading
You last visited: Today at 01:19

  • Please register to post and access all features, it's quick, easy and FREE!

Jquery search between 2 dates

Old   #1
elite*gold: 0
Join Date: Sep 2016
Posts: 4
Received Thanks: 0
Exclamation Jquery search between 2 dates


I'm searching programmer who can code Jquery search between two dates.

I have file storage website where is directory tree (over 80 000 files).
And want do add there date search.
Date numbers is in filename like:
Directory tree:

I've tryed this code:
function showDirectoryTree(title, ajaxcall, post_action){
    $('#big_modal-2').html(' ');

    var output = '<p class="lead text-search-info">'+title+'</p>';
    output += '<hr />';
    output += '<p id="dir-links" class="lead"><?php echo keel::get("Palun oodake...")?></p>';
    output += '<p id="dir-links-backup" style="display:none"></p>';

    output += '<hr /><div class="col-lg-5 right"><div class="input-group"><input type="text" class="form-control" id="text-search" placeholder="<?php echo keel::get("Otsi ja filtreeri")?>" />';
        output += '<span class="input-group-btn"><button style="padding: 7.5px 12px;" class="btn btn-default" id="otsing" type="button"><i class="fa fa-search"></i></button></span></div></div>';
    output += '<div class="row"><div style="float:left; width:17%;"><input type="text" style="height:37px;" class="form-control" id="startDate" placeholder="DD/MM/YY"></div> <div style="float:left; width:17%; margin:0 1%;"><div class="input-group"><input type="text" style="width:97.71px; height:37px;" class="form-control" id="endDate" placeholder="DD/MM/YY" /><span class="input-group-btn"><button style="padding: 7.5px 12px; left:-1px;" class="btn btn-default" id="dateOtsing" type="button"><i class="fa fa-search"></i></button></span></div></div></div>';

    output += '<a class="close-reveal-modal"></a>';

    $.get('<?php echo klooke::get('base_url')?>'+ajaxcall, function(data) {

    jQuery.expr[':'].Contains = jQuery.expr.createPseudo(function(arg) {
      return function( elem ) {
      	return ( elem.textContent || elem.innerText || (getText && getText( elem ))).toUpperCase().indexOf(arg.toUpperCase()) >= 0;

    $(function() {
        var startDate = $('#startDate').val();
        var endDate = $('#endDate').val();
    $("#startDate").datepicker().val().replace("/", "-").replace(" ", "-");
    $("#endDate").datepicker().val().replace("/", "-").replace(" ", "-");
    $("#dateOtsing").click(function() {
        var from = $("#startDate").datepicker("getDate");
        var to = $("#endDate").datepicker("getDate");
        $("#dir-links li:Contains('"+startDate+", "+endDate+"')").show().filter( function() {
            var curDate = new Date( $(this).find("li:not(:Contains('"+startDate+", "+endDate+"'))").first().text() ).getTime(),
            fromDate = from.getTime(),
                toDate = to.getTime();
            return ( curDate > toDate ) || ( curDate < fromDate );
Make offers to me how much for this work.

Best wishes,

suemaolen is offline  
Old 09/26/2016, 17:49   #2 Trade Status: Unverified(?)
elite*gold: 8
Join Date: Apr 2009
Posts: 2,977
Received Thanks: 855
only jQuery or is it allowed to develop a combination of jQuery and PHP?
pm me.

Masterakio1995 is offline  
Old 09/26/2016, 18:38   #3
elite*gold: 0
Join Date: Sep 2016
Posts: 4
Received Thanks: 0
Just must work in my website and code must be simple.
So PM ME your skype and I add you.
suemaolen is offline  

Similar Threads
Help encrypt my dates .
Help my dates encryption in server flyff !
1 Replies - Flyff PServer - Discussions / Questions
[jQuery] Simple jQuery-Plugin Template
Ohne Parameter: Der Code selbst: (function( $ ) { $.fn.popupContent = function() { //Funtions-Block alert($( this ).text()); };...
0 Replies - Coding Snippets
[Suggestion] Community Play-dates
Well, I would personally love to see what you guys think, and I'm terribly sorry if I word this wrong, as it's going to be hard to word (for me...
2 Replies - Suggestions & Feedback
Mixed up with dates
hy, i spent nearly an hour to dig up some dates, thought maybe anyone could clarify it to me since i can't find the right info... so i'd need to...
0 Replies - SRO Main - Discussions / Questions

All times are GMT +2. The time now is 01:19.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.