} */ $htm = []; /* $htm[]="<table class='table table-hover table-condensed'>"; $htm[]="<thead>"; $htm[]="<th>#</th>"; $htm[]="<th>Ip</th>"; $htm[]="<th>Port</th>"; $htm[]="<th>Name</th>"; $htm[]="<th>Comment</th>"; $htm[]="</thead>"; $htm[]="<tbody>"; foreach($ports as $k=>$r){ $htm[]="<tr>"; $htm[]="<td><a href='../port/?id=".$r['ip_id']."'>".$r['ip_id']."</a>"; $htm[]="<td>".$r['ip_ip']; $htm[]="<td>".$r['ip_port']; $htm[]="<td>".$r['ip_name']; $htm[]="<td>".$r['ip_comment']; } $htm[]="</tbody>"; $htm[]="</table>"; */ $box = new LTE\Box(); $box->id("boxHistory"); $box->icon("fa fa-list"); $box->title("History"); $box->html($htm); //$box->footer("<a href=# class='btn btn-primary' id='btnNewPort'><i class='fa fa-file'></i> New</a>"); echo $box;
// Last update // $date = date("Y-m-d H:i:s", strtotime($r['lastupdate'])); $htm[] = '<div class="form-group">'; $htm[] = '<label for="inputEmail3" class="col-sm-2 control-label">Updated</label>'; $htm[] = '<div class="col-xs-5">'; $htm[] = '<input type="text" class="form-control" id="category" placeholder="Category" value="' . $date . '" readonly>'; $htm[] = '</div>'; $htm[] = '<div class="col-xs-5">'; $htm[] = '<input type="text" class="form-control" id="category" placeholder="Category" value="' . $r['user_modified'] . '" readonly>'; $htm[] = '</div></div>'; $htm[] = '</div>'; $btn = []; $btn[] = "<a href=index.php class='btn btn-default'><i class='fa fa-arrow-left'></i> Back</a>"; $btn[] = "<a href=#del id=delete class='btn btn-default pull-right' title='Delete'><i class='fa fa-trash-o'></i></a>"; $box = new LTE\Box(); $box->id("boxNews"); $box->title($r['title']); $box->icon("fa fa-list"); $box->body($htm); $box->footer($btn); echo $box; ?> <script> $(function(){ $('#delete').click(function(){ if(!confirm("Delete this news ?"))return false; alert("No"); }); }); </script> <?php
<?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 // box port comment $htm = []; $htm[] = "<textarea class='form-control' id='comments'>" . $r['ip_comment'] . "</textarea>"; $box = new LTE\Box(); $box->id("boxComment"); $box->icon("fa fa-comment-o"); $box->title("Comments"); $box->html($htm); $box->footer("<a href=# class='btn btn-default' id='btnSaveComment'><i class='fa fa-save'></i> Save</a>"); 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 $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 $IPS = $IP->listIps(); //print_r($_SERVER); $box = new LTE\Box(); $box->id("boxIps"); $box->title("Ip's"); $box->icon("fa fa-list"); $htm = []; $htm[] = "<table class='table table-condensed table-hover'>"; $htm[] = "<thead>"; $htm[] = "<th>Name"; $htm[] = "<th>Ip"; $htm[] = "<th class='hidden-xs hidden-sm'>City"; $htm[] = "<th class='hidden-xs hidden-sm'>Region"; $htm[] = "<th class='hidden-xs'>Cntry"; $htm[] = "<th class='hidden-xs hidden-sm'>Lat/Lng"; $htm[] = "<th class='hidden-xs'>Updated"; $htm[] = "<th width=100>Updated"; $htm[] = "</thead>"; $htm[] = "<tbody>"; foreach ($IPS as $k => $r) { //print_r($r); if ($r['ip'] == $_SERVER['REMOTE_ADDR']) { $htm[] = "<tr style='font-weight:bold'>"; } else { $htm[] = "<tr>"; } $LATLNG = $r['lat'] . ',' . $r['lng']; if (!$r['lat'] && !$r['lng']) { $LATLNG = '';
<?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;
$htm[] = '<input type=text class="form-control" id=search placeholder="Search">'; $htm[] = '</div>'; $htm[] = '</div>'; $htm[] = '<div class="col-xs-3">'; $htm[] = '<div class="form-group">'; $htm[] = '<input type=date class="form-control" id=date placeholder="Date">'; $htm[] = '</div>'; $htm[] = '</div>'; // LIMIT $htm[] = '<div class="col-xs-3">'; $htm[] = '<div class="input-group">'; $htm[] = "<input type='text' class='form-control' placeholder='Limit'>"; $htm[] = '</div></div>'; // Button Enroll /* $htm[]='<div class="col-sm-3">'; $htm[]='<div class="form-group">'; $htm[]='<a href=#btn id="btnEnroll" class="btn btn-default" title="Enroll user"><i class="fa fa-plus-circle"></i> Enroll</a> '; $htm[]='<a href=#btn id="btnDisEnroll" class="btn btn-default" title="Disenroll"><i class="fa fa-minus-circle"></i> Disenroll</a> '; $htm[]='<a href="#copy" id="btnCopy" class="btn btn-default" title="Copy enrollments to a different course"><i class="fa fa-copy"></i> Copy</a> '; */ $htm[] = '</div></div>'; $htm[] = '</div>'; //end rows $box = new LTE\Box(); $box->id("boxFilter"); $box->title("Filter"); $box->icon("fa fa-search"); //$box->boxTools("<button class='btn' title='Clear'><i class='fa fa-times'></i></button>"); $box->body($htm); 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 $htm = '<canvas id="screen">'; $btns = []; $btns[] = "<div class='col-md-6'>"; $btns[] = "<select class='form-control' id=trackSelect><option>Select track</select>"; $btns[] = "</div>"; $btns[] = "<a href=#btn class='btn btn-default' onclick=drawMidiTrack(0)>draw</a>"; $box = new LTE\Box(); $box->title("Canvas"); $box->id("boxCanvas"); $box->collapsable(1); $box->body($htm); $box->footer($btns); echo $box;
<?php // spectrum input analyser settings $htm = []; // MIDI Output $htm[] = '<div class="form-group">'; $htm[] = '<label for="title">Midi out</label>'; $htm[] = '<input type="text" class="form-control" id="midi_out">'; $htm[] = '</div>'; // MIDI Chn $htm[] = '<div class="form-group">'; $htm[] = '<label for="title">Midi Chn</label>'; $htm[] = '<input type="text" class="form-control" id="midi_chan">'; $htm[] = '</div>'; // CC $htm[] = '<div class="form-group">'; $htm[] = '<label for="cc_num">CC</label>'; $htm[] = '<input type="text" class="form-control" id="cc_num">'; $htm[] = '</div>'; $box = new LTE\Box(); $box->title("Settings/Filter"); $box->id("boxSettings"); $box->icon("fa fa-cog"); $box->body($htm); 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;
$htm[]='</label>'; $htm[]='</div>'; */ $box->body($htm); $btn = []; $btn[] = "<a href=#save id=btnSave class='btn btn-primary'><i class='fa fa-save'></i> Save</a>"; //$btn[]="<a href=#save class='btn btn-default pull-right'><i class='fa fa-times'></i> Clear</a>"; $box->footer($btn); echo $box; ?> </div> <div class='col-md-6'> <?php $box = new LTE\Box(); $box->id("boxDay"); $box->title("Same day"); $box->loading(true); echo $box; ?> </div> </div><!-- /.row --> </section> <script src='js/new.js'></script> <?php $admin->footer("New");
$box->collapsable(1); //$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("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 //Home :: box stats $this_year = date("Y"); $this_month = date("m"); //echo "<li>$this_year"; //echo "<li>$this_month"; // This year $sql = "SELECT SUM(ed_value) FROM expenses_data WHERE ed_date>'" . date("Y-01-01") . "' AND ed_date <=CURDATE();"; $q = $EXP->db()->query($sql) or die("Error:{$sql}"); $r = $q->fetch(PDO::FETCH_ASSOC); $htm = []; //$htm[]="<pre>$sql</pre>"; //$htm[]="<pre>".print_r($r,true)."</pre>"; $box = new LTE\Box(); $box->id("box"); $box->title("Overview"); $box->icon("fa fa-area-chart"); $box->body($htm); $box->collapsable(true); $box->footer("<a href='../stats/' class='btn btn-default'><i class='fa fa-arrow-right'></i> More stats</a>"); echo $box;
<!-- Main content --> <section class="content"> <!-- Main row --> <div class="row"> <section class="col-sm-12"> <!-- THE CALENDAR --> <?php $box = new LTE\Box(); $box->id("boxcalendar"); $box->icon("fa fa-calendar"); $box->title("calendar"); echo $box->html("<div id=calendar></div>"); ?> </section><!-- /.Col --> </div> <!-- fullCalendar --> <script src="../plugins/fullcalendar/moment.min.js" type="text/javascript"></script> <script src="../plugins/fullcalendar/fullcalendar.min.js" type="text/javascript"></script> <!-- Page specific script -->
<?php //print_r($_SERVER); $box = new LTE\Box(); $box->id("boxRoute"); $box->title("Route"); $box->icon("fa fa-edit"); $htm = []; $htm[] = "<div class='row'>"; $htm[] = "<input type=hidden id=ir_id>"; //name $htm[] = "<div class='col-sm-6'>"; $htm[] = "<div class='form-group'><label>Name</label>"; $htm[] = "<input type='text' class='form-control' id='ir_name' placeholder='name'>"; $htm[] = "</div></div>"; //ip $htm[] = "<div class='col-sm-3'>"; $htm[] = "<div class='form-group'><label>From</label>"; $htm[] = "<input type='text' class='form-control' id='ir_port_from' placeholder='port'>"; $htm[] = "</div></div>"; //port $htm[] = "<div class='col-sm-3'>"; $htm[] = "<div class='form-group'><label>To</label>"; $htm[] = "<input type='text' class='form-control' id='ir_port_to' placeholder='port'>"; $htm[] = "</div></div>"; //comment $htm[] = "<div class='col-sm-12'>"; $htm[] = "<div class='form-group'><label>Comment</label>"; $htm[] = "<input type='text' class='form-control' id='ir_comment' placeholder='Comment'>"; $htm[] = "</div></div>"; $htm[] = "</div>";
<?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 // 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 // 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 //print_r($_SERVER); $box = new LTE\Box(); $box->id("boxRoutes"); $box->title("Routes"); $box->icon("fa fa-list"); $htm = []; $htm[] = "<table class='table table-condensed table-hover'>"; $htm[] = "<thead>"; $htm[] = "<th>Name"; $htm[] = "<th>Ip"; $htm[] = "<th title='Port from' width=40>Port"; $htm[] = "<th title='Port to' width=40>To"; $htm[] = "<th>Comment</th>"; //$htm[]="<th width=20>Del</th>"; $htm[] = "</thead>"; $htm[] = "<tbody>"; $routes = $IP->listRoutes(); foreach ($routes as $k => $r) { $htm[] = "<tr id='" . $r['ir_id'] . "'>"; $htm[] = "<td>" . $r['ir_name'] . "</td>"; $htm[] = "<td><a href='../ip/?id=" . $r['ir_ip'] . "'>" . $r['ir_ip']; $htm[] = "<td>" . $r['ir_port_from']; //." <a href=# name='btnEdit' title='".$r['ip_id']."'><i class='fa fa-edit'></i></a></td>"; $htm[] = "<td>"; //port to if ($r['ir_port_to']) { $htm[] = $r['ir_port_to']; //." <a href=# name='btnEdit' title='".$r['ip_id']."'><i class='fa fa-edit'></i></a></td>"; } else {
<?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;
foreach ($VORC->platforms() as $val => $num) { $htm[] = "<option value='{$val}'>" . ucfirst($val) . "</option>"; } $htm[] = "</select></div>"; $htm[] = "<div class='col-md-2'>"; $htm[] = "<select class='form-control' id=user><option value=''>By</option>"; foreach ($VORC->wikiJpUsers() as $val) { $htm[] = "<option value='{$val}'>" . ucfirst($val) . "</option>"; } $htm[] = "</select></div>"; $htm[] = "<div class='col-md-3'>"; $htm[] = "<input type='date' id=date class='form-control'>"; $htm[] = "</div>"; $htm[] = "</div>"; $box = new LTE\Box(); $box->id("boxSearch"); $box->title("Search wiki"); $box->icon("fa fa-search"); $box->boxTools("<a href=# class='btn' title='Clear'>x</a>"); $box->body($htm); echo $box; ?> <div id='more'></div> <script> $(function(){ $('#search,#category,#platform,#user,#date').change(function(){ console.log('change'); searchWiki(); }); var searchWiki=function(){
<?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 // box info $htm = "<pre>" . $REMOTE_ADDR . " -> " . print_r($IP->ipInfo($REMOTE_ADDR), true) . "</pre>"; $box = new LTE\Box(); $box->id("boxInfo"); $box->icon("fa fa-info"); $box->title("Ip info"); //$box->small("Ip info"); $box->html($htm); echo $box;
$htm[] = '<label for="datetime">Date</label>'; $htm[] = '<input type="date" class="form-control" id="ed_date" placeholder="Enter date" readonly>'; $htm[] = '</div></div>'; $htm[] = '<div class="col-xs-6">'; $htm[] = '<div class="form-group">'; $htm[] = '<label for="time">Time</label>'; $htm[] = '<input type="text" class="form-control" id="time" placeholder="Time" >'; $htm[] = '</div></div>'; $htm[] = '</div>'; $htm[] = '<div class="row">'; $htm[] = '<div class="col-xs-6">'; $htm[] = '<label for="name" class="hidden-xs">Name</label>'; $htm[] = '<input type="text" class="form-control" id="ed_name" placeholder="Ex : Lunch">'; $htm[] = '</div>'; $htm[] = '<div class="col-xs-6">'; $htm[] = '<label for="amount" class="hidden-xs">Amount</label>'; $htm[] = '<input type="text" class="form-control" id="ed_value" placeholder="Ex : 100USD">'; $htm[] = '</div>'; $htm[] = '</div>'; $box = new LTE\Box(); $box->id("boxEdit"); $box->title("#{$id}"); //$box->small("#$id"); $box->icon("fa fa-edit"); $box->body($htm); $btn = []; $btn[] = "<a href=#new id='btnSave' class='btn btn-default' disabled><i class='fa fa-save'></i> Save</a> "; $btn[] = "<a href=#trash id='btnTrash' class='btn btn-danger pull-right'><i class='fa fa-trash'></i></a> "; $box->footer($btn); $box->loading(true); echo $box;
<?php // calendar user info //$body=print_r($user,true); $box = new LTE\Box(); $box->id("boxleft"); $box->icon("fa fa-user"); $box->title("{$username}"); $body[] = "<i class='fa fa-calendar'></i> Joined : <a href=# class='btn btn-default'>" . substr($user['date_joined'], 0, 10) . "</a><br />"; $body[] = "<i class='fa fa-calendar'></i> Last login : "******"<br />"; // Courses // $courses = $edxApp->studentCourseEnrollment($USERID); $body[] = "<hr />"; $body[] = "<i class='fa fa-book'></i> " . count($courses) . " course enrollment(s)<br />"; //$body[]="<table class='table table-condensed'>"; foreach ($courses as $k => $r) { //print_r($r); $meta = $edxCourse->metadata($r['course_id']); //print_r($meta); $start = @substr($meta['start'], 0, 10); $end = @substr($meta['end'], 0, 10); //$body[]="<tr>"; $body[] = "<a href='../course/?id=" . $r['course_id'] . "' title='{$start} to {$end}'>" . strtolower($meta['display_name']) . "</a><br />"; } //$body[]="</table>"; $foot = "<a href='../user/?id={$USERID}' class='btn btn-default'><i class='fa fa-arrow-right'></i> User info</a>"; echo $box->html($body, $foot); ?> <div id='more'></div>
<?php $box = new LTE\Box(); $box->id("boxLast"); $box->icon("fa fa-clock-o"); $box->title("Last expenses"); $htm = []; $htm[] = "<table class='table table-hover table-condensed'>"; $htm[] = "<thead>"; $htm[] = "<th>Name</th>"; $htm[] = "<th style='text-align:right'>Amount</th>"; $htm[] = "<th style='text-align:right'>Date</th>"; $htm[] = "<th width=40 class='hidden-xs'>Time</th>"; $htm[] = "<th width=18></th>"; $htm[] = "</thead>"; $htm[] = "<tbody>"; foreach ($EXP->lastExpenses(5) as $k => $v) { //print_r($v); $date = explode(" ", $v['ed_date'])[0]; $time = explode(" ", $v['ed_date'])[1]; $time = substr($time, 0, 5); if ($time == '00:00') { $time = '<i class="text-muted">--:--</i>'; } $htm[] = "<tr>"; $htm[] = "<td><a href='../edit/?id=" . $v['ed_id'] . "'>" . $v['ed_name'] . "</a>"; $htm[] = "<td style='text-align:right'>" . $v['ed_value'] . ' ' . $v['ed_currency']; $htm[] = "<td style='text-align:right'>" . $date; $htm[] = "<td class='hidden-xs' style='text-align:right'>" . $time; $htm[] = "<td><i class='fa fa-times'></i>"; }