<thead> <tr role="row" class="heading"> <th width="80%" class="sorting">Name</th> <th width="20%">Actions</th> </tr> </thead> <tbody> <?php $result = mysql_query("SELECT * FROM `" . OPTIONS . "` WHERE `option_name` LIKE 'cms_%'"); while ($data = mysql_fetch_array($result)) { ?> <tr> <td><?php echo cms_name($data['option_name']); ?> </td> <td> <a href="edit-cms.php?cms=<?php echo $data['option_name']; ?> " class="btn btn-xs default btn-editable"><i class="fa fa-pencil"></i> Edit CMS</a> </td> </tr> <?php } ?> </tbody> </table>
<div class="col-md-12 "> <!-- BEGIN SAMPLE FORM PORTLET--> <div class="portlet box green "> <div class="portlet-title"> <div class="caption"> <i class="fa fa-reorder"></i> Edit CMS </div> </div> <div class="portlet-body form"> <form action="" method="post" class="form-horizontal form-bordered"> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3"><?php echo cms_name($_GET['cms']); ?> </label> <div class="col-md-9"> <textarea name="editor1" class="ckeditor form-control" rows="16"><?php echo get_the_option($_GET['cms']); ?> </textarea> </div> </div> </div> <input type="hidden" name="option" value="<?php echo $_GET['cms']; ?>