customers.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. <?php
  2. $i=null;
  3. function decimalAndNumberFormat1($number){
  4. $i = number_format(round($number,0));
  5. return $i;
  6. }
  7. function decimalAndNumberFormat2($number){
  8. $i = number_format(round($number,1),1);
  9. return $i;
  10. }
  11. function decimalAndNumberFormat3($number){
  12. $i = number_format(round($number,3));
  13. return $i;
  14. }
  15. ?>
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19. <meta charset="utf-8">
  20. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  21. <title>AdminLTE 2 | ChartJS</title>
  22. <!-- Tell the browser to be responsive to screen width -->
  23. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  24. <!-- Bootstrap 3.3.7 -->
  25. <link rel="stylesheet" href="../../bower_components/bootstrap/dist/css/bootstrap.min.css">
  26. <!-- Font Awesome -->
  27. <link rel="stylesheet" href="../../bower_components/font-awesome/css/font-awesome.min.css">
  28. <!-- Ionicons -->
  29. <link rel="stylesheet" href="../../bower_components/Ionicons/css/ionicons.min.css">
  30. <!-- Theme style -->
  31. <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
  32. <!-- AdminLTE Skins. Choose a skin from the css/skins
  33. folder instead of downloading all of them to reduce the load. -->
  34. <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
  35. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  36. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  37. <link href="https://cdn.datatables.net/r/bs-3.3.5/jq-2.1.4,dt-1.10.8/datatables.min.css" rel="stylesheet"/>
  38. <script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
  39. <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js" charset="utf-8"></script>
  40. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
  41. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  42. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  43. <!--[if lt IE 9]>
  44. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  45. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  46. <![endif]-->
  47. <!-- Google Font -->
  48. <link rel="stylesheet"
  49. href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  50. <style type="text/css">
  51. td.details-control {
  52. background: url('resources/details_open.png') no-repeat center center;
  53. cursor: pointer;
  54. }
  55. tr.shown td.details-control {
  56. background: url('resources/details_close.png') no-repeat center center;
  57. }
  58. </style>
  59. <style type="text/css">
  60. #example tbody tr:hover {
  61. background-color: cadetblue;
  62. cursor: pointer;
  63. }
  64. #example tr:hover td.sorting_1 {
  65. background-color: cadetblue;
  66. cursor: pointer;
  67. }
  68. #example th {
  69. background-color: #009688;
  70. }
  71. #vehicle tbody tr:hover {
  72. background-color: cadetblue;
  73. cursor: pointer;
  74. }
  75. #vehicle tr:hover td.sorting_1 {
  76. background-color: cadetblue;
  77. cursor: pointer;
  78. }
  79. #vehicle th {
  80. background-color: #009688;
  81. }
  82. </style>
  83. </head>
  84. <body class="hold-transition skin-blue sidebar-mini">
  85. <div class="wrapper">
  86. <header class="main-header">
  87. <!-- Logo -->
  88. <a href="../../index2.html" class="logo">
  89. <!-- mini logo for sidebar mini 50x50 pixels -->
  90. <span class="logo-mini"><b>A</b>LT</span>
  91. <!-- logo for regular state and mobile devices -->
  92. <span class="logo-lg"><b>Admin</b>LTE</span>
  93. </a>
  94. <!-- Header Navbar: style can be found in header.less -->
  95. <nav class="navbar navbar-static-top">
  96. <!-- Sidebar toggle button-->
  97. <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
  98. <span class="sr-only">Toggle navigation</span>
  99. <span class="icon-bar"></span>
  100. <span class="icon-bar"></span>
  101. <span class="icon-bar"></span>
  102. </a>
  103. <div class="navbar-custom-menu">
  104. <ul class="nav navbar-nav">
  105. <!-- Messages: style can be found in dropdown.less-->
  106. <li class="dropdown messages-menu">
  107. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  108. <i class="fa fa-envelope-o"></i>
  109. <span class="label label-success">4</span>
  110. </a>
  111. <ul class="dropdown-menu">
  112. <li class="header">You have 4 messages</li>
  113. <li>
  114. <!-- inner menu: contains the actual data -->
  115. <ul class="menu">
  116. <li><!-- start message -->
  117. <a href="#">
  118. <div class="pull-left">
  119. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  120. </div>
  121. <h4>
  122. Support Team
  123. <small><i class="fa fa-clock-o"></i> 5 mins</small>
  124. </h4>
  125. <p>Why not buy a new awesome theme?</p>
  126. </a>
  127. </li>
  128. <!-- end message -->
  129. </ul>
  130. </li>
  131. <li class="footer"><a href="#">See All Messages</a></li>
  132. </ul>
  133. </li>
  134. <!-- Notifications: style can be found in dropdown.less -->
  135. <li class="dropdown notifications-menu">
  136. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  137. <i class="fa fa-bell-o"></i>
  138. <span class="label label-warning">10</span>
  139. </a>
  140. <ul class="dropdown-menu">
  141. <li class="header">You have 10 notifications</li>
  142. <li>
  143. <!-- inner menu: contains the actual data -->
  144. <ul class="menu">
  145. <li>
  146. <a href="#">
  147. <i class="fa fa-users text-aqua"></i> 5 new members joined today
  148. </a>
  149. </li>
  150. </ul>
  151. </li>
  152. <li class="footer"><a href="#">View all</a></li>
  153. </ul>
  154. </li>
  155. <!-- Tasks: style can be found in dropdown.less -->
  156. <li class="dropdown tasks-menu">
  157. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  158. <i class="fa fa-flag-o"></i>
  159. <span class="label label-danger">9</span>
  160. </a>
  161. <ul class="dropdown-menu">
  162. <li class="header">You have 9 tasks</li>
  163. <li>
  164. <!-- inner menu: contains the actual data -->
  165. <ul class="menu">
  166. <li><!-- Task item -->
  167. <a href="#">
  168. <h3>
  169. Design some buttons
  170. <small class="pull-right">20%</small>
  171. </h3>
  172. <div class="progress xs">
  173. <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar"
  174. aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  175. <span class="sr-only">20% Complete</span>
  176. </div>
  177. </div>
  178. </a>
  179. </li>
  180. <!-- end task item -->
  181. </ul>
  182. </li>
  183. <li class="footer">
  184. <a href="#">View all tasks</a>
  185. </li>
  186. </ul>
  187. </li>
  188. <!-- User Account: style can be found in dropdown.less -->
  189. <li class="dropdown user user-menu">
  190. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  191. <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
  192. <span class="hidden-xs">Alexander Pierce</span>
  193. </a>
  194. <ul class="dropdown-menu">
  195. <!-- User image -->
  196. <li class="user-header">
  197. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  198. <p>
  199. Alexander Pierce - Web Developer
  200. <small>Member since Nov. 2012</small>
  201. </p>
  202. </li>
  203. <!-- Menu Body -->
  204. <li class="user-body">
  205. <div class="row">
  206. <div class="col-xs-4 text-center">
  207. <a href="#">Followers</a>
  208. </div>
  209. <div class="col-xs-4 text-center">
  210. <a href="#">Sales</a>
  211. </div>
  212. <div class="col-xs-4 text-center">
  213. <a href="#">Friends</a>
  214. </div>
  215. </div>
  216. <!-- /.row -->
  217. </li>
  218. <!-- Menu Footer-->
  219. <li class="user-footer">
  220. <div class="pull-left">
  221. <a href="#" class="btn btn-default btn-flat">Profile</a>
  222. </div>
  223. <div class="pull-right">
  224. <a href="#" class="btn btn-default btn-flat">Sign out</a>
  225. </div>
  226. </li>
  227. </ul>
  228. </li>
  229. <!-- Control Sidebar Toggle Button -->
  230. <li>
  231. <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  232. </li>
  233. </ul>
  234. </div>
  235. </nav>
  236. </header>
  237. <!-- Left side column. contains the logo and sidebar -->
  238. <aside class="main-sidebar">
  239. <!-- sidebar: style can be found in sidebar.less -->
  240. <section class="sidebar">
  241. <!-- Sidebar user panel -->
  242. <div class="user-panel">
  243. <div class="pull-left image">
  244. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  245. </div>
  246. <div class="pull-left info">
  247. <p>Alexander Pierce</p>
  248. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  249. </div>
  250. </div>
  251. <!-- search form -->
  252. <form action="#" method="get" class="sidebar-form">
  253. <div class="input-group">
  254. <input type="text" name="q" class="form-control" placeholder="Search...">
  255. <span class="input-group-btn">
  256. <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
  257. </button>
  258. </span>
  259. </div>
  260. </form>
  261. <!-- /.search form -->
  262. <!-- sidebar menu: : style can be found in sidebar.less -->
  263. <ul class="sidebar-menu" data-widget="tree">
  264. <li class="header">MAIN NAVIGATION</li>
  265. <li class="treeview">
  266. <a href="#">
  267. <i class="fa fa-dashboard"></i> <span>Dashboard</span>
  268. <span class="pull-right-container">
  269. <i class="fa fa-angle-left pull-right"></i>
  270. </span>
  271. </a>
  272. <ul class="treeview-menu">
  273. <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
  274. <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
  275. </ul>
  276. </li>
  277. <li class="treeview">
  278. <a href="#">
  279. <i class="fa fa-files-o"></i>
  280. <span>Layout Options</span>
  281. <span class="pull-right-container">
  282. <span class="label label-primary pull-right">4</span>
  283. </span>
  284. </a>
  285. <ul class="treeview-menu">
  286. <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
  287. <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
  288. <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
  289. <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
  290. </ul>
  291. </li>
  292. <li>
  293. <a href="../widgets.html">
  294. <i class="fa fa-th"></i> <span>Widgets</span>
  295. <span class="pull-right-container">
  296. <small class="label pull-right bg-green">new</small>
  297. </span>
  298. </a>
  299. </li>
  300. <li class="treeview active">
  301. <a href="#">
  302. <i class="fa fa-pie-chart"></i>
  303. <span>Charts</span>
  304. <span class="pull-right-container">
  305. <i class="fa fa-angle-left pull-right"></i>
  306. </span>
  307. </a>
  308. <ul class="treeview-menu">
  309. <li class="active"><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
  310. <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
  311. <li><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
  312. <li><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
  313. </ul>
  314. </li>
  315. <li class="treeview">
  316. <a href="#">
  317. <i class="fa fa-laptop"></i>
  318. <span>UI Elements</span>
  319. <span class="pull-right-container">
  320. <i class="fa fa-angle-left pull-right"></i>
  321. </span>
  322. </a>
  323. <ul class="treeview-menu">
  324. <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
  325. <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
  326. <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
  327. <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
  328. <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
  329. <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
  330. </ul>
  331. </li>
  332. <li class="treeview">
  333. <a href="#">
  334. <i class="fa fa-edit"></i> <span>Forms</span>
  335. <span class="pull-right-container">
  336. <i class="fa fa-angle-left pull-right"></i>
  337. </span>
  338. </a>
  339. <ul class="treeview-menu">
  340. <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
  341. <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
  342. <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
  343. </ul>
  344. </li>
  345. <li class="treeview">
  346. <a href="#">
  347. <i class="fa fa-table"></i> <span>Tables</span>
  348. <span class="pull-right-container">
  349. <i class="fa fa-angle-left pull-right"></i>
  350. </span>
  351. </a>
  352. <ul class="treeview-menu">
  353. <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
  354. <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
  355. </ul>
  356. </li>
  357. <li>
  358. <a href="../calendar.html">
  359. <i class="fa fa-calendar"></i> <span>Calendar</span>
  360. <span class="pull-right-container">
  361. <small class="label pull-right bg-red">3</small>
  362. <small class="label pull-right bg-blue">17</small>
  363. </span>
  364. </a>
  365. </li>
  366. <li>
  367. <a href="../mailbox/mailbox.html">
  368. <i class="fa fa-envelope"></i> <span>Mailbox</span>
  369. <span class="pull-right-container">
  370. <small class="label pull-right bg-yellow">12</small>
  371. <small class="label pull-right bg-green">16</small>
  372. <small class="label pull-right bg-red">5</small>
  373. </span>
  374. </a>
  375. </li>
  376. <li class="treeview">
  377. <a href="#">
  378. <i class="fa fa-folder"></i> <span>Examples</span>
  379. <span class="pull-right-container">
  380. <i class="fa fa-angle-left pull-right"></i>
  381. </span>
  382. </a>
  383. <ul class="treeview-menu">
  384. <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
  385. <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
  386. <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
  387. <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
  388. <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
  389. <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
  390. <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
  391. <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
  392. <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
  393. </ul>
  394. </li>
  395. <li class="treeview">
  396. <a href="#">
  397. <i class="fa fa-share"></i> <span>Multilevel</span>
  398. <span class="pull-right-container">
  399. <i class="fa fa-angle-left pull-right"></i>
  400. </span>
  401. </a>
  402. <ul class="treeview-menu">
  403. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  404. <li class="treeview">
  405. <a href="#"><i class="fa fa-circle-o"></i> Level One
  406. <span class="pull-right-container">
  407. <i class="fa fa-angle-left pull-right"></i>
  408. </span>
  409. </a>
  410. <ul class="treeview-menu">
  411. <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
  412. <li class="treeview">
  413. <a href="#"><i class="fa fa-circle-o"></i> Level Two
  414. <span class="pull-right-container">
  415. <i class="fa fa-angle-left pull-right"></i>
  416. </span>
  417. </a>
  418. <ul class="treeview-menu">
  419. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  420. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  421. </ul>
  422. </li>
  423. </ul>
  424. </li>
  425. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  426. </ul>
  427. </li>
  428. <li><a href="https://adminlte.io/docs"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
  429. <li class="header">LABELS</li>
  430. <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
  431. <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
  432. <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
  433. </ul>
  434. </section>
  435. <!-- /.sidebar -->
  436. </aside>
  437. <!-- Content Wrapper. Contains page content -->
  438. <div class="content-wrapper">
  439. <!-- Content Header (Page header) -->
  440. <!-- Main content -->
  441. <?php include "api/v1/Customers/customersDetails.php" ?>
  442. <?php include "api/v1/Customers/customersVw.php" ?>
  443. <!-- /.content -->
  444. </div>
  445. <!-- /.content-wrapper -->
  446. <footer class="main-footer">
  447. <div class="pull-right hidden-xs">
  448. <b>Version</b> 2.4.0
  449. </div>
  450. <strong>Copyright &copy; 2014-2016 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights
  451. reserved.
  452. </footer>
  453. <!-- Control Sidebar -->
  454. <aside class="control-sidebar control-sidebar-dark">
  455. <!-- Create the tabs -->
  456. <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
  457. <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
  458. <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
  459. </ul>
  460. <!-- Tab panes -->
  461. <div class="tab-content">
  462. <!-- Home tab content -->
  463. <div class="tab-pane" id="control-sidebar-home-tab">
  464. <h3 class="control-sidebar-heading">Recent Activity</h3>
  465. <ul class="control-sidebar-menu">
  466. <li>
  467. <a href="javascript:void(0)">
  468. <i class="menu-icon fa fa-birthday-cake bg-red"></i>
  469. <div class="menu-info">
  470. <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
  471. <p>Will be 23 on April 24th</p>
  472. </div>
  473. </a>
  474. </li>
  475. <li>
  476. <a href="javascript:void(0)">
  477. <i class="menu-icon fa fa-user bg-yellow"></i>
  478. <div class="menu-info">
  479. <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
  480. <p>New phone +1(800)555-1234</p>
  481. </div>
  482. </a>
  483. </li>
  484. <li>
  485. <a href="javascript:void(0)">
  486. <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
  487. <div class="menu-info">
  488. <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
  489. <p>nora@example.com</p>
  490. </div>
  491. </a>
  492. </li>
  493. <li>
  494. <a href="javascript:void(0)">
  495. <i class="menu-icon fa fa-file-code-o bg-green"></i>
  496. <div class="menu-info">
  497. <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
  498. <p>Execution time 5 seconds</p>
  499. </div>
  500. </a>
  501. </li>
  502. </ul>
  503. <!-- /.control-sidebar-menu -->
  504. <h3 class="control-sidebar-heading">Tasks Progress</h3>
  505. <ul class="control-sidebar-menu">
  506. <li>
  507. <a href="javascript:void(0)">
  508. <h4 class="control-sidebar-subheading">
  509. Custom Template Design
  510. <span class="label label-danger pull-right">70%</span>
  511. </h4>
  512. <div class="progress progress-xxs">
  513. <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
  514. </div>
  515. </a>
  516. </li>
  517. <li>
  518. <a href="javascript:void(0)">
  519. <h4 class="control-sidebar-subheading">
  520. Update Resume
  521. <span class="label label-success pull-right">95%</span>
  522. </h4>
  523. <div class="progress progress-xxs">
  524. <div class="progress-bar progress-bar-success" style="width: 95%"></div>
  525. </div>
  526. </a>
  527. </li>
  528. <li>
  529. <a href="javascript:void(0)">
  530. <h4 class="control-sidebar-subheading">
  531. Laravel Integration
  532. <span class="label label-warning pull-right">50%</span>
  533. </h4>
  534. <div class="progress progress-xxs">
  535. <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
  536. </div>
  537. </a>
  538. </li>
  539. <li>
  540. <a href="javascript:void(0)">
  541. <h4 class="control-sidebar-subheading">
  542. Back End Framework
  543. <span class="label label-primary pull-right">68%</span>
  544. </h4>
  545. <div class="progress progress-xxs">
  546. <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
  547. </div>
  548. </a>
  549. </li>
  550. </ul>
  551. <!-- /.control-sidebar-menu -->
  552. </div>
  553. <!-- /.tab-pane -->
  554. <!-- Stats tab content -->
  555. <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
  556. <!-- /.tab-pane -->
  557. <!-- Settings tab content -->
  558. <div class="tab-pane" id="control-sidebar-settings-tab">
  559. <form method="post">
  560. <h3 class="control-sidebar-heading">General Settings</h3>
  561. <div class="form-group">
  562. <label class="control-sidebar-subheading">
  563. Report panel usage
  564. <input type="checkbox" class="pull-right" checked>
  565. </label>
  566. <p>
  567. Some information about this general settings option
  568. </p>
  569. </div>
  570. <!-- /.form-group -->
  571. <div class="form-group">
  572. <label class="control-sidebar-subheading">
  573. Allow mail redirect
  574. <input type="checkbox" class="pull-right" checked>
  575. </label>
  576. <p>
  577. Other sets of options are available
  578. </p>
  579. </div>
  580. <!-- /.form-group -->
  581. <div class="form-group">
  582. <label class="control-sidebar-subheading">
  583. Expose author name in posts
  584. <input type="checkbox" class="pull-right" checked>
  585. </label>
  586. <p>
  587. Allow the user to show his name in blog posts
  588. </p>
  589. </div>
  590. <!-- /.form-group -->
  591. <h3 class="control-sidebar-heading">Chat Settings</h3>
  592. <div class="form-group">
  593. <label class="control-sidebar-subheading">
  594. Show me as online
  595. <input type="checkbox" class="pull-right" checked>
  596. </label>
  597. </div>
  598. <!-- /.form-group -->
  599. <div class="form-group">
  600. <label class="control-sidebar-subheading">
  601. Turn off notifications
  602. <input type="checkbox" class="pull-right">
  603. </label>
  604. </div>
  605. <!-- /.form-group -->
  606. <div class="form-group">
  607. <label class="control-sidebar-subheading">
  608. Delete chat history
  609. <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
  610. </label>
  611. </div>
  612. <!-- /.form-group -->
  613. </form>
  614. </div>
  615. <!-- /.tab-pane -->
  616. </div>
  617. </aside>
  618. <!-- /.control-sidebar -->
  619. <!-- Add the sidebar's background. This div must be placed
  620. immediately after the control sidebar -->
  621. <div class="control-sidebar-bg"></div>
  622. </div>
  623. <!-- ./wrapper -->
  624. <!-- jQuery 3 -->
  625. <script src="../../bower_components/jquery/dist/jquery.min.js"></script>
  626. <!-- Bootstrap 3.3.7 -->
  627. <script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  628. <!-- ChartJS -->
  629. <script src="../../bower_components/chart.js/Chart.js"></script>
  630. <!-- FastClick -->
  631. <script src="../../bower_components/fastclick/lib/fastclick.js"></script>
  632. <!-- AdminLTE App -->
  633. <script src="../../dist/js/adminlte.min.js"></script>
  634. <!-- AdminLTE for demo purposes -->
  635. <script src="../../dist/js/demo.js"></script>
  636. <!-- page script -->
  637. <script>
  638. $(function () {
  639. /* ChartJS
  640. * -------
  641. * Here we will create a few charts using ChartJS
  642. */
  643. //--------------
  644. //- AREA CHART -
  645. //--------------
  646. // Get context with jQuery - using jQuery's .get() method.
  647. var areaChartCanvas = $('#areaChart').get(0).getContext('2d')
  648. // This will get the first returned node in the jQuery collection.
  649. var areaChart = new Chart(areaChartCanvas)
  650. var areaChartData = {
  651. labels : ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
  652. datasets: [
  653. {
  654. label : 'Electronics',
  655. fillColor : 'rgba(210, 214, 222, 1)',
  656. strokeColor : 'rgba(210, 214, 222, 1)',
  657. pointColor : 'rgba(210, 214, 222, 1)',
  658. pointStrokeColor : '#c1c7d1',
  659. pointHighlightFill : '#fff',
  660. pointHighlightStroke: 'rgba(220,220,220,1)',
  661. data : [65, 59, 80, 81, 56, 55, 40]
  662. },
  663. {
  664. label : 'Digital Goods',
  665. fillColor : 'rgba(60,141,188,0.9)',
  666. strokeColor : 'rgba(60,141,188,0.8)',
  667. pointColor : '#3b8bba',
  668. pointStrokeColor : 'rgba(60,141,188,1)',
  669. pointHighlightFill : '#fff',
  670. pointHighlightStroke: 'rgba(60,141,188,1)',
  671. data : [28, 48, 40, 19, 86, 27, 90]
  672. }
  673. ]
  674. }
  675. var areaChartOptions = {
  676. //Boolean - If we should show the scale at all
  677. showScale : true,
  678. //Boolean - Whether grid lines are shown across the chart
  679. scaleShowGridLines : false,
  680. //String - Colour of the grid lines
  681. scaleGridLineColor : 'rgba(0,0,0,.05)',
  682. //Number - Width of the grid lines
  683. scaleGridLineWidth : 1,
  684. //Boolean - Whether to show horizontal lines (except X axis)
  685. scaleShowHorizontalLines: true,
  686. //Boolean - Whether to show vertical lines (except Y axis)
  687. scaleShowVerticalLines : true,
  688. //Boolean - Whether the line is curved between points
  689. bezierCurve : true,
  690. //Number - Tension of the bezier curve between points
  691. bezierCurveTension : 0.3,
  692. //Boolean - Whether to show a dot for each point
  693. pointDot : false,
  694. //Number - Radius of each point dot in pixels
  695. pointDotRadius : 4,
  696. //Number - Pixel width of point dot stroke
  697. pointDotStrokeWidth : 1,
  698. //Number - amount extra to add to the radius to cater for hit detection outside the drawn point
  699. pointHitDetectionRadius : 20,
  700. //Boolean - Whether to show a stroke for datasets
  701. datasetStroke : true,
  702. //Number - Pixel width of dataset stroke
  703. datasetStrokeWidth : 2,
  704. //Boolean - Whether to fill the dataset with a color
  705. datasetFill : true,
  706. //String - A legend template
  707. legendTemplate : '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].lineColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>',
  708. //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
  709. maintainAspectRatio : true,
  710. //Boolean - whether to make the chart responsive to window resizing
  711. responsive : true
  712. }
  713. //Create the line chart
  714. areaChart.Line(areaChartData, areaChartOptions)
  715. //-------------
  716. //- LINE CHART -
  717. //--------------
  718. var lineChartCanvas = $('#lineChart').get(0).getContext('2d')
  719. var lineChart = new Chart(lineChartCanvas)
  720. var lineChartOptions = areaChartOptions
  721. lineChartOptions.datasetFill = false
  722. lineChart.Line(areaChartData, lineChartOptions)
  723. //-------------
  724. //- PIE CHART -
  725. //-------------
  726. // Get context with jQuery - using jQuery's .get() method.
  727. var pieChartCanvas = $('#pieChart').get(0).getContext('2d')
  728. var pieChart = new Chart(pieChartCanvas)
  729. var PieData = [
  730. {
  731. value : 700,
  732. color : '#f56954',
  733. highlight: '#f56954',
  734. label : 'Chrome'
  735. },
  736. {
  737. value : 500,
  738. color : '#00a65a',
  739. highlight: '#00a65a',
  740. label : 'IE'
  741. },
  742. {
  743. value : 400,
  744. color : '#f39c12',
  745. highlight: '#f39c12',
  746. label : 'FireFox'
  747. },
  748. {
  749. value : 600,
  750. color : '#00c0ef',
  751. highlight: '#00c0ef',
  752. label : 'Safari'
  753. },
  754. {
  755. value : 300,
  756. color : '#3c8dbc',
  757. highlight: '#3c8dbc',
  758. label : 'Opera'
  759. },
  760. {
  761. value : 100,
  762. color : '#d2d6de',
  763. highlight: '#d2d6de',
  764. label : 'Navigator'
  765. }
  766. ]
  767. var pieOptions = {
  768. //Boolean - Whether we should show a stroke on each segment
  769. segmentShowStroke : true,
  770. //String - The colour of each segment stroke
  771. segmentStrokeColor : '#fff',
  772. //Number - The width of each segment stroke
  773. segmentStrokeWidth : 2,
  774. //Number - The percentage of the chart that we cut out of the middle
  775. percentageInnerCutout: 50, // This is 0 for Pie charts
  776. //Number - Amount of animation steps
  777. animationSteps : 100,
  778. //String - Animation easing effect
  779. animationEasing : 'easeOutBounce',
  780. //Boolean - Whether we animate the rotation of the Doughnut
  781. animateRotate : true,
  782. //Boolean - Whether we animate scaling the Doughnut from the centre
  783. animateScale : false,
  784. //Boolean - whether to make the chart responsive to window resizing
  785. responsive : true,
  786. // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
  787. maintainAspectRatio : true,
  788. //String - A legend template
  789. legendTemplate : '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'
  790. }
  791. //Create pie or douhnut chart
  792. // You can switch between pie and douhnut using the method below.
  793. pieChart.Doughnut(PieData, pieOptions)
  794. //-------------
  795. //- BAR CHART -
  796. //-------------
  797. var barChartCanvas = $('#barChart').get(0).getContext('2d')
  798. var barChart = new Chart(barChartCanvas)
  799. var barChartData = areaChartData
  800. barChartData.datasets[1].fillColor = '#00a65a'
  801. barChartData.datasets[1].strokeColor = '#00a65a'
  802. barChartData.datasets[1].pointColor = '#00a65a'
  803. var barChartOptions = {
  804. //Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value
  805. scaleBeginAtZero : true,
  806. //Boolean - Whether grid lines are shown across the chart
  807. scaleShowGridLines : true,
  808. //String - Colour of the grid lines
  809. scaleGridLineColor : 'rgba(0,0,0,.05)',
  810. //Number - Width of the grid lines
  811. scaleGridLineWidth : 1,
  812. //Boolean - Whether to show horizontal lines (except X axis)
  813. scaleShowHorizontalLines: true,
  814. //Boolean - Whether to show vertical lines (except Y axis)
  815. scaleShowVerticalLines : true,
  816. //Boolean - If there is a stroke on each bar
  817. barShowStroke : true,
  818. //Number - Pixel width of the bar stroke
  819. barStrokeWidth : 2,
  820. //Number - Spacing between each of the X value sets
  821. barValueSpacing : 5,
  822. //Number - Spacing between data sets within X values
  823. barDatasetSpacing : 1,
  824. //String - A legend template
  825. legendTemplate : '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>',
  826. //Boolean - whether to make the chart responsive
  827. responsive : true,
  828. maintainAspectRatio : true
  829. }
  830. barChartOptions.datasetFill = false
  831. barChart.Bar(barChartData, barChartOptions)
  832. })
  833. </script>
  834. </body>
  835. </html>