kodenie nie je moja parketa a preto trocha zapasim s kodom u jedneho formularu. Je tam javascript na vyber datumu a ten sa potom uklada cez PHP do premennej ale ked ju necham v dalsom kroku zobrazit, je prazdna. A ja neviem prist na to, ze preco.
Kazda rada dobra, dakujem.
- Kód: Vybrat vše
<td class="border2"><p><strong>Course Selection <img src="required.png" alt="" width="15" height="16" align="absmiddle" /><br />
</strong><span>
<?php
if (isset ($course)) {
echo $course_information;
}
end;
?><br/>
</span>
<?php if ($course=="L25" || $course=="L15" || $course == "IELTS1" || $course=="IELTS2" || $course=="FLEXI")
echo "<input id=\"course_manual2\" name=\"course_manual2\" type=\"text\" size=\"25\" /><br />
<span class=\"small\"><a href=\"http://www.langports.com/enrolment_form/holidaydates.html\" target=\"_blank\" onclick=\"window.open('http://langports.com/enrolment_form/holidaydates.html','Queensland Public Holidays','width=350,height=450,top=350,left=150');return false;\">View Queensland Public Holiday Dates</a></span>";
?>
</p></td>
Tu je spominany JS
- Kód: Vybrat vše
<script type="text/javascript">
var my_cal;
ng.ready(function(){
// creating the calendar
my_cal = new ng.Calendar({
input: 'course_manual2', // the input field id
date_format: 'j-M-Y',
days_off:[
'0',
'6',
],
days_text: 'mid',
dates_off:[
{date:2, month:0},
{date:26, month:0},
{date:6, month:3},
{date:7, month:3},
{date:9, month:3},
{date:25, month:3},
{date:7, month:4},
{date:11, month:5},
{date:15, month:7},
{date:31, month:7},
{date:1, month:9},
{date:25, month:11},
{date:26, month:11},
],
start_day: '1',
start_date: 'year - 1', // the start date (default is today)
display_date: new Date(), // the display date (default is start_date),
num_months: '2'
});
});
Vdaka
