CodeIgniter Forums

Full Version: [split] How to make student identity card?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How to make student identity card by using codeignator?
You mean like these?

W3.CSS Cards
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
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
(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
(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
(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?
(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
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
(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"
Pages: 1 2