| @@ 2-31 (lines=30) @@ | ||
| 1 | <?php |
|
| 2 | class Template extends Html { |
|
| 3 | public function __construct() { |
|
| 4 | parent::__construct(); |
|
| 5 | $this->data["brand"] = "JATE"; |
|
| 6 | $this->data["brandImg"] = ""; |
|
| 7 | $this->data["title"] = "JATE"; |
|
| 8 | $this->data["template"] = "guis/tradictional.html"; |
|
| 9 | $this->addFiles([ |
|
| 10 | "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" |
|
| 11 | , "https://code.jquery.com/jquery-1.11.3.min.js" |
|
| 12 | , "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" |
|
| 13 | ]); |
|
| 14 | $this->data["metaDescription"] = "Beautiful description ."; |
|
| 15 | $this->data["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
| 16 | $this->data["metaAuthor"] = "XaBerr"; |
|
| 17 | $this->makeConnection(); |
|
| 18 | } |
|
| 19 | public function makeConnection() { |
|
| 20 | global $jConfig; |
|
| 21 | $connection = null; |
|
| 22 | if($jConfig->connection["enable"]) |
|
| 23 | $connection = new Connection( |
|
| 24 | $jConfig->connection["server"] |
|
| 25 | , $jConfig->connection["database"] |
|
| 26 | , $jConfig->connection["user"] |
|
| 27 | , $jConfig->connection["password"] |
|
| 28 | ); |
|
| 29 | $this->addConnection("base",$connection); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ?> |
|
| 33 | ||
| @@ 2-31 (lines=30) @@ | ||
| 1 | <?php |
|
| 2 | class Template extends Html { |
|
| 3 | public function __construct() { |
|
| 4 | parent::__construct(); |
|
| 5 | $this->data["brand"] = "JATE"; |
|
| 6 | $this->data["brandImg"] = ""; |
|
| 7 | $this->data["title"] = "JATE"; |
|
| 8 | $this->data["template"] = "guis/tradictional.html"; |
|
| 9 | $this->addFiles([ |
|
| 10 | "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" |
|
| 11 | , "https://code.jquery.com/jquery-1.11.3.min.js" |
|
| 12 | , "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" |
|
| 13 | ]); |
|
| 14 | $this->data["metaDescription"] = "Beautiful description ."; |
|
| 15 | $this->data["metaKeywords"] = "JATE,PHP,JS,CSS"; |
|
| 16 | $this->data["metaAuthor"] = "XaBerr"; |
|
| 17 | $this->makeConnection(); |
|
| 18 | } |
|
| 19 | public function makeConnection() { |
|
| 20 | global $jConfig; |
|
| 21 | $connection = null; |
|
| 22 | if($jConfig->connection["enable"]) |
|
| 23 | $connection = new Connection( |
|
| 24 | $jConfig->connection["server"] |
|
| 25 | , $jConfig->connection["database"] |
|
| 26 | , $jConfig->connection["user"] |
|
| 27 | , $jConfig->connection["password"] |
|
| 28 | ); |
|
| 29 | $this->addConnection("base",$connection); |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ?> |
|
| 33 | ||