PATH:
root
/
mbmadmin1234locales
<?php require_once "submit.php"; date_default_timezone_set('Europe/Warsaw'); function dateV($format,$timestamp=null){ $to_convert = array( 'l'=>array('dat'=>'N','str'=>array('Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota','Niedziela')), 'F'=>array('dat'=>'n','str'=>array('styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień')), 'f'=>array('dat'=>'n','str'=>array('stycznia','lutego','marca','kwietnia','maja','czerwca','lipca','sierpnia','września','października','listopada','grudnia')) ); if ($pieces = preg_split('#[:/.\-, ]#', $format)){ if ($timestamp === null) { $timestamp = time(); } foreach ($pieces as $datepart){ if (array_key_exists($datepart,$to_convert)){ $replace[] = $to_convert[$datepart]['str'][(date($to_convert[$datepart]['dat'],$timestamp)-1)]; }else{ $replace[] = date($datepart,$timestamp); } } $result = strtr($format,array_combine($pieces,$replace)); return $result; } } ?> <script> $(function() { $( "#datepicker" ).datepicker( { monthNames: [ "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień" ], dayNames: [ "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela" ], dayNamesShort: [ "Pn", "Wt", "Śr", "Cz", "Pt", "So", "Nd" ], dateFormat: "d/m/yy" } ); }); </script> <header> <h1><?php echo isset($_POST['id']) ? "Edytuj" : "Dodaj"; ?> zmienną</h1> <a href="index.php?logout=1"><span>wyloguj</span><img src="images/close.jpg" alt="wyloguj"/></a> </header> <div id="content"> <?php $p->renderEditor($renderEditor + $options, NULL, $ID); ?> </div> <script type="text/javascript"> $(document).ready(function(){ $(".tabContents").hide(); // Hide all tab conten divs by default $(".tabContents:first").show(); // Show the first div of tab content by default $("#tabContaier ul li a").click(function(e){ //Fire the click event e.preventDefault(); var activeTab = $(this).attr("href"); // Catch the click link $("#tabContaier ul li a").removeClass("active"); // Remove pre-highlighted link $(this).addClass("active"); // set clicked link to highlight state $(".tabContents").hide(); // hide currently visible tab content div $(activeTab).fadeIn(); // show the target tab content div by matching clicked link. }); }); </script>
[+]
..
[-] zmienna.php
[edit]
[-] dodaj_zmienna.php
[edit]
[-] index.php
[edit]