コード例 #1
0
		<div class="row mt centered " id="menuwork">	
			<div class="col-lg-8 col-lg-offset-2 centered">
				<h3>INSERT WORK</h3>
				<hr><br>
				<form action="../controller/work_controller.php" method="POST">
					<input class="form-control" type="text" name="title" id="title" placeholder="Title"><br>
					<textarea class="form-control" type="text" name="description" id="description" placeholder="Description"></textarea><br>
					<input class="form-control" type="date" name="date" id="date"><br>
					<input class="form-control" type="text" name="url" id="url" placeholder="Url"><br>

					<select class="form-control" name="avatar" id="avatar">
						<option value="null">Select image...</option>
						
						<?php 
$optionList = getAllImages();
echo $optionList;
?>

					</select>

					<input class="form-control" type="hidden" name="action" id="action" value="insert_work">

					<br>
					<input type="submit" class="btn btn-success" value="Insert Project">
				</form>
			</div>
		</div><!-- /row -->
	
		<div class="row mt centered " id="menuwork">	
			<div class="col-lg-8 col-lg-offset-2 centered">
コード例 #2
0
ファイル: dz7.php プロジェクト: AnnaOzer/shp-php1
<?php

include_once __DIR__ . '/files/dz7functionsDb.php';
include_once __DIR__ . '/files/dz7functionsFiles.php';
$images = getAllImages($config);
?>
<!--Загрузка файлов на сервер - форма-->

<form method="post" enctype="multipart/form-data" action="dz7loader.php">
    Файл: <input type="file" name="image"><br>
    Описание: <input type="text" name="descr"><br>
    <input type="submit" value="Отправить">
</form>

<?php 
foreach ($images as $image) {
    ?>
    <div style="display: inline-block; border-radius: 20px; border: dashed 1px green; margin: 20px;">
        <div style="margin: 20px;"><?php 
    echo $image['descr'];
    ?>
</div>
        <div style="margin: 20px;"><img src="<?php 
    echo $config['files']['galleryDir'] . '/' . $image['file'];
    ?>
" width="300"></div>
    </div>
<?php 
}
コード例 #3
0
ファイル: data.php プロジェクト: perrr/svada
} elseif ($_GET['action'] == 'getRecentMessages') {
    getRecentMessages();
} elseif ($_GET['action'] == 'getNextMessages') {
    getNextMessages($_POST['lastTimestamp']);
} elseif ($_GET['action'] == 'setStatus') {
    setStatus($_SESSION['user']['id'], $_POST['status']);
} elseif ($_GET['action'] == 'logOn') {
    logOn($_SESSION['user']['id']);
} elseif ($_GET['action'] == 'getAllUsers') {
    getAllUsers();
} elseif ($_GET['action'] == 'editMessage') {
    editMessage($_SESSION['user']['id'], $_POST['message'], $_POST['content']);
} elseif ($_GET['action'] == 'getAllEmoticons') {
    getAllEmoticons();
} elseif ($_GET['action'] == 'getAllImages') {
    getAllImages();
} elseif ($_GET['action'] == 'getTopic') {
    getTopic();
} elseif ($_GET['action'] == 'getOnlineUsers') {
    getOnlineUsers();
} elseif ($_GET['action'] == 'setProfilePicture') {
    setUserImage($_SESSION['user']['id'], $_POST['image']);
} elseif ($_GET['action'] == 'setStatusMessage') {
    setStatusMessage($_SESSION['user']['id'], $_POST['statusMessage']);
} elseif ($_GET['action'] == 'setDisplayName') {
    setDisplayName($_SESSION['user']['id'], $_POST['displayName']);
} elseif ($_GET['action'] == 'setHighPriorityUserInformation') {
    setHighPriorityUserInformation($_SESSION['user']['id'], $_POST['status'], $_POST['isTyping']);
} elseif ($_GET['action'] == 'setLowPriorityUserInformation') {
    setLowPriorityUserInformation($_SESSION['user']['id'], $_POST['statusMessage'], $_POST['imageId']);
} elseif ($_GET['action'] == 'searchMessages') {