first commit
This commit is contained in:
1
old/CONTENT/ROOT_URI/Admin/404.php
Normal file
1
old/CONTENT/ROOT_URI/Admin/404.php
Normal file
@@ -0,0 +1 @@
|
||||
404
|
||||
10
old/CONTENT/ROOT_URI/Admin/ADMIN_FOOTER.php
Normal file
10
old/CONTENT/ROOT_URI/Admin/ADMIN_FOOTER.php
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
</body>
|
||||
<script src="/CONTENT/cal_GV.js"></script>
|
||||
<script>
|
||||
//document.getElementsByName("CA_No_Of_Payment")[0].addEventListener("input", cal_mature);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</html>
|
||||
17
old/CONTENT/ROOT_URI/Admin/ADMIN_HEADER.php
Normal file
17
old/CONTENT/ROOT_URI/Admin/ADMIN_HEADER.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Gramin Venture POS Portal</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/asset/css/bootstrap.min.css">
|
||||
<script src="/asset/js/jquery.min.js"></script>
|
||||
<script src="/asset/js/bootstrap.min.js"></script>
|
||||
<script src="/asset/js/angular.min.js"></script>
|
||||
<!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>-->
|
||||
</head>
|
||||
<body>
|
||||
31
old/CONTENT/ROOT_URI/Admin/ADMIN_nav.php
Normal file
31
old/CONTENT/ROOT_URI/Admin/ADMIN_nav.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<!-- nav start -->
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/Admin/">Gramin Venture</a>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
<ul class="nav navbar-nav">
|
||||
<li ><a href="/Admin/Create_AC_Recurring">New Recurring </a></li>
|
||||
<li ><a href="/Admin/Create_AC_FD">New FD </a></li>
|
||||
<li ><a href="/Admin/Create_AC_Loan">New Loan </a></li>
|
||||
<li><a href="/Admin/View_AC?Type=Recurring">View A/C</a></li>
|
||||
<!--<li><a href="/Admin/Trans_New">Transaction</a></li>-->
|
||||
<li><a href="/Admin/Report">Report</a></li>
|
||||
<li><a href="/Admin/Settings">Settings</a></li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="/Admin/Signout">Signout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
105
old/CONTENT/ROOT_URI/Admin/Create_AC_FD.php
Normal file
105
old/CONTENT/ROOT_URI/Admin/Create_AC_FD.php
Normal file
@@ -0,0 +1,105 @@
|
||||
<div class="container">
|
||||
|
||||
<?php
|
||||
if(isset($_POST["ac_type"]) && isset($_POST["ac_name"]) && $_POST["ac_name"]!="" && is_numeric($_POST["Mature_Value"]) ) {
|
||||
$return_json['NotiFi'] = "";$return_json['NotiFi_m'] = "";$return_json['NotiFi_d'] = "";
|
||||
$ca["ac_type"]=$_POST["ac_type"];
|
||||
$ca["ac_name"]=$_POST["ac_name"];
|
||||
$ca["ac_phone"]=$_POST["ac_phone"];
|
||||
$ca["ac_mail"]=$_POST["ac_mail"];
|
||||
$ca["ac_address"]=$_POST["ac_address"];
|
||||
$ca["ac_no"]="GV".$_POST["ac_type"].date("Ymd")."F";
|
||||
//GC_new_entry($ca);
|
||||
|
||||
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
$t="FD";
|
||||
$stmt = $conn->prepare("INSERT INTO ".$GLOBALS['arif_ac']." (`AA_ICARD_NO`,`AA_NOMINEE_DETAILS`,`AA_INTEREST`,`AA_DATE`, `AA_DATE_MATURE`, `AA_NO_OF_PAYMENT`,`AA_AMOUNT`, `AA_MATURE_VALUE`, `AA_TYPE`,`AA_ACTYPE`,`AA_NAME`, `AA_PHONE`, `AA_EMAIL`, `AA_ADDRESS`, `AA_ADMIN`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
$stmt->bind_param("sssssssssssssss" ,$_POST["AA_ICARD_NO"],$_POST["AA_NOMINEE_DETAILS"],$_POST["CA_interest"], $_POST["date_today"],$_POST["date_mature"],$_POST["CA_No_Of_Payment"],$_POST["CA_Amount"],$_POST["Mature_Value"], $t,$ca["ac_type"],$ca["ac_name"],$ca["ac_phone"],$ca["ac_mail"],$ca["ac_address"],$_SESSION["EMAIL"]);
|
||||
|
||||
if($stmt->execute()){
|
||||
$lid=$conn->insert_id;$ca["ac_no"]=$ca["ac_no"].$lid;
|
||||
if($conn->query("UPDATE `".$GLOBALS['arif_ac']."` SET `AA_ACNO` = '".$ca["ac_no"]."' WHERE `AA_ID` =".$lid.";"))
|
||||
{$return_json['NotiFi'] = "OK";$return_json['NotiFi_m'] = "New FD A/C Created !";$return_json['NotiFi_d'] = "<a href='./Details?no=".$ca["ac_no"]."'>A/C NO- ".$ca["ac_no"]."</a>";}
|
||||
else{$return_json['NotiFi'] = "Error";$return_json['NotiFi_m'] = "Error Creating New Recurring A/C !";$return_json['NotiFi_d'] = "Failed in Secondary Execution";}
|
||||
}else printf("Error: %s.\n", $stmt->error);
|
||||
$stmt->close();
|
||||
|
||||
$conn->close();
|
||||
echo $return_json['NotiFi'],$return_json['NotiFi_m'],$return_json['NotiFi_d'];
|
||||
} //else {$return_json['NotiFi'] = "Error";$return_json['NotiFi_m'] = "Error on input !";$return_json['NotiFi_d'] = "Check Input Details";}
|
||||
//echo json_encode($return_json);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<form method="post" enctype="multipart/form-data" id="new_fd">
|
||||
<input type="hidden" name="ac_type" value="F">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-capitalize" name="ac_name" placeholder="Name" >
|
||||
<small id="emailHelp" class="form-text text-muted">A/C Holder Name*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-uppercase" name="AA_ICARD_NO" placeholder="I-CARD NO" required>
|
||||
</div>
|
||||
<table><tr>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_Amount" oninput="cal_FD();">
|
||||
<small id="emailHelp" class="form-text text-muted">Amount*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_interest" value="8">
|
||||
<small id="emailHelp" class="form-text text-muted">interest*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_No_Of_Payment" oninput="cal_FD();cal_FD_md();" >
|
||||
<small id="emailHelp" class="form-text text-muted">Month*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="Mature_Value" id="Mature_Value" value="">
|
||||
<small id="emailHelp" class="form-text text-muted">Mature Value*</small>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="date_today" name="date_today" value="<?php echo date('Y-m-d');?>" >
|
||||
<small id="emailHelp" class="form-text text-muted">Date*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="date_mature" >
|
||||
<small id="emailHelp" class="form-text text-muted">Mature Date*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="ac_phone" placeholder="Phone No">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="ac_mail" placeholder="Email">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="5" name="ac_address" placeholder="Address"></textarea>
|
||||
</div>
|
||||
<hr>
|
||||
<small class="form-text text-muted"><u>Nominee details*</u></small>
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="5" name="AA_NOMINEE_DETAILS" required>Name:
|
||||
DOB:
|
||||
Relation:
|
||||
ID:
|
||||
</textarea>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-md-offset-5 col-sm-12 col-xs-12">
|
||||
<button type="submit" class="btn btn-primary">Create New FD A/C</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
136
old/CONTENT/ROOT_URI/Admin/Create_AC_Loan.php
Normal file
136
old/CONTENT/ROOT_URI/Admin/Create_AC_Loan.php
Normal file
@@ -0,0 +1,136 @@
|
||||
<div class="container">
|
||||
<?php
|
||||
if(isset($_POST["ac_type"]) && isset($_POST["ac_name"]) && $_POST["ac_name"]!="" && is_numeric($_POST["Mature_Value"]) ) {
|
||||
$return_json['NotiFi'] = "";$return_json['NotiFi_m'] = "";$return_json['NotiFi_d'] = "";
|
||||
$ca["ac_type"]=$_POST["ac_type"];
|
||||
$ca["ac_name"]=$_POST["ac_name"];
|
||||
$ca["ac_phone"]=$_POST["ac_phone"];
|
||||
$ca["ac_mail"]=$_POST["ac_mail"];
|
||||
$ca["ac_address"]=$_POST["ac_address"];
|
||||
$ca["ac_no"]="GV".$_POST["ac_type"].date("Ymd")."L";
|
||||
$AA_BAL=$_POST["Mature_Value"];$AA_BAL=$AA_BAL-($AA_BAL*2);
|
||||
//GC_new_entry($ca);
|
||||
|
||||
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
$t="Loan";
|
||||
$stmt = $conn->prepare("INSERT INTO ".$GLOBALS['arif_ac']." (`AA_BAL`,`AA_G1_DETAILS`,`AA_G2_DETAILS`,`AA_INSTALLMENT`,`AA_ICARD_NO`,`AA_INTEREST`,`AA_DATE`,`AA_DATE_MATURE`,`AA_NO_OF_PAYMENT`,`AA_AMOUNT`,`AA_MATURE_VALUE`,`AA_TYPE`,`AA_ACTYPE`,`AA_NAME`, `AA_PHONE`, `AA_EMAIL`, `AA_ADDRESS`, `AA_ADMIN`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
$stmt->bind_param("isssssssssssssssss" ,$AA_BAL,$_POST["AA_G1_DETAILS"],$_POST["AA_G2_DETAILS"],$_POST["CA_installment"],$_POST["AA_ICARD_NO"],$_POST["CA_interest"],$_POST["date_today"],$_POST["date_mature"],$_POST["CA_No_Of_Payment"],$_POST["CA_Amount"],$_POST["Mature_Value"], $t,$ca["ac_type"],$ca["ac_name"],$ca["ac_phone"],$ca["ac_mail"],$ca["ac_address"],$_SESSION["EMAIL"]);
|
||||
|
||||
if($stmt->execute()){
|
||||
$lid=$conn->insert_id;$ca["ac_no"]=$ca["ac_no"].$lid;
|
||||
if($conn->query("UPDATE `".$GLOBALS['arif_ac']."` SET `AA_ACNO` = '".$ca["ac_no"]."' WHERE `AA_ID` =".$lid.";"))
|
||||
{$return_json['NotiFi'] = "OK";$return_json['NotiFi_m'] = "New Loan A/C Created !";$return_json['NotiFi_d'] = "<a href='./Details?no=".$ca["ac_no"]."'>A/C NO- ".$ca["ac_no"]."</a>";}
|
||||
else{$return_json['NotiFi'] = "Error";$return_json['NotiFi_m'] = "Error Creating New Recurring A/C !";$return_json['NotiFi_d'] = "Failed in Secondary Execution";}
|
||||
}
|
||||
$stmt->close();
|
||||
|
||||
$conn->close();
|
||||
echo $return_json['NotiFi'],$return_json['NotiFi_m'],$return_json['NotiFi_d'];
|
||||
} //else {$return_json['NotiFi'] = "Error";$return_json['NotiFi_m'] = "Error on input !";$return_json['NotiFi_d'] = "Check Input Details";}
|
||||
//echo json_encode($return_json);
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<form method="post" enctype="multipart/form-data" id="new_loan">
|
||||
<!--<div ng-app="myApp" ng-controller="myCtrl" class="form-group">-->
|
||||
<select class="form-control" name="ac_type" onchange="cal_loan_type();">
|
||||
<option value="D">Day</option>
|
||||
<option value="W">Week</option>
|
||||
<option value="M">Month</option>
|
||||
</select>
|
||||
<small class="form-text text-muted">A/C Type*</small>
|
||||
<!--</div>-->
|
||||
</br>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-capitalize" name="ac_name" placeholder="Name" >
|
||||
<small class="form-text text-muted">A/C Holder Name*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-uppercase" name="AA_ICARD_NO" placeholder="ICARD No" >
|
||||
<small class="form-text text-muted">A/C Holder's ID No*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-capitalize" name="Father" placeholder="Father" >
|
||||
<small class="form-text text-muted">A/C Holder's Father*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="ac_phone" placeholder="Phone No">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="ac_mail" placeholder="Email">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="5" name="ac_address" placeholder="Address"></textarea>
|
||||
</div>
|
||||
<table><tr>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_Amount" oninput="cal_loan();">
|
||||
<small class="form-text text-muted">Principle Amount*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_interest" value="20" oninput="cal_loan();">
|
||||
<small class="form-text text-muted">interest*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_No_Of_Payment" oninput="cal_loan();cal_Re_md();" >
|
||||
<small class="form-text text-muted">Tenure no of <span id="DWM">Day</span>*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_installment" >
|
||||
<small class="form-text text-muted">installment Amount*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="Mature_Value" >
|
||||
<small class="form-text text-muted">Total Amount*</small>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="date_today" name="date_today" value="<?php echo date('Y-m-d');?>" >
|
||||
<small id="emailHelp" class="form-text text-muted">Date*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="date_mature" >
|
||||
<small id="emailHelp" class="form-text text-muted">Mature Date*</small>
|
||||
</div>
|
||||
<hr/>
|
||||
<h4>Guaranter</h4>
|
||||
|
||||
<hr>
|
||||
<small class="form-text text-muted"><u>1st Guaranter details*</u></small>
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="6" name="AA_G1_DETAILS" required>Name:
|
||||
ID:
|
||||
Father:
|
||||
Phone:
|
||||
Relation:
|
||||
Address: </textarea>
|
||||
</div>
|
||||
<hr>
|
||||
<small class="form-text text-muted"><u>2nd Guaranter details*</u></small>
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="6" name="AA_G2_DETAILS" required>Name:
|
||||
ID:
|
||||
Father:
|
||||
Phone:
|
||||
Relation:
|
||||
Address:</textarea>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-md-offset-5 col-sm-12 col-xs-12">
|
||||
<button type="submit" class="btn btn-primary" >Create New Loan A/C</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
106
old/CONTENT/ROOT_URI/Admin/Create_AC_Recurring.php
Normal file
106
old/CONTENT/ROOT_URI/Admin/Create_AC_Recurring.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<div class="container">
|
||||
<?php
|
||||
$start = time();
|
||||
if(isset($_POST["ac_type"]) && isset($_POST["ac_name"]) && $_POST["ac_name"]!="" && is_numeric($_POST["Mature_Value"]) ) {
|
||||
$return_json['NotiFi'] = "";$return_json['NotiFi_m'] = "";$return_json['NotiFi_d'] = "";
|
||||
$ca["ac_type"]=$_POST["ac_type"];
|
||||
$ca["ac_name"]=$_POST["ac_name"];
|
||||
$ca["ac_phone"]=$_POST["ac_phone"];
|
||||
$ca["ac_mail"]=$_POST["ac_mail"];
|
||||
$ca["ac_address"]=$_POST["ac_address"];
|
||||
$ca["ac_no"]="GV".$_POST["ac_type"].date("Ymd")."R";
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
$t="Recurring";
|
||||
$stmt = $conn->prepare("INSERT INTO ".$GLOBALS['arif_ac']." (`AA_INTEREST`,`AA_DATE`,`AA_ICARD_NO`,`AA_DATE_MATURE`,`AA_NO_OF_PAYMENT`,`AA_INSTALLMENT`,`AA_MATURE_VALUE`,`AA_TYPE`,`AA_ACTYPE`,`AA_NAME`, `AA_PHONE`, `AA_EMAIL`, `AA_ADDRESS`, `AA_NOMINEE_DETAILS`, `AA_ADMIN`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
$stmt->bind_param("sssssssssssssss" ,$_POST["CA_interest"],$_POST["date_today"],$_POST["AA_ICARD_NO"],$_POST["date_mature"],$_POST["CA_No_Of_Payment"],$_POST["CA_Amount"],$_POST["Mature_Value"], $t,$ca["ac_type"],$ca["ac_name"],$ca["ac_phone"],$ca["ac_mail"],$ca["ac_address"],$_POST["AA_NOMINEE_DETAILS"],$_SESSION["EMAIL"]);
|
||||
if($stmt->execute()){
|
||||
$lid=$conn->insert_id;$ca["ac_no"]=$ca["ac_no"].$lid;
|
||||
if($conn->query("UPDATE `".$GLOBALS['arif_ac']."` SET `AA_ACNO` = '".$ca["ac_no"]."' WHERE `AA_ID` =".$lid.";"))
|
||||
{$return_json['NotiFi'] = "OK";$return_json['NotiFi_m']="New Recurring A/C Created !";$return_json['NotiFi_d'] = "<a href='./Details?no=".$ca["ac_no"]."'>A/C NO- ".$ca["ac_no"]."</a>";}
|
||||
else{$return_json['NotiFi'] = "Error";$return_json['NotiFi_m'] = "Error Creating New Recurring A/C !";$return_json['NotiFi_d'] = "Failed in Secondary Execution";}
|
||||
}
|
||||
$stmt->close();
|
||||
$conn->close();
|
||||
//$e_time= time() - $start; echo $start."<br>".time()."<br>".$e_time."<br>";
|
||||
echo $return_json['NotiFi'],$return_json['NotiFi_m'],$return_json['NotiFi_d'];
|
||||
}// else {$return_json['NotiFi'] = "Error";$return_json['NotiFi_m'] = "Error on input !";$return_json['NotiFi_d'] = "Check Input Details";}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<form method="post" enctype="multipart/form-data" id="New_Recurring">
|
||||
<div class="form-group">
|
||||
<!--<div ng-app="myApp" ng-controller="myCtrl" class="form-group">-->
|
||||
<select class="form-control" name="ac_type">
|
||||
<option value="D">Day</option>
|
||||
<option value="W">Week</option>
|
||||
<option value="M">Month</option>
|
||||
</select>
|
||||
<small class="form-text text-muted">A/C Type*</small>
|
||||
<!--</div>-->
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-capitalize" name="ac_name" placeholder="Name" required>
|
||||
<small class="form-text text-muted">A/C Holder Name*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control text-uppercase" name="AA_ICARD_NO" placeholder="I-CARD NO" required>
|
||||
</div>
|
||||
<table><tr>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_Amount" oninput="cal_rec();" required>
|
||||
<small class="form-text text-muted">Amount*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_interest" value="8" oninput="cal_rec();" required>
|
||||
<small class="form-text text-muted">Interest*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="CA_No_Of_Payment" oninput="cal_rec();cal_Re_md();" required>
|
||||
<small class="form-text text-muted">No Of Payment*</small>
|
||||
</div></td>
|
||||
<td><div class="form-group">
|
||||
<input type="text" class="form-control" name="Mature_Value" required>
|
||||
<small class="form-text text-muted">Mature Value*</small>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="date_today" name="date_today" value="<?php echo date('Y-m-d');?>" required>
|
||||
<small class="form-text text-muted">Date*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="date_mature" required>
|
||||
<small class="form-text text-muted">Mature Date*</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="ac_phone" placeholder="Phone No" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="ac_mail" placeholder="Email">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="5" name="ac_address" placeholder="Address" required></textarea>
|
||||
</div>
|
||||
<hr>
|
||||
<small class="form-text text-muted"><u>Nominee details*</u></small>
|
||||
<div class="form-group">
|
||||
<textarea class="form-control text-capitalize" rows="5" name="AA_NOMINEE_DETAILS" required>Name:
|
||||
DOB:
|
||||
Relation:
|
||||
ID:
|
||||
</textarea>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-md-offset-5 col-sm-12 col-xs-12">
|
||||
<button type="submit" class="btn btn-primary" >Create New Recurring A/C</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
247
old/CONTENT/ROOT_URI/Admin/Details.php
Normal file
247
old/CONTENT/ROOT_URI/Admin/Details.php
Normal file
@@ -0,0 +1,247 @@
|
||||
|
||||
<div class="container" style="text-align: center;">
|
||||
<h3> ACCOUNT DETAILS</h3><hr>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<?php
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
$conn->set_charset("utf8");
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO`= '".$_GET["no"]."'";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) { if($row["AA_ACTYPE"]=="D")$AA_ACTYPE="Day";if($row["AA_ACTYPE"]=="M")$AA_ACTYPE="Month";if($row["AA_ACTYPE"]=="W")$AA_ACTYPE="Week";
|
||||
if ($row["AA_TYPE"]== "FD")
|
||||
echo "
|
||||
<tr><th colspan='2'><span class='text-center'>Fixed Diposite A/C of ".$row["AA_NAME"]. "</span></tr><tr>
|
||||
<tr>
|
||||
<th>ACCOUNT NO.</th>
|
||||
<td>".$row["AA_ACNO"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>A/C Created</th>
|
||||
<td>".$row["AA_TIMESTAMP"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>EFFECTIVE DATE</th>
|
||||
<td>".$row["AA_DATE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT HOLDER</th>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT HOLDER's ID/CARD NO</th>
|
||||
<td>".$row["AA_ICARD_NO"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>EMAIL ID</th>
|
||||
<td>".$row["AA_EMAIL"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PHONE NO.</th>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ADDRESS</th>
|
||||
<td>".$row["AA_ADDRESS"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT TYPE</th>
|
||||
<td>Fixed Diposite</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>RATE OF INTEREST</th>
|
||||
<td>".$row["AA_INTEREST"]. "</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>AMOUNT PAID</th>
|
||||
<td>".$row["AA_AMOUNT"]. "</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>MATURITY DATE</th>
|
||||
<td>".$row["AA_DATE_MATURE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>NOMINEE DETAILS</th>
|
||||
<td>".$row["AA_NOMINEE_DETAILS"]. "</td>
|
||||
</tr>
|
||||
|
||||
";
|
||||
elseif ($row["AA_TYPE"]== "Recurring")
|
||||
echo "
|
||||
<tr><th colspan='2'><span class='text-center'>Recurring A/C of ".$row["AA_NAME"]. "</span></tr><tr>
|
||||
<tr>
|
||||
<th>ACCOUNT NO.</th>
|
||||
<td>".$row["AA_ACNO"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT TYPE</th>
|
||||
<td>".$row["AA_TYPE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PAYMENT TERM</th>
|
||||
<td>".$AA_ACTYPE. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>A/C Created</th>
|
||||
<td>".$row["AA_TIMESTAMP"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>EFFECTIVE DATE</th>
|
||||
<td>".$row["AA_DATE"]. "</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>ACCOUNT BALANCE</th>
|
||||
<td>".$row["AA_BAL"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT HOLDER</th>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ID CARD NO</th>
|
||||
<td>".$row["AA_ICARD_NO"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>EMAIL ID</th>
|
||||
<td>".$row["AA_EMAIL"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PHONE NO.</th>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ADDRESS</th>
|
||||
<td>".$row["AA_ADDRESS"]. "</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>INTEREST</th>
|
||||
<td>".$row["AA_INTEREST"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>INSTALLMENT AMOUNT</th>
|
||||
<td>".$row["AA_INSTALLMENT"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>TOTAL NUMBER OF INSTALLMENTS</th>
|
||||
<td>".$row["AA_NO_OF_PAYMENT"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>NUMBER OF INSTALLMENTS PAID</th>
|
||||
<td>".$row["AA_NO_OF_PAYPAID"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>MATURITY DATE</th>
|
||||
<td>".$row["AA_DATE_MATURE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>MATURITY AMOUNT</th>
|
||||
<td>".$row["AA_MATURE_VALUE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>DATE</th>
|
||||
<td>".$row["AA_DATE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>NOMINEE DETAILS</th>
|
||||
<td>".$row["AA_NOMINEE_DETAILS"]. "</td>
|
||||
</tr>
|
||||
|
||||
";
|
||||
else
|
||||
echo "
|
||||
<tr><th colspan='2'><span class='text-center'>Loan A/C of ".$row["AA_NAME"]. "</span></tr><tr>
|
||||
<tr>
|
||||
<th>ACCOUNT NO.</th>
|
||||
<td>".$row["AA_ACNO"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PAYMENT TERM</th>
|
||||
<td>".$AA_ACTYPE. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT TYPE</th>
|
||||
<td>".$row["AA_TYPE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>A/C Created</th>
|
||||
<td>".$row["AA_TIMESTAMP"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>EFFECTIVE DATE</th>
|
||||
<td>".$row["AA_DATE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT BALANCE</th>
|
||||
<td>".$row["AA_BAL"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ACCOUNT HOLDER</th>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ID CARD NO</th>
|
||||
<td>".$row["AA_ICARD_NO"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>EMAIL ID</th>
|
||||
<td>".$row["AA_EMAIL"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PHONE NO.</th>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>ADDRESS</th>
|
||||
<td>".$row["AA_ADDRESS"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>INTEREST</th>
|
||||
<td>".$row["AA_INTEREST"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>INSTALLMENT AMOUNT</th>
|
||||
<td>".$row["AA_INSTALLMENT"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>LOAN AMOUNT</th>
|
||||
<td>".$row["AA_AMOUNT"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>NUMBER OF PAYMENT</th>
|
||||
<td>".$row["AA_NO_OF_PAYMENT"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>TERM ENDING DATE</th>
|
||||
<td>".$row["AA_DATE_MATURE"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>1st GUARANTER DETAILS</th>
|
||||
<td>".$row["AA_G1_DETAILS"]. "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>2nd GUARANTER DETAILS</th>
|
||||
<td>".$row["AA_G2_DETAILS"]. "</td>
|
||||
</tr>
|
||||
|
||||
";
|
||||
}
|
||||
} else {
|
||||
echo "0 results";
|
||||
};
|
||||
$conn->close();
|
||||
?>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
102
old/CONTENT/ROOT_URI/Admin/Report.php
Normal file
102
old/CONTENT/ROOT_URI/Admin/Report.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<div class="container">
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<form>
|
||||
<input type="date" name="tday">
|
||||
<input type="submit" class="btn-info" value="Daily Report">
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<form>
|
||||
<input type="date" name="tmonth">
|
||||
<input type="submit" class="btn-info" value="Monthly Report">
|
||||
</form>
|
||||
</td>
|
||||
</tr> -->
|
||||
<tr><td>.</td><td>.</td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form>
|
||||
<label for="">From </label><input type="date" name="dFrom">
|
||||
<label for="">To </label><input type="date" name="dTo">
|
||||
<input type="submit" class="btn-info" value="Report">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<?php
|
||||
|
||||
function report_view($type,$dt) {
|
||||
$dateFrom=$dt;
|
||||
|
||||
if($type!="month" || $type!="day") {
|
||||
$dateFrom= strtotime($dt); $dateFrom = date("Y-m-d", $dateFrom);
|
||||
$dateTo= strtotime('+1 day', strtotime($type)); $dateTo = date("Y-m-d", $dateTo);
|
||||
}
|
||||
//$dateFrom=$dt;
|
||||
else{
|
||||
if($type=="month") {$dateFrom= strtotime('-1 day', strtotime($dt)); $dateFrom = date("Y-m-d", $dateFrom);}
|
||||
$dateTo = strtotime('+1 '.$type, strtotime($dt));
|
||||
$dateTo = date("Y-m-d", $dateTo);
|
||||
}
|
||||
echo '<div class="container"> <h3>'.$dateFrom." -> ".$dateTo."(Up to)</h3> </div>";
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
$totalAmount=0;
|
||||
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>VIEW REPORT::::::::</h5><hr>
|
||||
</div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Transaction ID</th>
|
||||
<th>Time</th>
|
||||
<th>AC No</th>
|
||||
<th>Name</th>
|
||||
<th>Amount</th>
|
||||
</tr>';
|
||||
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` INNER JOIN `".$GLOBALS['arif_ac']."` ON `".$GLOBALS['arif_tran']."`.`AT_ACID`=`".$GLOBALS['arif_ac']."`.`AA_ACNO` WHERE `AT_TIMESTAMP` BETWEEN '".$dateFrom." 00:00:00.000000' AND '".$dateTo." 00:00:00.000000' ORDER BY `arif_tran`.`AT_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
// $tt=$row["AT_ID"]-10;
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";$totalAmount+=$row["AT_AMOUNT"];
|
||||
}
|
||||
} else {
|
||||
echo "0 results";
|
||||
}
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
<hr> <h2> Total Transaction amount : '.$totalAmount.'</h2>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
if(isset($_GET['tday']) && $_GET['tday']!="") report_view('day',$_GET['tday']);
|
||||
if(isset($_GET['tmonth']) && $_GET['tmonth']!="") report_view('month',$_GET['tmonth']);
|
||||
if(isset($_GET['dFrom']) && $_GET['dTo']!="") report_view($_GET['dTo'],$_GET['dFrom']);
|
||||
|
||||
//if(isset($_GET['Type']) && $_GET['Type']=="Loan") view_list_ac('Loan');
|
||||
// if(isset($_GET['Type']) && $_GET['Type']=="Recurring") view_list_ac('Recurring');
|
||||
// if(isset($_GET['Type']) && $_GET['Type']=="FD") view_list_ac('FD');
|
||||
?>
|
||||
76
old/CONTENT/ROOT_URI/Admin/Report0.php
Normal file
76
old/CONTENT/ROOT_URI/Admin/Report0.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<div class="container">
|
||||
<form>
|
||||
<input type="date" name="tday">
|
||||
<input type="submit" class="btn-info" value="Daily Report">
|
||||
</form>
|
||||
<form>
|
||||
<input type="date" name="tmonth">
|
||||
<input type="submit" class="btn-info" value="Monthly Report">
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
function report_view($type,$dt) {
|
||||
|
||||
// $dateTo=$dt;
|
||||
// $dateFrom = strtotime('-1 '.$type, strtotime($dt));
|
||||
// $dateFrom = date("Y-m-d", $dateFrom);
|
||||
|
||||
$dateFrom=$dt;
|
||||
if($type=="month") {$dateFrom= strtotime('-1 day', strtotime($dt)); $dateFrom = date("Y-m-d", $dateFrom);}
|
||||
$dateTo = strtotime('+1 '.$type, strtotime($dt));
|
||||
$dateTo = date("Y-m-d", $dateTo);
|
||||
echo $dateFrom." -> ".$dateTo."(Up to)";
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
$totalAmount=0;
|
||||
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>VIEW REPORT::::::::</h5><hr>
|
||||
</div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Transaction ID</th>
|
||||
<th>Time</th>
|
||||
<th>AC No</th>
|
||||
<th>Amount</th>
|
||||
</tr>';
|
||||
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_TIMESTAMP` BETWEEN '".$dateFrom." 00:00:00.000000' AND '".$dateTo." 00:00:00.000000' ORDER BY `arif_tran`.`AT_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
// $tt=$row["AT_ID"]-10;
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";$totalAmount+=$row["AT_AMOUNT"];
|
||||
}
|
||||
} else {
|
||||
echo "0 results";
|
||||
}
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
<hr> <h2> Total Transaction amount : '.$totalAmount.'</h2>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
if(isset($_GET['tday']) && $_GET['tday']!="") report_view('day',$_GET['tday']);
|
||||
if(isset($_GET['tmonth']) && $_GET['tmonth']!="") report_view('month',$_GET['tmonth']);
|
||||
|
||||
//if(isset($_GET['Type']) && $_GET['Type']=="Loan") view_list_ac('Loan');
|
||||
// if(isset($_GET['Type']) && $_GET['Type']=="Recurring") view_list_ac('Recurring');
|
||||
// if(isset($_GET['Type']) && $_GET['Type']=="FD") view_list_ac('FD');
|
||||
?>
|
||||
100
old/CONTENT/ROOT_URI/Admin/Report1.php
Normal file
100
old/CONTENT/ROOT_URI/Admin/Report1.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<div class="container">
|
||||
<table>
|
||||
<!-- <tr>
|
||||
<td>
|
||||
<form>
|
||||
<input type="date" name="tday">
|
||||
<input type="submit" class="btn-info" value="Daily Report">
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<form>
|
||||
<input type="date" name="tmonth">
|
||||
<input type="submit" class="btn-info" value="Monthly Report">
|
||||
</form>
|
||||
</td>
|
||||
</tr> -->
|
||||
<tr><td>.</td><td>.</td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form>
|
||||
<label for="">From </label><input type="date" name="dFrom">
|
||||
<label for="">To </label><input type="date" name="dTo">
|
||||
<input type="submit" class="btn-info" value="Report">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<?php
|
||||
|
||||
function report_view($type,$dt) {
|
||||
$dateFrom=$dt;
|
||||
|
||||
if($type!="month" || $type!="day") {
|
||||
$dateFrom= strtotime($dt); $dateFrom = date("Y-m-d", $dateFrom);
|
||||
$dateTo= strtotime('+1 day', strtotime($type)); $dateTo = date("Y-m-d", $dateTo);
|
||||
}
|
||||
//$dateFrom=$dt;
|
||||
else{
|
||||
if($type=="month") {$dateFrom= strtotime('-1 day', strtotime($dt)); $dateFrom = date("Y-m-d", $dateFrom);}
|
||||
$dateTo = strtotime('+1 '.$type, strtotime($dt));
|
||||
$dateTo = date("Y-m-d", $dateTo);
|
||||
}
|
||||
echo $dateFrom." -> ".$dateTo."(Up to)";
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
$totalAmount=0;
|
||||
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>VIEW REPORT::::::::</h5><hr>
|
||||
</div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Transaction ID</th>
|
||||
<th>Time</th>
|
||||
<th>AC No</th>
|
||||
<th>Amount</th>
|
||||
</tr>';
|
||||
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_TIMESTAMP` BETWEEN '".$dateFrom." 00:00:00.000000' AND '".$dateTo." 00:00:00.000000' ORDER BY `arif_tran`.`AT_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
// $tt=$row["AT_ID"]-10;
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";$totalAmount+=$row["AT_AMOUNT"];
|
||||
}
|
||||
} else {
|
||||
echo "0 results";
|
||||
}
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
<hr> <h2> Total Transaction amount : '.$totalAmount.'</h2>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
if(isset($_GET['tday']) && $_GET['tday']!="") report_view('day',$_GET['tday']);
|
||||
if(isset($_GET['tmonth']) && $_GET['tmonth']!="") report_view('month',$_GET['tmonth']);
|
||||
if(isset($_GET['dFrom']) && $_GET['dTo']!="") report_view($_GET['dTo'],$_GET['dFrom']);
|
||||
|
||||
//if(isset($_GET['Type']) && $_GET['Type']=="Loan") view_list_ac('Loan');
|
||||
// if(isset($_GET['Type']) && $_GET['Type']=="Recurring") view_list_ac('Recurring');
|
||||
// if(isset($_GET['Type']) && $_GET['Type']=="FD") view_list_ac('FD');
|
||||
?>
|
||||
5
old/CONTENT/ROOT_URI/Admin/Settings.php
Normal file
5
old/CONTENT/ROOT_URI/Admin/Settings.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
echo '<h2>Allowed Users</h2><br>';
|
||||
foreach (glob("CONFIG/*.txt") as $filename) echo substr($filename, 7,-4);
|
||||
echo '<h2>Add a user</h2><br><input type="text" >';
|
||||
?>
|
||||
9
old/CONTENT/ROOT_URI/Admin/Signout.php
Normal file
9
old/CONTENT/ROOT_URI/Admin/Signout.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
session_unset();
|
||||
if(isset($_COOKIE['EMAIL'])){
|
||||
header_remove();
|
||||
setcookie('EMAIL', $_POST['EMAIL'], time() - (86400 * 30), "/");
|
||||
echo '<script>window.location.relode();</script>';
|
||||
}
|
||||
else echo '<script>window.location.assign("/Admin/");</script>';
|
||||
?>
|
||||
149
old/CONTENT/ROOT_URI/Admin/Trans_New-0.php
Normal file
149
old/CONTENT/ROOT_URI/Admin/Trans_New-0.php
Normal file
@@ -0,0 +1,149 @@
|
||||
<div class="container" style="margin-top: 20px;">
|
||||
<form method="get" action="Trans_New"> <input type="text" placeholder="input A/C no and enter" name="no"></form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Loan"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 20px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Remaining Amount</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<!--<input type="hidden" name="FORM_NAME" value="add_installment">-->
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Recurring"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Total Deposite</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>Past Transactions::</h5><hr>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if(isset($_GET["no"])){
|
||||
echo '
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>SL</th>
|
||||
<th>Tr No</th>
|
||||
<th>TimeStamp</th>
|
||||
<th>User</th>
|
||||
<th>A/C No</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
';
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."'";
|
||||
$result = $conn->query($sql);
|
||||
$i=0;
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
$i++;
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$i. "</td>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_USER"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";
|
||||
}
|
||||
} else echo "No Past record Found";
|
||||
$conn->close();
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
150
old/CONTENT/ROOT_URI/Admin/Trans_New-1.php
Normal file
150
old/CONTENT/ROOT_URI/Admin/Trans_New-1.php
Normal file
@@ -0,0 +1,150 @@
|
||||
<div class="container" style="margin-top: 20px;">
|
||||
<form method="get" action="Trans_New"> <input type="text" placeholder="input A/C no and enter" name="no"></form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Loan"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 20px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Remaining Amount</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Recurring"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Total Deposite</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>Past Transactions::::</h5><hr>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if(isset($_GET["no"])){
|
||||
echo '
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>SL</th>
|
||||
<th>Tr No</th>
|
||||
<th>TimeStamp</th>
|
||||
<th>User</th>
|
||||
<th>A/C No</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
';
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
// $sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."'";
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."' ORDER BY `".$GLOBALS['arif_tran']."`.`AT_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
$i=0;
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
$i++;
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$i. "</td>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_USER"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";
|
||||
}
|
||||
} else echo "No Past record Found";
|
||||
$conn->close();
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
152
old/CONTENT/ROOT_URI/Admin/Trans_New-2.php
Normal file
152
old/CONTENT/ROOT_URI/Admin/Trans_New-2.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<div class="container" style="margin-top: 20px;">
|
||||
<form method="get" action="Trans_New"> <input type="text" placeholder="input A/C no and enter" name="no"></form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Loan"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 20px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Remaining Amount</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Recurring"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Total Deposite</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>Past Transactions::::</h5><hr>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if(isset($_GET["no"])){
|
||||
echo '
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>SL</th>
|
||||
<th>Tr No</th>
|
||||
<th>TimeStamp</th>
|
||||
<th>User</th>
|
||||
<th>A/C No</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
';
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
// $sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."'";
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."' ORDER BY `".$GLOBALS['arif_tran']."`.`AT_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
$rowcount=mysqli_num_rows($result);//$rowcount++;
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$rowcount. "</td>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_USER"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";
|
||||
$rowcount--;
|
||||
}
|
||||
} else echo "No Past record Found";
|
||||
mysqli_free_result($result);$conn->close();
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
152
old/CONTENT/ROOT_URI/Admin/Trans_New.php
Normal file
152
old/CONTENT/ROOT_URI/Admin/Trans_New.php
Normal file
@@ -0,0 +1,152 @@
|
||||
<div class="container" style="margin-top: 20px;">
|
||||
<form method="get" action="Trans_New"> <input type="text" placeholder="input A/C no and enter" name="no"></form>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Loan"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 20px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Remaining Amount</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET["no"]) && isset($_GET["type"])&&$_GET["type"]=="Recurring"){
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;"> <h5>New Transaction : '.$GLOBALS['post_info'].' </h5><hr></div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Phone</th>
|
||||
<th>AC No</th>
|
||||
<th>Total Deposite</th>
|
||||
<th>Installment</th>
|
||||
</tr>
|
||||
';
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_ACNO` = '".$_GET["no"]."' ";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_ACNO"]."</td>
|
||||
<td>".$row["AA_BAL"]. '</td>
|
||||
<td>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="add_installment">
|
||||
<input type="text" name="add_i" value="'.$row['AA_INSTALLMENT'].'">
|
||||
<input type="hidden" name="AA_ACNO" value="'.$row['AA_ACNO'].'"><input type="submit" class="btn-info" value="Receive"></form>
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
} else {echo "Check A/C no.";};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>Past Transactions::::</h5><hr>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if(isset($_GET["no"])){
|
||||
echo '
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>SL</th>
|
||||
<th>Tr No</th>
|
||||
<th>TimeStamp</th>
|
||||
<th>User</th>
|
||||
<th>A/C No</th>
|
||||
<th>Amount</th>
|
||||
</tr>
|
||||
';
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) die("Connection failed: " . $conn->connect_error);
|
||||
// $sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."'";
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_tran']."` WHERE `AT_ACID` = '".$_GET['no']."' ORDER BY `".$GLOBALS['arif_tran']."`.`AT_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
$rowcount=mysqli_num_rows($result);//$rowcount++;
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$rowcount. "</td>
|
||||
<td>".$row["AT_ID"]. "</td>
|
||||
<td>".$row["AT_TIMESTAMP"]. "</td>
|
||||
<td>".$row["AT_ADMIN"]. "</td>
|
||||
<td>".$row["AT_ACID"]. "</td>
|
||||
<td>".$row["AT_AMOUNT"]. "</td>
|
||||
</tr>";
|
||||
$rowcount--;
|
||||
}
|
||||
} else echo "No Past record Found";
|
||||
mysqli_free_result($result);$conn->close();
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
?>
|
||||
66
old/CONTENT/ROOT_URI/Admin/View_AC.php
Normal file
66
old/CONTENT/ROOT_URI/Admin/View_AC.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<div class="container" style="background-color:#e0a3a3;padding:8px;">
|
||||
<ul class="nav nav-pills nav-justified">
|
||||
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="FD") echo'class="active"';?>><a href="View_AC?Type=FD">Fixed Deposits</a></li>
|
||||
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Loan") echo'class="active"';?>><a href="View_AC?Type=Loan">Loan A/C</a></li>
|
||||
<li <?php if(isset($_GET['Type']) && $_GET['Type']=="Recurring") echo'class="active"';?>><a href="View_AC?Type=Recurring">Recurring A/Cs</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
function view_list_ac($type) {
|
||||
echo '
|
||||
<div class="container" style="margin-top: 70px;">
|
||||
<h5>VIEW CUSTOMERS</h5><hr>
|
||||
</div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover table-responsive">
|
||||
<tr>
|
||||
<th>SL</th>
|
||||
<th>Type</th>
|
||||
<th>AC No</th>
|
||||
<th>Name</th>
|
||||
<th>PHONE</th>
|
||||
<th>Balance</th>
|
||||
</tr>';
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM `".$GLOBALS['arif_ac']."` WHERE `AA_TYPE`='".$type."' ORDER BY `AA_ID` DESC";
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//$ID=$row["GC_ID"];
|
||||
$tt=$row["AA_ID"]-10;
|
||||
echo "
|
||||
<tr>
|
||||
<td>".$tt. "</td>
|
||||
<td>".$row["AA_ACTYPE"].",".$row["AA_TYPE"]. "</td>
|
||||
<td><a href='./Details?no=".$row["AA_ACNO"]."&type=".$row["AA_TYPE"]."'>".$row["AA_ACNO"]."</a> <a href='./Trans_New?no=".$row["AA_ACNO"]."&type=".$row["AA_TYPE"]."'>Transact</a></td>
|
||||
<td>".$row["AA_NAME"]. "</td>
|
||||
<td>".$row["AA_PHONE"]. "</td>
|
||||
<td>".$row["AA_BAL"]. "</td>
|
||||
</tr>";
|
||||
}
|
||||
} else {
|
||||
echo "0 results";
|
||||
};
|
||||
$conn->close();
|
||||
|
||||
echo '
|
||||
</table>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET['Type']) && $_GET['Type']=="Loan") view_list_ac('Loan');
|
||||
if(isset($_GET['Type']) && $_GET['Type']=="Recurring") view_list_ac('Recurring');
|
||||
if(isset($_GET['Type']) && $_GET['Type']=="FD") view_list_ac('FD');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
1
old/CONTENT/ROOT_URI/Admin/home.php
Normal file
1
old/CONTENT/ROOT_URI/Admin/home.php
Normal file
@@ -0,0 +1 @@
|
||||
admin panel home
|
||||
23
old/CONTENT/ROOT_URI/Admin/index.php
Normal file
23
old/CONTENT/ROOT_URI/Admin/index.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$lnk2 = explode('?', $lnk);
|
||||
include("ADMIN_HEADER.php");//print file_get_contents('http://www.example.com/');var_dump(gethostbyaddr($_SERVER['HTTP_REFERER']));// echo $lnk."c";
|
||||
|
||||
/*
|
||||
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";
|
||||
$browser = get_browser(null, true);
|
||||
print_r($browser);echo $_SERVER['HTTP_REFERER'];*/
|
||||
include("ADMIN_nav.php");
|
||||
|
||||
if(isset($_SESSION['EMAIL']) || isset($_COOKIE['EMAIL']) ){
|
||||
//include("ADMIN_nav.php");
|
||||
echo "<br>";
|
||||
if($lnk=="") include("home.php");
|
||||
elseif(file_exists(__DIR__."/".$lnk.".php")) include($lnk.".php");
|
||||
elseif(isset($lnk2[1]) && file_exists(__DIR__."/".$lnk2[0].".php") ) include($lnk2[0].".php");
|
||||
else include("404.php");
|
||||
}else echo '<center>
|
||||
<h2>Provide Details to login</h2> <a href="https://siliconpin.com/id/auth"><button class="btn btn-default">Login</button></a> </center>';
|
||||
|
||||
include("ADMIN_FOOTER.php");
|
||||
|
||||
?>
|
||||
58
old/CONTENT/ROOT_URI/Admin/new-bn.php
Normal file
58
old/CONTENT/ROOT_URI/Admin/new-bn.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<div class="container">
|
||||
<?php echo $GLOBALS['alert_info'] ?>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="new_news_entry">
|
||||
<input type="hidden" name="lang" value="BN">
|
||||
<div ng-app="myApp" ng-controller="myCtrl" class="form-group">
|
||||
<select class="form-control" name="news_category"><option ng-repeat="x in names">{{x}}</option></select>
|
||||
</select>
|
||||
</div>
|
||||
<script>
|
||||
var app = angular.module('myApp', []);
|
||||
app.controller('myCtrl', function($scope) {
|
||||
$scope.names = [<?php include APP_DIR."/CONTENT/VARIABLES/news_type_list_en.php";?>];
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="news_link" placeholder="Meta/Link for this news entry">
|
||||
<small id="emailHelp" class="form-text text-muted">Alphanumeric(A-Z,a-z,0-9).</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="news_title" placeholder="Title for this new">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" rows="5" name="news_content" placeholder="News content text"></textarea>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<label class="btn btn-default btn-file">
|
||||
<input name="photo_news" type="file" >
|
||||
</label>
|
||||
<!-- Multiple upload not needed for now! <div class="fileinput fileinput-new" data-provides="fileinput">
|
||||
<span class="btn btn-default btn-file"><span></span><input type="file" multiple /></span>
|
||||
<span class="fileinput-filename"></span><span class="fileinput-new"></span>
|
||||
</div>-->
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input type="checkbox" class="form-check-input">
|
||||
Check me out
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="row">
|
||||
<iframe width="100%" height="350" src="https://www.youtube.com/embed/UXJTvnf-meU" frameborder="0" allowfullscreen></iframe>
|
||||
</div>-->
|
||||
</form>
|
||||
</div>
|
||||
57
old/CONTENT/ROOT_URI/Admin/new-en.php
Normal file
57
old/CONTENT/ROOT_URI/Admin/new-en.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<div class="container">
|
||||
<?php echo $GLOBALS['alert_info'] ?>
|
||||
</div>
|
||||
<div class="container">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="FORM_NAME" value="new_news_entry">
|
||||
<input type="hidden" name="lang" value="EN">
|
||||
<div ng-app="myApp" ng-controller="myCtrl" class="form-group">
|
||||
<select class="form-control" name="news_category"><option ng-repeat="x in names">{{x}}</option></select>
|
||||
</div>
|
||||
<script>
|
||||
var app = angular.module('myApp', []);
|
||||
app.controller('myCtrl', function($scope) {
|
||||
$scope.names = [<?php include APP_DIR."/CONTENT/VARIABLES/news_type_list_en.php";?>];
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="news_link" placeholder="Meta/Link for this news entry">
|
||||
<small id="emailHelp" class="form-text text-muted">Alphanumeric(A-Z,a-z,0-9).</small>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="news_title" placeholder="Title for this new">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" rows="5" name="news_content" placeholder="News content text"></textarea>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<label class="btn btn-default btn-file">
|
||||
<input name="photo_news" type="file" >
|
||||
</label>
|
||||
<!-- Multiple upload not needed for now! <div class="fileinput fileinput-new" data-provides="fileinput">
|
||||
<span class="btn btn-default btn-file"><span></span><input type="file" multiple /></span>
|
||||
<span class="fileinput-filename"></span><span class="fileinput-new"></span>
|
||||
</div>-->
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input type="checkbox" class="form-check-input">
|
||||
Check me out
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="row">
|
||||
<iframe width="100%" height="350" src="https://www.youtube.com/embed/UXJTvnf-meU" frameborder="0" allowfullscreen></iframe>
|
||||
</div>-->
|
||||
</form>
|
||||
</div>
|
||||
11
old/CONTENT/ROOT_URI/Admin/test.php
Normal file
11
old/CONTENT/ROOT_URI/Admin/test.php
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
<?php echo $_POST["name"]; ?><br>
|
||||
<?php echo $_POST["email"]; ?>
|
||||
|
||||
<div class="container">
|
||||
<form method="POST">
|
||||
<input type="text" name="name" placeholder="name" class="frist"/>
|
||||
<input type="text" name="email" placeholder="email"/>
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
</div>
|
||||
3
old/CONTENT/ROOT_URI/Admin/view-bn.php
Normal file
3
old/CONTENT/ROOT_URI/Admin/view-bn.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="container">
|
||||
|
||||
</div>
|
||||
129
old/CONTENT/ROOT_URI/Admin/view-en.php
Normal file
129
old/CONTENT/ROOT_URI/Admin/view-en.php
Normal file
@@ -0,0 +1,129 @@
|
||||
<script>
|
||||
function update_pri(id) {
|
||||
var idn='pri'+id;
|
||||
if (id.length == 0) {
|
||||
alert("Input Error!");
|
||||
return;
|
||||
} else {
|
||||
var pri=document.getElementById(idn).value;
|
||||
document.getElementById(idn).disabled = true;
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if (this.readyState == 4 && this.status == 200) {
|
||||
document.getElementById(idn).disabled = false;
|
||||
document.getElementById(idn).value = this.responseText;
|
||||
}
|
||||
};
|
||||
xmlhttp.open("GET", "/execute.php?id=" + id + "&pri="+pri, true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function switch_state(id) {
|
||||
var idn='act'+id;
|
||||
if (id.length == 0) {
|
||||
alert("Input Error!");
|
||||
return;
|
||||
} else {
|
||||
var active=document.getElementById(idn).value;
|
||||
document.getElementById(idn).disabled = true;
|
||||
console.log(idn);
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if (this.readyState == 4 && this.status == 200) {
|
||||
document.getElementById(idn).disabled = false;
|
||||
document.getElementById(idn).value = this.responseText;
|
||||
}
|
||||
};
|
||||
xmlhttp.open("GET", "/execute2.php?id=" + id + "&active="+active, true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="container table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>TITLE</th>
|
||||
<th>DATE</th>
|
||||
<th>CATEGORY</th>
|
||||
<th>PRIORITY</th>
|
||||
<th>STATE</th>
|
||||
</tr>
|
||||
<?php
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
$conn->set_charset("utf8");
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM ".$GLOBALS['table1'];
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while($row = $result->fetch_assoc()) {
|
||||
//echo "id: " . $row["N_TITLE"]. " - Name: " . $row["N_DATE"]. " " . $row["N_CATEGORY"]." " . $row["pri"]. "<br>";
|
||||
$ID=$row["id"];
|
||||
echo "
|
||||
<tr>
|
||||
<td>" . $ID. "</td>
|
||||
<td>" . $row["N_TITLE"]. "</td>
|
||||
<td>" . $row["N_DATE"]. "</td>
|
||||
<td>" . $row["N_CATEGORY"]. "</td>
|
||||
<td>
|
||||
<form method='post'>
|
||||
<input type='number' name='pri' id='pri" .$ID. "' value='" . $row["pri"]. "'>
|
||||
<input type='hidden' name='id' value='" .$ID. "'>
|
||||
<input class='btn btn-success' type='button' name='priority' value='SAVE' onclick='update_pri(" .'"'.$ID.'"'. ")'>
|
||||
</form>
|
||||
</td>
|
||||
<td>
|
||||
<select name='state' id='act" .$ID. "' onchange='switch_state(" .'"'.$ID.'"'. ")' >
|
||||
<option>".$row['ACTIVE']."</option>
|
||||
<option>0</option>
|
||||
<option>1</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>";
|
||||
}
|
||||
} else {
|
||||
echo "0 results";
|
||||
};
|
||||
$conn->close();
|
||||
?>
|
||||
<?php
|
||||
if(isset($_POST['priority']) && $_POST['priority']=='SUBMIT')
|
||||
{
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "UPDATE `".$GLOBALS["table1"]."` SET `pri` = '".$_POST['pri']."' WHERE `news`.`id` =".$_POST['id'];
|
||||
$result = $conn->query($sql);
|
||||
if(!$result) echo mysqli_error(); else echo "Successfully Updated! <br />";
|
||||
$conn->close();
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(isset($_POST['statebtn']) && $_POST['statebtn']=='SUBMIT')
|
||||
{
|
||||
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
}
|
||||
|
||||
$sql = "UPDATE `".$GLOBALS["table1"]."` SET `ACTIVE` = '".$_POST['active']."' WHERE `news`.`id` =".$_POST['id'];
|
||||
$result = $conn->query($sql);
|
||||
if(!$result) echo mysqli_error(); else echo "Successfully Updated! <br />";
|
||||
$conn->close();
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
85
old/CONTENT/ROOT_URI/banner-top.php
Normal file
85
old/CONTENT/ROOT_URI/banner-top.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<section class="banner-top">
|
||||
<div class="container">
|
||||
<div class="banner">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<div id="myCarousel" class="carousel slide" data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#myCarousel" data-slide-to="1"></li>
|
||||
<li data-target="#myCarousel" data-slide-to="2"></li>
|
||||
</ol>
|
||||
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
<div class="item active">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="Chicago">
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="Chicago">
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="Chicago">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Left and right controls -->
|
||||
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#myCarousel" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<div id="frist" class="carousel slide" data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<!--<ol class="carousel-indicators">
|
||||
<li data-target="#myCarousel1" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#myCarousel2" data-slide-to="1"></li>
|
||||
<li data-target="#myCarousel3" data-slide-to="2"></li>
|
||||
</ol>-->
|
||||
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
<div class="item active">
|
||||
<img src="/CONTENT/THEME/images/banner-img.jpg" alt="Chicago">
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<img src="/CONTENT/THEME/images/banner-img.jpg" alt="Chicago">
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<img src="/CONTENT/THEME/images/banner-img.jpg" alt="Chicago">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Left and right controls -->
|
||||
<a class="left carousel-control" href="#frist" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#frist" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rt-block bottom">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="Chicago">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
219
old/CONTENT/ROOT_URI/bottom.php
Normal file
219
old/CONTENT/ROOT_URI/bottom.php
Normal file
@@ -0,0 +1,219 @@
|
||||
<section class="bottom">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="top-news">
|
||||
<div class="border">
|
||||
<h4>Top news</h4>
|
||||
</div>
|
||||
<marquee direction="up" scrollamount="2" behavior="alternate" onmouseover="this.stop();"
|
||||
onmouseout="this.start();" height="715px">
|
||||
|
||||
<?php echo newsPandT('EN','','', '10');
|
||||
?>
|
||||
|
||||
</marquee>
|
||||
</div>
|
||||
|
||||
<div class="top-news gallery">
|
||||
<div class="border">
|
||||
<h4>Gallery</h4>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="box">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="box">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="box">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="top-news news">
|
||||
<div class="border">
|
||||
<h4>Breaking News</h4>
|
||||
</div>
|
||||
<marquee direction="up" scrollamount="1" behavior="alternate" onmouseover="this.stop();"
|
||||
onmouseout="this.start();" height="715px">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="pic"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<p>Will consult States on bringing petro products into GST:
|
||||
Narendra Modi</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="pic"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<p>Will consult States on bringing petro products into GST:
|
||||
Narendra Modi</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="pic"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<p>Will consult States on bringing petro products into GST:
|
||||
Narendra Modi</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="pic"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<p>Will consult States on bringing petro products into GST:
|
||||
Narendra Modi</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt="pic"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<p>Will consult States on bringing petro products into GST:
|
||||
Narendra Modi</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr/>
|
||||
</marquee>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
|
||||
<div class="videos">
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
<h4>VIDEOS</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="videos new-posts">
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
<h4>NEW POSTS</h4>
|
||||
</div>
|
||||
<h5>The unintended consequences of GST</h5>
|
||||
<img src="/CONTENT/THEME/images/banner-img1.jpg" alt"pic"/>
|
||||
<h6><i class="fa fa-calendar"></i> 2017-10-01 12:57:34
|
||||
<i class="fa fa-comments"></i> 1,200</h6>
|
||||
<p>It has wreaked havoc on the informal sector. Do we have a plan to deal with this?</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
|
||||
<div class="search">
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
<h4>search</h4>
|
||||
</div>
|
||||
<from>
|
||||
<input type="text" name="Enter Search Keywords" placeholder="Enter Search Keywords"
|
||||
class="control">
|
||||
</from>
|
||||
<div class="box">
|
||||
<div class="border1">
|
||||
</div>
|
||||
<div class="border1">
|
||||
</div>
|
||||
<div class="border1">
|
||||
<h5>RECENT NEWS</h5>
|
||||
</div>
|
||||
<marquee direction="up" scrollamount="2" behavior="alternate" onmouseover="this.stop();"
|
||||
onmouseout="this.start();" height="px">
|
||||
<div class="text">
|
||||
<p>Cricket: India Women to play ICC Championship opener against
|
||||
S.A in February</p>
|
||||
|
||||
<p>Cricket: India Women to play ICC Championship opener against
|
||||
S.A in February</p>
|
||||
|
||||
<p>Cricket: India Women to play ICC Championship opener against
|
||||
S.A in February</p>
|
||||
|
||||
<p>Cricket: India Women to play ICC Championship opener against
|
||||
S.A in February</p>
|
||||
|
||||
<p>Cricket: India Women to play ICC Championship opener against
|
||||
S.A in February</p>
|
||||
</div>
|
||||
</marquee>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search calendar">
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
<h4>CALENDAR</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="search tweet">
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
</div>
|
||||
<div class="border">
|
||||
<h4>TWEET</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
15
old/CONTENT/ROOT_URI/footer-bottom.php
Normal file
15
old/CONTENT/ROOT_URI/footer-bottom.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<section class="footer-bottom">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="text-center">
|
||||
<p>copy right <?php echo date("Y");?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
87
old/CONTENT/ROOT_URI/footer.php
Normal file
87
old/CONTENT/ROOT_URI/footer.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<section class="footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 ">
|
||||
<div class="NEWSPAPER">
|
||||
<h4>NEWSPAPER</h4>
|
||||
<p>Never missed any post published in our site. Subscribe
|
||||
to our daly newsletter now.</p>
|
||||
<h5>Email address:</h5>
|
||||
<from>
|
||||
<input type="text" name="Email" placeholder="your Email" />
|
||||
<input type="submit" value="SUBSCRIBE" class="btn">
|
||||
</from>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 ">
|
||||
<div class="tags">
|
||||
<h4>Tags</h4>
|
||||
<ul>
|
||||
<li><a href="#">National</a></li>
|
||||
<li><a href="#">Opinion</a></li>
|
||||
<li><a href="#">Business</a></li>
|
||||
<li><a href="#">Entertainment</a></li>
|
||||
<li><a href="#">Economics</a></li>
|
||||
<li><a href="#">agri form</a></li>
|
||||
<li><a href="#">Sports</a></li>
|
||||
<li><a href="#">Cricket</a></li>
|
||||
<li><a href="#">Football</a></li>
|
||||
<li><a href="#">Hockey</a></li>
|
||||
<li><a href="#">International</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 ">
|
||||
<div class="Recent-News">
|
||||
<h4>Recent News</h4>
|
||||
<marquee direction="up" scrollamount="2.50" behavior="alternate" onmouseover="this.stop();"
|
||||
onmouseout="this.start();" height="250px">
|
||||
<div class="text">
|
||||
<a href="#">Banaras Hindu University (BHU) vice chancellor Girish Chandra
|
||||
Tripathi,who is being blamed for last month’s violence and
|
||||
baton-charge on protesting girl students in the campus, has gone
|
||||
on leave, citing personal reasons.</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
<a href="#">Boat carrying Rohingya refugees from Myanmar capsizes off Bangladesh</a>
|
||||
<hr/>
|
||||
</div>
|
||||
</marquee>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
262
old/CONTENT/ROOT_URI/header.php
Normal file
262
old/CONTENT/ROOT_URI/header.php
Normal file
@@ -0,0 +1,262 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Bengal Live</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/CONTENT/THEME/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/CONTENT/THEME/font-awesome/css/font-awesome.min.css">
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||
<script src="/CONTENT/THEME/js/bootstrap.min.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
/*css for structure -start*/
|
||||
/*CSS FOR NAV BAR START */
|
||||
body {padding:0 ; background: rgba(73,135,189,1);
|
||||
background: -moz-linear-gradient(left, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 1%, rgba(163,240,230,1) 80%);
|
||||
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(73,135,189,1)), color-stop(0%, rgba(73,135,189,1)), color-stop(1%, rgba(73,135,189,1)), color-stop(80%, rgba(163,240,230,1)));
|
||||
background: -webkit-linear-gradient(left, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 1%, rgba(163,240,230,1) 80%);
|
||||
background: -o-linear-gradient(left, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 1%, rgba(163,240,230,1) 80%);
|
||||
background: -ms-linear-gradient(left, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 1%, rgba(163,240,230,1) 80%);
|
||||
background: linear-gradient(to right, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 0%, rgba(73,135,189,1) 1%, rgba(163,240,230,1) 80%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4987bd', endColorstr='#a3f0e6', GradientType=1 );
|
||||
}
|
||||
|
||||
|
||||
/* Remove the navbar's default margin-bottom and rounded borders */
|
||||
.navbar {
|
||||
margin-bottom: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
|
||||
.row.content {height: 450px}
|
||||
/* Set gray background color and 100% height */
|
||||
.sidenav {
|
||||
padding-top: 20px;
|
||||
background-color: #f1f1f1;
|
||||
height: 100%;
|
||||
}
|
||||
/* Set black background color, white text and some padding */
|
||||
footer {
|
||||
background-color: #555;
|
||||
color: white;
|
||||
padding: 15px;
|
||||
}
|
||||
/* On small screens, set height to 'auto' for sidenav and grid */
|
||||
@media screen and (max-width: 767px) {
|
||||
.sidenav {
|
||||
height: auto;
|
||||
padding: 15px;
|
||||
}
|
||||
.row.content {height:auto;}
|
||||
}
|
||||
.box{ padding:0 0 0 0; margin:20px 0 0 0; }
|
||||
.box .navbar-default{ background:#252628; padding: 0; margin: 0; }
|
||||
.box .navbar-default .navbar-nav > li > a { color: #fff; transition:ease-out 1s; padding: 17px 17px; }
|
||||
.box .navbar-default .navbar-nav > li > a:hover{ color: #000; background: #fff; padding: 17px 17px; }
|
||||
.box .navbar-default .navbar-collapse .navbar-nav .active a.frist{ background: #000;
|
||||
color:#7DC314; padding: 17px 17px; }
|
||||
.box .navbar-default .navbar-collapse .navbar-right{ background:#505052; margin:0 0 0 0; }
|
||||
.navbar { border:none; }
|
||||
.navbar-default .navbar-collapse .navbar-nav .active a.frist:hover{color: #fff; transition:ease-out 1s; }
|
||||
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:focus,
|
||||
.navbar-default .navbar-nav > .active > a:hover { color: #fff; }
|
||||
.navbar-collapse { padding: 0; }
|
||||
|
||||
/*CSS FOR NAV BAR END */
|
||||
|
||||
/*css for section start*/
|
||||
.top{ background:#fff; padding: 0; margin: 0; }
|
||||
.top .lt-block{ background:0; padding:20px 0 20px 0; margin: 0; }
|
||||
.top .lt-block h4{ font-family:'arial'; font-size:20px; color:#000; line-height:22px;
|
||||
font-weight:500; padding:0; margin:0; }
|
||||
.top .rt-block{ background:0; text-align:right; padding:20px 0 20px 0; margin: 0; }
|
||||
.top .rt-block ul{ list-style:none; padding:0; margin:0; }
|
||||
.top .rt-block ul li{ display:inline-block; font-family:'arial'; font-size:16px; color:#000;
|
||||
line-height:18px; font-weight:400; padding:0 0 0 7px; margin:0; }
|
||||
.top .rt-block ul li a{ text-decoration:none; color:#000; padding:0 0 0 0; transition: 1s ease; }
|
||||
.top .rt-block ul li a:hover{ color:#7DC314; }
|
||||
.top .rt-block ul li span{ padding:0 7px 0 0; }
|
||||
|
||||
/*css for section start*/
|
||||
|
||||
/*css for section-banner-top- start*/
|
||||
.banner-top { background:#; padding:0; margin:0; }
|
||||
.banner-top .banner { background-color:#fff; padding: 20px; margin: 20px 0 0 0; }
|
||||
.banner-top .banner .lt-block { background-color:#000; padding: 0; min-height:400px;
|
||||
margin: 0; box-sizing: border-box; }
|
||||
.banner-top .banner .rt-block { background-color:#000; padding: 0; min-height:200px;
|
||||
margin: 0; box-sizing: border-box; }
|
||||
.banner-top .banner .rt-block img{ width:100%; height:100%; }
|
||||
.banner-top .banner .bottom { background-color:red; padding: 0; min-height:200px;
|
||||
margin: 30px 0 0 0; box-sizing: border-box; }
|
||||
.banner-top .banner .bottom img { width:100%; min-height:100%; }
|
||||
|
||||
/*css for section-banner-top-end*/
|
||||
|
||||
|
||||
/*css for section-bottom-start*/
|
||||
.bottom { background:#; padding:0; margin:0; }
|
||||
/*for the bottom-top-news-start*/
|
||||
.bottom .top-news{ background-color:#fff; padding:15px; margin:30px 0 0 0; }
|
||||
.bottom .top-news .border{ background:#000; padding:5px 0 5px 0; margin:0 0 20px 0; position: relative; }
|
||||
.bottom .top-news .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px; font-weight:600;
|
||||
background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-7px; }
|
||||
.bottom .top-news .lt-block{ padding:0; margin:0; }
|
||||
.bottom .top-news .lt-block img{ width:100%; padding:0; margin:0; }
|
||||
.bottom .top-news .rt-block{ padding:0; margin:0; }
|
||||
.bottom .top-news .rt-block p{ font-family:0; font-size:16px; color:#000; line-height:18px;
|
||||
font-weight:400; padding:0; margin:0; }
|
||||
/*for the bottom-top-news-end*/
|
||||
|
||||
/*for the bottom-gallery-start*/
|
||||
.bottom .gallery{ background-color:#fff; min-height: 300px; padding:15px; margin:0;
|
||||
box-sizing: border-box; }
|
||||
.bottom .gallery .border{ background:#000; padding:5px 0 5px 0; margin:0 0 20px 0;
|
||||
position: relative; }
|
||||
.bottom .gallery .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px;
|
||||
font-weight:600;
|
||||
background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-7px; }
|
||||
.bottom .gallery .box{ background-color:#000; min-height: 200px; padding:0 ; margin:0; }
|
||||
/*for the bottom-gallery-end*/
|
||||
|
||||
/*for the bottom-news-start*/
|
||||
.bottom .news{ background-color:#fff; padding:15px; margin:0; }
|
||||
.bottom .news .border{ background:green; padding:5px 0 5px 0; margin:0 0 20px 0; position: relative; }
|
||||
.bottom .news .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px; font-weight:600;
|
||||
background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-7px; }
|
||||
.bottom .news .lt-block{ padding:0; margin:0; }
|
||||
.bottom .news .lt-block img{ width:100%; padding:0; margin:0; }
|
||||
.bottom .news .rt-block{ padding:0; margin:0; }
|
||||
.bottom .news .rt-block p{ font-family:0; font-size:16px; color:#000; line-height:18px;
|
||||
font-weight:400; padding:0; margin:0; }
|
||||
/*for the bottom-news-end*/
|
||||
|
||||
/*for the bottom-videos-start*/
|
||||
.bottom .videos{ background-color:#fff; min-height: 400px; padding:20px 15px 0 15px; margin:30px 0 0 0; }
|
||||
.bottom .videos .border{ border-top:1px solid #000; padding:0px 0 1px 0; margin:0; position: relative; }
|
||||
.bottom .videos .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px; font-weight:600;
|
||||
background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-9px; }
|
||||
|
||||
|
||||
/*for the bottom-videos-end*/
|
||||
|
||||
|
||||
/*for the bottom-new-posts-start*/
|
||||
.bottom .new-posts { background-color:#fff; min-height: 400px; padding:20px 15px 0 15px; margin:0; }
|
||||
.bottom .new-posts img{ width:100%; }
|
||||
.bottom .new-posts .border{ border-top:1px solid #000; padding:0px 0 1px 0; margin:0; position: relative; }
|
||||
.bottom .new-posts .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px;
|
||||
font-weight:600; background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-9px; }
|
||||
.bottom .new-posts h5{ font-family:0; font-size:15px; color:#000; line-height:17px; font-weight:400;
|
||||
padding:20px 0 15px 0; margin:0; }
|
||||
.bottom .new-posts h6{ font-family:0; font-size:15px; color:#000; line-height:17px; font-weight:400;
|
||||
padding:10px 0 10px 0; margin:0; }
|
||||
.bottom .new-posts p{ font-family:0; font-size:15px; color:#000; line-height:17px; font-weight:400;
|
||||
padding:0; margin:0; }
|
||||
/*for the bottom-new-posts-end*/
|
||||
|
||||
/*for the bottom-search-start*/
|
||||
.bottom .search{ background-color:#fff; min-height: 400px; padding:15px; margin:30px 0 0 0; }
|
||||
.bottom .search .border{border-top:1px solid #000; padding:0px 0 1px 0; margin:0; position:relative;}
|
||||
.bottom .search .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px;
|
||||
font-weight:600; background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-9px; }
|
||||
.bottom .search .control { width:100%; background:#ccc; height:40px;border:1px solid #4444;
|
||||
font-size:14px; color:#fff; line-height:18px; font-weight:400; padding:0 12px 0 12px;
|
||||
box-sizing:border-box; margin:20px 0 20px 0; border-radius:5px; }
|
||||
.bottom .search .box { border-bottom:1px solid #000; }
|
||||
.bottom .search .box .border1{ border-top:1px solid #000; padding:0px 0 1px 0; margin:0;
|
||||
position:relative;}
|
||||
.bottom .search .box .border1 h5{ font-family:0; font-size:18px; color:#000; line-height:20px;
|
||||
font-weight:600; background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-7px; z-index:9; }
|
||||
.bottom .search .box .text{ padding:0; margin:20px 0 0 0; }
|
||||
/*for the bottom-search-end*/
|
||||
|
||||
/*.bottom .search .keyword{background-color:#04510f; min-height: 100px; padding:0 ; margin:0 0 30px 0; }
|
||||
.bottom .search .RECENT-NEWS{ background-color:#92e59e; min-height: 200px; padding:0 ; margin:0; }
|
||||
.bottom .search .CATEGORY{ background-color:#000; min-height: 100px; padding:0 ; margin:0; }*/
|
||||
|
||||
/*for the bottom-calendar-start*/
|
||||
.bottom .calendar{ background-color:#fff; min-height:300px; padding:15px; margin:0; }
|
||||
.bottom .calendar .border{border-top:1px solid #000; padding:0px 0 1px 0; margin:0; position:relative;}
|
||||
.bottom .calendar h4{ font-family:0; font-size:25px; color:#000; line-height:27px;
|
||||
font-weight:600; background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-9px; }
|
||||
/*for the bottom-calendar-end*/
|
||||
|
||||
/*for the bottom-TWEET-start*/
|
||||
.bottom .tweet{ background-color:#fff; min-height:300px; padding:15px; margin:0; }
|
||||
.bottom .tweet .border{border-top:1px solid #000; padding:0px 0 1px 0; margin:0; position:relative;}
|
||||
.bottom .tweet .border h4{ font-family:0; font-size:25px; color:#000; line-height:27px;
|
||||
font-weight:600; background:#fff; display:inline-block; padding:0 15px 0 15px; margin:0 0 0 15px;
|
||||
position: absolute ; left:0; bottom:-9px; }
|
||||
/*for the bottom-TWEET-end*/
|
||||
|
||||
/*css for section-bottom-end*/
|
||||
|
||||
/*css for section-footer-start*/
|
||||
|
||||
/*css for section-footer-NEWSPAPER-START*/
|
||||
.footer{ background:#202020; padding: 30px 0 30px 0; margin: 0; }
|
||||
.footer .NEWSPAPER{ background: #; padding: 15px; margin: 0; }
|
||||
.footer .NEWSPAPER h4{ font-family:0; font-size:35px; color:#fff; line-height:37px;
|
||||
font-weight:600; padding:0 0 10px 0; margin:0; }
|
||||
.footer .NEWSPAPER p{ font-family:0; font-size:16px; color:#fff; line-height:20px;
|
||||
font-weight:400; padding:0 0 13px 0; margin:0; border-bottom:1px solid #444444;}
|
||||
.footer .NEWSPAPER h5{ font-family:0; font-size:18px; color:#fff; line-height:20px;
|
||||
font-weight:400; padding:13px 0 10px 0; margin:0; }
|
||||
.footer .NEWSPAPER input[type="text"]{ width:100%; background:none; border:1px solid #444444; height:40px;
|
||||
font-family:#; font-size:14px; color:#fff; line-height:18px; font-weight:400; padding:0 12px 0 12px;
|
||||
box-sizing:border-box; margin:0 0 10px 0; }
|
||||
.footer .NEWSPAPER .btn{ background:#444444; font-family:#; font-size:14px; color:#FADA1A; line-height:18px;
|
||||
font-weight:600; padding:12px 15px; margin:0; transition:1s ease; }
|
||||
.footer .NEWSPAPER .btn:hover{ background:#fff; color:#000; transition:1s ease; }
|
||||
/*css for section-footer-NEWSPAPER-end*/
|
||||
|
||||
/*css for section-footer-TAGS-start*/
|
||||
.footer .tags{ padding:15PX; margin:0; }
|
||||
.footer .tags h4{ font-family:0; font-size:35px; color:#FFF; line-height:37px;
|
||||
font-weight:600; padding:0 0 10px 0; margin:0; }
|
||||
.footer .tags ul{ padding:7px 0 0 0; margin:0; }
|
||||
.footer .tags ul li{ display:inline-block; list-style:none; border:1px solid #ccc;
|
||||
font-family:#; font-size:14px; color:#fff; line-height:16px; font-weight:400; padding:5px 7px;
|
||||
margin:0 0px 5px 0; }
|
||||
.footer .tags ul li a{ text-decoration:none; color:#fff; transition:1s ease; }
|
||||
.footer .tags ul li a:hover{ color:#7DC314; transition:1s ease; }
|
||||
/*css for section-footer-TAGS-end*/
|
||||
|
||||
/*css for section-footer-Recent-News-start*/
|
||||
.footer .Recent-News { padding:15px; margin:0; }
|
||||
.footer .Recent-News h4 { font-family:0; font-size:35px; color:#FFF; line-height:37px;
|
||||
font-weight:600; padding:0 0 10px 0; margin:0; }
|
||||
.footer .Recent-News .text{ padding:0; margin:0; }
|
||||
.footer .Recent-News .text a{ text-decoration:none; font-family:#; font-size:15px; color:#fff;
|
||||
line-height:24px; font-weight:400; padding:0; margin:0; }
|
||||
|
||||
/*css for section-footer-Recent-News-end*/
|
||||
|
||||
/*css for section-footer-end*/
|
||||
|
||||
/*css for section-footer-bottom-start*/
|
||||
.footer-bottom{ background:#202020; border-top:1px solid #4444; padding: 20px 0 20px 0; margin:0; }
|
||||
.footer-bottom .text-center{ padding:0; margin:0; }
|
||||
.footer-bottom .text-center p{ font-family:#; font-size:15px; color:#fff;
|
||||
line-height:17px; font-weight:400; padding:0; margin:0; }
|
||||
/*css for section-footer-end*/
|
||||
/*css for structure -end*/
|
||||
</style>
|
||||
|
||||
</head>
|
||||
29
old/CONTENT/ROOT_URI/index.php
Normal file
29
old/CONTENT/ROOT_URI/index.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
echo "Website for Gramin Venture will be live soon";
|
||||
exit();
|
||||
$lnk2 = explode('?', $lnk);
|
||||
include("ADMIN_HEADER.php");//print file_get_contents('http://www.example.com/');var_dump(gethostbyaddr($_SERVER['HTTP_REFERER']));// echo $lnk."c";
|
||||
if(!isset($_COOKIE)) {
|
||||
//echo "Cookie named '" . $cookie_name . "' is not set!";
|
||||
} else {
|
||||
//echo "Value is: " . $_COOKIE["cookie_name"];
|
||||
var_dump($_COOKIE);
|
||||
}/*
|
||||
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";
|
||||
$browser = get_browser(null, true);
|
||||
print_r($browser);echo $_SERVER['HTTP_REFERER'];*/
|
||||
include("ADMIN_nav.php");
|
||||
|
||||
if(isset($_SESSION['EMAIL'])){
|
||||
//include("ADMIN_nav.php");
|
||||
echo "<br>";
|
||||
if($lnk=="") include("home.php");
|
||||
elseif(file_exists(__DIR__."/".$lnk.".php")) include($lnk.".php");
|
||||
elseif(isset($lnk2[1]) && file_exists(__DIR__."/".$lnk2[0].".php") ) include($lnk2[0].".php");
|
||||
else include("404.php");
|
||||
}else echo '<center>
|
||||
<h2>Provide Details to login</h2> <a href="https://siliconpin.com/id/auth"><button class="btn btn-default">Login</button></a> </center>';
|
||||
|
||||
include("ADMIN_FOOTER.php");
|
||||
|
||||
?>
|
||||
34
old/CONTENT/ROOT_URI/navbar.php
Normal file
34
old/CONTENT/ROOT_URI/navbar.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<section class="box">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<!-- <a class="navbar-brand" href="#">Logo</a>-->
|
||||
</div>
|
||||
<div class="collapse navbar-collapse" id="myNavbar">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a class="frist" href="#">Newspaper</a></li>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">National</a></li>
|
||||
<li><a href="#">Opinion</a></li>
|
||||
<li><a href="#">Business</a></li>
|
||||
<li><a href="#">Entertainment</a></li>
|
||||
<li><a href="#">Sports</a></li>
|
||||
<li><a href="#">International</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<!-- <li><a href="#"><span class="glyphicon glyphicon-log-in"></span> <i class="fa fa-facebook" aria-hidden="true">
|
||||
</i> </a></li>-->
|
||||
<li><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
|
||||
<li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
|
||||
<li><a href="#"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
|
||||
<li><a href="#"><i class="fa fa-youtube" aria-hidden="true"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
||||
25
old/CONTENT/ROOT_URI/top.php
Normal file
25
old/CONTENT/ROOT_URI/top.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<section class="top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="lt-block">
|
||||
<h4>Welcome to bengallive !</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||
<div class="rt-block">
|
||||
<ul>
|
||||
<li><span><i class="fa fa-home" aria-hidden="true"></i></span><a href="#">Home</a></li>
|
||||
<li><span><i class="fa fa-comments" aria-hidden="true"></i></span>/
|
||||
<a href="#">Contact</a></li>
|
||||
<li><span><i class="fa fa-question-circle" aria-hidden="true"></i></span>/
|
||||
<a href="#">FAQ</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="claer"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user