New File Created RE Regstration form

This commit is contained in:
sriramv 2018-06-12 17:12:03 +05:30
parent 64f2951f1f
commit 925496bd6c
11 changed files with 334 additions and 87 deletions

View File

@ -0,0 +1,36 @@
<?php
/**
* Created by Visual Studio.
* User: sriram
* Date: 6/12/18
*/
defined('BASEPATH') OR exit('No direct script access allowed');
// This can be removed if you use __autoload() in config.php OR use Modular Extensions
/** @noinspection PhpIncludeInspection */
require_once APPPATH . '/libraries/REST_Controller.php';
class Reregister_Controller extends REST_Controller {
function __construct()
{
// Construct the parent class
parent::__construct();
// Configure limits on our controller methods
// Ensure you have created the 'limits' table and enabled 'limits' within application/config/rest.php
// load the model
$this->load->model('Reregister_model', 'Reregister_model');
}
}

View File

@ -0,0 +1,16 @@
<?php
/**
* Created by Viual Studio.
* User: sriram
* Date: 3/19/18
* Time: 7:48 PM
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Reregister_model extends CI_Model
{
}

View File

@ -74,7 +74,8 @@
"SUBJECTMASTER":"SUBJECT MASTER",
"SESSIONMASTER":"SESSION DETAILS",
"SESSIONSCHEDULE": "SESSION SCHEDULE",
"HALLTICKET": "GENERATE HALLTICKET"
"HALLTICKET": "GENERATE HALLTICKET",
"REREGISTRATION":"RE REGISTRATION"
},
"report": {
"TITLE": "REPORTS",
@ -158,6 +159,11 @@
"COURSESEMESTERMAPPING": "COURSE SEMESTER MAPPING",
"BATCHSCHEDULE": "BATCH SCHEDULE",
"GENERATEHALLTICKET": "GENERATE HALLTICKET"
},
"reregistration":{
"MAIN":"RE REGISTRATION",
"REREGISTRATIONFORM":"RE REGISTRATION FORM",
"BATCHMOMENT":"BATCH MOMENT"
}
}
},

View File

@ -0,0 +1,15 @@
'use strict';
/**
* controllers for ng-table
* Simple table with sorting and filtering on AngularJS
*/
app.controller('BatchmomentCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state","$modal","$log", function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state,$modal,$log) {
$scope.myModel = {
"universityName":"",
"courseName":"",
"batchName":""
};
}]);

View File

@ -178,7 +178,10 @@ app.constant('JS_REQUIRES', {
// batchshedule for hall ticket
'schCtrl':'assets/js/controllers/schCtrl.js',
// Re - reg for hall ticket
'reregistrationformCtrl':'assets/js/controllers/reregistrationformCtrl.js',
// Batch moment for hall ticket
'BatchmomentCtrl':'assets/js/controllers/Batchmoment.js',
//*** Filters
'htmlToPlaintext': 'assets/js/filters/htmlToPlaintext.js',

View File

@ -666,7 +666,31 @@ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$com
ncyBreadcrumb: {
label: 'Generate HallTicket'
}
});
}).state('app.reregistration', {
url: '/Reregistration',
template: '<div ui-view class="fade-in-up"> <div style="margin: auto; width: 50%;padding: 10px;"> REREGISTRATION</div> </div>',
title: 'REREGISTRATION',
ncyBreadcrumb: {
label: 'RE REGISTRATION'
}
}).state('app.reregistration.reregistrationform',{
url:'/reregistrationform',
templateUrl:"assets/views/reregistration/reregistrationform.html",
title:'Re Registration Form',
resolve: loadSequence('ladda', 'angular-ladda', 'reregistrationformCtrl','ngTable','ui.select','spin', 'ui.mask'),
ncyBreadcrumb: {
label: 'Re Registration Form'
}
}).state('app.reregistration.batchmoment',{
url:'/batchmoment',
templateUrl:"assets/views/reregistration/batchmoment.html",
title:'Re Registration Form',
resolve: loadSequence('ladda', 'angular-ladda', 'BatchmomentCtrl','ngTable','ui.select','spin', 'ui.mask'),
ncyBreadcrumb: {
label: 'Re Registration Form'
}
});
// $locationProvider.html5Mode(true);

View File

@ -0,0 +1,15 @@
'use strict';
/**
* controllers for ng-table
* Simple table with sorting and filtering on AngularJS
*/
app.controller('reregistrationformCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableParams", "API_POINTS", "$localStorage", "$http", "$state","$modal","$log", function ($scope,$rootScope,toaster, $filter, ngTableParams, apiPoint, $localStorage, $http, $state,$modal,$log) {
$scope.myModel = {
"universityName":"",
"courseName":"",
"batchName":""
};
}]);

View File

@ -34,7 +34,7 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
$scope.semDropDownShowLoading1 = false;
$scope.semDetailsLoadingStatus1 = false;
$scope.semDetailsLoadingTxt1 = "";
$scope.setEditId = function (pid,cid,schid,subid,c) {
$scope.setEditId = function (pid,cid,schid,subid,c) {
var branchid=JSON.parse(localStorage.getItem('localObj')).localBranchID;
$scope.semDetailsLoadingStatus1 = true;
$scope.semDetailsLoadingTxt1 = "Loading...";
@ -118,85 +118,7 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
$scope.reverse = !$scope.reverse; //if true make it false and vice versa
}
/*
* init function
* created by TamilBala
* */
$scope.init = function () {
var branchid=JSON.parse(localStorage.getItem('localObj')).localBranchID;
//alert(branchid);
$scope.semDetailsLoadingStatus = true;
$scope.semDetailsLoadingTxt = "Loading...";
var getUniv = {
method: 'POST',
url: apiPoint.url + 'getUniversityCourseDetails/',
headers: {
'Content-Type': 'application/json'
},
data: {
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchId:JSON.parse(localStorage.getItem('localObj')).localBranchID
}
};
$http(getUniv).then(function (response) {
if (response.data.status==200 && response.data.universityStatus) {
$scope.university=response.data.univerSityDetails;
} else {
$scope.university="";
}
});
$scope.selectedCourseNameC = {
list: $scope.selectedCourseName,
}
/*
* getUnivid function
* created by TamilBala
* */
var getUnivid = {
method: 'POST',
url: apiPoint.url + 'getUniversityCourseId/',
headers: {
'Content-Type': 'application/json'
},
data: {
//requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchCode:branchid,
}
};
$http(getUnivid).then(function (response) {
if (response.data.status==200)
{
$scope.universitycourse=response.data.getUnivDetailsinfo;
} else {
$scope.universitycourse="";
}
});
}
//Assign Courses to Course array for Multiple select
@ -446,6 +368,7 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
if (response.data.status==200)
{
swal(" ", "Saved successfully,", "success");
$scope.init();
}
},function(error){
@ -493,9 +416,11 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
$http(update).then(function (response) {
if (response.data.status==200 ) {
// $scope.ldloading[loading.replace('-', '_')] = false;
//$scope.editId = -1;
$scope.init();
swal("", "Saved Successfully.", "success");
//
swal("", "Saved Successfully.", "success");
//$scope.editId = -1;
// $scope.init();
} else {
@ -551,6 +476,86 @@ app.controller('schCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTableP
}
/*
* init function
* created by TamilBala
* */
$scope.init = function () {
var branchid=JSON.parse(localStorage.getItem('localObj')).localBranchID;
//alert(branchid);
$scope.semDetailsLoadingStatus = true;
$scope.semDetailsLoadingTxt = "Loading...";
var getUniv = {
method: 'POST',
url: apiPoint.url + 'getUniversityCourseDetails/',
headers: {
'Content-Type': 'application/json'
},
data: {
requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchId:JSON.parse(localStorage.getItem('localObj')).localBranchID
}
};
$http(getUniv).then(function (response) {
if (response.data.status==200 && response.data.universityStatus) {
$scope.university=response.data.univerSityDetails;
} else {
$scope.university="";
}
});
$scope.selectedCourseNameC = {
list: $scope.selectedCourseName,
}
/*
* getUnivid function
* created by TamilBala
* */
var getUnivid = {
method: 'POST',
url: apiPoint.url + 'getUniversityCourseId/',
headers: {
'Content-Type': 'application/json'
},
data: {
//requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID,
branchCode:branchid,
}
};
$http(getUnivid).then(function (response) {
if (response.data.status==200)
{
$scope.universitycourse=response.data.getUnivDetailsinfo;
} else {
$scope.universitycourse="";
}
});
}
$scope.batchschedule={
@ -563,4 +568,4 @@ $scope.batchschedule={
},
};
}]);
}]);

View File

@ -341,6 +341,35 @@
</li>
</ul>
</li>
<li ng-class="{'active open':$state.includes('app.reregistration')}">
<a href="javascript:void(0)">
<div class="item-content">
<div class="item-media">
<i class="ti-write"></i>
</div>
<div class="item-inner">
<span class="title" translate="sidebar.nav.master.REREGISTRATION"> RE REGISTRATION </span>
</div>
</div>
</a>
<ul class="sub-menu">
<li ui-sref-active="active">
<a ui-sref="app.reregistration.reregistrationform" ng-click="checkSuperAdmin()">
<span class="title" translate="sidebar.nav.reregistration.REREGISTRATIONFORM">RE REGISTRATION FORM</span>
</a>
</li>
</ul>
<ul class="sub-menu">
<li ui-sref-active="active">
<a ui-sref="app.reregistration.batchmoment" ng-click="checkSuperAdmin()">
<span class="title" translate="sidebar.nav.reregistration.BATCHMOMENT">RE REGISTRATION FORM</span>
</a>
</li>
</ul>
</li>
<li ng-class="{'active open':$state.includes('app.reports')}">
<a href="javascript:void(0)">
<div class="item-content">

View File

@ -0,0 +1,49 @@
<style>
b.fa {
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #FF6600;
padding: 0.5em 0.6em;
}
b.fa1 {
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px green;
padding: 0.5em 0.6em;
}
a {
color: #007AFF;
}
</style>
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle" translate="BATCH MOMENT">{{ mainTitle }}</h1>
<span class="mainDescription">BATCH MOMENT </span>
</div>
<div ncy-breadcrumb></div>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: LIST GROUP -->
<div class="container-fluid container-fullw bg-white" ng-controller="BatchmomentCtrl" data-ng-init="init()">
</div>
<!-- end: LIST GROUP -->

View File

@ -0,0 +1,49 @@
<style>
b.fa {
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #FF6600;
padding: 0.5em 0.6em;
}
b.fa1 {
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px green;
padding: 0.5em 0.6em;
}
a {
color: #007AFF;
}
</style>
<!-- start: PAGE TITLE -->
<section id="page-title">
<div class="row">
<div class="col-sm-8">
<h1 class="mainTitle" translate="RE REGISTRATION FORM">{{ mainTitle }}</h1>
<span class="mainDescription">Re Registration Per Semesters </span>
</div>
<div ncy-breadcrumb></div>
</div>
</section>
<!-- end: PAGE TITLE -->
<!-- start: LIST GROUP -->
<div class="container-fluid container-fullw bg-white" ng-controller="reregistrationformCtrl" data-ng-init="init()">
</div>
<!-- end: LIST GROUP -->