From e68c99e2912d9c14a9c5c1605bca2c32cecdc7f5 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 13 Mar 2014 16:18:31 +0800 Subject: [PATCH] SimpleExcel.php --- SimpleExcel.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.2