[Smartupload-svn] [37] main画面作成

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 5月 9日 (月) 00:36:31 JST


Revision: 37
          http://sourceforge.jp/projects/smartupload/svn/view?view=rev&revision=37
Author:   hryksbt
Date:     2011-05-09 00:36:30 +0900 (Mon, 09 May 2011)

Log Message:
-----------
main画面作成
⇒アップロードが正常に出来てないので修正が必要

Modified Paths:
--------------
    trunk/SmartUpload/auth.php
    trunk/SmartUpload/download_file.php
    trunk/SmartUpload/main.php
    trunk/SmartUpload/upload_form.php
    trunk/SmartUpload/user_add.php
    trunk/SmartUpload/user_form.php


-------------- next part --------------
Modified: trunk/SmartUpload/auth.php
===================================================================
--- trunk/SmartUpload/auth.php	2011-05-06 14:35:10 UTC (rev 36)
+++ trunk/SmartUpload/auth.php	2011-05-08 15:36:30 UTC (rev 37)
@@ -31,6 +31,9 @@
 			<input type="submit"  value="ログイン" />
 			<input type="hidden" name="cmd" value="login"/>
 		</form>
+		<form action="user_form.php" >
+			<input type="submit" value="ユーザ登録">
+		</form>
 <?php
 	}
 

Modified: trunk/SmartUpload/download_file.php
===================================================================
--- trunk/SmartUpload/download_file.php	2011-05-06 14:35:10 UTC (rev 36)
+++ trunk/SmartUpload/download_file.php	2011-05-08 15:36:30 UTC (rev 37)
@@ -14,9 +14,7 @@
 <title>SmartUpload</title>
 </head>
 <body>
-	<p>
-		<b>ダウンロード</b>
-	</p>
+	<h2>ダウンロード</h2>
 	<?php
 
 	// メイン処理 //

Modified: trunk/SmartUpload/main.php
===================================================================
--- trunk/SmartUpload/main.php	2011-05-06 14:35:10 UTC (rev 36)
+++ trunk/SmartUpload/main.php	2011-05-08 15:36:30 UTC (rev 37)
@@ -14,5 +14,9 @@
 <title>SmartUpload</title>
 </head>
 <body>
+	<h1>Smart Upload</h1>
+	<iframe src=./auth.php scrolling=no frameborder=0 width=800 height=90></iframe>
+	<iframe src=./download_file.php scrolling=auto frameborder=0 width=800 height=200></iframe>
+	<iframe src=./upload_form.php scrolling=no frameborder=0 width=800 height=280></iframe>
 </body>
 </html>
\ No newline at end of file

Modified: trunk/SmartUpload/upload_form.php
===================================================================
--- trunk/SmartUpload/upload_form.php	2011-05-06 14:35:10 UTC (rev 36)
+++ trunk/SmartUpload/upload_form.php	2011-05-08 15:36:30 UTC (rev 37)
@@ -15,9 +15,7 @@
 <title>SmartUpload</title>
 </head>
 <body>
-	<p>
-		<b>アップロード</b>
-	</p>
+	<h2>アップロード</h2>
 	<form method="post" enctype="multipart/form-data" action="upload_file.php">
 	<pre>
 コンテンツ名	:<input type="text" name="mail"> ※ 全角32文字以内<br>

Modified: trunk/SmartUpload/user_add.php
===================================================================
--- trunk/SmartUpload/user_add.php	2011-05-06 14:35:10 UTC (rev 36)
+++ trunk/SmartUpload/user_add.php	2011-05-08 15:36:30 UTC (rev 37)
@@ -24,8 +24,10 @@
 
 		if ($_SESSION["id"]) {
 
-			print("すでにログインしています");
-
+			print("すでにログインしています<br>");
+	?>
+			<input type="button" value="戻る" onClick="history.back()">
+	<?php
 		} elseif ($_REQUEST["id"]=="") {
 
 			print('Error:');
@@ -66,6 +68,11 @@
 			$row = $stmt->fetch(PDO::FETCH_ASSOC);
 
 			print($row['fullname']." "."さんのユーザ登録が完了しました。");
+	?>
+			<form action="main.php" >
+				<input type="submit" value="戻る">
+			</form>
+	<?php
 
 		}
 

Modified: trunk/SmartUpload/user_form.php
===================================================================
--- trunk/SmartUpload/user_form.php	2011-05-06 14:35:10 UTC (rev 36)
+++ trunk/SmartUpload/user_form.php	2011-05-08 15:36:30 UTC (rev 37)
@@ -2,7 +2,7 @@
 /*
  * SmartUpload/user_form.php
  * @author Hiroyuki Shibata
- * 2011/05/05
+ * 2011/05/06
  * Rev 1.0
  *
  */
@@ -17,31 +17,40 @@
 	<?php
 	if ($_SESSION["id"]) {
 
-		print("すでにログインしています");
-
+		print("すでにログインしています<br>");
+	?>
+		<input type="button" value="戻る" onClick="history.back()">
+	<?php
 	} else {
 	?>
-		<p>
-			<b>ユーザー登録</b>
-		</p>
+		<h2>ユーザー登録</h2>
 		<form name="user_form" action="./user_add.php" method="post">
 			<pre>
 ID(アカウント)	:<input type="text" name="id"> ※ 半角32文字以内<br>
 パスワード	:<input type="password" name="pass"> ※ 半角英数字32文字以内<br>
 氏名		:<input type="text" name="name"> ※ 全角32文字以内(半角64文字以内)<br>
 国		:<select name="country">
-	<option value="001">アメリカ</option>
-	<option value="002">日本</option>
-	<option value="003">中国</option>
-	<option value="004">インド</option>
-	<option value="005">インドネシア</option>
-	<option value="006">ブラジル</option>
+	<?php
+	require_once("include/database.php");
+
+	$value = 0;
+
+	$stmt = $db->prepare("SELECT * FROM country");
+	$stmt->execute();
+
+	while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
+	?>
+		<option value="<?php print($row["num"]); ?>">
+			<?php print($row["country_name"]); ?>
+		</option>
+	<?php
+	}
+	?>
 </select>
 <br>
 メールアドレス	:<input type="text" name="mail"> ※ 半角64文字以内<br>
 
-<input type="submit" class="update" value="登録" /> <input type="reset"
-				value="リセット">
+<input type="submit" class="update" value="登録" /> <input type="reset"  value="リセット">
 			</pre>
 		</form>
 	<?php



Smartupload-svn メーリングリストの案内
Back to archive index