<?php // VORC :: NEWS JAP header('Content-Type: text/html; charset=utf-8'); session_start(); require __DIR__ . "/../../vendor/autoload.php"; $admin = new LTE\AdminLte2(); echo $admin; $VORC = new VORC\Vorc(); ?> <section class="content-header"> <h1><i class='fa fa-newspaper-o'></i> NEWS - JAP <small></small> </h1> </section> <section class="content"> <?php // Search // include "box_search.php"; $box = new LTE\Box(); $box->id("boxResult"); $box->title("News result"); $box->icon("fa fa-list"); $box->body("..."); echo $box; $admin->footer("Vorc backup"); $admin->end();
<?php // Home :: box sameday $htm = []; $box = new LTE\Box(); $box->id("boxSameday"); $box->title("On the same day"); $box->small("xxxx-xx-xx"); $box->icon("fa fa-calendar-o"); $box->body($htm); //$box->footer("<a href=# class='btn btn-default'><i class='fa fa-plus'></i> Add</a>"); $htm = []; $htm[] = '<div class="input-group input-group-sm">'; $htm[] = '<input type="text" class="form-control" id=newStr placeholder="21:30 Dinner 18.50EUR">'; $htm[] = '<span class="input-group-btn">'; $htm[] = '<button type="button" id=btnAdd class="btn btn-default btn-flat">Add</button>'; $htm[] = '</span>'; $htm[] = '</div>'; $box->footer($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->footer($btn); */ echo $box;
<?php //user info $box = new LTE\Box(); $box->title("User #" . $user['id']); $box->icon("fa fa-edit"); $box->body("<pre>" . print_r($user, true) . "</pre>"); echo $box;
<?php $box = new LTE\Box(); $box->title("File(s)"); $box->icon("fa fa-file-o"); $box->id("boxFiles"); $box->collapsable(true); $box->body("please wait"); echo $box;
<?php $box = new LTE\Box(); $box->title("Output(s)"); $box->icon("fa fa-plug"); $box->id("boxOutputs"); $box->collapsable(true); $box->body("<select class='form-control' id=midi_outputs size=2 disabled=disabled></select>"); echo $box;
//$box->body("Drop your images here"); //$box->footer("<a href=#gif class='btn btn-default'>Make a gif</a>"); echo $box; ?> </div> <div class='col-md-6'> <?php $btn = []; $btn[] = "<a href=#btn class='btn btn-default'><i class='fa fa-step-backward'></i></a>"; $btn[] = "<a href=#btn class='btn btn-default'><i class='fa fa-step-forward'></i></a>"; $btn[] = "<a href=#btn class='btn btn-default'><i class='fa fa-play'></i></a>"; $btn[] = "<a href=#btn class='btn btn-default pull-right'><i class='fa fa-download'></i></a>"; $box = new LTE\Box(); $box->title("Preview"); $box->id("boxPreview"); $box->body("<canvas id=screen width=320 height=200></canvas>"); $box->footer($btn); echo $box; ?> </div> </div> <script> $(function(){ console.log('test'); var frames=[];
<?php $box = new LTE\Box(); $box->title("Receive"); $box->icon("fa fa-text"); $box->id("boxReceive"); $box->collapsable(true); $box->boxTools("<button class=\"btn btn-box-tool btnclipboard\" title='Copy to clipboard'><i class='fa fa-copy'></i></button> "); $box->body("<textarea class='form-control' id=sysex_in rows=10></textarea>"); $box->footer("<a href=#save id=saveSysex class='btn btn-default'><i class='fa fa-save'></i> Save</a>"); echo $box;
<?php // Export as CSV // $box = new LTE\Box(); $box->id("boxExport"); $box->title("Export"); $box->small("csv"); $box->icon("fa fa-file-excel-o"); //$box->body("<pre>Download data as csv</pre>"); $box->body("<a href='exportcsv.php' class='btn btn-default'><i class='fa fa-file-excel-o'></i> Download expenses as csv</a>"); echo $box;
<?php $box = new LTE\Box(); $box->title("Input(s)"); $box->icon("fa fa-plug"); $box->id("boxInputs"); $box->collapsable(1); $box->collapsed(1); $box->body("<select class='form-control' id=midi_inputs></select>"); echo $box;
<?php $box = new LTE\Box(); $box->title("Track"); $box->icon("fa fa-list"); $box->id("boxTrack"); $box->removable(1); $box->collapsable(1); $box->collapsed(1); $box->body("<pre>please wait</pre>"); echo $box;
<?php $btn = []; $btn[] = "<a href=#btn id=btnClear class='btn btn-default pull-right'>Clear</a>"; $btn[] = "<a href=#btn id=btnFilter class='btn btn-default'><i class='fa fa-user'></i> Filter</a>"; $btn[] = "<a href=#btn id=btnRecord class='btn btn-default'><i class='fa fa-user'></i> Record</a>"; $box = new LTE\Box(); $box->title("Incoming midi events"); $box->icon("fa fa-list"); $box->id("boxIncoming"); $box->boxTools("<button class=\"btn btn-box-tool\" title='Clear' id=btnClearLogs><i class='fa fa-times'></i></button> "); $box->collapsable(true); $box->body("<pre>Waiting...</pre>"); //$box->footer($btn); echo $box;
$body[] = '</div></div>'; $body[] = '</div>'; // Last login / Date joined $body[] = '<div class="row">'; $body[] = '<div class="col-sm-6">'; // Last login $body[] = '<div class=form-group><label>Last login</label>'; $body[] = '<input type="text" class="form-control" id="last_login" placeholder="Username" value="' . $user['last_login'] . '" readonly>'; $body[] = '</div></div>'; $body[] = '<div class="col-sm-6">'; // Date joined $body[] = '<div class=form-group><label>Date joined</label>'; $body[] = '<input type="text" class="form-control" id="date_joined" placeholder="Date joined" value="' . $user['date_joined'] . '" readonly>'; $body[] = '</div></div>'; $body[] = '</div>'; /* <div class="input-group"> <span class="input-group-addon"><i class="fa fa-envelope"></i></span> <input type="text" class="form-control" placeholder="Email"> </div> */ $box = new LTE\Box(); $box->title("User #" . $user['id']); $box->icon("fa fa-edit"); $box->body($body); $btns = []; $btns[] = "<a href=# id=btnSave class='btn btn-primary'><i class='fa fa-save'></i> Save</a> "; $btns[] = "<a href=# id=btnPassword class='btn btn-default'>Change password</a> "; $btns[] = "<a href=# id=btnDelete class='btn btn-default pull-right'><i class='fa fa-trash'></i></a>"; $box->footer($btns); echo $box;
<?php $box = new LTE\Box(); $box->title("File"); $box->icon("fa fa-file-o"); $box->id("boxFile"); $box->collapsable(1); $box->collapsed(1); $box->boxTools("<button class=\"btn btn-box-tool btnclipboard\" title='Browse' id=btnBrowse><i class='fa fa-folder-open-o'></i></button> "); $box->body('<input type="file" id="loadFromJSON" accept="audio/midi">'); //$box->footer('<a href=# class="btn btn-default" id=btnBrowse><i class="fa fa-folder-open-o"></i> Browse</a>'); echo $box; ?> <script> $('#loadFromJSON').change(function(evt) { //console.log('loadFromJSON.change'); evt.stopPropagation(); evt.preventDefault(); var file = evt.target.files[0]; var reader = new FileReader(); //fetch.overrideMimeType("text/plain; charset=x-user-defined"); var data = false; reader.onload = (function(theFile) { return function(e) {
<?php $box = new LTE\Box(); $box->title("Send"); $box->icon("fa fa-text"); $box->id("boxSend"); $box->collapsable(true); $box->body("<textarea class='form-control' id=midi_send rows=10 placeholder='Paste your hex code here'></textarea>"); $box->footer("<a href=# class='btn btn-default'><i class='fa fa-play'></i> Send</a>"); echo $box;
<?php $box = new LTE\Box(); $box->title("Messages"); $box->icon("fa fa-terminal"); $box->id("boxLog"); $box->collapsable(true); $box->body("Select midi output"); echo $box;