-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
127 lines (124 loc) · 4.12 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
include("connection/connect.php");
include("functions/user.func.php");
include("functions/article.func.php");
print_r(getUser(1));
?>
<html>
<head>
<!--// SITE META //-->
<meta charset="UTF-8" />
<title>ማሕበር ኪዳነ ምሕረት - ካምፓላ</title>
</head>
<body>
<?php include("header.php"); ?>
<div style="height:80px; line-height:80px; background: whitesmoke;">
<div class="marginer" style="width:90%; margin:auto;">
<h2 class="left">ቅድመ ገጽ</h2>
<div class="right" style="line-height:64px; height:100%; display: table-cell;
vertical-align: middle;">
<i class="ion-search" style="font-size:16px; margin-right:10px;" ></i>
<input type="search" style="margin-top: 22px;" placeholder="ጽሑፋት ድለ"/></div>
<div class="clear"></div>
</div>
</div>
<div class="content">
<!-- <div class="marginer" style=""> -->
<div class="left-sidebar left" style="width:20%; padding-top:30px;">
<!-- <div style="width:95%;">
<ul class="left-nav">
<li>fasdf</li>
<li>adsf</li>
<li>afdadf</li>
<li>dsfa</li>
</ul>
</div> -->
<section>
<p>ኢሜል ሳብስክሪብሽን</p>
<span id="msg"></span>
<input type="text" class="views" id="emailid" placeholder="[email protected]"/><p/>
<input type="button" value="ሳብስክራይብ" id="btnid" class="button"/>
</section>
<section>
<p>ሕቶ ወይ ርእይቶ</p>
<textarea rows="10" class="views" placeholder="ሕቶ ወይ ርእይቶ..."></textarea></p>
<input type="button" value="ስደድ" class="button"/>
</section>
<section>
<div class="left social-icons">
<a href="#"><img src="facebook.png"/></a>
</div>
<div class="left social-icons">
<a href="#"><img src="twitter.png"/></a>
</div>
<div class="left social-icons">
<a href="#"><img src="youtube.png"/></a>
</div>
<div class="clear"></div>
</section>
</div>
<div class="mainContent left">
<div style="background: white; border-radius:5px; margin:auto; overflow:hidden;">
<?php
$articles=getArticles();
$count=count($articles);
for($i=0; $i < $count; $i++){
?>
<div class="articleBox">
<h3><a href="article.php?id=<?php echo $articles[$i]['article_id']; ?>"><?php echo $articles[$i]['article_title']; ?></a></h3>
<div><?php echo gmdate("d-M-Y",$articles[$i]['date_created']); ?></div>
<hr></hr>
<div class="shortDesc">
<?php
$articleShort=getArticleShort($articles[$i]['article_id']);
echo $articleShort['article_short'];
?>
</div>
<div class="articleBoxBottom">
<a href="article.php?id=<?php echo $articles[$i]['article_id']; ?>" class="readMoreButton">ምሉእ ትሕዝቶ</a><div class="clear"></div>
</div>
</div>
<?php
}
?>
</div>
</div>
<div class="mainRight right">
<section>
<div class="quoteOfTheDay" id="inlineDatepicker">
<!-- <p>ንይ ሎሚ ትምህርቲ</p>
<div class="quoteOfTheDayText">
ንጽባሕቱ ሰዓት 5 ድ.ቀ ሳሚ ካብ ዲያቆን ዘተቀበላ ደብዳቤ ተሰኪሙ ናብ እንዳ ቤዛ ከደ። ቤዛ ጸብሒ ክስትሰርሕ ከም ዝጸንሐት እቲ ካብ ርሑቅ ኮንካ ዝሽትት ዘነበረ ጨና ሽሮ ይምስክር። ናይ ኽሽነ ኣቁሑት
</div>
<p class="quoteOfTheDayVerse">ማት 15:15-65</p> -->
</div>
<a href="#" id="date8">8</a>
</section>
<section>
<p>ናይ ሎሚ በዓል</p>
<p style="font-size: 16px;
word-wrap: break-word;
line-height: 25px;">ንጽባሕቱ ሰዓት 5 ድ.ቀ ሳሚ ካብ ዲያቆን ዘተቀበላ ደብዳቤ ተሰኪሙ ናብ እንዳ ቤዛ ከደ።</p>
</section>
<section class="pastArticles">
<p>ዝሓለፋ ጽሑፋት</p>
<ul class="left-nav">
<?php $articles=getArticles(10); ?>
<?php
$count=count($articles);
for($i=0; $i < $count; $i++){
?>
<a href="article.php?id=<?php echo $articles[$i]['article_id']; ?>"><li title="<?php echo $articles[$i]['article_title']; ?>"><?php echo $articles[$i]['article_title']; ?></li></a>
<?php
}
?>
</ul>
</section>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<?php //include("info.php"); ?>
<?php include("footer.php"); ?>
</body>
</html>