comparison models/extractapp.php @ 83:7b05275b7a70 extractapp

book_id as string in postdata
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 23 Apr 2015 15:26:48 +0200
parents 23b6bd897777
children ecc4b22e9b05
comparison
equal deleted inserted replaced
82:23b6bd897777 83:7b05275b7a70
161 } 161 }
162 if (isset($_postdata['bookName'])) { 162 if (isset($_postdata['bookName'])) {
163 $this->book_name = $_postdata['bookName']; 163 $this->book_name = $_postdata['bookName'];
164 } 164 }
165 if (isset($_postdata['bookId'])) { 165 if (isset($_postdata['bookId'])) {
166 $book_id = $_postdata['bookId']; 166 $this->book_id = $_postdata['bookId'];
167 if ($book_id > 10000) {
168 // pass
169 } else if ($book_id >= 1000) {
170 $book_id = '0'.(string)$book_id;
171 } else {
172 $book_id = '00'.(string)$book_id;
173 }
174
175 $this->book_id = (string)$book_id;
176
177 } 167 }
178 if (isset($_postdata['currentFileId'])) { 168 if (isset($_postdata['currentFileId'])) {
179 $this->current_fileId = $_postdata['currentFileId']; 169 $this->current_fileId = $_postdata['currentFileId'];
180 } 170 }
181 if (isset($_postdata['taglistArray'])) { 171 if (isset($_postdata['taglistArray'])) {