| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | function dispKrzipSearchForm($api_handler) |
||
| 22 | { |
||
| 23 | $oKrzipModel = getModel('krzip'); |
||
| 24 | $module_config = $oKrzipModel->getConfig(); |
||
| 25 | $module_config->sequence_id = ++self::$sequence_id; |
||
| 26 | if(!isset($api_handler) || !isset(self::$api_list[$api_handler])) |
||
| 27 | { |
||
| 28 | $api_handler = $module_config->api_handler; |
||
| 29 | } |
||
| 30 | |||
| 31 | Context::set('template_config', $module_config); |
||
| 32 | $this->setTemplateFile('searchForm.' . self::$api_list[$api_handler]); |
||
| 33 | $this->setLayoutPath('./common/tpl/'); |
||
| 34 | $this->setLayoutFile('popup_layout'); |
||
| 35 | } |
||
| 36 | } |
||
| 40 |