340 likes | 353 Views
COCIS provides a web-based platform for stakeholders including Advocate General Office, High Court, State Government Department, and Petitioners. It ensures transparency and speedier disposal of cases through the use of information technology.
E N D
PRESENTED BY: SRISHTY SINGH MCA-VI SEMESTER UNIVERSITY OF LUCKNOW Migration of filingcounter of court cases information system (cocis) for lucknow & Prayagraj(Proprietary to open source)
CONTENTS • ABOUT COCIS • About advocate general office (ago) • Objective of project • Comparison of present and proposed system • Data Flow diagrams • Er diagram • TECHNICAL REQUIREMENTS • Cakephp • Postgresql • Linux • Module completed • screenshots
cocis The Court Cases Information System (COCIS) provides a web based common platform to all the stake holders including Advocate General Office, High Court, State Government Department and the Petitioner. To introduce transparency in the system and ensure speedier disposal of cases various features of information technology have been adopted. All the notices are received and the details are entered at computerized counters of AG Office. The application supports automatic generation of notice number followed by automatic sending of short message through SMS and email to the concerned department.
ago • Advocate General is a legal advisor to a state government. The post is created by the Constitution of India and corresponds to that of Attorney General of India at the central-level. • AGO(Advocate General Office) process case files, collect records from various Departments of Government, make available law books, statues, etc. and assist the advocate general and the law officers in the conduct of cases –Civil, Criminal, Original and Appellate jurisdiction before the High Court of Prayagraj , the Supreme Court of India and other courts, in which the State is a party.
Objective of project • The present application is based on proprietary software which is not a very cost effective approach because of the licensing fee. Open-source software, on the other hand, is generally cheaper than proprietary options, and in some cases may be available for use at no cost. • With proprietary software, you are reliant on the program’s developer for all updates, support, and fixes. • Open-source software generally offers more customization options than proprietary systems.
Present and proposed system • The present system : • Framework used is ASP.NET (4.0) • Language used is vb.net • Database used is SQLServer 2012 • Operating System used is Windows Server 12 • The proposed system: • Framework used is CakePHP (3.7) • Language used is PHP (5.6.0 or greater) • Database used is PostgreSQL (9.5) • Operating System used is Ubuntu 16.04
Data flow diagram • 0-Level DFD
CAKEPHP • CakePHP makes building web applications simpler, faster, secure, while requiring less code. A modern PHP 7 framework offers a flexible database access layer and a powerful scaffolding system that makes building both small and complex systems simpler & easier. • CakePHP takes the monotony out of web development.
MVc architecture CakePHP follows the MVC software design pattern.
Mvc architecture Programming using MVC separates application into three main parts: • Model Layer: It is responsible for retrieving data and converting it into meaningful concepts for application. This includes processing, validating, associating or other tasks related to handling data. The extension of these files are .phpsuch as counsel.php, state.php, casetype.php,etc. • View Layer: The View renders a presentation of modeled data. The View layer is not only limited to HTML or text representation of the data.
MVC architecture It can be used to deliver a wide variety of formats depending on your needs, such as videos, music, documents and any other format you can think of. The extension of these files are .ctp such as casetype_add.ctp, counsel_add.ctp, state_add.ctp, etc. All these .ctp files are grouped by various folder which contain respected .ctp files. • Controller Layer: The Controller layer handles requests from users. By default Appcontroller and UsersController with .phpextension is present whereas all the other controllers are added by developer which extends the AppController.
Simple example VIEW LAYER Login.ctp <div class="index large-4 medium-4 large-offset-4 medium-offset-4 columns"> <div class="panel" style="box-shadow:7px 5px #008CBA;"> <h2 class="text-center">LOGIN</h2> <imgsrc="../img/login_back.png" .../ style="border-radius:50%; position:relative;left:130px;" > <?= $this->form->create(); ?> <?= $this->form->input('email'); ?> <?= $this->form->input('password',array('type'=>'password')); ?> <?= $this->form->submit('Login',array('class'=>'button')); ?> <?= $this->form->end(); ?> <?= $this->Html->link('Forgot',['controller'=>'users','action'=>'forgotpswd']);?> <marquee> You must be a registered user</marquee> </div> </div>
CONTROLLER LAYERUsersController.php <?php use App\Controller\AppController; use Cake\Event\Event; use Cake\Routing\Router; use Cake\Mailer\Email; use Cake\Auth\DefaultPasswordHasher; class UsersController extends AppController { public function login() { $this->layout="default"; if($this->request->is('post')) { $user=$this->Auth->identify(); if($user) { $this->Auth->setUser($user); return $this->redirect(['controller'=>'posts']); } else { $this->Flash->error('Incorrect Login'); } } } //logout public function logout() { $this->Flash->success('You are logged out'); return $this->redirect($this->Auth->logout()); } } ?>
MODEL LAYERusers.php <?php class User extends AppModel { public $useTable = 'users'; public $primaryKey = 'id'; } ?>
Advantages of cakephp • Bake script • Open Source Platform • ORM(Object Relational Mapping) CakePHP has an outstanding inbuilt ORM and is highly capable. This is why working with databases and CRUD operations is easy. • Security CakePHP has a built-in security and authentication. • Search Engine Friendly URLS • Support for any database type • View Helpers for AJAX, JavaScript, Pagination, XML, Forms and many more
requirements • HTTP Server. For example: Apache(2.4.37) • PHP 5.6.0 or greater (including PHP 7.2). • mbstring PHP extension • intl PHP extension • simplexml PHP extension
Cakephp installation • open (cakefoler)->app->Config->core.php and change the values of the Security.salt and Security.cipherSeed change can be made as per our preference Configure::write('Security.salt', 'gk5454545fsdfUEsdfsbDsdh'); Configure::write('Security.cipherSeed', '54548785454521'); • Database.php ‘host’ => ‘localhost’, or with the IP address ‘login’ => ‘postgres’, ‘password’ => ‘postgres’
Php • PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. • PHP 7 offers better development features. • PHP 7 is blazingly fast and more secure. • PHP 7 is a much leaner and more efficient language. It also ships with the new Zend engine, which offers much faster processing.
Postgresql • It is an open-source object-relational database management system. • It is not controlled by any corporation or other private entity .i.e., source code is available free of charge. • PostgreSQL is released under the PostgreSQL license, a liberal Open Source license, similar to the BSD or MIT licenses. MySQL now owned by Oracle Corporation and offers several paid editions for proprietary use.
WHY POSTGRESQL? • The ACID compliance ensures that no data is lost or miscommunicated across the system in case of failure, even when there are multiple changes made during a single transaction. • PostgreSQL supports a wide variety of programing languages including: C/C++, Java, JavaScript, .Net, R, Perl, Python, Ruby, Tcl and others; it’s even possible to run user-supplied code in separate processes (i.e. running as background workers).
PostgreSQL’s Strength • Open Source DBMS • Diverse Community • ACID compliant • Diverse indexing techniques • Flexible Full-text search • Diverse kinds of replication
Linux • Linux is totally free of charge. It’s free to download, free to install and free to use. • Most Linux users don’t install anti-virus software since the OS is very secure out of the box. To this day, there’s no virus that is known to pose a threat to Linux. All that Trojan horse virus, worm etc. that targets windows system have no effect to Linux.
Advantage of linux • Open source means every one can download the source code, have a look at it or modify it. This also means you have full control of Linux and there’s no backdoor or spying software on Linux. There’s no mandatory updates in Linux. You update your software when you want to. When you are using a Microsoft product, you are not in control of your computer and you don’t know how many spyware are in your OS.
Module completed • Data Entry Modules for Master table. • Court_add, Court_edit • District_add, District_edit • Thana_add, Thana_edit • Office_add, Office_edit • Casetype_add, Casetype_edit • Noticetype_add, Noticetype_edit • Cousel/Advocate_add,Counsel/Advocate_edit • Group_add, Group_edit • Designation_add, Designation_edit • Subject_add, Subject_edit • Users- • User_add, User_list, User_auth, Priviledges • Data for master table ported from sqlserver to postgres database.
screenshots • Master of Counsel/Advocate :
Live demo http://localhost/cocis/