$view->addScript("include/js/notice.js"); if (isset($_GET['replying'])) { ?> <div class="alert alert-success">回覆成功!</div> <?php } elseif (isset($_GET['editok'])) { ?> <div class="alert alert-success">編輯成功!</div> <?php } elseif (isset($_GET['banned'])) { ?> <div class="alert alert-danger">您被禁言無法發帖!</div> <?php } if (isset($_GET['reply'])) { $view->addCSS("include/js/cleditor/jquery.cleditor.css"); $view->addScript("include/js/cleditor/jquery.cleditor.min.js"); $view->addScript("include/js/cleditor/jquery.cleditor.icon.js"); $view->addScript("include/js/cleditor/jquery.cleditor.table.js"); ?> <script> $(function(){ $("#cleditor").cleditor({width:'99%', height:300, useCSS:true})[0].focus(); }); </script> <form action="forumview.php?id=<?php echo $_GET['id']; ?> &reply" method="POST" name="form1"> <div class="form-group"> <label for="content">回覆內容:</label>
//Connect form manager $main->setDict(new Dictionary()); //Connect dictionary $main->setStore(new Store()); //Connect Store $main->handleGet(); //Handle $_GET $main->handleDictionary(); //Handle Dictionary $main->handlePost(); //Handle $_POST $main->handleModule('KokxModule'); //Name of module class $main->addGoogleAnalytics('UA-46271379-4'); $main->addInfo(new Info($main->getDict()->getVal('OGotcha release'), Info::INFORMATION)); /** * Handle View */ $view = new View($main); //Create view $view->addCSS('main.css'); //Add style $renderd = $view->render(); //Render content echo $renderd; //Dispay content /* * http://pastebin.com/Fg1uhvU4 - Dutch * http://pastebin.com/1xzDcJm4 - English * http://pastebin.com/gT7PFkxK - English */