-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated add record, still not completed
- Loading branch information
Showing
8 changed files
with
194 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
ini_set('display_errors', '1'); | ||
ini_set('display_startup_errors', '1'); | ||
error_reporting(E_ALL); | ||
|
||
require 'Example1.php'; | ||
|
||
$example1 = new Example1(); | ||
$example1->view(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
require '../PRC.php'; | ||
|
||
class Example2 extends PRC | ||
{ | ||
function __construct() | ||
{ | ||
$this->tblName = 'example2'; | ||
|
||
parent::__construct(); | ||
|
||
$this->tblCols = array( | ||
'id' => array( | ||
'type' => 'text', | ||
'display as' => 'ID', | ||
'is display' => array( | ||
'on listing' => true, | ||
'on view' => false, | ||
'on add' => false, | ||
'on edit' => false, | ||
), | ||
'is required' => true, | ||
), | ||
'name' => array( | ||
'type' => 'text', | ||
'display as' => 'Name', | ||
'is display' => array( | ||
'on listing' => true, | ||
'on view' => true, | ||
'on add' => true, | ||
'on edit' => true, | ||
), | ||
'is required' => true, | ||
), | ||
); | ||
} // __construct() | ||
|
||
function __destruct() { | ||
parent::__destruct(); | ||
} // __destruct() | ||
} // class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
ini_set('display_errors', '1'); | ||
ini_set('display_startup_errors', '1'); | ||
error_reporting(E_ALL); | ||
|
||
require 'Example2.php'; | ||
|
||
$example2 = new Example2(); | ||
$example2->list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters