Beispiel #1
0
        ?>
">

			<div class="row">
				<label>Album to copy:</label>

				<p><?php 
        echo $album['name'];
        ?>
</p>
			</div>

			<div class="row">
				<label for="parentAlbumId">Destination:</label>
				<select name="parentAlbumId" id="parentAlbumId">
					<?php 
        echo obtainSelectAlbum($db, $currentUser['id'], $album['id']);
        ?>
				</select>
			</div>
			<div class="row">
				<input class="cancel" type="button" name="Cancel" value="Cancel"
					   onclick="history.back();">
				<input class="submit" type="submit" name="Save" value="Save">
			</div>


		</form>
		<?php 
    }
}
Beispiel #2
0
    $albumId = $_POST['albumId'];
    $projectUrl = $config['projectURL'];
    $site['title'] = 'Search';
    include_once dirname(__FILE__) . '/albumFunctions.php';
    if (!$phpunit['isTest']) {
        ?>
        <h2>Search</h2>
        <form class="searchForm searchPage" action="" method="post">
            <input type="text" name="keywords" placeholder="Search for..." value="<?php 
        echo $_POST['keywords'];
        ?>
">
            <select name="albumId" id="albumId">
                <option value="">All albums</option>
                <?php 
        echo obtainSelectAlbum($db, $currentUser['id'], '', $_POST['albumId']);
        ?>
            </select>
            <input type="submit" name="submit" value="search">
        </form>
        <?php 
    }
    if (trim($_POST['keywords'] != '')) {
        if (!$phpunit['isTest']) {
            ?>
                    <script type="text/javascript">
                        var track_load = 0; //total loaded record group(s)
                        var loading  = false; //to prevents multipal ajax loads
                        var album_id = <?php 
            echo json_encode($albumId);
            ?>