You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. if( $CUser->Data['id'] > 1 ){
  4. $Data['status'] = 'error';
  5. if( $CUser->Data['access'] > 5 ){
  6. if( $MID = intval( $_POST['MID'] ) ){
  7. $SKEL=<<<DATABOUNDARY
  8. {
  9. xtype: 'panel',
  10. border: false,
  11. frame: false,
  12. items:[{
  13. xtype:'panel',
  14. border: false,
  15. frame: false,
  16. html: '<table width="100%" border=0 class="setEd_infoPanel" id="LIBAV_LOGO"><tr><td align="center"><svg class="donut" width="200" height="100%" viewBox="0 0 42 42"><circle id="status_34_donut0_segment2" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#b1c94e" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><circle id="status_34_donut0_segment3" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#aaddff" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><circle id="status_34_donut0_segment1" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#ce4b99" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><g class="chart-text"><text x="50%" y="50%" class="chart-number" id="status_34_totalValue0">0</text><text x="50%" y="50%" class="chart-label">PROCESS</text></g></svg></td><td valign="middle">Media Status</td></tr><tr><td colspan=2>INFO</td></tr></table><br/>'
  17. },{ xtype:'spacer', height: 10
  18. },{
  19. html:'<video id="my-video" class="video-js" controls preload="auto" width="100%" data-setup="{}" poster="/style/assets/no-signal_d.png" sdsdarc="/lib/controller/data/8a171d17-978c-eda4-03f1-c1c4123a07a7.mp4"></video>'
  20. }],
  21. listeners:{
  22. afterrender: function( t ){
  23. UpdateMediaItemStatus();
  24. }
  25. }
  26. }
  27. DATABOUNDARY;
  28. $QS = "SELECT * FROM `media_queue` WHERE `id`={$MID}";
  29. $Result = $DATABASE->Query( $QS );
  30. if( count( $Result ) ){
  31. $CM = $Result[0];
  32. $Data['status']= 'ok';
  33. $Data['content']=$SKEL;
  34. } else {
  35. $Data['msg']="No Media Item[{$MID}] Found!";
  36. };
  37. } else {
  38. $Data['msg']='Wrong Parameter!';
  39. };
  40. } else {
  41. $Data['msg']='Access Denied!';
  42. };
  43. echo json_encode( $Data );
  44. } else {
  45. header('location: /');
  46. };
  47. ?>