Welcome Guest, Not a member yet? Register   Sign In
[split] How to make student identity card?
#1

(This post was last modified: 02-28-2018, 08:18 AM by ciadmin.)

How to make student identity card by using codeignator?
Reply
#2

You mean like these?

W3.CSS Cards
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Quote:How to make student identity card by using codeignator?

Create a table in your database with the fields to store information for the cards.
Create a model that can read, insert, update and delete records in the aforementioned table.
Create a controller with functions for showing a list of student cards and individual cards.
Create an admin controller with functions for creating, editing and deleting cards.
Create views to display webpages and forms.
And... learn to spell CodeIgniter correctly. Wink
Reply
#4

If there is an information system that already registers students' data perhaps adding a module to it for printing ID cards would worth the work. But if there is nothing, it would be easier if you find a Word or Excel template and adapt it. http://mswordidcards.com
Reply
#5

(02-28-2018, 01:02 PM)Wouter60 Wrote:
Quote:How to make student identity card by using codeignator?

Create a table in your database with the fields to store information for the cards.
Create a model that can read, insert, update and delete records in the aforementioned table.
Create a controller with functions for showing a list of student cards and individual cards.
Create an admin controller with functions for creating, editing and deleting cards.
Create views to display webpages and forms.
And... learn to spell CodeIgniter correctly.  Wink

ok thanks but the problem is i need to keep the barcode on ID card and also the code that will capture the photo of a student direct from digital camera and insert it into its position and the system should also allow the student to sign by using signature pad and capture it direct to its position on card
Reply
#6

(02-28-2018, 11:49 AM)InsiteFX Wrote: You mean like these?

W3.CSS Cards

No what i mean is to create a system that will print student id card
Reply
#7

(02-28-2018, 10:23 PM)mrisha Wrote:
(02-28-2018, 11:49 AM)InsiteFX Wrote: You mean like these?

W3.CSS Cards

No what i mean is to create a system that will print student id card

There's a million different ways to build a system like that depending on what the requirements are. Is the ID card including a UUID, QR code, photo? Are you just printing a card with a picture?
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply
#8

(02-28-2018, 10:49 PM)albertleao Wrote:
(02-28-2018, 10:23 PM)mrisha Wrote:
(02-28-2018, 11:49 AM)InsiteFX Wrote: You mean like these?

W3.CSS Cards

No what i mean is to create a system that will print student id card

There's a million different ways to build a system like that depending on what the requirements are. Is the ID card including a UUID, QR code, photo? Are you just printing a card with a picture?

yes
Reply
#9

Code to create a UUID

PHP Code:
/**
 * guidV4 ()
 * -----------------------------------------------------------------------
 *
 * A universally unique identifier (UUID) it is a 128-bit number
 * used to identify information in computer systems.
 *
 * xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
 *
 */
if ( ! function_exists('guidV4'))
{
    
/**
     * guidV4 ()
     * -------------------------------------------------------------------
     *
     * @return string
     */
    
function guidV4()
    {
        
// Microsoft guid {xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx}
        
if (function_exists('com_create_guid') === true)
        {
            return 
trim(com_create_guid(), '{}');
        }

        
$data openssl_random_pseudo_bytes(16);

        
// set version to 0100
        
$data[6] = chr(ord($data[6]) & 0x0f 0x40);

        
// set bits 6-7 to 10
        
$data[8] = chr(ord($data[8]) & 0x3f 0x80);

        return 
vsprintf('%s%s-%s-%s-%s-%s%s%s'str_split(bin2hex($data), 4));
    }


For Bar-codes you can use this library.

php-barcode
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#10

(02-28-2018, 11:10 PM)mrisha Wrote: yes

Yes to which part?

We can't help you if you're being as descriptive as you are. I'd recommend using google for "PHP Bar codes", "PHP QR Codes" "PHP + MYSQL UUID"
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB