-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.php
43 lines (31 loc) · 812 Bytes
/
edit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/*
*@author mucheru
*
* Generate xlsforms from serialized form data
* (http://www.sitepoint.com/generate-excel-files-charts-phpexcel/)
* http://jsfiddle.net/hybrid13i/JXrwM/- CREATE EXCEL FROM JSON
*/
require('lib/PHPExcel.php');
require('lib/PHPExcel/IOFactory.php');
// new document
$excel = new PHPExcel();
// xlsform data
$testSurvey = array();
$testChoices = array();
$testSettings = array();
// file settings
$excel->getProperties()
->setCreator('mucheru')
->setTitle('xlsform-demo')
->setLastModifiedBy('mucheru')
->setDescription('Create & edit xlsform');
$excel = $ea->getSheet(0);
$excel->setTitle('survey');
$excel = $ea->getSheet(1);
$excel->setTitle('choices');
// settings anyone?
$excel = $ea->getSheet(2);
$excel->setTitle('settings');
//var_dump($excel);
?>