$month_text = "Septiembre"; break; case 10: $month_text = "Octubre"; break; case 11: $month_text = "Noviembre"; break; case 12: $month_text = "Diciembre"; break; } return $month_text; } $startTime = data_first_month_day(explota($_POST['fechainicio'])); $endTime = data_last_month_day(explota($_POST['fechafin'])); $sTime = $startTime; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title></title> <meta name="generator" content="Bluefish 2.2.6" > <meta name="created" content="20140722;2825872280191"> <meta name="changed" content="20140722;231034824935761"> <style type="text/css"><!-- body,div,table,thead,tbody,tfoot,tr,th,td,p { font-family:"Liberation Sans"; font-size:x-small }
case 10: $month_text = "Octubre"; break; case 11: $month_text = "Noviembre"; break; case 12: $month_text = "Diciembre"; break; } return $month_text; } //$startTime =data_first_month_day(explota($_GET['fechainicio'])); //$endTime = data_last_month_day(explota($_GET['fechafin'])); $startTime = data_first_month_day('2014-07-02'); $endTime = data_last_month_day('2014-07-31'); $fechainicial = new DateTime('2014-07-01'); $fechafinal = new DateTime('2014-08-31'); $diferencia = $fechainicial->diff($fechafinal); $meses = $diferencia->y * 12 + $diferencia->m; if ($meses == 0) { $meses = 1; } $sTime = $startTime; setlocale(LC_ALL, 'et_EE.ISO-8859-1'); $datay = array(); $datax = array(); $color = array(); $Pinto = array('', 'aliceblue', 'antiquewhite', 'lightsalmon', 'lightseagreen', 'aqua', 'bisque', 'lime', 'black', 'lightyellow', 'limegreen', 'linen', 'blue', 'lightskyblue', 'blanchedalmond', 'aquamarine', 'lightslategray', 'azure', 'lightsteelblue', 'beige', 'magenta', 'blueviolet', 'maroon', 'brown', 'mediumaquamarine', 'burlywood', 'mediumblue', 'coral', 'mediumslateblue', 'cornflowerblue', 'mediumspringgreen', 'cornsilk', 'mediumturquoise', 'cadetblue', 'mediumorchid', 'chartreuse', 'mediumpurple', 'chocolate', 'mediumseagreen', 'mediumvioletred', 'cyan', 'midnightblue', 'darkblue', 'mintcream', 'darkcyan', 'mistyrose', 'oldlace', 'darkmagenta', 'olive', 'darkolivegreen', 'olivedrab', 'darkorange', 'orange', 'darkgoldenrod', 'moccasin', 'darkgray', 'navajowhite', 'darkgreen', 'navy', 'darkkhaki', 'darkorchid', 'orangered', 'darkred', 'orchid', 'darksalmon', 'palegoldenrod', 'darkseagreen', 'papayawhip', 'darkviolet', 'peachpuff', 'deeppink', 'peru', 'deepskyblue', 'pink', 'dimgray', 'plum', 'dodgerblue', 'powderblue', 'firebrick', 'purple', 'floralwhite', 'red', 'forestgreen', 'palegreen', 'darkslateblue', 'paleturquoise', 'darkslategray', 'palevioletred', 'darkturquoise', 'rosybrown', 'fuchsia', 'royalblue', 'gainsboro', 'saddlebrown', 'ghostwhite', 'salmon', 'gold', 'honeydew', 'skyblue', 'hotpink', 'slateblue', 'indianred', 'slategray', 'indigo', 'snow', 'ivory', 'sandybrown', 'goldenrod', 'seagreen', 'gray', 'seashell', 'green', 'sienna', 'greenyellow', 'silver', 'springgreen', 'khaki', 'steelblue', 'lavender', 'tan', 'lavenderblush', 'teal', 'lawngreen', 'thistle', 'lightgoldenrodyellow', 'white', 'lightgreen', 'whitesmoke', 'lightgrey', 'yellow', 'lightpink', 'yellowgreen', 'lemonchiffon', 'tomato', 'lightblue', 'turquoise', 'lightcoral', 'violet', 'lightcyan', 'wheat'); $tipo = array(0 => "Contado", 1 => "Credito", 2 => "Nota Credito"); $moneda = array(1 => "\$", 2 => "U\$S");