Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added webpage for Experence leave

  • Loading branch information...
commit dc5ed8bdac7273a7ffacf4bf267aedd53f28f0f2 1 parent 4da826c
@BangoriaRavi authored
Showing with 1,023 additions and 229 deletions.
  1. +1 −1  Developer log/What to do at initialization
  2. +14 −0 System_log/admin.log
  3. +3 −0  System_log/error.log
  4. +8 −2 cgi-bin/cgi/admin/Report.pm
  5. +125 −0 cgi-bin/cgi/admin/add_experence_leave.cgi
  6. +132 −0 cgi-bin/cgi/admin/add_experence_leave_db.cgi
  7. +2 −2 cgi-bin/cgi/employee/Report.pm
  8. +108 −70 cgi-bin/cgi/lib/Get_leave_balance.pm
  9. +2 −2 cgi-bin/cgi/superadmin/Report.pm
  10. +116 −28 html/index.html
  11. +28 −116 html/index2.html
  12. BIN  html/pdf/1.pdf
  13. BIN  html/pdf/2.pdf
  14. BIN  html/pdf/8.pdf
  15. +1 −0  html/template/admin/add_department.tmpl
  16. +1 −0  html/template/admin/add_designation.tmpl
  17. +462 −0 html/template/admin/add_experence_leave.tmpl
  18. +10 −8 html/template/admin/add_holiday.tmpl
  19. +1 −0  html/template/admin/change_password.tmpl
  20. +1 −0  html/template/admin/delete_user.tmpl
  21. +1 −0  html/template/admin/dept_wise_leave_history.tmpl
  22. +1 −0  html/template/admin/emp_wise_leave_history.tmpl
  23. +1 −0  html/template/admin/leave_history.tmpl
  24. +1 −0  html/template/admin/new_user.tmpl
  25. +1 −0  html/template/admin/notification.tmpl
  26. +1 −0  html/template/admin/request_leave.tmpl
  27. +1 −0  html/template/admin/review_leave.tmpl
  28. +1 −0  html/template/admin/update_user.tmpl
View
2  Developer log/What to do at initialization
@@ -1,7 +1,7 @@
What to do at initialization:
- Give permission 755 to all cgi files, folders
- - Give 777 to pdf folder
+ - Give create and delete access for all users to pdf folder
- Give 777 to all temp files (temp file is used for debuging purpose)
- Configure Apache as instruction shown in /home/ravi/Workspace/configure\ Apache
View
14 System_log/admin.log
@@ -235,3 +235,17 @@
12/10/2012 17:26:31 Fri Pinal Patel Signin
12/10/2012 17:33:22 Fri Pinal Patel Signout
12/10/2012 17:53:10 Fri Pinal Patel Updated user info. id: 46
+15/10/2012 16:42:51 Mon Pinal Patel Changes experence leaves.
+15/10/2012 16:43:53 Mon Pinal Patel Changes experence leaves.
+15/10/2012 16:44:01 Mon Pinal Patel Changes experence leaves.
+15/10/2012 16:44:12 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:23:34 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:23:41 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:23:49 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:24:16 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:24:21 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:24:25 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:29:25 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:30:00 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:33:58 Mon Pinal Patel Changes experence leaves.
+15/10/2012 17:34:16 Mon Pinal Patel Changes experence leaves.
View
3  System_log/error.log
@@ -0,0 +1,3 @@
+15/10/2012 16:42:51 Mon execute called with an unbound placeholder
+15/10/2012 16:42:51 Mon execute called with an unbound placeholder
+15/10/2012 16:42:51 Mon execute called with an unbound placeholder
View
10 cgi-bin/cgi/admin/Report.pm
@@ -411,6 +411,7 @@ sub year_wise_report
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
+ unlink($pdf_path.$employee_id.".pdf");
$pdf->to_file($pdf_path.$employee_id.".pdf");
return $employee_id.".pdf";
}
@@ -769,6 +770,7 @@ sub month_wise_report
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
+ unlink($pdf_path.$employee_id.".pdf");
$pdf->to_file($pdf_path.$employee_id.".pdf");
return $employee_id.".pdf";
}
@@ -951,6 +953,7 @@ sub date_wise_report
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
+ unlink($pdf_path.$employee_id.".pdf");
$pdf->to_file($pdf_path.$employee_id.".pdf");
return $employee_id.".pdf";
}
@@ -1221,6 +1224,7 @@ sub date_wise_report
# #print "Content-Type: Application/pdf\n\n";
# #print $pdf->to_string();
#
+# unlink($pdf_path."summary.pdf");
# $pdf->to_file($pdf_path."summary.pdf");
# return "summary.pdf";
# }
@@ -1562,8 +1566,9 @@ sub summary_report_v2
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
- $pdf->to_file($pdf_path."sumarry.pdf");
- return "sumarry.pdf";
+ unlink($pdf_path."summary.pdf");
+ $pdf->to_file($pdf_path."summary.pdf");
+ return "summary.pdf";
}
@@ -1907,6 +1912,7 @@ sub dept_wise_report
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
+ unlink($pdf_path.$selected_dept.".pdf");
$pdf->to_file($pdf_path.$selected_dept.".pdf");
return $selected_dept.".pdf";
}
View
125 cgi-bin/cgi/admin/add_experence_leave.cgi
@@ -0,0 +1,125 @@
+#!/usr/bin/perl
+
+# Author: Bangoria Ravi B.
+
+use strict;
+use warnings;
+use Data::Dumper;
+use DBI;
+use CGI;
+use CGI::Session;
+use HTML::Template::Expr;
+
+use lib "../lib/";
+use Connection;
+use Loger;
+
+my $template_path = "../../../html/template/admin/";
+
+my $query = CGI->new();
+my $session = CGI::Session->new();
+
+if(defined $session->param("employee_id"))
+{
+ my $privilege_id = $session->param("privilege_id");
+ my $employee_name = $session->param("employee_name");
+
+ if($privilege_id == 2) # Only Admin can execute this page
+ {
+ my $employee_id = $session->param("employee_id");
+ my $dbh = connect_database("leave_mgt_db", "postgres", "ravi12052008") or Loger::error_log(DBI->errstr, $query);
+
+ my $experence_leave_array_ref = [];
+ my $total_rows = 0;
+ my $experence_leave_string = "";
+ my $template;
+ my $stmt;
+ my $ref;
+
+
+ $template = HTML::Template::Expr->new ("filename" => $template_path."add_experence_leave.tmpl");
+ $template->param("employee_name" => $employee_name);
+
+ # If employee is parent of any other employee, he can review leave
+ $stmt = $dbh->prepare("SELECT count(*) FROM employee_hirarchy WHERE parent_employee_id = ?");
+ $stmt->bind_param(1, $employee_id);
+ $stmt->execute() or Loger::error_log(DBI->errstr, $query);
+ my @result = $stmt->fetchrow();
+ if($result[0] > 0)
+ {
+ $template->param("leave_review_enable" => "true");
+ }
+
+ # If employee is default employee, he can review all request
+ $stmt = $dbh->prepare("SELECT * FROM default_user WHERE employee_id = ?");
+ $stmt->bind_param(1, $employee_id);
+ $stmt->execute() or Loger::error_log(DBI->errstr, $query);
+ if($stmt->rows >= 1)
+ {
+ $template->param("leave_review_enable" => "true");
+ }
+
+
+ $stmt = $dbh->prepare("SELECT * FROM experence_leave ORDER BY years");
+ $stmt->execute();
+ while($ref = $stmt->fetchrow_hashref())
+ {
+ push(@{$experence_leave_array_ref}, $ref);
+ $total_rows++;
+ $experence_leave_string .= $ref->{"years"}.";".$ref->{"additional_leaves"}.";";
+ }
+ $template->param("experence_leave_array_ref", $experence_leave_array_ref);
+ $template->param("total_rows", $total_rows);
+ $template->param("experence_leave_string", substr($experence_leave_string, 0, length($experence_leave_string) - 1));
+
+
+ if(defined $session->param("admin_add_experence_leave_db")) # Whether this page is redirected from admin_add_experence_leave_db.cgi or not.
+ {
+ my $error_message_hash_ref = $session->param("error_message_hash_ref");
+
+ if(!defined $error_message_hash_ref) # If there is no error, experence leave added succesfully.
+ {
+ my $message = "Experence leaves are updated successfully.";
+ $template->param("message", $message);
+ }
+ else # Error in data or any other operation. So experence leave added cannot be updated successfully.
+ {
+ if(defined($error_message_hash_ref->{"message"}))
+ {
+ $template->param("message", $error_message_hash_ref->{"message"});
+ delete($error_message_hash_ref->{"message"});
+ }
+ else
+ {
+ my $message = "Error while updating experence leave.";
+ $template->param("message", $message);
+ }
+
+ $error_message_hash_ref = $session->param("error_message_hash_ref");
+ foreach(keys %$error_message_hash_ref)
+ {
+ $template->param("error_".$_, $error_message_hash_ref->{$_});
+ }
+ }
+
+ # Remove all variables from session. So next time when user click on hyperlink, it won't show filled data.
+ $session->clear(["admin_add_experence_leave_db"]);
+ $session->clear(["error_message_hash_ref"]);
+ }
+
+ $stmt->finish() if defined $stmt;
+ $dbh->disconnect();
+
+ print "Cache-Control: no-cache, no-store\n";
+ print $query->header();
+ print $template->output();
+ }
+ else
+ {
+ print $query->redirect("/signout");
+ }
+}
+else
+{
+ print $query->redirect("/signout");
+}
View
132 cgi-bin/cgi/admin/add_experence_leave_db.cgi
@@ -0,0 +1,132 @@
+#!/usr/bin/perl
+
+# Author: Bangoria Ravi B.
+
+use strict;
+use warnings;
+use CGI;
+use CGI::Session;
+use Data::Dumper;
+
+use lib "../lib/";
+use Connection;
+use Loger;
+
+sub trim
+{
+ my $string = shift;
+ $string =~ s/^\s+//;
+ $string =~ s/\s+$//;
+ return $string;
+}
+
+my $template_path = "../../../html/template/admin/";
+my $query = CGI->new();
+my $session = CGI::Session->new();
+
+
+if(defined $session->param("employee_id"))
+{
+ my $privilege_id = $session->param("privilege_id");
+ my $employee_id = $session->param("employee_id");
+
+ if($privilege_id == 2) # Only Admin can execute this page
+ {
+ my $experence_leave_string = trim($query->param("experence_leave_string"));
+ my @experence_leave_array = split(";", $experence_leave_string);
+
+ my $error_flag = 0;
+ my %error_message = ();
+
+ my $dbh = connect_database("leave_mgt_db", "postgres", "ravi12052008") or Loger::error_log(DBI->errstr, $query);
+ my $stmt;
+ my $ref;
+
+
+ #-- ===================================================================================
+ # Server side validation
+ #-- ===================================================================================
+ if(@experence_leave_array % 2 != 0)
+ {
+ $error_flag = 1;
+ $error_message{"message"} = "Error. Cannot add experence leave.";
+ }
+
+ # Make sure that array contains only positive real numbers
+ foreach my $ele (@experence_leave_array)
+ {
+ if(!($ele =~ m/^ [0-9.]+ $/xgi))
+ {
+ $error_flag = 1;
+ $error_message{"message"} = "Error. Only positive real numbers are allowed.";
+ last;
+ }
+ }
+
+ # Check whether two years are same or not. Compare only years i.e. values at even index.
+
+ # I have used bad approach to compare elements of array.
+ # Change it if you know batter approach.
+ for(my $i = 0; $i < @experence_leave_array - 2; $i = $i + 2)
+ {
+ for(my $j = $i + 2; $j < @experence_leave_array; $j = $j + 2)
+ {
+ if($experence_leave_array[$i] == $experence_leave_array[$j])
+ {
+ $error_flag = 1;
+ $error_message{"message"} = "Error. Cannot add experence leave.";
+ last;
+ }
+ }
+ }
+
+
+
+ #-- ===================================================================================
+ # Database interaction
+ #-- ===================================================================================
+
+ if($error_flag == 0)
+ {
+ # Delete everything from table
+ $stmt = $dbh->prepare("DELETE FROM experence_leave");
+ $stmt->execute() or Loger::error_log(DBI->errstr, $query);
+
+ # Add fresh list in table
+ for(my $i = 0; $i < @experence_leave_array; $i = $i + 2)
+ {
+ $stmt = $dbh->prepare("INSERT INTO experence_leave VALUES (?, ?)");
+ $stmt->bind_param(1, $experence_leave_array[$i]);
+ $stmt->bind_param(2, $experence_leave_array[$i + 1]);
+ $stmt->execute() or Loger::error_log(DBI->errstr, $query);
+ }
+
+
+ # Log
+ Loger::leave_mgt_log($employee_id, "Changes experence leaves.", $dbh);
+
+
+ $stmt->finish() if defined $stmt;
+ $dbh->disconnect();
+
+ $session->param("admin_add_experence_leave_db", 1);
+ print $query->redirect("/admin/experence_leave");
+ }
+ else
+ {
+ $dbh->disconnect();
+
+ $session->param("admin_add_experence_leave_db", 1);
+ $session->param("error_message_hash_ref", \%error_message);
+ print $query->redirect("/admin/experence_leave");
+ }
+ }
+ else
+ {
+ print $query->redirect("/signout");
+ }
+}
+else
+{
+ print $query->redirect("/signout");
+}
View
4 cgi-bin/cgi/employee/Report.pm
@@ -1562,8 +1562,8 @@ sub summary_report_v2
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
- $pdf->to_file($pdf_path."sumarry.pdf");
- return "sumarry.pdf";
+ $pdf->to_file($pdf_path."summary.pdf");
+ return "summary.pdf";
}
View
178 cgi-bin/cgi/lib/Get_leave_balance.pm
@@ -121,6 +121,7 @@ sub get_leave_balance
my $stmt;
my $ref;
+
# Check whether employee is in probation period or not
my $is_in_probation = in_probation($employee_id, $dbh);
if($is_in_probation == 1)
@@ -128,6 +129,7 @@ sub get_leave_balance
return [0, 0];
}
+
# Get all leave requests of empoyee_id
$stmt = $dbh->prepare("SELECT leave_request_id, leave_master_id FROM leave_request WHERE employee_id = ?");
$stmt->bind_param(1, $employee_id);
@@ -136,121 +138,157 @@ sub get_leave_balance
# Get all Approved Paid leave of employee_id
my %leave_approved_id_hash = ();
- while($ref = $stmt->fetchrow_hashref())
{
- my $stmt1;
- my $ref1;
- $stmt1 = $dbh->prepare("SELECT * FROM leave_approval WHERE leave_request_id = ? AND leave_type_id = ? AND approval_flag = ?");
- $stmt1->bind_param(1, $ref->{"leave_request_id"});
- $stmt1->bind_param(2, 1); # Paid leave
- $stmt1->bind_param(3, "Approved");
- $stmt1->execute();
- if($ref1 = $stmt1->fetchrow_hashref())
+ while($ref = $stmt->fetchrow_hashref())
{
- my $leave_approval_id = $ref1->{"leave_approval_id"};
- my $countable_days = $ref1->{"countable_days"};
- $leave_approved_id_hash{$leave_approval_id} = $countable_days;
+ my $stmt1;
+ my $ref1;
+ $stmt1 = $dbh->prepare("SELECT * FROM leave_approval WHERE leave_request_id = ? AND leave_type_id = ? AND approval_flag = ?");
+ $stmt1->bind_param(1, $ref->{"leave_request_id"});
+ $stmt1->bind_param(2, 1); # Paid leave
+ $stmt1->bind_param(3, "Approved");
+ $stmt1->execute();
+ if($ref1 = $stmt1->fetchrow_hashref())
+ {
+ my $leave_approval_id = $ref1->{"leave_approval_id"};
+ my $countable_days = $ref1->{"countable_days"};
+ $leave_approved_id_hash{$leave_approval_id} = $countable_days;
+ }
+ $stmt1->finish() if defined $stmt1;
}
- $stmt1->finish() if defined $stmt1;
}
# Remove all canceled leave from approved leaves of employee_id
- my @marked_to_delete = ();
- foreach(keys %leave_approved_id_hash)
{
- my $leave_approval_id = $_;
- $stmt = $dbh->prepare("SELECT * FROM canceled_leave WHERE leave_approval_id = ?");
- $stmt->bind_param(1, $leave_approval_id);
- $stmt->execute();
- if($ref = $stmt->fetchrow_hashref())
+ my @marked_to_delete = ();
+ foreach(keys %leave_approved_id_hash)
{
- push(@marked_to_delete, $leave_approval_id);
+ my $leave_approval_id = $_;
+ $stmt = $dbh->prepare("SELECT * FROM canceled_leave WHERE leave_approval_id = ?");
+ $stmt->bind_param(1, $leave_approval_id);
+ $stmt->execute();
+ if($ref = $stmt->fetchrow_hashref())
+ {
+ push(@marked_to_delete, $leave_approval_id);
+ }
+ }
+ foreach(@marked_to_delete)
+ {
+ delete($leave_approved_id_hash{$_});
}
- }
- foreach(@marked_to_delete)
- {
- delete($leave_approved_id_hash{$_});
}
# Count total_accured_leave
my $total_accured_leave = 0;
- foreach(keys %leave_approved_id_hash)
{
- if($leave_approved_id_hash{$_} > 0)
+ foreach(keys %leave_approved_id_hash)
{
- $total_accured_leave = $total_accured_leave + $leave_approved_id_hash{$_};
+ if($leave_approved_id_hash{$_} > 0)
+ {
+ $total_accured_leave = $total_accured_leave + $leave_approved_id_hash{$_};
+ }
}
}
# Add old accured leave which are not in our database.
- $stmt = $dbh->prepare("SELECT * FROM old_leave_data WHERE employee_id = ?");
- $stmt->bind_param(1, $employee_id);
- $stmt->execute();
- if($ref = $stmt->fetchrow_hashref())
{
- $total_accured_leave = $total_accured_leave + $ref->{"old_accured_leave"};
+ $stmt = $dbh->prepare("SELECT * FROM old_leave_data WHERE employee_id = ?");
+ $stmt->bind_param(1, $employee_id);
+ $stmt->execute();
+ if($ref = $stmt->fetchrow_hashref())
+ {
+ $total_accured_leave = $total_accured_leave + $ref->{"old_accured_leave"};
+ }
}
# Count total_allowed_leave
my $total_allowed_leave = 0;
- $stmt = $dbh->prepare("SELECT * FROM employee_probation WHERE employee_id = ?");
- $stmt->bind_param(1, $employee_id);
- $stmt->execute();
my ($yr, $mn, $dt);
- if($ref = $stmt->fetchrow_hashref()) # If employee 'WAS' in probation period
- {
- my $probation_ending_date = $ref->{"probation_ending_date"};
- ($dt, $mn, $yr) = split("/", $probation_ending_date);
- }
- else # If employee WASN'T in probation period.
{
- $stmt = $dbh->prepare("SELECT * FROM employee WHERE employee_id = ?");
+ my $probation_ending_date;
+ my $joining_date;
+
+ $stmt = $dbh->prepare("SELECT * FROM employee_probation WHERE employee_id = ?");
$stmt->bind_param(1, $employee_id);
$stmt->execute();
- $ref = $stmt->fetchrow_hashref();
- my $joining_date = $ref->{"employee_joining_date"};
- ($dt, $mn, $yr) = split("/", $joining_date);
+ if($ref = $stmt->fetchrow_hashref()) # If employee 'WAS' in probation period
+ {
+ $probation_ending_date = $ref->{"probation_ending_date"};
+ ($dt, $mn, $yr) = split("/", $probation_ending_date);
+ }
+ else # If employee WASN'T in probation period.
+ {
+ $stmt = $dbh->prepare("SELECT * FROM employee WHERE employee_id = ?");
+ $stmt->bind_param(1, $employee_id);
+ $stmt->execute();
+ $ref = $stmt->fetchrow_hashref();
+ $joining_date = $ref->{"employee_joining_date"};
+ ($dt, $mn, $yr) = split("/", $joining_date);
+ }
+ my $diff = Delta_Days($yr,$mn,$dt, $yr,12,31);
+ my $days_in_year = Days_in_Year($yr, 12);
+
+ $total_allowed_leave = $diff * 15 / $days_in_year; # Equation: 15 leave in $days_in_year then ? in $diff
+ $total_allowed_leave = int($total_allowed_leave + 0.5);
+
+ my $i = $yr + 1;
+ while($i <= get_todays_year())
+ {
+ $total_allowed_leave = $total_allowed_leave + 15;
+ $i++;
+ }
}
- my $diff = Delta_Days($yr,$mn,$dt, $yr,12,31);
- my $days_in_year = Days_in_Year($yr, 12);
- $total_allowed_leave = $diff * 15 / $days_in_year; # Equation: 15 leave in $days_in_year then ? in $diff
- $total_allowed_leave = int($total_allowed_leave + 0.5);
-
- my $i = $yr + 1;
- while($i <= get_todays_year())
+
+ # Add Experence Leave
+ my $experence_leave = 0;
{
- $total_allowed_leave = $total_allowed_leave + 15;
- $i++;
+ my $experence;
+ $experence = Delta_Days($yr, $mn, $dt, get_todays_year(), get_todays_month(), get_todays_day()); # Joining_date_or_Probation_ending_date to Today
+ $experence = $experence / 365; # Convert number of days into number of years.
+
+ $stmt = $dbh->prepare("SELECT * FROM experence_leave ORDER BY years");
+ $stmt->execute();
+ while($ref = $stmt->fetchrow_hashref())
+ {
+ if($experence >= $ref->{years})
+ {
+ $experence_leave = $ref->{"additional_leave"};
+ }
+ }
}
+ $total_allowed_leave += $experence_leave;
+
# Count total_bonus_leave
my $total_bonus_leave = 0;
- $stmt = $dbh->prepare("SELECT * FROM bonus_leave_request WHERE employee_id = ?");
- $stmt->bind_param(1, $employee_id);
- $stmt->execute();
- while($ref = $stmt->fetchrow_hashref())
{
- my $stmt1;
- my $ref1;
-
- $stmt1 = $dbh->prepare("SELECT * FROM bonus_leave_approval WHERE bonus_leave_request_id = ?");
- $stmt1->bind_param(1, $ref->{"bonus_leave_request_id"});
- $stmt1->execute();
-
- if($ref1 = $stmt1->fetchrow_hashref())
+ $stmt = $dbh->prepare("SELECT * FROM bonus_leave_request WHERE employee_id = ?");
+ $stmt->bind_param(1, $employee_id);
+ $stmt->execute();
+ while($ref = $stmt->fetchrow_hashref())
{
- if($ref1->{"approval_flag"} eq "Approved")
+ my $stmt1;
+ my $ref1;
+
+ $stmt1 = $dbh->prepare("SELECT * FROM bonus_leave_approval WHERE bonus_leave_request_id = ?");
+ $stmt1->bind_param(1, $ref->{"bonus_leave_request_id"});
+ $stmt1->execute();
+
+ if($ref1 = $stmt1->fetchrow_hashref())
{
- $total_bonus_leave += $ref1->{"countable_days"};
+ if($ref1->{"approval_flag"} eq "Approved")
+ {
+ $total_bonus_leave += $ref1->{"countable_days"};
+ }
}
+ $stmt1->finish() if defined $stmt1;
}
- $stmt1->finish() if defined $stmt1;
}
View
4 cgi-bin/cgi/superadmin/Report.pm
@@ -1546,8 +1546,8 @@ sub summary_report_v2
#print "Content-Type: Application/pdf\n\n";
#print $pdf->to_string();
- $pdf->to_file($pdf_path."sumarry.pdf");
- return "sumarry.pdf";
+ $pdf->to_file($pdf_path."summary.pdf");
+ return "summary.pdf";
}
View
144 html/index.html
@@ -1,37 +1,125 @@
<!DOCTYPE html>
<html>
<head>
-<title>Maintenance</title>
-<style type="text/css">
-body
-{
- font-family:Verdana, Arial, Helvetica, sans-serif;
-}
-.main_index
-{
- width: 50%;
- margin-left: 25%;
- margin-right: 25%;
- min-width: 550px;
-}
-</style>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>FN Leave Mgt System</title>
+
+ <script type="text/javascript" src="../js/jquery.js"></script>
+
+ <script type="text/javascript">
+ function validate()
+ {
+ var username = document.getElementById("username").value;
+ var password = document.getElementById("password").value;
+
+ if(username == '' || password == '')
+ {
+ alert("Username or password cannot be empty");
+ return false;
+ }
+ return true;
+ }
+ </script>
+ <style type="text/css">
+ body
+ {
+ font-family:Verdana, Arial, Helvetica, sans-serif;
+ }
+ .user
+ {
+ color: #AAAAAA;
+ font-family:Verdana, Arial, Helvetica, sans-serif;
+ font-size: 13px
+ }
+ .main_index
+ {
+ width: 50%;
+ margin-left: 25%;
+ margin-right: 25%;
+ min-width: 550px;
+ }
+ .signout
+ {
+ font-size: 13px;
+ text-decoration: none;
+ color: #660066;
+ }
+ .textbox
+ {
+ width:200px;
+ margin-top:1px;
+ font-size:12px;
+ border:1px solid #a5acb2;
+ font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;
+ }
+ .g-button-white
+ {
+ border: 1px solid #dcdcdc;
+ color: #666666;
+ background: #EEEEEE;
+ padding-bottom: 5px;
+ padding-top: 5px;
+ padding-right: 10px;
+ padding-left: 10px;
+ }
+ .g-button-white:hover
+ {
+ border: 1px solid #C6C6C6;
+ color: #333333;
+ background: #EEEEEE;
+ }
+ .g-button-white:active
+ {
+ background: #EEEEEE;
+ }
+ .forgot_password
+ {
+ font-size: 13px;
+ text-decoration: none;
+ color: #3333FF;
+ }
+ </style>
</head>
<body>
-<div class="main_index">
- </br>
- <p>&nbsp;</p>
- <p title="FlightNetwork Leave Management System" style="padding: 0px; margin: 0px;">
- <img src="../images/logo.jpg" border="0" width="285" height="69" style="padding: 0px; margin: 0px;"/>
- </p>
- <p style="padding: 0px; margin: 0px;">&nbsp;</p>
- <fieldset style="border: 1px solid #DDDDDD;">
+ <div class="main_index">
+ <p>&nbsp;</p>
+ <p title="FlightNetwork Leave Management System" style="padding: 0px; margin: 0px;">
+ <img src="../images/logo.jpg" border="0" width="285" height="69" style="padding: 0px; margin: 0px;"/>
+ </p>
+ <p style="padding: 0px; margin: 0px;">&nbsp;</p>
+ <fieldset style="border: 1px solid #DDDDDD;">
+ <center>
+ <form action="/signin" method="post" onsubmit="return validate()">
+ <table border="0" cellspacing="0" cellpadding="3" style=" font-size: 13px; text-align: left;">
+ <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
+ <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
+
+ <tr><td>Username *</td></tr>
+ <tr>
+ <td><input type="text" name="username" id="username" class="textbox" /></td>
+ </tr>
+
+ <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
+
+ <tr><td>Password *</td></tr>
+ <tr>
+ <td><input type="password" name="password" id="password" class="textbox"/></td>
+ </tr>
+
+ <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
+
+ <tr>
+ <td><input type="submit" class="g-button-white" value="Signin" /></td>
+ </tr>
+ <tr><td><a href="/forgot_password.html" class="forgot_password">Forgot password?</a></td></tr>
+ <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
+ </table>
+ </form>
+ </center>
+ </fieldset>
</br>
- <center>
- <h2><span style="color:#36f; letter-spacing:2px;">Under Maintenance</span></h2>
- <p style="font-size: 15px;">Sorry! &nbsp;Our site is under maintance.</br>Please try again after some time.</p>
- </center>
</br>
- </fieldset>
-</div>
+ <div style="color: #AAAAAA; font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 13px">Best viewed in Google Chrome, Mozila Firefox</div>
+ </div>
</body>
</html>
View
144 html/index2.html
@@ -1,125 +1,37 @@
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>FN Leave Mgt System</title>
-
- <script type="text/javascript" src="../js/jquery.js"></script>
-
- <script type="text/javascript">
- function validate()
- {
- var username = document.getElementById("username").value;
- var password = document.getElementById("password").value;
-
- if(username == '' || password == '')
- {
- alert("Username or password cannot be empty");
- return false;
- }
- return true;
- }
- </script>
- <style type="text/css">
- body
- {
- font-family:Verdana, Arial, Helvetica, sans-serif;
- }
- .user
- {
- color: #AAAAAA;
- font-family:Verdana, Arial, Helvetica, sans-serif;
- font-size: 13px
- }
- .main_index
- {
- width: 50%;
- margin-left: 25%;
- margin-right: 25%;
- min-width: 550px;
- }
- .signout
- {
- font-size: 13px;
- text-decoration: none;
- color: #660066;
- }
- .textbox
- {
- width:200px;
- margin-top:1px;
- font-size:12px;
- border:1px solid #a5acb2;
- font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;
- }
- .g-button-white
- {
- border: 1px solid #dcdcdc;
- color: #666666;
- background: #EEEEEE;
- padding-bottom: 5px;
- padding-top: 5px;
- padding-right: 10px;
- padding-left: 10px;
- }
- .g-button-white:hover
- {
- border: 1px solid #C6C6C6;
- color: #333333;
- background: #EEEEEE;
- }
- .g-button-white:active
- {
- background: #EEEEEE;
- }
- .forgot_password
- {
- font-size: 13px;
- text-decoration: none;
- color: #3333FF;
- }
- </style>
+<title>Maintenance</title>
+<style type="text/css">
+body
+{
+ font-family:Verdana, Arial, Helvetica, sans-serif;
+}
+.main_index
+{
+ width: 50%;
+ margin-left: 25%;
+ margin-right: 25%;
+ min-width: 550px;
+}
+</style>
</head>
<body>
- <div class="main_index">
- <p>&nbsp;</p>
- <p title="FlightNetwork Leave Management System" style="padding: 0px; margin: 0px;">
- <img src="../images/logo.jpg" border="0" width="285" height="69" style="padding: 0px; margin: 0px;"/>
- </p>
- <p style="padding: 0px; margin: 0px;">&nbsp;</p>
- <fieldset style="border: 1px solid #DDDDDD;">
- <center>
- <form action="/signin" method="post" onsubmit="return validate()">
- <table border="0" cellspacing="0" cellpadding="3" style=" font-size: 13px; text-align: left;">
- <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
- <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
-
- <tr><td>Username *</td></tr>
- <tr>
- <td><input type="text" name="username" id="username" class="textbox" /></td>
- </tr>
-
- <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
-
- <tr><td>Password *</td></tr>
- <tr>
- <td><input type="password" name="password" id="password" class="textbox"/></td>
- </tr>
-
- <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
-
- <tr>
- <td><input type="submit" class="g-button-white" value="Signin" /></td>
- </tr>
- <tr><td><a href="/forgot_password.html" class="forgot_password">Forgot password?</a></td></tr>
- <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>
- </table>
- </form>
- </center>
- </fieldset>
+<div class="main_index">
+ </br>
+ <p>&nbsp;</p>
+ <p title="FlightNetwork Leave Management System" style="padding: 0px; margin: 0px;">
+ <img src="../images/logo.jpg" border="0" width="285" height="69" style="padding: 0px; margin: 0px;"/>
+ </p>
+ <p style="padding: 0px; margin: 0px;">&nbsp;</p>
+ <fieldset style="border: 1px solid #DDDDDD;">
</br>
+ <center>
+ <h2><span style="color:#36f; letter-spacing:2px;">Under Maintenance</span></h2>
+ <p style="font-size: 15px;">Sorry! &nbsp;Our site is under maintance.</br>Please try again after some time.</p>
+ </center>
</br>
- <div style="color: #AAAAAA; font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 13px">Best viewed in Google Chrome, Mozila Firefox</div>
- </div>
+ </fieldset>
+</div>
</body>
</html>
View
BIN  html/pdf/1.pdf
Binary file not shown
View
BIN  html/pdf/2.pdf
Binary file not shown
View
BIN  html/pdf/8.pdf
Binary file not shown
View
1  html/template/admin/add_department.tmpl
@@ -340,6 +340,7 @@
<a href="" class="activeLink" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/add_designation.tmpl
@@ -393,6 +393,7 @@
<a href="" class="activeLink" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
462 html/template/admin/add_experence_leave.tmpl
@@ -0,0 +1,462 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title><TMPL_VAR NAME="employee_name"></title>
+
+ <script type="text/javascript" src="../../js/jquery.js"></script>
+
+ <!-- ===================================================================================
+ Form validation script
+ =================================================================================== -->
+ <script type="text/javascript">
+ //This method removes leading and trailing whitespace from a string.
+ String.prototype.trim = function()
+ {
+ var str = this.replace(/(^\s+)|(\s+$)/g,'');
+ return str;
+ };
+
+ </script>
+
+
+ <!-- ===================================================================================
+ Nevigation Menu style and script
+ =================================================================================== -->
+ <style type="text/css">
+ #menu
+ {
+ padding:0px;
+ margin: 0px;
+ float: left;
+ }
+
+ .tab-box
+ {
+ border-bottom: 0px solid #DDDDDD;
+ padding-bottom: 5px;
+ margin-left: 0px;
+ font-size: 13px;
+ }
+
+ .tabbox ul
+ {
+ float: left;
+ list-style: none;
+ }
+
+ .tab-box ul li
+ {
+ padding-left: 2px;
+ padding-right: 2px;
+ padding-bottom: 0px;
+ padding-top: 0px;
+ float: left;
+ list-style: none;
+ }
+
+ .tab-box ul li a
+ {
+ border:1px solid #DDDDDD;
+ color:#333333;
+ padding: 5px 13px;
+ text-decoration:none;
+ background-color: #EEEEEE;
+ font-size: 13px;
+ }
+
+ .tab-box ul li ul
+ {
+ margin: 0;
+ padding: 5px 0px 5px 0px;
+ visibility: hidden;
+ display: block;
+ position: absolute;
+ }
+
+ .tab-box ul li a.activeLink
+ {
+ background-color: #FFFFFF;
+ border-bottom: 0;
+ padding: 5px 13px;
+ font-size: 13px;
+ }
+
+ .tab-box ul li ul li
+ {
+ padding: 6px 0px 6px 0px;
+ margin: 0px;
+ float: none;
+ list-style: none;
+ display: block;
+ background-color: #EEEEEE;
+ border: 1px solid #DDDDDD;
+ }
+
+ .tab-box ul li ul li a
+ {
+ background: #EEEEEE;
+ color: #333333;
+ border: 0px;
+ }
+
+ .tabcontent
+ {
+ padding: 5px;
+ font-size: 13px;
+ }
+
+ .hide
+ {
+ display: none;
+ }
+
+ .small
+ {
+ color: #999;
+ margin-top: 50px;
+ border: 1px solid #EEEEEE;
+ padding: 5px;
+ font-size: 9px;
+ font-family:Verdana, Arial, Helvetica, sans-serif;
+ }
+ </style>
+
+ <script type="text/javascript">
+ var timeout = 250;
+ var closetimer = 0;
+ var ddmenuitem = 0;
+
+ function menu_open()
+ {
+ menu_canceltimer();
+ menu_close();
+ ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');
+ }
+
+ function menu_close()
+ {
+ if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');
+ }
+
+ function menu_timer()
+ {
+ closetimer = window.setTimeout(menu_close, timeout);
+ }
+
+ function menu_canceltimer()
+ {
+ if(closetimer)
+ {
+ window.clearTimeout(closetimer);
+ closetimer = null;
+ }
+ }
+
+ $(document).ready(function()
+ {
+ $('#menu > li').bind('mouseover', menu_open);
+ $('#menu > li').bind('mouseout', menu_timer);
+ });
+
+ document.onclick = menu_close;
+ </script>
+
+
+ <!-- ===================================================================================
+ Styles for content
+ =================================================================================== -->
+ <style type="text/css">
+ body
+ {
+ font-family:Verdana, Arial, Helvetica, sans-serif;
+ }
+ .user
+ {
+ color: #AAAAAA;
+ font-family:Verdana, Arial, Helvetica, sans-serif;
+ font-size: 13px
+ }
+ .main
+ {
+ width: 70%;
+ margin-left: 15%;
+ margin-right: 15%;
+ min-width: 873px;
+ }
+ .signout
+ {
+ font-size: 13px;
+ text-decoration: none;
+ color: #3333FF;
+ }
+ .textbox
+ {
+ width: 160px;
+ margin-top: 1px;
+ font-size: 12px;
+ border: 1px solid #a5acb2;
+ font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
+ }
+ .textbox_middle
+ {
+ width: 100px;
+ margin-top: 1px;
+ font-size: 12px;
+ border: 1px solid #a5acb2;
+ font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
+ }
+ .select
+ {
+ width: 160px;
+ }
+ .textarea
+ {
+ border: 1px solid #a5acb2;
+ }
+ .g-button-white
+ {
+ border: 1px solid #dcdcdc;
+ color: #666666;
+ background: #EEEEEE;
+ padding-bottom: 5px;
+ padding-top: 5px;
+ padding-right: 10px;
+ padding-left: 10px;
+ }
+ .g-button-white:hover
+ {
+ border: 1px solid #C6C6C6;
+ color: #333333;
+ background: #EEEEEE;
+ }
+ .g-button-white:active
+ {
+ background: #EEEEEE;
+ }
+ </style>
+
+ <script type="text/javascript" >
+ String.prototype.trim = function()
+ {
+ var str = this.replace(/(^\s+)|(\s+$)/g,'');
+ return str;
+ };
+
+ function append()
+ {
+ var new_yrs = document.getElementById("new_yrs").value.trim();
+ var new_leaves = document.getElementById("new_leaves").value.trim();
+
+ if(new_yrs == '' || isNaN(new_yrs) || new_leaves == '' || isNaN(new_leaves))
+ return false;
+
+ var experence_leave_string = document.getElementById("experence_leave_string").value;
+ var experence_leave_array = experence_leave_string.split(";");
+ var len = experence_leave_array.length;
+ if(len == 1) len = 0; // require after split. don't remove it
+
+ for(var i = 0; i < len; i = i + 2)
+ {
+ if((document.getElementById("yrs_" + experence_leave_array[i]) != null) && (experence_leave_array[i] == new_yrs))
+ {
+ // Update existing row
+ document.getElementById("leaves_" + experence_leave_array[i]).innerHTML = new_leaves;
+ experence_leave_array[i + 1] = new_leaves;
+ experence_leave_string = experence_leave_array.join(";");
+ document.getElementById("experence_leave_string").value = experence_leave_string;
+ document.getElementById("new_yrs").value = "";
+ document.getElementById("new_leaves").value = "";
+ document.getElementById("new_yrs").focus();
+ return false;
+ }
+ }
+
+ // Append at last
+ var innerhtml = document.getElementById("experence_leave_list").innerHTML;
+ innerhtml += "<div id=\"div_" + new_yrs + "\" style=\"padding:4px 0px 4px 0px; border-bottom:1px solid #DDDDDD\">\
+ <table border=\"0\" style=\"width:100%\">\
+ <tr>\
+ <td style=\"width:30%\">&nbsp;&nbsp;&nbsp;<label id=\"yrs_" + new_yrs + "\">" + new_yrs + "</label></td>\
+ <td style=\"width:60%\">&nbsp;&nbsp;&nbsp;<label id=\"leaves_" + new_yrs + "\">" + new_leaves + "</label></td>\
+ <td style=\"width:10%; color:#AAAAAA\"><label style=\"margin:0px; padding:0px; cursor:pointer\" onclick=\"remove(" + new_yrs + ")\">x</label></td>\
+ </tr>\
+ </table>\
+ </div>";
+ document.getElementById("experence_leave_list").innerHTML = innerhtml;
+
+ experence_leave_array[len] = new_yrs;
+ experence_leave_array[len + 1] = new_leaves;
+ experence_leave_string = experence_leave_array.join(";");
+ document.getElementById("experence_leave_string").value = experence_leave_string;
+ document.getElementById("new_yrs").value = "";
+ document.getElementById("new_leaves").value = "";
+ document.getElementById("new_yrs").focus();
+ return false;
+ }
+
+ function remove(yrs)
+ {
+ if(!confirm("Do you really want to delete this experement leave?"))
+ return;
+
+ div_yrs = document.getElementById("div_" + yrs);
+ (div_yrs.parentNode).removeChild(div_yrs);
+
+ var experence_leave_string = document.getElementById("experence_leave_string").value;
+ var experence_leave_array = experence_leave_string.split(";");
+ var new_array = [];
+ for(var i = 0, j = 0; i < experence_leave_array.length; i = i + 2)
+ {
+ if(experence_leave_array[i] == yrs)
+ continue;
+
+ new_array[j] = experence_leave_array[i];
+ new_array[j + 1] = experence_leave_array[i + 1];
+ j = j + 2;
+ }
+ experence_leave_string = new_array.join(";");
+ document.getElementById("experence_leave_string").value = experence_leave_string;
+ document.getElementById("new_yrs").focus();
+ }
+
+ function validate()
+ {
+ var return_flag = true;
+ var experence_leave_string = document.getElementById("experence_leave_string").value;
+ var experence_leave_array = experence_leave_string.split(";");
+ var len = experence_leave_array.length;
+ if(len == 1) len = 0; // require after split. don't remove it
+
+ if(experence_leave_array.length % 2 != 0)
+ {
+ document.getElementById("message").innerHTML = "Error. Cannot add experence leave.";
+ return_flag = false;
+ }
+
+ for(var i = 0; i < len; i++)
+ {
+ if(!experence_leave_array[i].match(/^[0-9.]+$/))
+ {
+ document.getElementById("message").innerHTML = "Error. Only positive real numbers are allowed.";
+ return_flag = false;
+ }
+ }
+
+ for(var i = 0; i < len - 2; i = i + 2)
+ {
+ for(var j = i + 2; j < len; j = j + 2)
+ {
+ if(experence_leave_array[i] == experence_leave_array[j])
+ {
+ document.getElementById("message").innerHTML = "Error. Cannot add experence leave.";
+ return_flag = false;
+ }
+ }
+ }
+
+ return return_flag;
+ }
+ </script>
+</head>
+
+<body>
+ <div class="main">
+ <TMPL_INCLUDE NAME="../header.tmpl">
+ <div class="tab-box">
+ <ul id="menu">
+ <li><a href="/admin/leave/request" >Request Leave</a></li>
+ <TMPL_IF EXPR="leave_review_enable eq 'true'"><li><a href="/admin/leave/review" >Review Leave</a></li></TMPL_IF>
+ <li>
+ <a href="/admin/history/leave" >Leave History</a>
+ <ul>
+ <li><a href="/admin/history/employee">Employee Wise</a></li>
+ <li><a href="/admin/history/department">Department Wise</a></li>
+ </ul>
+ </li>
+ <li>
+ <a href="/admin/user/new" >Manage User</a>
+ <ul>
+ <li><a href="/admin/user/new" >Add New User</a></li>
+ <li><a href="/admin/user/update" >Update User</a></li>
+ <li><a href="/admin/user/delete" >Delete User</a></li>
+ </ul>
+ </li>
+ <li><a href="/admin/notification" >Notification</a></li>
+ <li>
+ <a href="" class="activeLink" >Advance</a>
+ <ul>
+ <li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
+ <li><a href="/admin/holiday" >Holiday</a></li>
+ </ul>
+ </li>
+ </ul>
+ &nbsp;
+ </div>
+
+
+ <div class="tabcontent" id="cont-1-1" style="border: 1px solid #DDDDDD">
+ </br>
+ <b>Experence Leave:</b>&nbsp;&nbsp;&nbsp;&nbsp;
+ <span id="message" style="color: #FF3333"><TMPL_VAR NAME="message"></span>
+ <div id="experence_leave_div">
+ <input type="hidden" id="old_rows" name="old_rows" value="<TMPL_VAR NAME='total_rows'>" />
+ <input type="hidden" id="new_rows" name="new_rows" value="1" />
+ <table border="0" cellspacing="0" cellpadding="8" style="font-size: 13px; font-family:Verdana, Arial, Helvetica, sans-serif; width:100%">
+ <tr>
+ <td valign="top" style="width:50%;">
+ </br>
+ </br>
+ <form action="" method="" onsubmit="return append()">
+ &nbsp;&nbsp;&nbsp;&nbsp;Years:</br>
+ &nbsp;&nbsp;&nbsp;&nbsp;<input class="textbox" type="text" id="new_yrs" name="new_yrs" autofocus="true" />
+ </br>
+ </br>
+ &nbsp;&nbsp;&nbsp;&nbsp;Additional Leaves:</br>
+ &nbsp;&nbsp;&nbsp;&nbsp;<input class="textbox" type="text" id="new_leaves" name="new_leaves" /></br>
+ </br>
+ </br>
+ &nbsp;&nbsp;&nbsp;&nbsp;<input class="g-button-white" type="submit" value="Add" />
+ </form>
+ </td>
+ <td valign="top" style="width:50%;">
+ <center>
+ <form action="/admin/db/experence_leave" method="post" onsubmit="return validate()">
+ <input type="hidden" id="experence_leave_string" name="experence_leave_string" value="<TMPL_VAR NAME='experence_leave_string'>"/>
+ <div id="experence_leave_list" style="border:1px solid #DDDDDD; padding: 4px; height: 319px; width:250px; overflow: auto; text-align: left">
+ <div id="div_<TMPL_VAR NAME='years'>" style="padding:4px 0px 4px 0px; border-bottom:1px solid #DDDDDD">
+ <table border="0" style="width:100%">
+ <tr>
+ <td style="width:30%">Years</td>
+ <td style="width:60%">Additional Leaves</td>
+ <td style="width:10%"></td>
+ </tr>
+ </table>
+ </div>
+ <TMPL_LOOP NAME="experence_leave_array_ref">
+ <div id="div_<TMPL_VAR NAME='years'>" style="padding:4px 0px 4px 0px; border-bottom:1px solid #DDDDDD">
+ <table border="0" style="width:100%">
+ <tr>
+ <td style="width:30%">&nbsp;&nbsp;&nbsp;<label id="yrs_<TMPL_VAR NAME='years'>"><TMPL_VAR NAME="years"></label></td>
+ <td style="width:60%">&nbsp;&nbsp;&nbsp;<label id="leaves_<TMPL_VAR NAME='years'>"><TMPL_VAR NAME="additional_leaves"></label></td>
+ <td style="width:10%; color:#AAAAAA"><label style="margin:0px; padding:0px; cursor:pointer" onclick="remove(<TMPL_VAR NAME='years'>)">x</label></td>
+ </tr>
+ </table>
+ </div>
+ </TMPL_LOOP>
+ </div>
+ </br>
+ <div style="width:250px;"><center><input type="submit" class="g-button-white" value="Submit" /></center></div>
+ </form>
+ </center>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </br>
+ </div>
+ <TMPL_INCLUDE NAME="../footer.tmpl">
+ </div>
+</body>
+</html>
View
18 html/template/admin/add_holiday.tmpl
@@ -248,14 +248,14 @@
else // New date
{
var innerhtml = document.getElementById("holiday_list").innerHTML;
- innerhtml = innerhtml + "<div id=\"div_"+date+"\" style=\"padding:4px 0px 4px 0px; border-bottom:1px solid #DDDDDD\">\
- <table border=\"0\" style=\"width:100%\">\
- <tr>\
- <td style=\"width:90%\"><label id=\""+date+"\">"+date+"&nbsp;&nbsp;&nbsp;&nbsp;"+name+"</label></td>\
- <td style=\"width:90%; color:#AAAAAA\"><label style=\"margin:0px; padding:0px; cursor:pointer\" onclick=\"remove('"+date+"')\">x</label></td>\
- </tr>\
- </table>\
- </div>";
+ innerhtml += "<div id=\"div_"+date+"\" style=\"padding:4px 0px 4px 0px; border-bottom:1px solid #DDDDDD\">\
+ <table border=\"0\" style=\"width:100%\">\
+ <tr>\
+ <td style=\"width:90%\"><label id=\""+date+"\">"+date+"&nbsp;&nbsp;&nbsp;&nbsp;"+name+"</label></td>\
+ <td style=\"width:10%; color:#AAAAAA\"><label style=\"margin:0px; padding:0px; cursor:pointer\" onclick=\"remove('"+date+"')\">x</label></td>\
+ </tr>\
+ </table>\
+ </div>";
document.getElementById("holiday_list").innerHTML = innerhtml;
var holiday_string = document.getElementById("holiday_string").value;
@@ -393,7 +393,9 @@
<a href="" class="activeLink" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
+
</ul>
</li>
</ul>
View
1  html/template/admin/change_password.tmpl
@@ -350,6 +350,7 @@
<a href="" class="activeLink" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/delete_user.tmpl
@@ -302,6 +302,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/dept_wise_leave_history.tmpl
@@ -310,6 +310,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/emp_wise_leave_history.tmpl
@@ -481,6 +481,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/leave_history.tmpl
@@ -554,6 +554,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/new_user.tmpl
@@ -714,6 +714,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/notification.tmpl
@@ -248,6 +248,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/request_leave.tmpl
@@ -644,6 +644,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/review_leave.tmpl
@@ -293,6 +293,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
View
1  html/template/admin/update_user.tmpl
@@ -642,6 +642,7 @@
<a href="" >Advance</a>
<ul>
<li><a href="/admin/password" >Change Password</a></li>
+ <li><a href="/admin/experence_leave" >Experence Leave</a></li>
<li><a href="/admin/holiday" >Holiday</a></li>
</ul>
</li>
Please sign in to comment.
Something went wrong with that request. Please try again.