Файловый менеджер - Редактировать - /home2/cocinasdalloway/public_html/administrador/Home/quotes_all.php
Назад
<?php function sumasdiasemana($fecha,$dias) { $datestart= strtotime($fecha); $datesuma = 15 * 86400; $diasemana = date('N',$datestart); $totaldias = $diasemana+$dias; $findesemana = intval( $totaldias/6) *1 ; $diasabado = $totaldias % 6 ; if ($diasabado==6) $findesemana++; if ($diasabado==0) $findesemana=$findesemana-1; $total = (($dias+$findesemana) * 86400)+$datestart ; return $fechafinal = date('d-m-Y', $total); } $area=$IdAreasUs; /* $query_area = " SELECT * FROM areas WHERE id IN ($area)"; $consu_area = $conexion -> query($query_area); $execu_area = $consu_area->fetch_array(MYSQLI_BOTH); $nombre_area = $execu_area["descripcion"]; */ ?> <div class="page-title"> <div class="title_left"> <h3>Cotizaciones<small> <?php //echo $nombre_area;?></small></h3> </div> <div class="title_right"> <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> </div> </div> </div> <div class="clearfix"></div> <div class="row"> <div class="col-md-12"> <div class="x_panel"> <div class="x_content"> <div class="row"> <div class="col-sm-12"> <div class="card-box table-responsive"> <!--<table id="datatable-buttons" class="table table-striped table-bordered" style="width:100%">--> <table id="datatable" class="table table-striped table-bordered" style="width:100%"> <thead> <tr> <th>#Orden</th> <th>Cliente</th> <th>Direccion</th> <th>Email</th> <th>Telefono</th> <th>F.Creada</th> <th>Total</th> </tr> </thead> <tbody> <?php $query_ordenes = " SELECT * FROM quotes "; $consu_ordenes = $conexion -> query($query_ordenes); while($execu_ordenes = $consu_ordenes->fetch_array(MYSQLI_BOTH)){ $email = $execu_ordenes["email"]; $telefono = $execu_ordenes["telefono"]; $direccion = $execu_ordenes["direccion"]; $cliente = $execu_ordenes["cliente"]; $total = $execu_ordenes["total"]; $fecha_creacion = $execu_ordenes["fecha_creacion"]; ?> <tr> <td><a target="_blank" href="QuotePrint.php?IdQuote=<?php echo $execu_ordenes['id_cotizacion']?>">C<?php echo str_pad($execu_ordenes['id_cotizacion'], 5, "0", STR_PAD_LEFT);?></a></td> <td><?php echo $cliente?></td> <td><?php echo $direccion?></td> <td><?php echo $email?></td> <td><?php echo $telefono?></td> <td><?php echo date('d-m-Y',strtotime($fecha_creacion))?></td> <td>$<?php echo number_format($total,2)?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 8.2.22 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка