I am working on Django application and I am trying to create form for users' suggestions and comments. I want to see that suggestions/comments in database (admin interface). After the comment is submitted, it is not saved in database. I have some mistake here but I don't know where it is. Can you please help me?
views.py:
def komentariPrijedlozi(request):
if request.method == 'POST':
form = CommentsSuggestionsForm(request.POST)
if form.is_valid():
form.save()
return render(request, 'rjecnik/successCommentsSuggestions.html')
form = CommentsSuggestionsForm()
context = {'form' : form}
return render(request, 'rjecnik/komentariPrijedlozi.html', context)
komentariPrijedlozi.html:
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Comments and suggestions</title>
</head>
<body>
<section class="main-container1" style=" margin-top: 50px; background-color: lightgray;">
<div class="columns">
<div class="main-par" style="font-size: 21px; margin-bottom: 20px;">Komentari i prijedlozi novih prijevoda:</div>
<div class="column is-half is-offset-one-quarter">
<form method="POST" autocomplete="off" enctype="multipart/form-data">
<tr>
<th>
<label for="suggestion1">Prijedlog novog pojma:</label>
</th>
<td >
<input type="text" name="suggestion1" maxlength="100" autocomplete="off" style="width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block;">
</td>
</tr>
<tr>
<th>
<label for="suggestion2">Prijedlog prijevoda:</label>
</th>
<td>
<input type="text" name="suggestion2" maxlength="100" autocomplete="off" style="width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block;">
</td>
</tr>
<tr>
<th>
<label for="comment">Komentar:</label>
</th>
<td>
<textarea name="comment" cols="40" rows="10" style="width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block;"></textarea>
</td>
</tr>
{% csrf_token %}
<input type="submit" class="btn-sub" value="Submit">
</form>
</div>
</div>
</div>
</section>
</body>
</html>
models.py:
class CommentsSuggestions(models.Model):
suggestion_word = models.CharField(max_length=100)
suggestion_translation = models.CharField(max_length=100)
comment_suggestion = models.TextField()
forms.py:
class CommentsSuggestionsForm(ModelForm):
class Meta:
model = CommentsSuggestions
fields = '__all__'
urls.py:
path('komentari_i_prijedlozi/', views.komentariPrijedlozi, name="komentariPrijedlozi"),
For as far as I can see you are not using your custom form in your template, change the form in your template to this:
<form method="POST" autocomplete="off" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_table }}
<input type="submit" class="btn-sub" value="Submit">
</form>
Then the values will be processed correctly when arriving in your views.py.
Related
I've searched enough about this problem, but haven't been able to find a solution.
Please help me.
The board detail view and comment template containing the comment list were all imported.
I brought it in as much detail as possible, so I hope you give me a way.
View.py
class comment_delete(DeleteView):
model = Comment
success_url = reverse_lazy('board_list.html')
class board_detail(generic.DetailView):
def get(self, request, *args, **kwargs):
pk = self.kwargs['pk']
rsDetail = Board.objects.filter(b_no=pk)
rsData = Board.objects.get(b_no=pk)
rsData.b_count += 1
rsData.save()
comment_list = Comment.objects.filter(Board_id=pk).order_by('-id')
return render(request, "board_detail.html", {
'rsDetail': rsDetail,
'comment_list' : comment_list
})
def post(self, request, *args, **kwargs):
bno = get_object_or_404(Board, b_no=self.kwargs['pk'])
cnote = request.POST.get('c_note')
cwriter = request.POST.get('c_writer')
rows = Comment.objects.create(
Board = bno,
c_note = cnote,
c_writer = cwriter
)
return redirect(reverse('board_detail', kwargs={'pk': self.kwargs['pk']}))
urls.py
path('', views.home, name="home"),
path('board/', views.board.as_view(), name="board"),
path('board/<int:pk>/', views.board_detail.as_view(), name="board_detail"),
path('board_write/', views.board_write, name="board_write"),
path('board_insert', views.board_insert.as_view(), name="board_insert"),
path('board_edit/', views.board_edit, name="board_edit"),
path('board_update/', views.board_update, name="board_update"),
path('board_delete/', views.board_delete, name="board_delete"),
path('board/comment/update/', views.comment_update, name="comment_update"),
path('board/comment/<int:pk>/delete/', views.comment_delete.as_view(), name="comment_delete")
comment.html
{% if not comment_list %}
<p class="text-center"> empty </p>
{% endif %}
<div style="margin:20px 0; margin-right:400px; margin-left:400px;">
{% for i in comment_list %}
<table width="100%" cellpadding="0" cellspacing="0">
<tbody>
<tr style="background-color:#f1eee3;height:45px;border-top: 1px solid #333;">
<td style="padding-left: 10px;border-top: 1px solid #eee;width: 114px;" align="center" width="20%">{{ i.c_writer }}</td>
<td style="vertical-align: top;border-top: 1px solid #eee;padding: 10px 0;" align="left" width="70%">{{ i.c_note }}
<span style="color: #999;font-size: 11px;display: block;">{{ i.c_date }}</span>
</td>
{% if user.username == i.b_writer or user.is_staff %}
<form action="{% url 'comment_update' %}">
<td style="vertical-align: top;border-top: 1px solid #eee;padding: 10px 0;" align="right" width="10%">
<button class="btn btn-outline-success my-2 my-sm-0">edit</button>
</td>
</form>
<form action="{% url 'comment_delete' pk=i.Board_id %}" method='POST'>
{% comment %} <form action="{% url 'comment_delete' Board_id=i.Board_id id=i.id %}" method='POST'> {% endcomment %}
{% csrf_token %}
<td style="vertical-align: top;border-top: 1px solid #eee;padding: 10px 0;padding-right: 5px;" align="right" width="10%">
<button class="btn btn-outline-success my-2 my-sm-0" style="margin-right:10px;">delete</button>
</td>
</form>
{% endif %}
</tr>
</tbody>
</table>
{% endfor %}
{% include 'comment_write.html' %}
Unless specified otherwise the delete view except only the pk from the object you want to delete so in your case that would be the comment :
path('board/comment/<int:pk>/delete/', views.comment_delete.as_view(), name="comment_delete")
Also you were not using the comment ID but the board ID, which of course is different and will cause your url to point the incorrect object.
The same logic applies to the DetailView, UpdateView, DeleteView, those views expects the primary key (or ID) that you reference in the model attribute within those views.
Last thing, what is i.Board_id and id.id ? When using variable be the most explicit, do name your variables in lower case as well.
I wanted to search and retrieve the data from the database in the Django I have saved the data which comes from the API endpoint to the database and have created few labels in the html based on which it will filter the matched data from the database
It rather than searching the matched value but its adding another column with searched value.
For instance: If I search "vendorname" as Pepsi it should reflect the table row which containing Pepsi rather than it creating another column with the value as Pepsi.
I don't know where I'm going wrong. I have lot of columns from the database and 6 labels just I have added few only here. Thanks in Advance
I have created two database here one for filter another for API data:
models.py:
//filter
class Userbase(models.Model):
Vendor_Name = models.CharField(max_length=255, null=True)
Region = MultiSelectField(choices=CHOICES)
Area = MultiSelectField(choices=AREACHOICES)
//api data
class invoiceapi(models.Model):
Vendor_Name = models.CharField(max_length=155, null=True)
area = models.CharField(max_length=155, null=True)
country = models.CharField(max_length=155, null=True)
views.py:
def homeview(request):
userb = Userbase.objects.all()
table_data= requests.get('http://127.0.0.1:1500/api/').json()
if request.method == 'POST':
userb = Userbase()
userb.Area = request.POST.getlist('Area')
userb.country = request.POST.getlist('country')
userb.Vendor_Name = request.POST.get('Vendor_Name')
userb.save()
# api data saving in db
for new_data in table_data:
data = {
'area': new_data['area'],
'country': new_data['country'],
'VendorName': new_data['VendorName'],
}
user = invoiceapi.objects.create(**data)
user.save()
//search filter
if request.method == 'POST':
finder = request.POST['Vendor_Name']
invoiceuser = invoiceapi.objects.filter(PBK_Desc__iexact=finder)
print(invoiceuser)
print(finder)
return render(request, 'home.html',
{'userb':userb,'table_data':table_data,'finder':finder})
return render(request, 'home.html', {'userb':userb,'table_data':table_data})
html:
<form action=" " method="POST" autocomplete="off">
{% csrf_token %}
<div class="row">
<div class="row" id="row_id">
<br>
<div style="margin-left: 19px; font-size: 17px;">Payment Term</div>
<div class="row" id="id_row">
<input type="text" name="Vendor_Name" maxlength="255" class="form-control mb-3"
style="margin-left: 30px; " placeholder="Vendor_Name" id="Vendor_Name" required=""">
</div>
<br>
<br>
<input type="submit" value="Apply" id="btn_submit" style=" width:90px; height:45px; margin-left: 40px; margin-bottom: 30px;"
class="btn btn-success btn" >
<input type="reset" value="Reset" id="btn_submit" style=" width:90px; height:45px;margin-left: 65px; margin-bottom: 30px;"
class="btn btn-success btn">
</div>
</form>
</div>
</div>
<div class='container-l' id='table-wrapper' style="height:330px;width:100.5%; ">
<div id='container-table'style="height: 1050px;">
{% if userb %}
<table class="table table-striped border datatable" id='table_id'>
<thead>
<thead id="tablehead">
<tr>
<th> Area </th>
<th> Country </th>
<th> VendorName </th>
</tr>
</thead>
<tbody>
{% for list in table_data %}
<tr>
<td>{{list.area}}</td>
<td>{{list.country}}</td>
<td>{{finder}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</div>
{% endif %}
I have tried to upload the image from the index.html page and also created; modles.py, views.py, urls.py and soon but I have upload and it is successfully uploaded in the mentioned directory in models.py but failed to view that image in front showing cut pic image
views.py
from django.shortcuts import render
from django.http import HttpResponseRedirect
from .models import Upload
# Create your views here.
# Imaginary function to handle an uploaded file
def Home(request):
if request.method == 'POST':
photo = request.POST['doc']
Upload.objects.create(document = photo)
context ={
}
if request.method == "GET":
photo = Upload.objects.all()
context = {
'phone': photo
}
return render(request, 'Home.drive.html', context)
models.py
from django.db import models
# Create your models here.
class Upload(models.Model):
document = models.ImageField(upload_to='documents')
index.html
{% load static %}
<!DOCTYPE html>
{% block content %}
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>PB-2021</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{% static 'css/index.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap-5.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
</head>
<body>
<nav style="font-size: 1em;
list-style-type: none;
display: block;
margin: 0;
padding: 0;
overflow: hidden;
position: sticky;
top: 0;
z-index: 1;">
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<i class="fas fa-bars"></i>
</label>
<label class="logo">AMRIT SHAHI</label>
<ul>
<li><a class="active" href="{% url 'PBAPP:home' %}">Home</a></li>
<li>About</li>
<li>Services</li>
<li>Pages</li>
<li>Contact</li>
</ul>
</nav>
<form method="POST" action="">
{% csrf_token %}
<div style="float: right;">
<label for="formFileLg" class="form-label">* File Upload</label>
<input class="form-control form-control-lg" id="formFileLg" type="file" name="doc">
<input type="submit" class="form-control form-control-lg" id="formFileLg" style="height: 10px; margin-top: 10px; background-color: #e9ecef;"/>
<hr style="width: 100%;">
</div>
</form>
<hr>
{% for i in phone %}
<img src="{{i.document.url}}" alt="Girl in a jacket" width="200" height="200; display: flex;">
{% endfor %}
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<footer class="bg-light text-center text-lg-start" style="width: 100%;">
<!-- Copyright -->
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2);">
© 2021 Copyright:
<a class="text-dark" href="https://theme.euesk.com">theme.euesk.com</a>
</div>
<!-- Copyright -->
</footer>
<script src="{% static 'js/bootstrap-5.js' %}"></script>
</body>
</html>
{% endblock %}
*Notes: help appreciated, my output is image icon only not the actual image
#Edit this thing first in the form
<form method="POST" action="" enctype="multipart/form-data">
# This thing in the views.py
def Home(request):
photo = ""
if request.method == 'POST':
photo = request.FILES['doc']
Upload.objects.create(document = photo)
if request.method == "GET":
photo = Upload.objects.all()
context = {
'phone': photo
}
For any further issue, let me know.
Hi I am facing a problem in my project .
In the Patient list, if a Click the Notes row present in the Add notes column. The new template load where it will list the recent notes for the patients... and also it allows me add patient notes by selecting the patient ( i am passing the objects of patients through forms )
My problem ..
How to add notes to the specified patient only. ( i.e. by not passing through forms) and also filtering to display the specfic Patient notes only.
Code
Model:
class Notes(models.Model):
doctorId = models.PositiveIntegerField(null=True)
patientName = models.CharField(max_length=40, null=True)
report = models.TextField(max_length=500)
NoteDate = models.DateTimeField(default=timezone.now)
#def __str__(self):
# return self.patientName+" "+self.report
#property
def get_id(self):
return self.id
View
#login_required(login_url='doctorlogin')
#user_passes_test(is_doctor)
def doctor_add_notes_view(request):
appointmentForm=forms.PatientNotesForm()
notes = models.Notes.objects.all().order_by('-NoteDate')
mydict={'appointmentForm':appointmentForm,'notes':notes}
if request.method=='POST':
appointmentForm=forms.PatientNotesForm(request.POST)
if appointmentForm.is_valid():
appointment=appointmentForm.save(commit=False)
appointment.doctorId =request.user.id #request.POST.get('doctorId')
doctors = models.Appointment.objects.all().filter(AppointmentStatus=True, status=True)
appointment.patientName = models.User.objects.get(id=request.POST.get('patientId')).first_name
now = datetime.now()
print("Current date and time : ")
print(now.strftime("%Y-%m-%d %H:%M:%S"))
appointment.NoteDate = now
print('doctors', doctors)
appointment.save()
return HttpResponseRedirect('doctor-view-patient')
else:
print(appointmentForm.errors)
return render(request, 'hospital/doctor_view_patient.html',{'alert_flag': True})
return render(request,'hospital/doctor_add_notes.html',context=mydict)
def doctor_view_patient_view(request):
appointments1 = models.Appointment.objects.all().filter(AppointmentStatus=False, status=True,doctorId=request.user.id)
print('appointments are ', appointments1)
patientid = []
for a in appointments1:
patientid.append(a.patientId)
print('patientid', patientid)
patients = models.Patient.objects.all().filter(PatientStatus=True, status=True, user_id__in=patientid)
print('patients', patients)
print(request.user.id)
doctor=models.Doctor.objects.get(user_id=request.user.id) #for profile picture of doctor in sidebar
print('doctor', doctor)
notes = models.Notes.objects.all().order_by('-NoteDate')
#print(notes)
return render(request,'hospital/doctor_view_patient.html',{'patients':patients,'doctor':doctor,'notes':notes})
Forms
class PatientNotesForm(forms.ModelForm):
patientId=forms.ModelChoiceField(queryset=models.Patient.objects.all().filter(status=True),empty_label="Patient Name and Symptoms", to_field_name="user_id")
class Meta:
model=models.Notes
fields=['report']
**doctor_view_patient.html
{% extends 'hospital/doctor_base.html' %}
{% block content %}
{%load static%}
<head>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<style media="screen">
a:link {
text-decoration: none;
}
h6 {
text-align: center;
}
.row {
margin: 100px;
}
</style>
</head>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<h6 class="panel-title">Your Total Patient List</h6>
</div>
<table class="table table-hover" id="dev-table">
<thead>
<tr>
<th>Name</th>
<th>Profile Picture</th>
<th>Symptoms</th>
<th>Mobile</th>
<th>Address</th>
<th>Add Notes</th>
</tr>
</thead>
{{Notes.get_id}}
{% for p in patients %}
<tr>
<td> {{p.get_name}}</td>
<td> <img src="{% static p.profile_pic.url %}" alt="Profile Pic" height="40px" width="40px" /></td>
<td>{{p.symptoms}}</td>
<td>{{p.mobile}}</td>
<td>{{p.address}}</td>
<td><a class="btn btn-primary btn-xs" href="{% url 'doctor-add-notes' %}">Notes</a></td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock content %}
doctor_add_notes.html
{% extends 'hospital/doctor_base.html' %}
{% load widget_tweaks %}
{% block content %}
<head>
<style media="screen">
a:link {
text-decoration: none;
}
.note {
text-align: center;
height: 80px;
background: -webkit-linear-gradient(left, #0072ff, #8811c5);
color: #fff;
font-weight: bold;
line-height: 80px;
}
.form-content {
padding: 5%;
border: 1px solid #ced4da;
margin-bottom: 2%;
}
.form-control {
border-radius: 1.5rem;
}
.btnSubmit {
border: none;
border-radius: 1.5rem;
padding: 1%;
width: 20%;
cursor: pointer;
background: #0062cc;
color: #fff;
}
.menu {
top: 50px;
}
</style>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<br><br>
<div class="container register-form">
<div class="form">
<div class="note">
<p>Recent patient Notes</p>
</div>
</div>
<table class="table table-hover" id="dev-table">
<thead>
<tr>
<th>Name</th>
<th>Notes</th>
<th>Date</th>
</tr>
</thead>
{{Notes.get_id}}
{% for a in notes %}
<tr>
<td>{{a.patientName}}</td>
<td>{{a.report}}</td>
<td>{{a.NoteDate}}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
<form method="post">
{% csrf_token %}
<div class="container register-form">
<div class="form">
<div class="note">
<p>Add New Notes</p>
</div>
<div class="form-content">
<div class="row">
<div class="col-md-12">
<div class="form-group">
{% render_field appointmentForm.report class="form-control" placeholder="Description" %}
</div>
<div class="form-group">
{% render_field appointmentForm.patientId class="form-control" placeholder="Patient" %}
</div>
<div class="form-group">
{% render_field appointmentForm.NoteDate class="form-control" placeholder="Date" %}
</div>
</div>
</div>
<button type="submit" class="btnSubmit">Add</button>
</div>
</div>
</div>
</form>
{% endblock content %}
Can someone please help me as by clicking the Notes of a particular patient only specific to that user notes has to be displayed as well as to add notes to that patient only.
After doing some R n D i was able to get through it just added a way to pass paramter as URL
<td><a class="btn btn-primary btn-xs" href="{% url 'doctor-add-notes' p.get_name %}">Notes</a></td>
and in Views
def doctor_add_notes_view(request,value):
appointmentForm=forms.PatientNotesForm()
print('value',value)
#notes = models.Notes.objects.all().order_by('-NoteDate')
notes = models.Notes.objects.all().filter(patientName=value).order_by('-NoteDate')
so URL becomes
http://127.0.0.1:8000/doctor-add-notes/P4
this way i was able to solve the problem ( learnt a new thing )
I am trying to automate login process in a website using robobrowser. here is the code:
browser = RoboBrowser()
login_url = 'https://fiitjeelogin.com'
post_login = 'https://fiitjeelogin.com/StudentDashboard.aspx?UserdID=1110611570024&BatchCode=MDIT57T04,%20MDIT57F05,%20MDIT57R05&CenterCode=61'
eventval = '/wEdAAl1eLz1ChyMlpOH84l9DXRBKhoCyVdJtLIis5AgYZ/RYe4sciJO3Hoc68xTFtZGQEg/Lx6HO3zp5MHCG49Y5hGYd39wMEiroGigGt6l+80X6qoJzVbh9uRjatIO8j62gEVUrsGtEC0SKq72cYUQj6MH2BaA8epCgZlCbUaqFyjHLgdkZW6ckU2fp2bSHM106Q/CZwerK9DhufKPKISNnwtBsTsTMrfob//+ZrYm6E/+LQ=='
viewstat = '/wEPDwUJOTI4MjgwNjQwD2QWAgIDD2QWAgIPD2QWAgIBD2QWAmYPZBYGAgMPFgIeB1Zpc2libGVoZAILDxYCHwBoZAINDw8WAh4EVGV4dAUEU2VuZGRkZFRRYynlwFTooznce3Y+ZTEmDUGkCBVmcuPXOfi78tSc'
browser.open(login_url)
form = browser.get_form(id = 'ctl01') #choosing matching form id
form['username'].value = 'username'
form['password'].value = 'password'
form['__VIEWSTATEGENERATOR'].value = 'C8125695' #constant
form['__EVENTVALIDATION'].value = eventval
form['__VIEWSTATE'] = viewstat
form['txtUsername'] = ''
form['txtemailid'] = ''
b_e_arg = '\<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" \/\>'
a = robobrowser.forms.fields.Input(b_e_arg) #assigning this using form['__EVENTARGUMENT'] gave a 400 BAD REQUEST...same for EVENTTARGET
b_e_target = '\<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" \/\>'
b = robobrowser.forms.fields.Input(b_e_target)
form.add_field(a)
form.add_field(b)
b_e_btn = '\<input class="buttonb" id="btnlogin" name="btnlogin" type="submit" value="Log in"\/\>'
c = robobrowser.forms.fields.Input(b_e_btn)
form.add_field(c)
submit_here = form['btnlogin']
submit_here.value = 'Log+in'
browser.submit_form(form, submit = submit_here)
alltext = browser.parsed
print alltext
Now, the login form takes the following inputs as seen by Firefox Debugging:
__EVENTTARGET,
__EVENTARGUMENT,
__VIEWSTATE,
__VIEWSTATEGENERATOR,
__EVENTVALIDATION, username, password, btnlogin, txtUsername, txtemailid,
The values for __VIEWSTATEGENERATOR , __EVENTVALIDATION , __VIEWSTATE do not change.
The code returns the HTML of the login page whereas I expect the HTML of the page after logging in.
I have tried this and from this
Here's the HTML of the Login Page:
<body>
<form method="post" action="" id="ctl01">
<div class="aspNetHidden">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTI4MjgwNjQwD2QWAgIDD2QWAgIPD2QWAgIBD2QWAmYPZBYGAgMPFgIeB1Zpc2libGVoZAILDxYCHwBoZAINDw8WAh4EVGV4dAUEU2VuZGRkZFRRYynlwFTooznce3Y+ZTEmDUGkCBVmcuPXOfi78tSc" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['ctl01'];
if (!theForm) {
theForm = document.ctl01;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="C8125695" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdAAl1eLz1ChyMlpOH84l9DXRBKhoCyVdJtLIis5AgYZ/RYe4sciJO3Hoc68xTFtZGQEg/Lx6HO3zp5MHCG49Y5hGYd39wMEiroGigGt6l+80X6qoJzVbh9uRjatIO8j62gEVUrsGtEC0SKq72cYUQj6MH2BaA8epCgZlCbUaqFyjHLgdkZW6ckU2fp2bSHM106Q/CZwerK9DhufKPKISNnwtBsTsTMrfob//+ZrYm6E/+LQ==" />
</div>
<fieldset style="border-color: #95B3d7; border-bottom: 0px; border-right: 0px; border-top: 0px;
border-left: 0px; padding-left: 10px">
<legend style="color: #365f91; font-weight: bold; font-family: Calibri; font-size: 15px">
Already Registered</legend>
<p>
<img src="StartpageImage/LoginLock.png" style="width: 130px; height: 130px" />
</p>
<div class="row">
<section class="col col-8">
<label class="label" style="color:#3698db ;font-family:Calibri">User Name</label><br />
<label class="input">
<input name="username" type="text" id="username" class="Jaitextbox" />
</label>
</section>
<section class="col col-8">
<label class="label" style="color:#3698db ;font-family:Calibri">Password</label><br />
<label class="input">
<input name="password" type="password" id="password" class="Jaitextbox" />
</label><br />
<p align="right" style="margin-right:100px;"><a id="lnkforgetpassword" href="javascript:__doPostBack('lnkforgetpassword','')" style="color:#F79646;color:#f79646 ;font-family:Calibri">Forgot Password?</a></p>
</section>
</div>
<input type="submit" name="btnlogin" value="Log in" id="btnlogin" class="buttonb" />
</div>
<div class="body">
<div id="updatpanelforgetpass">
<table>
<tr id="trDisp1">
<td colspan="2">
<h3 align="center" style="color: #365f91; font-family: Calibri; font-weight: bold">
<u>Forgot Password</u></h3>
</td>
</tr>
<tr id="trDisp3">
<td colspan="2">
Please provide registered User Name or EmailId with Fittjee
</td>
</tr>
<tr id="trDisp4">
<td>
<span id="lblUsername" style="color: #3698db; font-family: Calibri">UserName :</span>
</td>
<td>
<input name="txtUsername" type="text" id="txtUsername" class="Jaitextbox" /></p>
</td>
</tr>
<tr id="trDisp5">
<td>
<span id="lblemailid" style="color: #3698db; font-family: Calibri">EmailID :</span>
</td>
<td>
<input name="txtemailid" type="text" id="txtemailid" class="Jaitextbox" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="btnPass" value="Send" id="btnPass" class="buttonb" />
</td>
<div id="ValidationSummary1" class="error" style="display:none;">
</div>
<span id="lblMessage" style="color:Red;"></span>
</tr>
</table>
</div>
</div>
</div>