Exemplo n.º 1
0
<?php

$items = [];
$items[] = [0x80, 'Note off'];
$items[] = [0x90, 'Note on'];
$items[] = [0xa0, 'AfterTouch'];
$items[] = [0xb0, 'Control Changes'];
//modulation
$items[] = [0xc0, 'Program Change'];
$items[] = [0xe0, 'Pitch'];
$items[] = [0xf0, 'Continue'];
$htm = [];
foreach ($items as $item) {
    $htm[] = '<div class="checkbox">';
    $htm[] = '<label><input type="checkbox" class=filters value="' . $item[0] . '">' . $item[1] . '</label>';
    $htm[] = '</div>';
}
$box = new LTE\Box();
$box->title("Event filter(s)");
$box->icon("fa fa-filter");
$box->id("boxFilters");
//$box->boxTools("<button class=\"btn btn-box-tool\" title='Clear'><i class='fa fa-times'></i></button> ");
$box->collapsable(1);
$box->collapsed(1);
$box->body($htm);
echo $box;
<?php

//Home :: box today
$htm = [];
$box = new LTE\Box();
$box->id("boxConfig");
$box->title("Config");
$box->small("currency");
$box->icon("fa fa-wrench");
$box->body($htm);
$box->collapsed(true);
$box->footer("<a href=#save id='btnSaveConfig' class='btn btn-default'><i class='fa fa-save'></i> Save</a>");
echo $box;
<?php

// Home :: box edit
$note = $EXP->expenseNote($id);
//print_r($r);
$htm = [];
//$htm[]="<pre>".print_r($note['en_note'],true)."</pre>";
$htm[] = "<input type=hidden id=en_id value='" . $note['en_id'] . "'>";
$htm[] = "<textarea class='form-control' rows=6>" . $note['en_note'] . "</textarea>";
$box = new LTE\Box();
$box->id("boxNotes");
$box->title("Notes");
//$box->small("#$id");
$box->icon("fa fa-edit");
$box->body($htm);
//$box->loading(true);
$btn = [];
$btn[] = "<a href=#new id='btnSaveNote' class='btn btn-default'><i class='fa fa-save'></i> Save note</a> ";
$btn[] = "<a href=#trash id='btnTrashNote' class='btn btn-danger pull-right'><i class='fa fa-trash'></i></a> ";
$box->collapsable(true);
$box->collapsed(!$note);
$box->footer($btn);
echo $box;