This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drawTimepicker($hourValue="", $minValue="",$hourID="myHour", $minID="myMin") | |
{ | |
if($hourValue==""){$hourValue=10;} | |
$i=1; | |
$html = ''; | |
$html.='<select name="'.$hourID.'" id="'.$hourID.'">'; | |
while($i<=23) | |
{ | |
$iString = $i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arrayItems = array( | |
array ("date" => "2018-10-21", "grade" => 50), | |
array ("date" => "2018-04-02", "grade" =>88), | |
array ("date" => "2018-03-17", "grade" =>76), | |
array ("date" => "2018-03-10", "grade" =>84), | |
array ("date" => "2019-02-03", "grade" =>67), | |
); | |
// Obtain a list of columns - last value is the key | |
$myCols = array_column($arrayItems, 'date'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$categories = get_categories( array( | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'hide_empty' => 0, | |
) ); | |
$cats_tree = get_cat_tree(0,$categories); | |
function get_cat_tree($parent,$categories) { | |
$result = array(); |