コード例 #1
0
ファイル: poi.php プロジェクト: stefda/pocketsail
 /**
  * @AjaxCallable=TRUE
  * @AjaxMethod=POST
  * @AjaxAsync=TRUE
  */
 function getTemplate()
 {
     $cat = filter_input(INPUT_POST, 'cat', FILTER_SANITIZE_STRING);
     $sub = filter_input(INPUT_POST, 'sub', FILTER_SANITIZE_STRING);
     $name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING);
     $label = filter_input(INPUT_POST, 'label', FILTER_SANITIZE_STRING);
     $attrs = filter_input(INPUT_POST, 'attrs', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY);
     $poi = new stdClass();
     $poi->name = $name;
     $poi->label = $label;
     $this->assign('poi', $poi);
     $this->assign('attrs', json_decode(json_encode($attrs)));
     return include_edit_template($cat, $sub);
 }
コード例 #2
0
ファイル: add.php プロジェクト: stefda/pocketsail
            <img src="/application/images/logo.png" style="margin: 14px 0 0 16px;" />
        </div>

        <div style="width: 900px; margin: 0 auto;">

            <div style="padding-top: 80px;">

                <div id="header" class="tpl-header">
                    <div id="canvasWrapper">
                        <div id="canvasResizeButton"></div>
                        <div id="canvas"></div>
                    </div>
                    <div id="gallery" class="tpl-gallery"></div>
                </div>

            </div>

            <div>
                <?php 
echo include_edit_template($poi->cat, $poi->sub);
?>
            </div>

        </div>

        <div style="clear: both; width: 100%; height: 100px; background-color: #e9eaeb; margin-top: 40px; padding-top: 20px;">

        </div>

    </body>
</html>