</tr> <?php if ($this->problem['action'] == 'edit') { ?> <tr> <td>永久删除</td> <td><input type="checkbox" name="remove" value="1"/></td> </tr> <?php } ?> <tr> <td>正文</td> <td> <?php NicEdit::show("text_content", true, "可视化模式", "HTML模式", true); ?> <textarea name="prob_content" id="text_content" cols="80" rows="20" ><?php echo $this->escape($this->problem['prob_content']); ?> </textarea> </td> </tr> </table> <input type="hidden" name="action" value="<?php echo $this->problem['action']; ?> " /> <input type="hidden" name="data" value="problem" /> <input type="submit" value="提交" /> </form>
public static function initialize() { self::$plugin_file = BFL_Register::getVar('plugin_file'); self::$plugin_path = MDL_Config::getInstance()->getVar('root_path') . self::$plugin_file; self::$plugin_request = MDL_Locator::getInstance()->getURL('plugin_request') . '/' . self::$plugin_name; }