From: Edward Date: Thu, 13 Mar 2014 08:18:31 +0000 (+0800) Subject: SimpleExcel.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=e68c99e2912d9c14a9c5c1605bca2c32cecdc7f5;p=Pman.Core SimpleExcel.php --- diff --git a/SimpleExcel.php b/SimpleExcel.php index d8d4cf03..af21f3f7 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -329,12 +329,11 @@ class Pman_Core_SimpleExcel extends Pman $dataFormat == 'string' ) { if($worksheet_name == 'event' && $start_row == 2 && $c == 1){ $validator = $this->workbook->addValidator(); - $list = new Spreadsheet_Excel_Writer_Validation_List(); - $list->setList("a b c"); +// $validator->setList("a b c"); // $validator->_fixedList = 1; -// $validator->setFormula1('Q2:Q10'); + $validator->setFormula1('Q2:Q10'); - $this->worksheet->setValidation(2,1,2,1,$list); + $this->worksheet->setValidation(2,1,2,1,$validator); $this->start_row++; return $hasRender;