Example #1
0
									<button type="button" class="edit-image-buttons btn btn-primary btn-small" data-toggle="modal" data-target="#myModal" data-id="' . $img['id'] . '" data-desc="' . $img['description'] . '">									
								  Edit
								</button>
								<a href=deleteimage.php?id=' . $img['id'] . ' class="edit-image-buttons btn btn-warning btn-small">Delete</a>
									</div>';
        }
    }
    echo $out;
} else {
    //show the album list
    $allAlbums = CreateAlbum::getAlbums();
    if (!empty($allAlbums)) {
        $out = '<table class="table table-striped"><tr><th>Taken Date</th><th>Taken place</th><th>Created Date</th><th>Name Of The Album</th><th>Tag</th><th>Description</th><th>Edit</th><th>Delete Album</th></tr>';
        foreach ($allAlbums as $album) {
            $out = $out . '<tr><td>' . CreateAlbum::getDate($album['date']) . '</td><td>' . $album['place'] . '
                                </td><td>' . CreateAlbum::getDate($album['create_time']) . '
                                </td><td><a href="editAlbum.php?id=' . $album['id'] . '">' . $album['name'] . '
                                </a></td><td>' . $album['tag'] . '</td><td>' . $album['adescription'] . '
                                </td>
                                <td>
                                <button type="button" class="btn btn-primary btn-small" data-toggle="modal" data-target="#myModal2"
                                 data-alid="' . $album['id'] . '" data-atag="' . $album['tag'] . '" data-alname="' . $album['name'] . '" data-aldesc="' . $album['adescription'] . '">Edit</button>
                                </td>
                                <td><a class="btn btn-warning" href="deletealbum.php?id=' . $album['id'] . '">Delete</a></td></tr>';
        }
        $out = $out . '</table>';
        echo '<div class="col-lg-12">
                                <h2 class="headerfont">You have following albums</h2>' . $out . '</div>';
    }
}
?>
Example #2
0
    $lval = $tmp_val;
    foreach ($images as $image) {
        $left = $lval;
        $lval += $tmp_val;
        $top = rand(0, 150);
        $rot = rand(-40, 40);
        $out = $out . '<a id="pic-' . $i++ . '" class="fancybox pic" style="top:' . $top . 'px;left:' . $left . '%; -moz-transform:rotate(' . $rot . 'deg); -webkit-transform:rotate(' . $rot . 'deg);" rel="gallery-' . $album['id'] . '" href="' . $image['path'] . '" title="' . implode(' ', array_slice(explode(' ', $image['description']), 0, 20)) . '..">
                                <img src="' . $image['thumb_path'] . '" alt="" class="image-thumb-small" />
                            </a>';
    }
    echo $out;
    echo '
					</div>
                        
	                       <h3 class="headerfont"><i class="fa fa-camera"></i> &nbsp; <a class="gotoingleAlbum" href="albums.php?albumId=' . $album['id'] . '">' . $album['name'] . '</a></h3>
			                        <h5 class="albDesc"> <i class="fa fa-calendar"></i> &nbsp; ' . CreateAlbum::getDate($album['create_time']) . '  &nbsp; | &nbsp;<i class="fa fa-anchor"></i> &nbsp; ' . $album['place'] . ' &nbsp; | &nbsp; <i class="fa fa-tag"></i>&nbsp;<a href="catagory.php?catname=' . $album['tag'] . '" class="tag">' . $album['tag'] . ' </a>
									</h5>
			                       
			                        <p class="albDesc">' . implode(' ', array_slice(explode(' ', $album['adescription']), 0, 20)) . '... </p>
	
	                    </div>
					
					';
}
?>
            	</div>
            	
               
                <a class="btn btn-default more-button" href="albums.php" role="button">More</a>
            </div>
        </div>
                        </form>





                    </div>



                    <?php 
$allAlbums = CreateAlbum::getAlbums();
if (!empty($allAlbums)) {
    $out = '<table class="table table-striped"><tr><th>Taken Date</th><th>Taken place</th><th>Created Date</th><th>Name Of The Album</th><th>Tag</th><th>Description</th></tr>';
    foreach ($allAlbums as $album) {
        $out = $out . '<tr><td>' . CreateAlbum::getDate($album['date']) . '</td><td>' . $album['place'] . '</td><td>' . CreateAlbum::getDate($album['create_time']) . '</td><td><a href="editAlbum.php?id=' . $album['id'] . '">' . $album['name'] . '</a></td><td>' . $album['tag'] . '</td><td>' . $album['adescription'] . '</td></tr>';
    }
    $out = $out . '</table>';
    echo '<div class="col-lg-12">
                                <h2 class="headerfont">You have following albums</h2>' . $out . '</div>';
}
?>




                </div>
<!--                 /.row -->

            </div>
            <!-- /.container-fluid -->