!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/almazenServer/application/views/   drwxr-xr-x
Free 10.1 GB of 29.4 GB (34.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pendiente_entrega_view.php (9.31 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style>
#content {
margin: 0 auto;

width: auto;
height: auto;

}

#izquierda{
width:600px;
height:40px;
float: left;
}

#derecha{

float: right;
}

#th{
    border-left: 1px solid #3c8dbc;
}


.red {
    color: red; 
}

.black {
    color: black;
}
.select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
    display: inline-block;
    height: 20px;
    padding: 4px 6px;
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 20px;
    color: #555555;
    vertical-align: middle;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.row {
    display: -ms-flexbox;
    display: block;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
</style>

<div class="content-wrapper" style="min-height: 946px;">
<div ng-app="MenuOperaciones" style="margin-left:20px;">
     <section class="content-header">
 <h1><?php echo($titulo);?></h1>
<br>

       <div>
    <?php
      $this
->load->view('alert');
    
?>
</div>
     <div id="content">
<form action="<?php echo base_url()?>home/expulsarPendEntregaDepo/" method="post">
      <div id="izquierda" align="left">
           <input type="text" autofocus ng-model="search" ng-change="filter()" style="width: 500px;height :40px;" placeholder="BUSCAR" class="form-control" />
        </div>
        
          <div id="derecha" align="right">
            <button type="submit" class="btn btn-success" aria-label="Left Align">
                <span class="glyphicon glyphicon-print"></span> IMPRIMIR PENDIENTES ENTREGA
              </button>
              </div>
         </form>
    <form action="<?php echo base_url()?>home/expulsarFinalizadosHoy/" method="post">
                    <button type="submit" class="btn btn-danger" aria-label="Left Align">
                <span class="glyphicon glyphicon-stats"></span> FINALIZADOS HOY
            </button>
             </form>
        </div>
    
 </section>

    <!-- Main content -->
   <section class="content">
   <form ng-submit="confirm()" id="pedidos" action="<?php echo base_url();?>pedido/verPedido/" method="POST" ng-controller="MyCtrl">
        
    <div class="row">
        <div class="col-md-12" ng-show="filteredItems > 0">
            <table class="table table-striped table-bordered">
            <thead>

               <th> <button  type="button" ng-click="enviarFinalizar();" class="btn btn-info" aria-label="Left Align">
                </span> A FINALIZAR
            </button></th>
                <th>PEDIDO&nbsp;<a ng-click="sort_by('id_pedido');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th>VEND&nbsp;<a ng-click="sort_by('vendedor');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th>COTIZ&nbsp;<a ng-click="sort_by('cotizador');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th>FECHA COTIZ&nbsp;<a ng-click="sort_by('fecha');"><i class="glyphicon glyphicon-sort"></i></a></th>
                 <th>FECHA FACTURADO&nbsp;<a ng-click="sort_by('fechaFacturado');"><i class="glyphicon glyphicon-sort"></i></a></th>
               
                <th style="width: 300px;">RAZON SOCIAL&nbsp;<a ng-click="sort_by('razon_social');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th>DESC&nbsp;<a ng-click="sort_by('descuento');"><i class="glyphicon glyphicon-sort"></i></a></th>
          <th>SUBT&nbsp;<a ng-click="sort_by('subtotal');"><i class="glyphicon glyphicon-sort"></i></a></th>
             
                <th>TOTAL&nbsp;<a ng-click="sort_by('total');"><i class="glyphicon glyphicon-sort"></i></a></th>
                       <th>SALDO&nbsp;<a ng-click="sort_by('saldo');"><i class="glyphicon glyphicon-sort"></i></a></th>
         
                <th>ACCION&nbsp;</th>
               </thead>             
            <tbody>
                <tr ng-repeat="data in filtered = (list | filter:search) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit">
                    <td><input type="checkbox" ng-model="data.checked" ng-click="checkedIndex(data.id_pedido)"></td>
                    <td><b>{{data.id_pedido}}</b></td>
                    <td><b>{{data.vendedor}}</b></td>
                    <td><b>{{data.cotizador}}</b></td>
                    <td><b>{{data.fecha}}</b></td>
                    <td><b>{{data.fechaFacturado}}</b></td>
                    <td><b>{{data.razon_social}}</b></td>
                     <td><b>{{data.descuento}} % </b></td>
                      <td><b>{{data.subtotal}}</b></td>
                      <td><b>{{data.total}}</b></td>
                       <td><b>{{data.saldo}}</b></td>  
                        <td> 
                        <div class="input-group">
                                <button type="submit" class="btn btn-warning btn-md" ng-click='ponerDatos(data.id_pedido,data.id,3)' title="IMPRIMIR EN PDF" aria-label="Left Align">
                                  <span class="glyphicon glyphicon-print"></span>
                                </button>&nbsp;
                                
                                
                                <button type="submit" class="btn btn-success btn-md" ng-click="ponerDatos(data.id_pedido,data.id,8)" title="VISUALIZAR CONTENIDO" aria-label="Left Align">
                                  <span class="glyphicon glyphicon-edit"></span>
                                </button>&nbsp;

                                
                                <button type='submit' class='btn btn-primary' title='PEDIDO ENTREGADO' ng-click='ponerDatos(data.id_pedido,data.id,20)' aria-label='Left Align'>
                                  <span class='glyphicon glyphicon-ok'></span>
                                </button>
                        </div>
                        
                </td> 
                </tr>
                 
            </tbody>
            </table>
            
        </div>
                 
        <div class="col-md-10" ng-show="filteredItems == 0">
            <div class="col-md-10">
                <h4>NO HAY PEDIDOS DISPONIBLES</h4>
            </div>
        </div>
        <div class="col-md-10" ng-show="filteredItems > 0">    
                    <div class="col-md-4">
            <h5>Obtenidos {{ filtered.length }} De {{ totalItems}} PEDIDOS Totales</h5>
        </div>    
            <div class="col-md-6" pagination="" page="currentPage" max-size="10" on-select-page="setPage(page)" boundary-links="true" total-items="filteredItems" items-per-page="entryLimit" class="pagination-small" previous-text="&laquo;" next-text="&raquo;"></div>

        </div>
                <input type="hidden" name="accion" id="accion" ng-init="tipoOp = '0'" ng-model="model.accion"  value="{{accion}}"> </input>  
        <input type="hidden" name="numeroCliente" id="numeroCliente" ng-init="tipoOp = '0'" ng-model="model.numeroCliente"  value="{{numeroCliente}}"> </input>
     <input type="hidden" name="numeroPedido" id="numeroPedido" ng-init="tipoOp = '0'" ng-model="model.numeroPedido"  value="{{numeroPedido}}"> </input>
        
           </form>
   </section><!-- /.content -->
      </div><!-- /.content-wrapper -->    

<script type="text/javascript">
var app = angular.module('MenuOperaciones', ['ui.bootstrap']);

app.filter('startFrom', function() {
    return function(input, start) {
        if(input) {
            start = +start; //parse to int
            return input.slice(start);
        }
        return [];
    }
});
app.controller('MyCtrl', function ($scope, $http, $location) {
     $scope.accion='';
     $scope.numeroCliente='';
     $scope.numeroPedido='';
    $scope.list=[];
    $scope.chckedIndexs=[];
    $scope.reloadPage = function(){window.location.reload();}
    $http.get("<?php echo site_url("pedido/getPedidosPendientesEntregaAajax");?>").success(function(data){
        $scope.list = data;
        $scope.currentPage = 1; //current page
        $scope.entryLimit = 10; //max no of items to display in a page
        $scope.filteredItems = $scope.list.length; //Initially for no filter  
        $scope.totalItems = $scope.list.length;
    });
    
    $scope.setPage = function(pageNo) {
        $scope.currentPage = pageNo;
    };

    $scope.sort_by = function(predicate) {
        $scope.predicate = predicate;
        $scope.reverse = !$scope.reverse;
    };
    $scope.ponerDatos= function (id,numeroCliente,accion){
         $scope.accion=accion;
        $scope.numeroCliente=numeroCliente;
        $scope.numeroPedido=id;
    };
    
    //agrego al array los elementos seleccionados
    $scope.checkedIndex = function (id_pedido) {
        var index = $scope.chckedIndexs.indexOf(id_pedido);
        if (index < 0) {
            $scope.chckedIndexs.push(id_pedido);
        } else{
            $scope.chckedIndexs.splice(index, 1);
        }
               
    };
    $scope.enviarFinalizar = function () {

        items=$scope.chckedIndexs;
        if(items != ""){
         $.ajax({
             type: 'POST',
             url: '<?php echo site_url("pedido/pedidosMasivosFinalizar");?>',
             data: {datos:items},

             success:function(data){   
                 alert("SE HAN ENVIADO A FINALIZAR ");    
                 window.location.reload();
             },
            error: function () {
                    alert("ERROR AL ENVIAR PEDIDOS A FINALIZAR");
              }
              });
   
        }else {
            alert("NO HAY PEDIDOS SELECCIONADOS");
        }

               
    };


    $scope.confirm = function() {
        if (confirm('Estas seguro de esta accion?')){ 
            event.returnValue=true;
         } 
        else{
            event.returnValue=false;
            }
    };

});

</script>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0074 ]--