!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:     factura_view.php (17.75 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<style>
.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;
}


.red2 {
  background-color: red;
}
#content {
margin: 0 auto;

width: auto;
height: auto;

}

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

#derecha{
width:400px;
height:40px;
float: right;
}

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


.red {
    color: red; 
}

.black {
    color: black;
}
[data-notify="progressbar"] {
    margin-bottom: 0px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 5px;
}
.selected {
    background-color:white;
    color:blue;
    font-weight:bold;
}

.pendiente {
    background-color:white;
    color:green;
    font-weight:bold;
}

.regular {
    background-color:white;
    color:red;
    font-weight:bold;
}

/* Style when highlighting a search. */
.ui-select-highlight {
  font-weight: bold;
}

.ui-select-offscreen {
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  outline: 0 !important;
  left: 0px !important;
  top: 0px !important;
}


.ui-select-choices-row:hover {
  background-color: #f5f5f5;
}

/* Select2 theme */

/* Mark invalid Select2 */
.ng-dirty.ng-invalid > a.select2-choice {
    border-color: #D44950;
}

.select2-result-single {
  padding-left: 0;
}

.select2-locked > .select2-search-choice-close{
  display:none;
}

.select-locked > .ui-select-match-close{
    display:none;
}

body > .select2-container.open {
  z-index: 9999; /* The z-index Select2 applies to the select2-drop */
}

/* Handle up direction Select2 */
.ui-select-container[theme="select2"].direction-up .ui-select-match,
.ui-select-container.select2.direction-up .ui-select-match {
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown,
.ui-select-container.select2.direction-up .ui-select-dropdown {
    border-radius: 4px; /* FIXME hardcoded value :-/ */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    border-top-width: 1px;  /* FIXME hardcoded value :-/ */
    border-top-style: solid;

    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);

    margin-top: -4px; /* FIXME hardcoded value :-/ */
}
.ui-select-container[theme="select2"].direction-up .ui-select-dropdown .select2-search,
.ui-select-container.select2.direction-up .ui-select-dropdown .select2-search {
    margin-top: 4px; /* FIXME hardcoded value :-/ */
}
.ui-select-container[theme="select2"].direction-up.select2-dropdown-open .ui-select-match,
.ui-select-container.select2.direction-up.select2-dropdown-open .ui-select-match {
    border-bottom-color: #5897fb;
}

.ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden,
.ui-select-container[theme="select2"] .ui-select-dropdown .ui-select-search-hidden input{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
}

/* Selectize theme */

/* Helper class to show styles when focus */
.selectize-input.selectize-focus{
  border-color: #007FBB !important;
}

/* Fix input width for Selectize theme */
.selectize-control.single > .selectize-input > input {
  width: 100%;
}

/* Fix line break when there's at least one item selected with the Selectize theme */
.selectize-control.multi > .selectize-input > input {
  margin: 0 !important;
}

/* Fix dropdown width for Selectize theme */
.selectize-control > .selectize-dropdown {
  width: 100%;
}

/* Mark invalid Selectize */
.ng-dirty.ng-invalid > div.selectize-input {
    border-color: #D44950;
}

/* Handle up direction Selectize */
.ui-select-container[theme="selectize"].direction-up .ui-select-dropdown {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
    margin-top: -2px; /* FIXME hardcoded value :-/ */
}

.ui-select-container[theme="selectize"] input.ui-select-search-hidden{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
    width: 0;
}

/* Bootstrap theme */

/* Helper class to show styles when focus */
.btn-default-focus {
  color: #333;
  background-color: #EBEBEB;
  border-color: #ADADAD;
  text-decoration: none;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.ui-select-bootstrap .ui-select-toggle {
  position: relative;
}

.ui-select-bootstrap .ui-select-toggle > .caret {
  position: absolute;
  height: 10px;
  top: 50%;
  right: 10px;
  margin-top: -2px;
}

/* Fix Bootstrap dropdown position when inside a input-group */
.input-group > .ui-select-bootstrap.dropdown {
  /* Instead of relative */
  position: static;
}

.input-group > .ui-select-bootstrap > input.ui-select-search.form-control {
  border-radius: 4px; /* FIXME hardcoded value :-/ */
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > .ui-select-bootstrap > input.ui-select-search.form-control.direction-up {
  border-radius: 4px !important; /* FIXME hardcoded value :-/ */
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ui-select-bootstrap .ui-select-search-hidden{
    opacity: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border:0;
}

.ui-select-bootstrap > .ui-select-match > .btn{
  /* Instead of center because of .btn */
  text-align: left !important;
}

.ui-select-bootstrap > .ui-select-match > .caret {
  position: absolute;
  top: 45%;
  right: 15px;
}

/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */
.ui-select-bootstrap > .ui-select-choices ,.ui-select-bootstrap > .ui-select-no-choice {
  width: 100%;
  height: auto;
  max-height: 200px;
  overflow-x: hidden;
  margin-top: -1px;
}

body > .ui-select-bootstrap.open {
  z-index: 1000; /* Standard Bootstrap dropdown z-index */
}

.ui-select-multiple.ui-select-bootstrap {
  height: auto;
  padding: 3px 3px 0 3px;
}

.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
  background-color: transparent !important; /* To prevent double background when disabled */
  border: none;
  outline: none;
  height: 1.666666em;
  margin-bottom: 3px;
}

.ui-select-multiple.ui-select-bootstrap .ui-select-match .close {
  font-size: 1.6em;
  line-height: 0.75;
}

.ui-select-multiple.ui-select-bootstrap .ui-select-match-item {
  outline: 0;
  margin: 0 3px 3px 0;
}

.ui-select-multiple .ui-select-match-item {
  position: relative;
}

.ui-select-multiple .ui-select-match-item.dropping .ui-select-match-close {
  pointer-events: none;
}

.ui-select-multiple:hover .ui-select-match-item.dropping-before:before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  height: 100%;
  margin-right: 2px;
  border-left: 1px solid #428bca;
}

.ui-select-multiple:hover .ui-select-match-item.dropping-after:after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  margin-left: 2px;
  border-right: 1px solid #428bca;
}

.ui-select-bootstrap .ui-select-choices-row>span {
    cursor: pointer;
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.ui-select-bootstrap .ui-select-choices-row>span:hover, .ui-select-bootstrap .ui-select-choices-row>span:focus {
    text-decoration: none;
    color: #262626;
    background-color: #f5f5f5;
}

.ui-select-bootstrap .ui-select-choices-row.active>span {
    color: #fff;
    text-decoration: none;
    outline: 0;
    background-color: #428bca;
}

.ui-select-bootstrap .ui-select-choices-row.disabled>span,
.ui-select-bootstrap .ui-select-choices-row.active.disabled>span {
    color: #777;
    cursor: not-allowed;
    background-color: #fff;
}

/* fix hide/show angular animation */
.ui-select-match.ng-hide-add,
.ui-select-search.ng-hide-add {
    display: none !important;
}

/* Mark invalid Bootstrap */
.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match {
    border-color: #D44950;
}

/* Handle up direction Bootstrap */
.ui-select-container[theme="bootstrap"].direction-up .ui-select-dropdown {
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
}

.ui-select-bootstrap .ui-select-match-text {
    width: 100%;
    padding-right: 1em;
}
.ui-select-bootstrap .ui-select-match-text span {
    display: inline-block;
    width: 100%;
    overflow: hidden;
}
.ui-select-bootstrap .ui-select-toggle > a.btn {
  position: absolute;
  height: 10px;
  right: 10px;
  margin-top: -2px;
}

/* Spinner */
.ui-select-refreshing.glyphicon {
    position: absolute;
    right: 0;
    padding: 8px 27px;
 }

@-webkit-keyframes ui-select-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes ui-select-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.ui-select-spin {
  -webkit-animation: ui-select-spin 2s infinite linear;
  animation: ui-select-spin 2s infinite linear;
}

.ui-select-refreshing.ng-animate {
  -webkit-animation: none 0s;
}

</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 class="row">
         <div class="col-md-12">
      <div id="izquierda" align="left">
            <input type="text" autofocus style="width: 600px;height :40px;" ng-model="search" ng-change="filter()" placeholder="BUSCAR" />
        </div>
        <div id="derecha" align="right">
        <form action="<?php echo base_url()?>home/expulsarFacturadosHoy/" method="post">
                    <button type="submit" class="btn btn-danger" aria-label="Left Align">
                <span class="glyphicon glyphicon-stats"></span> FACTURADOS HOY
            </button>
             </form>

        </div>


        </div>
    </div>
    
 </section>
       <div>
    <?php
      $this
->load->view('alert');
    
?>
</div>
    <!-- Main content -->
   <section class="content">
   <form ng-submit="confirm()" id="pedidos" action="<?php echo base_url();?>pedido/prepararAccionesFacturacion/" 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 style="width:3%"> <button  type="button" ng-click="enviarEnvio();" class="btn btn-info" aria-label="Left Align">
                </span> A ENTREGAR
            </button></th>
                <th style="width:3%">PEDIDO&nbsp;<a ng-click="sort_by('id_pedido');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th style="width:3%">FECHA COTIZ&nbsp;<a ng-click="sort_by('fecha');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th style="width:3%">FECHA ARMADO&nbsp;<a ng-click="sort_by('fechaArmado');"><i class="glyphicon glyphicon-sort"></i></a></th>
               
                <th style="width:40%">RAZON SOCIAL&nbsp;<a ng-click="sort_by('razon_social');"><i class="glyphicon glyphicon-sort"></i></a></th>
                <th style="width:3%">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 style="width:3%">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 style="width:36%">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.fecha}}</b></td>
                    <td><b>{{data.fechaArmado}}</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,1)" title="EDICION PEDIDO" aria-label="Left Align">
                                  <span class="glyphicon glyphicon-edit"></span>
                                </button>&nbsp;
                                <button type="submit" class="btn btn-danger btn-md" ng-click="ponerDatos(data.id_pedido,data.id,5)" title="IMPRIMIR EN TXT" aria-label="Left Align">
                                  <span class="glyphicon glyphicon-print"></span>
                                </button>&nbsp;
                                
                                <button type='submit' class='btn btn-info' title='PENDIENTE DE ENTREGA' ng-click='ponerDatos(data.id_pedido,data.id,19)' 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/getPedidosFactAajax");?>").success(function(data){
        $scope.list = data;
        $scope.currentPage = 1; //current page
        $scope.entryLimit = 20; //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.enviarEnvio = function () {

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

             success:function(data){   
                 alert("SE HAN ENVIADO A ENTREGAR ");    
                 window.location.reload();
             },
            error: function () {
                    alert("ERROR AL ENVIAR PEDIDOS A ENTREGAR");
              }
              });
   
        }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.0099 ]--