Permalink
Browse files

4��/��۾� ����ȭ(������)/����ϱ⺻�����/�-����� �����(core)�̾Ƴ�

  • Loading branch information...
unknown
unknown committed Jan 4, 2013
1 parent aa37835 commit 18582ee8d252ca406cb879c530a7be23230b2a85
View
442 a.php

Large diffs are not rendered by default.

Oops, something went wrong.
View
6 b.php

This file was deleted.

Oops, something went wrong.
View
@@ -8,7 +8,8 @@
<title>사탕화면</title>
<meta name="description" content="디자인 스튜디오 사탕화면 포트폴리오 사이트" />
<meta name="author" content="슈가루이(sugarui)" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="shortcut icon" href="./sugaruinet/image/favicon.ico" />
<link rel="apple-touch-icon" href="./sugaruinet/image/apple-touch-icon@2x.png" />
@@ -17,9 +18,10 @@
<link rel="stylesheet" media="screen and (max-width: 700px)" href="./sugaruinet/style/style_narrow.css" />
<link rel="stylesheet" media="screen and (min-width: 701px)" href="./sugaruinet/style/style.css" />
-->
<!--
<script type="text/javascript">
window.onResize = function() {
// Calculate the height of the body, ubstract the height of the head and apply to all columns
}
</script>
</script>
-->
View
BIN +2.95 KB image/navshadow.png
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -54,8 +54,6 @@
$result = mysql_query($sql);
?>
<!--네비게이션 : 웹-->
<div class="nav_web">
<ul>
<li><!--카테고리-->
<div class="nav_main">
@@ -170,13 +168,6 @@
</li>
</ul>
</div>
<!--네비게이션 : 모바일-->
<div class="nav_mob">
</div>
</nav>
</div>
@@ -251,69 +242,12 @@
<div class="con">
<?php
// 페이지당 출력수 결정, 페이지넘버 산출
$num_posts_display = 5; //디피수
if(!$_GET['page']){$_GET['page'] = 1;} //페이지 파라미터가 없을경우 1로 세팅!!!
$num_pages_pre = $_GET['page'] -1; //앞선페이지수는 현제페이지 -1
$num_posts_offset = $num_posts_display * $num_pages_pre; //오프셋수는 디피수x앞선페이지수
//리소스 획득 : Table(포스트) 에서 본 페이지에 출력할 전체 열, 오프셋된 일부 행
/// 쿼리문 웨어부 조건 및 내용 설정
if($_GET['tag']){
$where = "WHERE p.{$paraname} like '%{$paravalue}%'";
}else if($paravalue){
$where = "WHERE p.{$paraname} = '{$paravalue}'";
}else{
$where = " ";
}
/// 쿼리문
$sql = "
SELECT p.*, c.cate_expression FROM su_post_01 AS p LEFT JOIN su_cate_01 AS c ON p.cate = c.cate"." ".
$where." "."
ORDER BY id_intent DESC, worked DESC LIMIT {$num_posts_display} OFFSET {$num_posts_offset}
";
$result = mysql_query($sql);
//출력 : 받은 데이터 양 만큼 : post.php(디자인된박스)에 담아서!
while ($row = mysql_fetch_array($result) ){
if(!$_GET['special']){ //스페셜이 없을 때만
echo"
<div class=\"postbox\">
<div class=\"dogear\">
<img src=\"./sugaruinet/image/dogear.png\">
</div>
<div class=\"post\">
";
include './sugaruinet/post.php';
echo"
</div>
</div>
";
}
}
////// 스페셜 /////
//쿼리문
$sql_special = "SELECT * FROM su_special_01 WHERE `special` = '{$_GET['special'] }' ";
$result_special = mysql_query($sql_special);
// 스페셜 출력 : 받은 데이터 양 만큼 : post.php(디자인된박스)에 담아서!
while ($row_special = mysql_fetch_array($result_special) ){
echo "
<div class=\"postbox\">
<div class=\"dogear\">
<img src=\"./sugaruinet/image/dogear.png\">
</div>
<div class=\"post\">
";
include './sugaruinet/post_special.php';
echo "
</div>
</div>
";
}
// DB로부터 컨텐츠 셀렉트
include './sugaruinet/select.php';
//출력
while ($row = mysql_fetch_array($result) ){
include './sugaruinet/post.php';
}
?>
<script type="text/javascript">//자료참조 http://hosting.websearch.kr/38
View
@@ -3,10 +3,10 @@
<head>
<?php
include_once ('./sugaruinet/head.php')
?>
<link rel="stylesheet" type="text/css" href="./sugaruinet/style/style_space.css" />
<link rel="stylesheet" type="text/css" href="./sugaruinet/style/style.css" />
include ('./sugaruinet/head.php')
?>
<link rel="stylesheet" type="text/css" href="./sugaruinet/style/style_space.css" />
<link rel="stylesheet" type="text/css" href="./style/style_m.css" />
<link href='http://fonts.googleapis.com/css?family=Merriweather' rel='stylesheet' type='text/css'> <!--숫자웹폰트-->
</head>
@@ -16,10 +16,85 @@
?>
<body>
<img src="./sugaruinet/image/logo_mob.png" />
<div class= "ddd" style = "height: 90px; background-color: #ff0000; width: 100%" >
</div>
<header>
<img src="./sugaruinet/image/logo_mob.png" alt="사탕화면로고" style="width: 100%" />
</header>
<nav>
<ul class="menu" id="menu">
<li>
<?php
//현메뉴확인
if(!$_GET['special']){
echo "<a href=\"?cate={$row['cate']}\" style=\"color:#dc2276; \">";
}else{
echo "<a href=\"?cate={$row['cate']}\" >";
}
//출력
if(!$_GET['cate']){
echo 'All works';
}else{ //방법을 몰라서 일단 직접 적음
if ($_GET['cate']==='guiat') { $display = 'GUI at work'; }
else if ($_GET['cate']==='guiafter') { $display = 'GUI after work'; }
else if ($_GET['cate']==='drawing') { $display = '일러스트'; }
else if ($_GET['cate']==='toon') { $display = '만화'; }
else if ($_GET['cate']==='writing') { $display = ''; }
else if ($_GET['cate']==='etc') { $display = '기타'; }
echo $display;
}
echo "&nbsp;&nbsp;▼";
echo "</a>";
?>
<ul>
<?php
$sql = 'SELECT * FROM `su_cate_01` ORDER BY id_intent';
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)){
if($_GET['cate']){ //카테값이 없을 경우 all을 포함한 모든카테고리 출력
echo "<li><a href=\"?cate={$row['cate']}\">{$row['cate_expression']}</a></li>";
}else if($row['cate']){ //카테값이 있을 경우 카테필드값이 있을경우(all 외 전부) 만 출력
echo "<li><a href=\"?cate={$row['cate']}\">{$row['cate_expression']}</a></li>";
}
}
?>
</ul>
</li>
<li>
<?php
//현메뉴확인
if($_GET['special']){
echo "<a href=\"?special=about&cate={$_GET['cate']}\" style=\"color:#dc2276;\" >";
}else{
echo "<a href=\"?special=about&cate={$_GET['cate']}\">";
}
echo "About";
echo "</a>";
?>
</li>
<li>
<a href="https://www.facebook.com/sugaruipage" style="margin-right: 20px;" target="_blank">Note</a>
</li>
</ul>
</nav>
<div class="navshadow"></div>
<article>
<?php
// 파라미터 기준 설정(카테냐,태그냐,아이디냐)
//그래도 select.php 중 special이 없느 else 에서 이 변수를 써야하니까 지정.
$paraname = 'cate';
$paravalue = $_GET['cate'];
// DB로부터 컨텐츠 셀렉트
include './sugaruinet/select.php';
//출력
while ($row = mysql_fetch_array($result) ){
include './sugaruinet/post_m.php'; //와꾸는 post_m이지만 그속에 post_core는 웹과같다.
//echo "<div class=\"border_1\"></div> <div class=\"border_2\"></div> ";
}
?>
</article>
</body>
</html>
Oops, something went wrong.

0 comments on commit 18582ee

Please sign in to comment.