<div class="page-content">
	<div class="row">
		<div class="col-xs-12">
			<div class="row">
				<div class="col-xs-12">
					<h3 class="header smaller lighter blue">Data Galeri</h3>
					<div class="row">
						<div class="col-xs-12">
							<div>
								<div id="user-profile-2" class="user-profile">
                            		<div class='tabbable'>
                              			<ul class="nav nav-tabs padding-18">
                              				<li class='active'>
                                          		<a data-toggle='tab' href='#fp1'>
                                                 	<i class='green ace-icon fa fa-user bigger-120'></i>
                                                	Front Page 1
                                              	</a>
                                     		</li>

                                     		<li class='tab'>
                                          		<a data-toggle='tab' href='#fp2'>
                                                 	<i class='green ace-icon fa fa-user bigger-120'></i>
                                                	Front Page 2
                                              	</a>
                                     		</li>

                                     		<li class='tab'>
                                          		<a data-toggle='tab' href='#fp3'>
                                                 	<i class='green ace-icon fa fa-user bigger-120'></i>
                                                	Front Page 3
                                              	</a>
                                     		</li>

                                     		<li class='tab'>
                                          		<a data-toggle='tab' href='#fp4'>
                                                 	<i class='green ace-icon fa fa-user bigger-120'></i>
                                                	Front Page 4
                                              	</a>
                                     		</li>
                              			</ul>

                              			<div class="tab-content no-border padding-24">
                              				<div id="fp1" class="tab-pane in active">
                              					<div class="row">
                              							<?php
                              								$f1 = $front->frontpage1();
                              							?>
                                               			<form class="form-horizontal" role="form" action="view/view/modul/mod_front/aksi_front.php?aksi=fp1" method="post" >
            											<div class="col-xs-12">
											            	<div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Judul </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="Judul" name="judul" class="col-xs-10 col-sm-5" value="<?php echo $f1[judul]; ?>" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Keterangan </label>
											                    <div class="col-sm-9">
											                        <textarea placeholder="Keterangan" name="keterangan" data-provide="markdown" data-iconlibrary="fa" rows="10"><?php echo $f1[keterangan]; ?></textarea>
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											                <div class="clearfix form-actions">
											                    <div class="col-md-offset-3 col-md-9">
											                        <button class="btn btn-info" type="submit">
											                            <i class="ace-icon fa fa-check bigger-110"></i>
											                            Simpan
											                        </button>
											                        &nbsp; &nbsp; &nbsp;
											                    </div>
											                </div>
											            </div>
											        </form>
                                               	</div>
                              				</div>

                              				<div id="fp2" class="tab-pane">
                              					<div class="row">
                                               		<form class="form-horizontal" role="form" action="view/view/modul/mod_front/aksi_front.php?aksi=fp2" method="post" enctype="multipart/form-data" >
            											<div class="col-xs-12">
											            	<div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Judul </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="Judul" name="judul" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Keterangan </label>
											                    <div class="col-sm-9">
											                        <textarea id="form-field-1" placeholder="Keterangan" name="keterangan" class="col-xs-10 col-sm-5"></textarea>
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Gambar </label>
											                    <div class="col-sm-9">
											                        <input type="file" id="id-input-file-2" name="gambar" class="col-xs-4" />
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											                <div class="clearfix form-actions">
											                    <div class="col-md-offset-3 col-md-9">
											                        <button class="btn btn-info" type="submit" name="key" value="2">
											                            <i class="ace-icon fa fa-check bigger-110"></i>
											                            Simpan
											                        </button>
											                        &nbsp; &nbsp; &nbsp;
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											            	<table id="simple-table" class="table table-striped table-bordered table-hover">
								                                <thead>
								                                    <tr>
								                                    	<th>Judul</th>
								                                    	<th>Keterangan</th>	
								                                        <th>Gambar</th>
								                                        <th></th>
								                                    </tr>
								                                </thead>
								                                <tbody>
								                                    <?php
								                                        $p2 = $front->listfrontpage2();
								                                        while($i<count($p2)){
								                                            ?>
								                                                <tr>
								                                                	<td><?php echo"".$p2[$i][judul].""; ?></td>
								                                                	<td><?php echo"".$p2[$i][keterangan].""; ?></td>
								                                                    <td><img src="<?php echo $db->link(); ?>view/assets/img/<?php echo"".$p2[$i][gambar].""; ?>" width=100></td>
								                                                    <td>
								                                                        <div class="hidden-sm hidden-xs action-buttons">
								                                                            <a class="red" href="view/view/modul/mod_front/aksi_front.php?aksi=delete&id=<?php echo $p2[$i][id]; ?>">
								                                                                <i class="ace-icon fa fa-trash-o bigger-130"></i>
								                                                            </a>
								                                                        </div>
								                                                    </td>
								                                                </tr>
								                                            <?php
								                                            $i++;
								                                        }
								                                        unset($i);
								                                    ?>
								                                </tbody>
								                            </table>
											            </div>
											        </form>
                                               	</div>
                              				</div>

                              				<div id="fp3" class="tab-pane">
                              					<div class="row">
                                               			<form class="form-horizontal" role="form" action="view/view/modul/mod_front/aksi_front.php?aksi=fp3" method="post" enctype="multipart/form-data" >
            											<div class="col-xs-12">
											            	<div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Judul </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="Judul" name="judul" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Gambar </label>
											                    <div class="col-sm-9">
											                        <input type="file" id="id-input-file-2" name="gambar" class="col-xs-4" />
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											                <div class="clearfix form-actions">
											                    <div class="col-md-offset-3 col-md-9">
											                        <button class="btn btn-info" type="submit" name="key" value="2">
											                            <i class="ace-icon fa fa-check bigger-110"></i>
											                            Simpan
											                        </button>
											                        &nbsp; &nbsp; &nbsp;
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											            	<table id="simple-table" class="table table-striped table-bordered table-hover">
								                                <thead>
								                                    <tr>
								                                    	<th>Judul</th>	
								                                        <th>Gambar</th>
								                                        <th></th>
								                                    </tr>
								                                </thead>
								                                <tbody>
								                                    <?php
								                                        $p3 = $front->listfrontpage3();
								                                        while($i<count($p3)){
								                                            ?>
								                                                <tr>
								                                                	<td><?php echo"".$p3[$i][judul].""; ?></td>
								                                                    <td><img src="<?php echo $db->link(); ?>view/assets/img/rekanan/<?php echo"".$p3[$i][gambar].""; ?>" width=100></td>
								                                                    <td>
								                                                        <div class="hidden-sm hidden-xs action-buttons">
								                                                            <a class="red" href="view/view/modul/mod_front/aksi_front.php?aksi=delete&id=<?php echo $p3[$i][id]; ?>">
								                                                                <i class="ace-icon fa fa-trash-o bigger-130"></i>
								                                                            </a>
								                                                        </div>
								                                                    </td>
								                                                </tr>
								                                            <?php
								                                            $i++;
								                                        }
								                                        unset($i);
								                                    ?>
								                                </tbody>
								                            </table>
											            </div>
											        </form>
                                               	</div>
                              				</div>

                              				<div id="fp4" class="tab-pane">
                              					<div class="row">
                                               			<form class="form-horizontal" role="form" action="view/view/modul/mod_front/aksi_front.php?aksi=fp4" method="post" >
                                               			<?php
                              								$f4 = $front->frontpage4();
                              							?>	
                                               			<div class="col-xs-12">
											            	<div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Keterangan </label>
											                    <div class="col-sm-9">
											                        <textarea placeholder="Keterangan" name="keterangan" data-provide="markdown" data-iconlibrary="fa" rows="10"><?php echo $f4[keterangan]; ?></textarea>
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											                <div class="clearfix form-actions">
											                    <div class="col-md-offset-3 col-md-9">
											                        <button class="btn btn-info" type="submit" name="key" value="1">
											                            <i class="ace-icon fa fa-check bigger-110"></i>
											                            Simpan
											                        </button>
											                        &nbsp; &nbsp; &nbsp;
											                    </div>
											                </div>
											            </div>	
            											<div class="col-xs-12">
											            	<div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Judul </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="Judul" name="judul" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Keterangan </label>
											                    <div class="col-sm-9">
											                        <textarea id="form-field-1" placeholder="Keterangan" name="keterangan2" class="col-xs-10 col-sm-5"></textarea>
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> List 1 </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="List 1" name="list1" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> List 2 </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="List 2" name="list2" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> List 3 </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="List 3" name="list3" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											                <div class="form-group">
											                    <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> Harga </label>
											                    <div class="col-sm-9">
											                        <input type="text" id="form-field-1" placeholder="Harga" name="harga" class="col-xs-10 col-sm-5" />
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											                <div class="clearfix form-actions">
											                    <div class="col-md-offset-3 col-md-9">
											                        <button class="btn btn-info" type="submit" name="key" value="2">
											                            <i class="ace-icon fa fa-check bigger-110"></i>
											                            Simpan
											                        </button>
											                        &nbsp; &nbsp; &nbsp;
											                    </div>
											                </div>
											            </div>
											            <div class="col-xs-12">
											            	<table id="simple-table" class="table table-striped table-bordered table-hover">
								                                <thead>
								                                    <tr>
								                                    	<th>Judul</th>	
								                                    	<th>Keterangan</th>
								                                    	<th>List 1</th>
								                                    	<th>List 2</th>
								                                    	<th>List 3</th>
								                                        <th>Harga</th>
								                                        <th></th>
								                                    </tr>
								                                </thead>
								                                <tbody>
								                                    <?php
								                                        $p4 = $front->listfrontpage4();
								                                        while($i<count($p4)){
								                                            ?>
								                                                <tr>
								                                                	<td><?php echo"".$p4[$i][judul].""; ?></td>
								                                                	<td><?php echo"".$p4[$i][keterangan].""; ?></td>
								                                                	<td><?php echo"".$p4[$i][list1].""; ?></td>
								                                                	<td><?php echo"".$p4[$i][list2].""; ?></td>
								                                                	<td><?php echo"".$p4[$i][list3].""; ?></td>
								                                                    <td><?php echo"".$p4[$i][harga].""; ?></td>
								                                                    <td>
								                                                        <div class="hidden-sm hidden-xs action-buttons">
								                                                            <a class="red" href="view/view/modul/mod_front/aksi_front.php?aksi=delete&id=<?php echo $p4[$i][id]; ?>">
								                                                                <i class="ace-icon fa fa-trash-o bigger-130"></i>
								                                                            </a>
								                                                        </div>
								                                                    </td>
								                                                </tr>
								                                            <?php
								                                            $i++;
								                                        }
								                                        unset($i);
								                                    ?>
								                                </tbody>
								                            </table>
											            </div>
											        </form>
                                               	</div>
                              				</div>
                              			</div>
                              		</div>
                              	</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div><!-- /.col -->
	</div><!-- /.row -->
</div><!-- PAGE CONTENT ENDS -->