<label for="code">Short code</label><br />
			<input type="text" maxlength="9" id="code" name="code" value="<?php 
    echo htmlentities($category->category_short);
    ?>
" /><br />
			<label for="category">Category</label><br />
			<input type="text" name="category" id="category" maxlength="50" value="<?php 
    echo htmlentities($category->category);
    ?>
" /><br />
			<label for="color">Colour</label><br />
			<input type="color" name="color" id="color" value="<?php 
    echo strtoupper(htmlentities($category->colour));
    ?>
" defaultvalue="<?php 
    echo strtoupper(htmlentities($category->colour));
    ?>
" style="width:2em;" /><br />
			<label for="textcolor">Text Colour</label><br />
			<input type="color" name="textcolor" id="textcolor" value="<?php 
    echo strtoupper(htmlentities($category->text_colour));
    ?>
" defaultvalue="<?php 
    echo strtoupper(htmlentities($category->text_colour));
    ?>
" style="width:2em;" /><br />
		</form>
<?php 
}
$ATC->gui_output_page_footer('');
Exemple #2
0
    echo '$("li.lesson_timetable[lesson_id=\\"' . $plannedlesson->lesson_id . '\\"] p").filter("p.dresscode").html("';
    switch ($plannedlesson->dress_code) {
        case ATC_DRESS_CODE_BLUES:
            echo ATC_DRESS_CODE_BLUES_NAME;
            break;
        case ATC_DRESS_CODE_DPM:
            echo ATC_DRESS_CODE_DPM_NAME;
            break;
        case ATC_DRESS_CODE_BLUES_AND_DPM:
            echo ATC_DRESS_CODE_BLUES_AND_DPM_NAME;
            break;
        case ATC_DRESS_CODE_MUFTI:
            echo ATC_DRESS_CODE_MUFTI_NAME;
            break;
        default:
            echo 'Unknown';
    }
    echo '").removeClass("unknown");' . "\n";
    // And now we've updated our values, simulate a drag-drop so things are in the right place.
    echo 'simulate_drop( $("li.lesson_timetable[lesson_id=\\"' . $plannedlesson->lesson_id . '\\"]"), $("td[level=\\"' . $plannedlesson->group . '\\"]").filter("[date=\\"' . date('Y-m-d H:i', strtotime($plannedlesson->startdate)) . '\\"]") );' . "\n";
}
?>
		
	</script>
	
		
<?php 
$ATC->gui_output_page_footer('Training');
?>