Exemple #1
0
            <div class="col-lg-6 col-lg-offset-3">
                <?php 
require_once VIEWS . 'message.php';
?>
 
                <form class="form-horizontal" action="<?php 
echo URL;
?>
post/addCategory" method="post">
                    <div class="form-group">
                        <div class="col-md-2">
                            <label for="category_id">Type</label>
                        </div>
                        <div class="col-md-10">
                            <?php 
echo SKS\UTIL\FormUtil::SelectBox("post_type", "", \SKS\UTIL\ConstantUtil::getPostTypeList(), "key", "value");
?>
                        </div>
                    </div><!-- End form group -->  
                    <div class="form-group">
                        <div class="col-md-2">
                            <label for="category_id">Category</label>
                        </div>
                        <div class="col-lg-10">
                            <?php 
echo SKS\UTIL\FormUtil::Text("name", $this, "category->name", "Category Name");
?>
                        </div>
                    </div><!-- End form group -->                 

                    <div class="form-group">
Exemple #2
0
<?php

echo SKS\UTIL\FormUtil::SelectBox("category_id", "", $this->categories, "id", "name");