コード例 #1
0
            <div class="row">
                <div class="box col-md-12">
                    <div class="box-inner">
                        <div class="box-header well" data-original-title="">
                            <h2><i class="glyphicon glyphicon-edit"></i> Add / Edit Page Category</h2>


                        </div>
                        <div class="box-content">
                            <?php 
$id = Request::get("id");
if (is_numeric($id) && $id > 0) {
    $pagecategoryObj = new PageCategory();
    $pagecategoryObj->set("pagecategory_id", $id);
    $result = $pagecategoryObj->getName();
    if (count($result)) {
        $row = $result[0];
        $pagecategory_id = $row['id'];
        $pagecategory_name = $row['name'];
        $pagecategory_url = $row['url'];
        $pagecategory_status = $row['active'];
    }
}
?>
                            <div class="error"><?php 
echo Error::displayError();
?>
</div>
                            <form action="" method="POST" name="pagecategory_frm" id="pagecategory_frm">
                                <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">