Professional Documents
Culture Documents
The success of this project would not have been possible without the kind support and
assistance of many individuals and organizations, and we are immensely blessed to
have got this all along the duration of our project. We would like to extend our
profound gratitude to each and every one of them.
We are highly indebted to New Summit College for constant guidance and
supervision, as well as for providing all the necessary ICT infrastructure and friendly
environment for the successful completion of the project. We are also appreciative of
the efforts of B.Sc. CSIT coordinator Mr. Kumar Poudyal, without his supporting
role, the project would have been nowhere near completion.
We would like to express our gratitude to our project supervisor Mr. Shovit Sharma
who took keen interest on our project and guided us throughout the project by
providing all the necessary ideas, information and knowledge for the developing a
functional web application. Our special thanks to Mr. Romkant Pandey for his
constant encouragement and guidance towards making this report standard as per the
norms and values.
We are thankful and fortunate enough to get constant support from our seniors and
every teaching staff of B.Sc. CSIT department which helped us successfully complete
our project. We would also like to extend our regards to all the non-teaching staff of
B.Sc. CSIT department for their timely support.
Last but not the least, our thanks and appreciations also go to each and every one of
our colleagues for their encouragement and support in developing the project.
Members of Hamro-Krishi
iv
ABSTRACT
The world is changing every second thanks to the enormous growth of Information
and Communications Technology. Today, everything is at our fingertips. Even a little
effort of technology can make a huge difference; new heights can be reached and new
standards can be set. Hamro-Krishi is an innovation that aims to bring about effective
outcomes on Agriculture through the use of technology.
v
Table of Contents
Acknowledgement .................................................................................................................... iv
ABSTRACT............................................................................................................................... v
List of Figures ......................................................................................................................... viii
List of Table .............................................................................................................................. ix
List of Abbreviations ................................................................................................................. x
CHAPTER I ............................................................................................................................... 1
1. INTRODUCTION ............................................................................................................. 1
1.1 Background ................................................................................................................ 1
1.2 Problem Statement ..................................................................................................... 2
1.3 Objectives: ................................................................................................................. 2
1.4 Scope and Limitation: ................................................................................................ 3
1.4.1 Scope:................................................................................................................. 3
1.4.2 Limitation:.......................................................................................................... 3
Chapter II ................................................................................................................................... 4
2. Requirements Analysis: ..................................................................................................... 4
2.1 Study of existing system ............................................................................................ 4
2.2 DATA COLLECTION METHODS .......................................................................... 5
2.2.1 Source of Data: .................................................................................................. 5
2.3 Requirement Specification ......................................................................................... 7
2.3.1 Functional Requirements ................................................................................... 7
2.3.2 Non Functional Requirements: .......................................................................... 8
2.4 Feasibility Analysis .................................................................................................... 9
2.4.1 Technical Feasibility: ......................................................................................... 9
2.4.2 Operational Feasibility: ...................................................................................... 9
2.4.3 Economic Feasibility: ........................................................................................ 9
Chapter III ................................................................................................................................ 11
3. System Planning............................................................................................................... 11
3.1 Software Development Model or Methods: ............................................................. 11
3.1.1 Main Activities of the Software ....................................................................... 13
3.2 Work Breakdown Structure: .................................................................................... 15
............................................................................................................................................. 15
3.3 Resource Requirement (Cost Estimation): ............................................................... 15
3.4 Time Scheduling (Gantt chart):................................................................................ 17
4. System Design: ................................................................................................................ 18
4.1 System Architecture and Overview: ........................................................................ 18
4.2 System Diagrams: .................................................................................................... 19
4.2.1 Flowchart: ........................................................................................................ 19
4.2.2 DFD (Data Flow Diagram): ............................................................................. 20
4.2.3 Physical Diagram (Database Schema): ............................................................ 22
4.2.4 Logical ER Diagram: ....................................................................................... 23
4.2.5 Data Dictionary: ............................................................................................... 25
4.2.6 Warnier-Orr Diagram:...................................................................................... 27
4.2.7 Decision Table: ................................................................................................ 28
Chapter V ................................................................................................................................. 29
5. System Development and Testing: .................................................................................. 29
5.1 Coding tools: ............................................................................................................ 29
5.1.1 Front End ......................................................................................................... 29
5.1.2 Back End: ......................................................................................................... 31
5.2 Testing: .................................................................................................................... 32
5.2.1 Unit Testing ..................................................................................................... 32
5.2.2 Integration Testing ........................................................................................... 34
5.2.3 System Testing: ................................................................................................ 35
5.3 Support: .................................................................................................................... 36
6. FUTURE SCOPE & CONCLUSION .............................................................................. 37
6.1 Future Plan: .............................................................................................................. 37
6.2 Demonstration: ......................................................................................................... 37
6.3 Conclusion: .............................................................................................................. 37
Bibliography ............................................................................................................................. 38
List of Figures
Figure 3.1: Waterfall Model .................................................................................................... 13
Figure 3.2: Work Breakdown Structure ................................................................................... 15
Figure 3.3: Cost estimation using COCOMO .......................................................................... 16
Figure 3.4: Gantt Chart ............................................................................................................ 17
Figure 4.1: System Architecture .............................................................................................. 18
Figure 4.2.1: System Flowcharts ............................................................................................. 19
Figure 4.2.2(a): DFD Level 0 .................................................................................................. 20
Figure 4.2.2(b): DFD Level 1 .................................................................................................. 21
Figure 4.2.3: Database Schema ................................................................................................ 22
Figure 4.2.4(a): Logical ER Diagram (Farmer‟s Profile) ........................................................ 23
Figure 4.2.4(b): Logical ER Diagram (all data) ....................................................................... 24
Figure 4.2.6: Warnier-Orr Diagram ......................................................................................... 27
Figure 5.2.2: Integration Testing ............................................................................................. 34
viii
List of Table
ix
List of Abbreviations
ER Entity Relationship
JS JavaScript
PC Personal Computer
x
CHAPTER I
1. INTRODUCTION
1.1 Background
1
1.2 Problem Statement
The mobile penetration in Nepal has seen huge growth so has the mobile
internet access. According to a 2013/14 statistical data, the mobile penetration rate has
crossed over 70 percentage. But people are more inclined towards using digital
gadgets for social media rather than informational and educational causes.
The common problems that people involved in agricultural sector in the country
include:-
1.3 Objectives:
2
1.4 Scope and Limitation:
1.4.1 Scope:
Hamro-Krishi also allows registered users are able to add their experiences in their
personal profile and that can be viewed by other registered users. These users are
provided with latest agriculture related news and information.
1.4.2 Limitation:
Hamro-Krishi does not allow farmers to directly communicate with each other
i.e. no special features like chatting among themselves. Communication
through means of third parties like agro experts.
Hamro-Krishi is only available in English language and affects potential users
with lack of English.
3
Chapter II
2. Requirements Analysis:
Before starting the development of the new system, different requirements are
taken into consideration. As our project is solely based on agriculture, the requirement
analysis is done concentrating on various aspects of agriculture that are prevalent in
the country. The requirement analysis is done with following outline:
There are different web applications that are available in the market that are
dedicated to agriculture chiefly focusing on aiding farmers in Nepal. Most of these
applications are available in Google‟s Android platform. Few applications as:
IFA-Krishi-Ghar, Krishi-Ghar, etc are providing farmers with the necessary
information to assist them in farming.
However, when observed closely, we found that these applications are not
providing all the necessary information that are critical to the farmers. These
applications are missing important factors, for instance: „Soil Profile‟, and Medicinal
and Aromatic Plants (MAPs). Information on these factors can play vital role in
uplifting the agro-sector of our country.
Hence, with the intent of providing information that are not yet in the reach of
the people that are dedicated in farming sector, the concept of Hamro-Krishi comes
into existence.
4
2.2 DATA COLLECTION METHODS
The key area of the project is Agriculture. Therefore, „Data Collection‟ is done
by visiting Ministry of Agricultural Development as well as other agencies, using
various techniques.
Sample Questionnaire:
1. What are the crops you usually grow on your field? Is it only seasonal?
2. How much of your economy is dependent on agriculture? Is there any
other occupation involved besides agriculture?
3. The crops you produce are they enough to sustain your livelihood or do
you even sell them in market?
4. Have you been using manures or pests and fertilizers at some point?
5. What techniques do you use for farming: Modern or traditional!!
6. How much are you aware of modern techniques prevalent right now?
7. Have you heard of MAPs? Are you aware of medicinal and economic
importance of MAP‟s?
8. Do you know about the quality of your soil? Have you ever checked for
acidic and basic nature of your soil?
9. Do you think you would be able to access the information provided via
internet? If yes, How? If not, Why not?
10. We hear Organic Foods these days in the market. Do you know of any
Organic Foods? Are Fertilizers added to these Organic Foods?
5
Field visit:
Interaction:
Interaction was done with many officials from the Ministry of Agricultural
developments, farmers and agro-experts on the concerned subject matter to
gain vital information on agricultural aspects as soils, fertilizers, MAPs. The
information was crucial to the development of the system.
Internet Research:
Krishi Diary:
6
2.3 Requirement Specification
a. User Registration:
b. User Function:
There are two types of users: Registered and Non Registered User.
Registered users have full access to features of Hamro Krishi. Non
Registered Users cannot access features such as Ask the Expert, Krishak
Profile, etc.
c. Krishak Profile:
d. Sign Out:
User can log out of the system after finishing using the web
application.
7
2.3.2 Non Functional Requirements:
a. User Friendly:
User friendliness helps the web application to improve and increase the
amount of visitors who use the web application.
b. Easy Access:
c. Responsive:
d. Information Accuracy:
8
e. Speed of Application:
The web application solves problem faced by the target group that was
underlined as the problem statement. The target users can look up to the web
application if and when the problem arises. Furthermore, features such as rich
information density, efficiency and cost effective is testament to the fact that the web
application is operationally feasible.
The web application is available and accessible via the Internet which makes it
economically feasible. Users only require an Internet connection to access contents
9
included in the web application. Moreover, there are no charges of any sorts
associated with contents in the web application
According to above calculation in the first year we had 22.5% return of our
investment. We can say the application is worthwhile.
10
Chapter III
3. System Planning
Well carried plan is the key to success for any project. It is important to
perform planning before moving onto designing and implementation phase. For the
betterment and success of the project, the team as a whole was involved in discussions
about the systematic planning for the smooth and proper work flow of the project.
We have used the Waterfall Model to develop our entire system. Albeit,
Waterfall model is old but we find Waterfall model as the most suitable model for our
system because this type of model is basically used for the project which is small and
there are no uncertain requirements. The entire system is built up on the norms and
values of Waterfall Model.
11
The basic principles are:
Project is divided into sequential phases, with some overlap and splash back
acceptable between phases.
Emphasis is on planning, time schedules, target dates, budgets and
implementation of an entire system at one time.
Tight control is maintained over the life of the project via extensive written
documentation, formal reviews, and approval/signoff by the user and
information technology management occurring at the end of most phases
before beginning the next phase.
This model is used only when the requirements are very well known, clear and
fixed.
Technology is understood.
12
Figure 3.1: Waterfall Model
13
most of all, incorporated to the proposed system. Once, requirements analysis
was completed, the designing of the system was initiated
b. Designing:
In this phase, the framework of the proposed system was designed from
the requirements which were studied in the previous phase. The system
designing phase was useful in specifying the needed hardware and system
requirements as well as the overall system structure.
c. Coding:
Once, the designing phase was completed, the coding phase was initiated.
The main goal of the coding phase was to translate i.e. implement the design
of the system from the previous phase into code in a specified programming
language. It was kept in mind that this was the crucial part of the development
life cycle because robust codes meant less hassle in testing and
implementation phase. Simplified coding was used as far as practicable. PHP
was used for the Server Side Validation, for interactive user interface CSS and
Bootstrap was used.
d. Testing:
After the code was developed in the coding phase, the codes were tested to
check whether or not it complied with the requirements and that the code
actually solved the needs that were addressed in the requirements phase.
Errors that occurred were corrected and further debugging was performed.
e. Documentation:
14
3.2 Work Breakdown Structure:
We have used the basic constructive cost model (COCOMO) for cost
estimation. The constructive cost model is an algorithmic software constitutional
model developed by Barry W. Boehm. The model uses a basic regression formula
with parameters that are derived from historical project data and current project
characteristics.
15
Figure 3.3: Cost estimation using COCOMO
Calculated on reference:
http://groups.engin.umd.umich.edu/CIS/course.des/cis375/projects/crr/frmReport.html
From above table,
Effort=3 Persons/month
KLOC=1.2
16
3.4 Time Scheduling (Gantt chart):
17
Chapter IV
4. System Design:
18
4.2 System Diagrams:
4.2.1 Flowchart:
19
4.2.2 DFD (Data Flow Diagram):
DFD Level 0
20
DFD Level 1
21
4.2.3 Physical Diagram (Database Schema):
22
4.2.4 Logical ER Diagram:
23
FIGURE 4.2.4(b): LOGICAL ER DIAGRAM (ALL DATA)
24
4.2.5 Data Dictionary:
25
Table 4.2.5: Data Dictionary
26
4.2.6 Warnier-Orr Diagram:
27
4.2.7 Decision Table:
Rules
CONDITIONS(IF) 1 2 3 4 5 6 7 8
Admin N N N N Y Y Y Y
Account N N Y Y N N Y Y
Password N Y N Y N Y N Y
ACTION(THEN) 1 2 3 4 5 6 7 8
Modification - - - - - - - X
Rules
CONDITIONS(IF) 1 2 3 4 5 6 7 8
User Register N N N N Y Y Y Y
Email N N Y Y N N Y Y
Password N Y N Y N Y N Y
ACTION(THEN) 1 2 3 4 5 6 7 8
Login - - - - - - - X
28
Chapter V
For the easy understanding we can use the generalized term “programming
tools” and explain what the coding tools are? A programming tool or software
development tool is a computer program that software developers use to create,
debug, maintain, or otherwise support other programs and applications. Different
tools are used to develop the so called front end and back end of a program, whose
logical combination gives the real world application/software. Since our project is
fully concerned with the development of a web based application it seems like it is
appropriate to give an overview of the different tools used in the web application.
29
a. PHP V5.4.3:
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-
used open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
The version 5.4.3 of PHP delivers two security fixes. All users of PHP
5.4 are encouraged to upgrade to this release. PHP 5.4.3 completes a fix for
vulnerability in CGI-based setups (CVE-2012-2311). Note: mod_php and php-
fpm are not vulnerable to this attack. A buffer overflow vulnerability in the
apache_request_headers() was fixed (CVE-2012-2329).
c. HTML:
30
d. Bootstrap:
e. JavaScript
a. MySQLversion: 5.5.24:
31
b. Apache Server Version: 2.2.22
5.2 Testing:
We can break the definition of Software testing into the following parts:
Process: Testing is a process rather than a single activity.
All Life Cycle Activities: Testing is a process that‟s take place
throughout the Software Development Life Cycle (SDLC).
5.2.1 Unit Testing
32
a. Test Case for Login
Table 5.2.1: Test Case for Login
S.N Test case Id Test description Input test data Expected Result Actual Result Pass/fail Remarks
1 TC-01 Open browser and http://localhost/HK/hamrokrishi/i Login page should be Login page pass
ndex
enter url displayed with displayed with
username and username and
password password field
2 TC-02 Enter valid data in Username:sahaz@hk.com It should redirect to Home page pass
username and Password:******** home page displayed.
password field
3 TC-03 Enter valid data in Username: sahaz@hk.com Error message as Error message pass
username and leave Password: empty password field cannot displayed as
password field be empty PW field
empty cannot be
empty
4 TC-04 Leave username and Username: empty Error message as Displays an pass
password field Password: empty username and PW is error stating
empty and press required username and
login PW is required.
5 TC-05 Enter invalid Username: hdfhvjdfhsefj Error stating invalid Invalid pass
username and Password : eefefwefsw username and username and
password password to be password
displayed displayed.
33
5.2.2 Integration Testing
34
5.2.3 System Testing:
The system testing part of a testing methodology involves testing the entire
system for errors and bugs. This test is carried out by interfacing the hardware and
software components of the entire system, and then testing it as a whole. This testing
is listed under the black-box testing method, where the software is checked for user-
expected working conditions as well as potential exception and edge conditions.
35
5.3 Support:
Support in simple terms can be defined as, “the mechanisms to give assistance
to the needy people or sector”. The continued provision of services and material
necessary for the use and improvement of a system during its lifecycle is a support
system.
So here in the case our project, which is Hamro-Krishi by the title holds some
of the facilities available in our web application that helps to assist the users and
increases the comfort level and the understanding of our web application to the users.
36
Chapter VI
6.2 Demonstration:
We shall be conducting demonstration of Hamro-Krishi in various places
focusing on the target group. We aim to make aware of the system to the younger
generation who are technically adapted to this kind of systems. We believe making
aware of the system to younger generation will help spreading the system to their
family members and eventually reach the target groups.
6.3 Conclusion:
The system is designed keeping in mind the motto: „Go Beyond Geo
Boundary‟ which will help overcome geographical barrier so as to connect farmers
and the agro experts on various broad subjects of agriculture. Last but not the least,
the web based nature of the system allows the content on the web application to be
available 24/7.
37
Bibliography
38
Annex
<?php $this->load->view('includes/header.php');?>
<?php $this->load->view('includes/semi_header.php');?>
<?php $this->load->view('includes/menu.php');?>
<div class="well">
<div class="row">
39
<a class="btn btn-info btn-lg center-block" href="<?php echo
site_url('farmersprofile_controller/submit_data/STORY');?>"><span class="glyphicon glyphicon-
share"></span> SUBMIT KRISHI STORY </a><hr>
<a class="btn btn-primary btn-lg center-block" href="<?php echo
site_url('farmersprofile_controller/submit_data/PHOTO');?>"><span class="glyphicon glyphicon-
share-alt"></span> SUBMIT KRISHI PHOTOS</a><hr>
</div>
</div>
<?php } else {?>
<div class="col-lg-9">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<?php
$n=0;
foreach($slider ->result() as $s) {?>
<li data-target="#myCarousel" data-slide-to=$n <?php if($n==0){?>class="active" <?php }?>></li>
<?php $n+=1;}?>
</ol>
<div class="carousel-inner">
<?php
$z=0;
foreach($slider ->result() as $t) {?>
<div <?php if($z==0){?>class="item active" <?php }else{?> class="item" <?php }?>>
<a href="<?php echo site_url('uploads/slider/'.$t->slider_image);?>" rel="prettyPhoto[pp_gal]"
title="<?php echo $t->image_description ;?>">
<img src="<?php echo site_url('uploads/slider/'.$t->slider_image);?>"/>
</a>
<div class="carousel-caption">
<?php echo $t->image_description ;?>
</div>
</div>
<?php $z+=1;}?>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="col-lg-3">
<?php if($this->session->flashdata('error')){?>
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-
hidden="true">×</span></button>
<span class="glyphicon glyphicon-remove-sign"></span><?php echo $this->session-
>flashdata('error');?>
</div>
<?php }
if($this->session->flashdata('signout')){?>
<div class="alert alert-success alert-dismissible" role="alert">
40
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-
hidden="true">×</span></button>
<span class="glyphicon glyphicon-ok-sign"></span><?php echo $this->session->flashdata('signout');?>
</div>
<?php
}
if($this->session->flashdata('delete_profile')){?>
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-
hidden="true">×</span></button>
<span class="glyphicon glyphicon-ok-sign"></span><?php echo $this->session-
>flashdata('delete_profile');?>
</div>
<?php
}?>
<hr>
<form class="form-horizontal" action="<?php echo site_url('login_controller/process_signin');?>"
method="POST" id="baseform" >
<div class="form-group">
<label class="col-sm-4 control-label"> Email:</label>
<div class="col-sm-7">
<input type="text" id="email" name="email" class="required email form-control" />
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label"> Password:</label>
<div class="col-sm-7">
<input type="password" id="pass" name="pass" class="required form-control" />
</div>
</div>
<div class="form-group">
<div class="col-sm-11 control-label">
<input type="submit" class="btn btn-success btn-sm" id="submit" name="submit" value="Sign In"
/><br><br>
</div>
</div>
</form>
Haven't registered ? Sign Up here <a class="btn btn-info" href="<?php echo
site_url('login_controller/sign_up');?>"><span class="glyphicon glyphicon-plus"></span> Sign UP </a>
</div>
</div>
<?php }?>
</div>
<br>
<div class="row">
<?php if(null == $this->session->userdata('f_status')) {?>
<div class="col-lg-5">
<div class="well well-sm">
41
<h3>Agro News<span class="glyphicon glyphicon-globe"></span></h3>
<h6>Keep up-to-date with all the happenings around the Nepal's Agricultural horizon</h6>
<hr>
<?php
$num2=1;
foreach($samachar ->result() as $u) {
if($num2<=4){ ?>
<div class="media">
<div class="media-left">
<a href="<?php echo site_url('news_controller/single_news/'.$u->news_type.'/'.$u->id);?>">
<img class="media-object" src="<?php echo site_url('uploads/krishinews/'.$u->news_image);?>"
alt="<?php echo $u->news_headline; ?>" height="60" width="80">
</a>
</div>
<div class="media-body">
<small>
<?php echo $u->news_date;
echo"<br>";
echo $u->news_location; ?></small>
<h4 class="media-heading"><?php echo $u->news_headline;?></h4>
<a href="<?php echo site_url('news_controller/single_news/'.$u->news_type.'/'.$u->id);?>">
<button class="btn btn-info btn-xs" type="button" >
<span class="glyphicon glyphicon-search"></span> Read More...
</button></a>
</div>
</div>
<?php $num2+=1;}
}?>
<?php $num=0;
foreach($samachar->result() as $u) {
$num+=1;} ;?>
<br><a href="<?php echo site_url('news_controller/display_samachar');?>">
<button class="btn btn-success btn-sm" type="button" >
All News <span class="badge"><?php echo $num;?></span>
</button></a>
</div>
</div>
<div class="col-lg-4">
<div class="well well-sm">
<h3> Agro Stories</h3>
<h6>Be inspired from our energetic youths</h6>
<hr>
<?php
$num3=1;
foreach($story ->result() as $v) {
if($num3<=4){ ?>
<div class="media">
<div class="media-left">
<a href="<?php echo site_url('news_controller/single_news/'.$v->news_type.'/'.$v->id);?>">
<img class="media-object" src="<?php echo site_url('uploads/krishinews/'.$v->news_image);?>"
alt="<?php echo $v->news_headline; ?>" height="50" width="70">
</a>
</div>
<div class="media-body">
<small>
<?php echo $v->news_date; ?></small>
<h5 class="media-heading"><?php echo $v->news_headline;?></h5>
42
<a href="<?php echo site_url('news_controller/single_news/'.$v->news_type.'/'.$v->id);?>">
<button class="btn btn-warning btn-xs" type="button" >
<span class="glyphicon glyphicon-search"></span> Read More...
</button></a>
</div>
</div>
<?php $num3+=1;}
}?>
<?php $num4=0;
foreach($story->result() as $u) {
$num4+=1;} ;?>
<br><a href="<?php echo site_url('news_controller/display_story');?>">
<button class="btn btn-success btn-sm" type="button" >
All Stories <span class="badge"><?php echo $num4;?></span>
</button></a>
</div>
</div>
<div class="col-lg-3">
<div class="well well-sm">
<h4 class="text-center">Our Registered Krishaks</h4>
<hr>
<div class='row'>
<?php foreach($krishaks->result() as $r) {?>
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6 outer_krishak_small">
<a href="<?php echo site_url('profile_controller/single_profile/'.$r->id);?>">
<img class="img-rounded img-responsive center-block" src="<?php echo
site_url('uploads/farmersprofile/'.$r->farmers_image);?>" height="160" width="130" /></a>
</div>
<?php } ?>
</div>
<br>
<div class="row">
<div class="col-lg-12">
<a class="btn btn-success btn-xs center-block" href="<?php echo
site_url('profile_controller/display_profile');?>">
View All Krishaks </a>
</div>
</div>
</div>
<?php if(null == $this->session->userdata('f_status')) {?>
<div class="well well-sm">
<h6>Do you want to feature your krishi story, krishi samachar and your krishi related pictures ? </h6>
<a class="btn btn-primary btn-md center-block" href="<?php echo
site_url('farmersprofile_controller/guest_submit');?>">
Submit Krishi Stories, News & Pictures</a>
</div>
<?php }?>
</div>
<?php } else {?>
<div class="col-lg-5">
<div class="well well-sm">
<h3>Agro News<span class="glyphicon glyphicon-globe"></span></h3>
<h6>Keep up-to-date with all the happenings around the Nepal's Agricultural horizon</h6>
<hr>
<?php
$num2=1;
foreach($samachar ->result() as $u) {
43
if($num2<=4){ ?>
<div class="media">
<div class="media-left">
<a href="<?php echo site_url('news_controller/single_news/'.$u->news_type.'/'.$u->id);?>">
<img class="media-object" src="<?php echo site_url('uploads/krishinews/'.$u->news_image);?>"
alt="<?php echo $u->news_headline; ?>" height="60" width="80">
</a>
</div>
<div class="media-body">
<small>
<?php echo $u->news_date;
echo"<br>";
echo $u->news_location; ?></small>
<h5 class="media-heading"><?php echo $u->news_headline;?></h5>
<a href="<?php echo site_url('news_controller/single_news/'.$u->news_type.'/'.$u->id);?>">
<button class="btn btn-info btn-xs" type="button" >
<span class="glyphicon glyphicon-search"></span> Read More...
</button></a>
</div>
</div>
<?php $num2+=1;}
}?>
<?php $num=0;
foreach($samachar->result() as $u) {
$num+=1;} ;?>
<br><a href="<?php echo site_url('news_controller/display_samachar');?>">
<button class="btn btn-success btn-sm" type="button" >
All News <span class="badge"><?php echo $num;?></span>
</button></a>
</div>
</div>
<div class="col-lg-5">
<div class="well well-sm">
<h3><span class="glyphicon glyphicon-star"></span> Agro Stories</h3>
<h6>Be inspired from our energetic youths</h6>
<hr>
<?php
$num3=1;
<small>
<?php echo $v->news_date; ?></small>
<h5 class="media-heading"><?php echo $v->news_headline;?></h5>
44
<span class="glyphicon glyphicon-search"></span> Read More...
</button></a>
</div>
</div>
<?php $num3+=1;}
}?>
<?php $num4=0;
foreach($story->result() as $u) {
$num4+=1;} ;?>
</div>
</div>
<div class="col-lg-2">
<div class="well well-sm">
<h4 class="text-center">Our Registered Krishaks</h4>
<hr>
<div class='row'>
<?php
$permit=0;
foreach($krishaks->result() as $r) {
if ($permit < 6){?>
</div>
<?php }?>
</div>
</div>
<?php
$this->load->view('includes/footer.php');
45
Main Home Page
46
Dashboard
47
Sign in Page
48
Sign up Page
49
Details on Crops
50
Agro news and Agro stories inclusion in the main home page
51
Registered Krishak’s
52
Farmer’s Profile
53