Jump to content

piper338

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by piper338

  1. Howdy again,

    I am trying to use echo $userinfo->joindate in my pilot center is returns a result like... 2010-02-10 23:15:50

    How can I format it to return 2/10/2010?

    Thanks,

    Chad C.

    Ok, I tried the following and it returns 12/31/1969 this is the right format but the wrong date... I'll keep trying.

    <?php echo date('m/d/Y', $userinfo->joindate); ?>

  2. What would be the solution for having more than one input that needs a date picker?

    <input type="text" id="datepicker">

    is there a way to use a class rather than an ID?

    Ok I think I figured away around it I used the from-to script

    Not sure if this is a good way to do it, but it works. Sometimes I just need to talk to myself on these forms to get through my problems lol

    <script type="text/javascript">

    $(function() {

    var dates = $('#from, #to').datepicker({

    defaultDate: "+1w",

    changeMonth: true,

    numberOfMonths: 1,

    onSelect: function(selectedDate) {

    var option = this.id == "from" ? "minDate" : "maxDate";

    var instance = $(this).data("datepicker");

    var date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings);

    dates.not(this).datepicker("option", option, date);

    }

    });

    });

    </script>

  3. Ok, thanks I think I got it figured out now. In my header.tpl I was trying to call an older Jquery that I had installed, I took all the old stuff out of my header and it works now. Just gotta work on the css.

    What would be the solution for having more than one input that needs a date picker?

    <input type="text" id="datepicker">

    is there a way to use a class rather than an ID?

  4. Nope, it's alreayd included, a newer version. Yes, that demo should work...

    Ok, thanks I think I got it figured out now. In my header.tpl I was trying to call an older Jquery that I had installed, I took all the old stuff out of my header and it works now. Just gotta work on the css.

  5. phpVMS uses jquery, it's included by default and uses it for many things including schedules. So to make it easy, I'd use jquery plugins

    Pardon my ignorance but if it's already installed do I just need to add the code where I want it?

    EX.

    <script type="text/javascript">

    $(function() {

    $("#datepicker").datepicker();

    });

    </script>

    <div class="demo">

    <p>Date: <input id="datepicker" type="text"></p>

    </div><!-- End demo -->

    <div style="display: none;" class="demo-description">

    <p>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>

    </div><!-- End demo-description -->

  6. k if i started a new temp like single webpage with 3 pages and linked the system like resgiter, login, and everything.

    I don't think you understand quite how phpvms works, all of your "html" should be in a template folder.. lib/skins/your_skin then you activate it from within the admin center.

    What you might do is design your website as one HTML page if that makes it easy for you then cut it up into your HEADER/CONTENT AREA/ and FOOTER there is a few tutorials on how to do this also the documentation is good.

    I'm new to the programming world here is what I am working on http://dev.flyvva.org most of it is basic "HTML" I have added some JAVA and I prefer external CSS style sheet.

  7. Anyway to have the Config::Set call templates? Really need an admin login when in MX mode.

    # Maintenance mode - this disables the site to non-admins

    Config::Set('MAINTENANCE_MODE', false);

    Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');

  8. Hey guys... recently I have been asked to make about 4 non FS related websites... Rather than start from scratch I plan on just using a CMS and skinning it.  What is your favorite CMS? Pros/Cons

    Personally I like WordPress, but I am interested in trying new stuff. Anyone use eZ Publish?

  9. I'm in Texas supposed to snow tomorrow I hope so, got off work about 3:00pm played a bit guitar (Hard to keep in tune in this weather) Now messing around in visual studio trying to make a fleet installer.  The at some point tonight I gotta work on my DEV site. My best work comes around 12am-4am cst lol

×
×
  • Create New...