]> git.mjollnir.org Git - moodle.git/commitdiff
removed demo file from library
authorjungwirr <jungwirr>
Wed, 24 Sep 2003 19:11:14 +0000 (19:11 +0000)
committerjungwirr <jungwirr>
Wed, 24 Sep 2003 19:11:14 +0000 (19:11 +0000)
mod/attendance/write_excel/test.php [deleted file]

diff --git a/mod/attendance/write_excel/test.php b/mod/attendance/write_excel/test.php
deleted file mode 100644 (file)
index 25a4f11..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<?php\r
-  //require_once('OLEwriter.php');\r
-  //require_once('BIFFwriter.php');\r
-  require_once('Worksheet.php');\r
-  require_once('Workbook.php');\r
-\r
-  function HeaderingExcel($filename) {\r
-      header("Content-type: application/vnd.ms-excel");\r
-      header("Content-Disposition: attachment; filename=$filename" );\r
-      header("Expires: 0");\r
-      header("Cache-Control: must-revalidate, post-check=0,pre-check=0");\r
-      header("Pragma: public");\r
-      }\r
-\r
-  // HTTP headers\r
-  HeaderingExcel('test.xls');\r
-\r
-  // Creating a workbook\r
-  $workbook = new Workbook("-");\r
-  // Creating the first worksheet\r
-  $worksheet1 =& $workbook->add_worksheet('First One');\r
-// set the column width\r
-  $worksheet1->set_column(1, 1, 40);\r
-// set the row height\r
-  $worksheet1->set_row(1, 20);\r
-  $worksheet1->write_string(1, 1, "This worksheet's name is ".$worksheet1->get_name());\r
-  $worksheet1->write(2,1,"http://www.phpclasses.org/browse.html/package/767.html");\r
-  $worksheet1->write_number(3, 0, 11);\r
-  $worksheet1->write_number(3, 1, 1);\r
-  $worksheet1->write_string(3, 2, "by four is");\r
-  $worksheet1->write_formula(3, 3, "=A4 * (2 + 2)");\r
-  //$worksheet1->write_formula(3, 3, "= SUM(A4:B4)");\r
-  $worksheet1->write(5, 4, "= POWER(2,3)");\r
-  $worksheet1->write(4, 4, "= SUM(5, 5, 5)");\r
-  //$worksheet1->write_formula(4, 4, "= LN(2.71428)");\r
-  //$worksheet1->write_formula(5, 4, "= SIN(PI()/2)");\r
-\r
-  // Creating the second worksheet\r
-  $worksheet2 =& $workbook->add_worksheet();\r
-\r
-  // Format for the headings\r
-  $formatot =& $workbook->add_format();\r
-  $formatot->set_size(10);\r
-  $formatot->set_align('center');\r
-  $formatot->set_color('white');\r
-  $formatot->set_pattern();\r
-  $formatot->set_fg_color('magenta');\r
-\r
-  $worksheet2->set_column(0,0,15);\r
-  $worksheet2->set_column(1,2,30);\r
-  $worksheet2->set_column(3,3,15);\r
-  $worksheet2->set_column(4,4,10);\r
-\r
-  $worksheet2->write_string(1,0,"Id",$formatot);\r
-  $worksheet2->write_string(1,1,"Name",$formatot);\r
-  $worksheet2->write_string(1,2,"Adress",$formatot);\r
-  $worksheet2->write_string(1,3,"Phone Number",$formatot);\r
-  $worksheet2->write_string(1,4,"Salary",$formatot);\r
-\r
-  $worksheet2->write(3,0,"22222222-2");\r
-  $worksheet2->write(3,1,"John Smith");\r
-  $worksheet2->write(3,2,"Main Street 100");\r
-  $worksheet2->write(3,3,"02-5551234");\r
-  $worksheet2->write(3,4,100);\r
-  $worksheet2->write(4,0,"11111111-1");\r
-  $worksheet2->write(4,1,"Juan Perez");\r
-  $worksheet2->write(4,2,"Los Paltos 200");\r
-  $worksheet2->write(4,3,"03-5552345");\r
-  $worksheet2->write(4,4,110);\r
-  // if you are writing a very long worksheet, you may want to use\r
-  // write_xxx() functions, instead of write() for performance reasons.\r
-  $worksheet2->write_string(5,0,"11111111-1");\r
-  $worksheet2->write_string(5,1,"Another Guy");\r
-  $worksheet2->write_string(5,2,"Somewhere 300");\r
-  $worksheet2->write_string(5,3,"03-5553456");\r
-  $worksheet2->write(5,4,108);\r
-\r
-\r
-  // Calculate some statistics\r
-  $worksheet2->write(7, 0, "Average Salary:");\r
-  $worksheet2->write_formula(7, 4, "= AVERAGE(E4:E6)");\r
-  $worksheet2->write(8, 0, "Minimum Salary:");\r
-  $worksheet2->write_formula(8, 4, "= MIN(E4:E6)");\r
-  $worksheet2->write(9, 0, "Maximum Salary:");\r
-  $worksheet2->write_formula(9, 4, "= MAX(E4:E6)");\r
-\r
-  //$worksheet2->insert_bitmap(0, 0, "some.bmp",10,10);\r
-\r
-  $workbook->close();\r
-?>
\ No newline at end of file