引導

2015-05-11 21 views
0

我用日曆來選擇兩種類型的題詞 爲第一個所有天爲僅次於週日啓用日期日曆選項啓用 如果代碼是這樣,我如何使用正確的引導

if ($type==12){ daysOfWeekDisabled:[1,2,3,4,5,6],} 

請有人幫我

這是我的代碼

$('#op_calender_inscription').datepicker({ 

    format: "dd/mm/yyyy", 

    <?php if($operation->start !='00/00/0000'): ?> 

    startDate: '<?php echo $operation->start ?>', 
    if ($type == 12) 
    {daysOfWeekDisabled:[1,2,3,4,5,6],} 

    <?php 

    endif; 

    if($operation->end !='00/00/0000'): ?> 

    endDate: '<?php echo $operation->end ?>', 

    <?php endif; ?> 

    multidate: true, 
    multidateSeparator:";", 

    calendarWeeks: true, 

    language: 'fr' 

回答

0

你正在使用它與PHP嗎?然後:

<?php if ($type == 12) : ?> 
    {daysOfWeekDisabled:[1,2,3,4,5,6],} 
<?php endif; ?> 
+0

認爲你這是代碼

+0

請誰可以幫助 –

+0

從何處而來的$類型?它是PHP變量還是JS? – konradwww