<?php

//spectrum input analyser
$htm = '';
$htm .= '<div id=content>';
$htm .= '<canvas id=canvas></canvas>';
$htm .= '</div>';
$box = new LTE\Box();
$box->title("Input");
$box->body($htm);
$box->small('<div id=message></div>');
echo $box;
<?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

//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

// 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

// GoogleDriveCsv
$htm = [];
$htm = "<input type=text class='form-control' id='csvurl' placeholder='Enter csv url'>";
$box = new LTE\Box();
$box->id("boxGoogleDriveCsv");
$box->title("Wget csv");
$box->small("public csv url");
$box->icon("fa fa-upload");
$box->body($htm);
$box->footer("<a href=# class='btn btn-default' id='btnWget'>Import</a>");
echo $box;
<?php

// Import
$htm = [];
$htm[] = '<form action="upload.php" method="post" enctype="multipart/form-data" id=ff target=upload>';
//$html[]='Select excel file to upload:<br />';
//$html[]='<br />';
$htm[] = '<input type="file" name="xlsfile" id="xlsfile">';
$htm[] = '<br />';
$htm[] = '<input type="submit" value="Upload file" name="submit">';
$htm[] = '</form>';
$box = new LTE\Box();
$box->id("boxUpload");
$box->title("Upload");
$box->small("csv or xls");
$box->icon("fa fa-upload");
$box->body($htm);
//$box->loading(true);
//$btn=[];
//$btn[]="<a href=#new id='btnNew' class='btn btn-default'><i class='fa fa-save'></i> Save</a> ";
//$box->footer($btn);
echo $box;
<?php

//Home :: box today
$htm = [];
$box = new LTE\Box();
$box->id("boxToday");
$box->title("Today");
$box->small(date("D d M Y"));
$box->icon("fa fa-calendar-o");
$box->body($htm);
$box->loading(true);
//$box->footer("<a href=#new id='btnNew' class='btn btn-default'><i class='fa fa-plus'></i> New expense</a>");
$htm = [];
$htm[] = '<div class="input-group input-group-sm">';
$htm[] = '<input type="text" id=inputToday class="form-control" placeholder="21:30 Dinner 18.50EUR">';
$htm[] = '<span class="input-group-btn">';
$htm[] = '<a href=#add class="btn btn-default btn-flat" id=btnAddToday>Add</a>';
$htm[] = '</span>';
$htm[] = '</div>';
$box->footer($htm);
echo $box;