Register for your free account! | Forgot your password?

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

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

Advertisement



Jquery search between 2 dates

Discussion on Jquery search between 2 dates within the Coders Trading forum part of the Other Trading category.

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

Hello

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:
45356345-0001_2016-02-18_18_33_54.JPG
Directory tree:

I've tryed this code:
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>';
    
    $('#big_modal-2').append(output);
    $('#big_modal-2').reveal();

    $.get('<?php echo klooke::get('base_url')?>'+ajaxcall, function(data) {
            $('#dir-links').html(data);
            $('#dir-links-backup').html(data);
            bindTreeLinks(post_action);
    });

    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 );
        	}).hide();
    	});
	});
Make offers to me how much for this work.

Best wishes,
suemaolen,
suemaolen is offline  
Old 09/26/2016, 17:49   #2 Trade Status: Unverified(?)
 
Masterakio1995's Avatar
 
elite*gold: 8
Join Date: Apr 2009
Posts: 2,977
Received Thanks: 855
Hi,
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  
Reply


Similar Threads Similar Threads
Help encrypt my dates .
04/05/2014 - Flyff Private Server - 1 Replies
Help my dates encryption in server flyff !
[jQuery] Simple jQuery-Plugin Template
01/21/2014 - Coding Snippets - 0 Replies
Ohne Parameter: Der Code selbst: (function( $ ) { $.fn.popupContent = function() { //Funtions-Block alert($( this ).text()); }; }( jQuery ));
[Suggestion] Community Play-dates
05/24/2013 - Suggestions & Feedback - 2 Replies
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 anyways) How about having certain dates (when available) where the EPvP Team, plays with the community. This could be on PC or Console where some of us, could play with you guys. This is just a nice time for all of us to get along, and actually have more things to do. For example, I might wish to do a Xbox play-date with the game Black Ops II...
Mixed up with dates
01/25/2010 - Silkroad Online - 0 Replies
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 know if Iris server was started before avatars were made acount bound, if it was then maybe i have a chance to get a rly good avatar cuz the new ones look like sht thx in advance, btw did anyone try to convince the gaymax staff to make an event where you could get/buy old avatars? i miss my spartan one :P



All times are GMT +1. The time now is 07:41.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.