Commit f80a0efd authored by Kareshaan Logeswaran's avatar Kareshaan Logeswaran

created It20008628 frontend

parent 92efee9e
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>E-Goyama</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
</head>
<style>
h1 {
color: mediumseagreen;
text-align: center;
}
.warning {
color: red;
font-weight: bold;
text-align: center;
}
.card{
margin-left:410px;
margin-top: 20px;
color: white;
}
.container{
background:#edf2f7;
font-weight: bold;
padding-bottom:10px;
border-radius: 15px;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: white;
/background-image: url('../images/back.jpeg'); / Replace 'your-image-url.jpg' with the actual image URL or path */
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;*/
}
header {
/*background-image: url('../images/back.jpeg');*/
background-color: #333;
color: #fff;
padding: 10px 0;
text-align: center;
}
nav {
display: flex;
justify-content: center;
background-color: #145214;
padding: 10px 0;
width: 100%; /* Add this line to make it fit the screen width */
}
nav a {
color: white;
text-decoration: none;
padding: 10px 20px;
font-size: 20px;
font-family: Times New Roman, sans-serif;
margin: 0 10px; /* Add margin to create space between links */
}
nav a:hover {
background-color: #555;
}
h1 {
color: mediumseagreen;
text-align: center;
}
.warning {
color: red;
font-weight: bold;
text-align: center;
}
.card{
margin-left:410px;
margin-top: 20px;
color: white;
}
.container{
background:#edf2f7;
font-weight: bold;
padding-bottom:10px;
border-radius: 15px;
}
</style>
<body style="background:#BCBBB8">
<!--=======================navbar=====================================================-->
<header>
<h1 style="Font-size:50px;">E-Goyama</h1>
<h2>E-Solution for paddy plantation</h2>
</header>
<nav>
<a href="http://192.168.56.1:7000">Home</a>
<a href="http://127.0.0.1:5010">Economy Prediction</a>
<a href="http://localhost:8010/">Harvesting Time Prediction</a>
<a href="http://localhost:8000/">Leaf Diseases Identification</a>
<a href="http://127.0.0.1:5000/">Soil Testing</a>
<a href="http://127.0.0.1:5500">About</a>
</nav>
<!--==========================================================================================-->
<div class="container my-3 mt-3">
<h1 class="text-success">Financial Evaluation and Economic Prediction <span class="text-success">🌱</span></h1>
<!-- adding form-->
<form action="/predictcost" method="POST">
<div class="row">
<div class="col-md-4">
<label for="Year" >Year</label>
<select name="Year" id="Year" style="width: 400px;" class="form-control">
<option value="2024" class="form-control">2024</option>
<option value="2025" class="form-control">2025</option>
<option value="2025" class="form-control">2026</option>
<option value="2027" class="form-control">2027</option>
<option value="2028" class="form-control">2028</option>
<option value="2029" class="form-control">2029</option>
<option value="2030" class="form-control">2030</option>
<option value="2030" class="form-control">2031</option>
<option value="2030" class="form-control">2032</option>
<option value="2030" class="form-control">2033</option>
</select>
</div>
<div class="col-md-4">
<label for="Season">Season</label>
<select name="Season" id="Season" style="width: 400px;" class="form-control">
<option value="1" class="form-control">Yala</option>
<option value="0" class="form-control">Maha</option>
</select>
</div>
<div class="col-md-4">
<label for="Preliminary_Dev">Preliminary Development(Rs./ac.)</label>
<input type="number" id="Preliminary_Dev" min="0" step="1" max="10000" name="Preliminary_Dev" placeholder="Enter Estimated Preliminary Development Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Ploughing">Ploughing(Rs./ac.)</label>
<input type="number" id="Ploughing" min="0" step="1" name="Ploughing" placeholder="Enter Estimated Ploughing Cost Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Levelling">Levelling Cost(Rs./ac.)</label>
<input type="number" id="Levelling" min="0" step="1" name="Levelling" placeholder="Enter Estimated Levelling Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Transplanting">Transplanting(Rs./ac.)</label>
<input type="number" id="Transplanting" min="0" step="1" name="Transplanting" placeholder="Enter Estimated Transplanting Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Season">Plastering(Rs./ac.)</label>
<input type="number" id="Plastering" min="0" step="1" name="Plastering" placeholder="Enter Estimated Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Fertilization">Fertilization Process(Rs./ac.)</label>
<input type="number" id="Fertilization" min="0" step="1" name="Fertilization" placeholder="Enter Estimated Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Harvesting">Harvesting(Rs./ac.)</label>
<input type="number" id="Harvesting" min="0" step="1" name="Harvesting" placeholder="Enter Estimated Harvesting Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Threshing">Threshing(Rs./ac.)</label>
<input type="number" id="Threshing" min="0" step="1" name="Threshing" placeholder="Enter Estimated Threshing Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Winnowing">Winnowing(Rs./ac.)</label>
<input type="number" id="Winnowing" min="0" step="1" name="Winnowing" placeholder="Enter Estimated Winnowing Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Tot_without_Imputed">Imputed Cost(Rs./ac.)</label>
<input type="number" id="Tot_without_Imputed" min="0" step="1" name="Tot_without_Imputed" placeholder="Enter Estimated Imputed Cost Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Seeding">Seeding(Rs./kg.)</label>
<input type="number" id="Seeding" min="0" step="1" name="Seeding" placeholder="Enter Estimated Seeding Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Hired_Labour">Hired Labour(Rs./md.)</label>
<input type="number" id="Hired_Labour" min="0" step="1" name="Hired_Labour" placeholder="Enter Estimated Hired Labour Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Family_Labour">Family Labour(Rs./md.)</label>
<input type="number" id="Family_Labour" min="0" step="1" name="Family_Labour" placeholder="Enter Estimated Family Labour Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Fertilizer_Purchase">Fertilizer(Rs./kg.)</label>
<input type="number" id="Fertilizer_Purchase" min="0" step="1" name="Fertilizer_Purchase" placeholder="Enter Fertilizer Allocation" class="form-control" required>
</div>
<div class="col-md-4">
<label for="Average_Yield">Average yield(Rs./md.)</label>
<input type="number" id="Average_Yield" min="0" step="1" name="Average_Yield" placeholder="Enter Average Yield Expectation" class="form-control" required>
</div>
</div>
<div class="row mt-4">
<div class="col-md-12 text-center">
<button type="submit" class="btn btn-primary btn-lg">Get Farmers Cost Prediction</button>
</div>
</div>
</form>
{% if result %}
<div class="card bg-dark" style="width: 18rem;">
<img src="{{url_for('static', filename='img.jpg')}}" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title" style="color:yellow;"><center><b>Nominal Price</b></center></h5>
<p class="card-text" style="color:yellow;"><b>{{ result }}</b></p>
</div>
</div>
{% endif %}
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment