echo $imgname; ?> " required id="nafn" class="form-control input-md"> </div> <div class="form-group col-xs-12 col-lg-3"> <label for="texti">Ummæli: </label> <textarea id="texti" form="reviewForm" name="texti" rows="1" cols="30" placeholder="Texti með mynd..." class="form-control input-md"><?php echo $imgdesc; ?> </textarea> </div> <div class="form-group col-xs-12 col-lg-2"> <label for="flokkur">Flokkur:</label> <select name="flokkur" id="flokkur" class="form-control"> <?php foreach ($dbCategories->categoryList() as $key2 => $value2) { ?> <option value="<?php echo $key2 + 1; ?> " <?php if ($dbImages->getImage($_GET["img"])[6] == $key2 + 1) { echo "selected='selected'"; } ?> ><?php echo $value2[1]; ?> </option> <?php }
<!-- /.panel-heading --> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="dataTables-example"> <thead> <tr> <th>ID </th> <th>Name</th> <th>Status</th> <th>Action`</th> </tr> </thead> <tbody> <?php foreach ($category->categoryList() as $a) { ?> <tr class="odd gradeX"> <td><?php echo $a['category_id']; ?> </td> <td><?php echo $a['name']; ?> </td> <td><?php echo $a['status']; ?>