Logo
This commit is contained in:
@@ -25,6 +25,9 @@ class ProjectPages extends ProjectBaseController
|
||||
{
|
||||
//echo $page_key;
|
||||
$data=[];
|
||||
$projData = new \App\Models\projectData();
|
||||
$res1 = $projData->projectList();
|
||||
$data['page_data'] = $res1[$page_key];
|
||||
|
||||
return view('projects/projdetail',$data);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
use CodeIgniter\Database\RawSql;
|
||||
|
||||
|
||||
class baseModel extends Model
|
||||
{
|
||||
protected $db;
|
||||
public $con_name = 'myfit';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// $this->db = \Config\Database::connect($this->con_name);
|
||||
log_message('critical', "BaseModel-Entered" );
|
||||
}
|
||||
|
||||
// public function insert_db($inserDataArray, $insertTable)
|
||||
// {
|
||||
// log_message('critical', "insert_db-WAS CALLED user 000=>" );
|
||||
// $insert_id=0;
|
||||
// $ic = 0;
|
||||
// $fl_part = '';
|
||||
// $val_part = '';
|
||||
// $sqlQ = '';
|
||||
// // try {
|
||||
//
|
||||
// $fields = array_keys($inserDataArray);
|
||||
// log_message('critical', "insert_db-WAS CALLED user 009a=>" );
|
||||
// foreach ($fields as $field) {
|
||||
// $fl_part .= $ic > 0 ? ',' : '';
|
||||
// $fl_part .= $field;
|
||||
//
|
||||
// $val_part .= $ic > 0 ? ',' : '';
|
||||
// $val_part .= "'" . $inserDataArray[$field] . "'";
|
||||
// $ic++;
|
||||
// }
|
||||
// log_message('critical', "insert_db-WAS CALLED user 009b=>" );
|
||||
// $sqlQ = "INSERT INTO $insertTable ($fl_part) VALUES ($val_part)";
|
||||
// log_message('critical', "SQL-WAS CALLED user =>". $sqlQ );
|
||||
// $query = $this->db->query($sqlQ);
|
||||
// if(!$query){
|
||||
// $insert_id=-1;
|
||||
// }
|
||||
// //$db->affectedRows();
|
||||
// // $insert_id = $this->db->insert_id();
|
||||
// // $insert_id = $this->db->getInsertID();
|
||||
// // $this->db->insert($insertTable,$inserDataArray);
|
||||
// // $insert_id = $this->db->insert_id();
|
||||
// // } catch (Exception $e) {
|
||||
// //echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||
// // log_message('critical', "Caught exception: => ".$e->getMessage() );
|
||||
// // }
|
||||
//
|
||||
//
|
||||
// return $insert_id;
|
||||
// }
|
||||
// public function update_db($UupdateDataArray,$whereAray, $updateTable)
|
||||
// {
|
||||
// $ic = 0;
|
||||
// $UP_part = '';
|
||||
// $val_part = '';
|
||||
// $sqlQ = '';
|
||||
// $fields = array_keys($UupdateDataArray);
|
||||
// foreach ($fields as $field) {
|
||||
// $UP_part .= $ic > 0 ? ',' : '';
|
||||
// $UP_part .= $field."='" . $UupdateDataArray[$field] . "'";
|
||||
// $ic++;
|
||||
// }
|
||||
//
|
||||
// $ic = 0;
|
||||
// $fields = array_keys($whereAray);
|
||||
// foreach ($fields as $field) {
|
||||
// $val_part .= $ic > 0 ? ' AND ' : ' WHERE ';
|
||||
// $val_part .= $field."='" . $whereAray[$field] . "'";
|
||||
// $ic++;
|
||||
// }
|
||||
//
|
||||
// $sqlQ = "UPDATE $updateTable SET $UP_part $val_part";
|
||||
// $query = $this->db->query($sqlQ);
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// public function select_db($selectItems,$whereAray, $updateTable)
|
||||
// {
|
||||
// $ic = 0;
|
||||
// $UP_part = '';
|
||||
// $val_part = '';
|
||||
// $sqlQ = '';
|
||||
// $status = 0;
|
||||
// $error_msg = '';
|
||||
// $record_count = -1;
|
||||
// $result =[];
|
||||
// //$fields = array_keys($UupdateDataArray);
|
||||
// foreach ($selectItems as $item) {
|
||||
// $UP_part .= $ic > 0 ? ',' : '';
|
||||
// $UP_part .= $item;
|
||||
// $ic++;
|
||||
// }
|
||||
//
|
||||
// $ic = 0;
|
||||
// $fields = array_keys($whereAray);
|
||||
// foreach ($fields as $field) {
|
||||
// $val_part .= $ic > 0 ? ' AND ' : ' WHERE ';
|
||||
// $val_part .= $field."='" . $whereAray[$field] . "'";
|
||||
// $ic++;
|
||||
// }
|
||||
// $sqlQ = "SELECT $UP_part FROM $updateTable $val_part";
|
||||
// log_message('critical', "SQL:: ". $sqlQ );
|
||||
// $query = $this->db->query($sqlQ);
|
||||
// if($query){
|
||||
// $status = 1;
|
||||
// $result = $query->getResultArray();
|
||||
// $record_count = count($result);
|
||||
// }
|
||||
// else{
|
||||
// $status = -1;
|
||||
// $error_msg = "Select falied";
|
||||
// }
|
||||
// return [
|
||||
// 'status'=>$status,
|
||||
// 'error_msg'=> $error_msg,
|
||||
// 'record_count' => $record_count,
|
||||
// 'result' => $result
|
||||
// ];
|
||||
// }
|
||||
|
||||
public function getIPAddress()
|
||||
{
|
||||
//whether ip is from the share internet
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
}
|
||||
//whether ip is from the proxy
|
||||
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
//whether ip is from the remote address
|
||||
else {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class projectData extends baseModel
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function projectList(){
|
||||
$data =[
|
||||
'myfit'=>[
|
||||
'name' => 'myFit A.I',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'wrenchboard'=>[
|
||||
'name' => 'WrenchBoard',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'coregrade'=>[
|
||||
'name' => 'CoreGrade',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'float'=>[
|
||||
'name' => 'Float (New)',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'legacyfloat'=>[
|
||||
'name' => 'Float (Legacy)',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'kintcare'=>[
|
||||
'name' => 'KintCare',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'merms'=>[
|
||||
'name' => 'Merms EMR',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'chiefsoft'=>[
|
||||
'name' => 'ChiefSoft',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
'jubabox'=>[
|
||||
'name' => 'JubaBox',
|
||||
'description' => 'This is the description of the project',
|
||||
'banner_image' => 'project_banner.jpg',
|
||||
'product_url' => 'www.chiefsoft.com',
|
||||
],
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
private function projectListDetails(){
|
||||
$data =[
|
||||
'chiefsoft'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'myfit'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'wrenchboard'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'coregrade'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'float'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
private function devOpList(){
|
||||
$data =[
|
||||
'chiefsoft'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'myfit'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'wrenchboard'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'coregrade'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
'float'=>[
|
||||
'DEV'=>[
|
||||
|
||||
],
|
||||
'LIVE'=>[
|
||||
|
||||
]
|
||||
],
|
||||
];
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
<!--begin::Page title-->
|
||||
<div class="page-title d-flex flex-column justify-content-center flex-wrap me-3">
|
||||
<!--begin::Title-->
|
||||
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0">Multipurpose</h1>
|
||||
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0"><?=$page_data['name']?></h1>
|
||||
<!--end::Title-->
|
||||
<!--begin::Breadcrumb-->
|
||||
<ul class="breadcrumb breadcrumb-separatorless fw-semibold fs-7 my-0 pt-1">
|
||||
@@ -25,7 +25,7 @@
|
||||
</li>
|
||||
<!--end::Item-->
|
||||
<!--begin::Item-->
|
||||
<li class="breadcrumb-item text-muted">Dashboards</li>
|
||||
<li class="breadcrumb-item text-muted"><?=$page_data['description']?></li>
|
||||
<!--end::Item-->
|
||||
</ul>
|
||||
<!--end::Breadcrumb-->
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<!--begin::Mobile logo-->
|
||||
<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
|
||||
<a href="/projects/dash" class="d-lg-none">
|
||||
<img alt="Logo" src="/massets/media/logos/default-small.svg" class="h-30px" />
|
||||
<img alt="Logo" src="/massets/media/logos/chiefsoft-lg.png" class="h-30px" />
|
||||
</a>
|
||||
</div>
|
||||
<!--end::Mobile logo-->
|
||||
@@ -81,8 +81,8 @@
|
||||
<div class="app-sidebar-logo px-6" id="kt_app_sidebar_logo">
|
||||
<!--begin::Logo image-->
|
||||
<a href="/projects/dash">
|
||||
<img alt="ChiefSoft" src="/massets/media/logos/default-dark.svg" class="h-25px app-sidebar-logo-default" />
|
||||
<img alt="ChiefSoft" src="/massets/media/logos/default-small.svg" class="h-20px app-sidebar-logo-minimize" />
|
||||
<img alt="ChiefSoft" src="/massets/media/logos/chiefsoft-lg.png" class="h-45px app-sidebar-logo-default" />
|
||||
<img alt="ChiefSoft" src="/massets/media/logos/chiefsoft-lg.png" class="h-40px app-sidebar-logo-minimize" />
|
||||
</a>
|
||||
<!--end::Logo image-->
|
||||
<!--begin::Sidebar toggle-->
|
||||
|
||||
@@ -2896,7 +2896,7 @@
|
||||
<div class="fs-6 fw-bold text-gray-800">Layout Builder</div>
|
||||
<div class="fs-7 fw-semibold text-muted">Customize, preview and export</div>
|
||||
</div>
|
||||
<a href="https://preview.keenthemes.com/metronic8/demo1/layout-builder.html" class="btn btn-sm btn-primary fw-bold">Try Builder</a>
|
||||
<a href="/" class="btn btn-sm btn-primary fw-bold">Try Builder</a>
|
||||
</div>
|
||||
<!--end:Layout Builder-->
|
||||
</div>
|
||||
@@ -2914,66 +2914,6 @@
|
||||
<!--end:Menu sub-->
|
||||
</div>
|
||||
<!--end:Menu item-->
|
||||
<!--begin:Menu item-->
|
||||
<div data-kt-menu-trigger="{default: 'click', lg: 'hover'}" data-kt-menu-placement="bottom-start" class="menu-item menu-lg-down-accordion menu-sub-lg-down-indention me-0 me-lg-2">
|
||||
<!--begin:Menu link-->
|
||||
<span class="menu-link">
|
||||
<span class="menu-title">Help</span>
|
||||
<span class="menu-arrow d-lg-none"></span>
|
||||
</span>
|
||||
<!--end:Menu link-->
|
||||
<!--begin:Menu sub-->
|
||||
<div class="menu-sub menu-sub-lg-down-accordion menu-sub-lg-dropdown px-lg-2 py-lg-4 w-lg-200px">
|
||||
<!--begin:Menu item-->
|
||||
<div class="menu-item">
|
||||
<!--begin:Menu link-->
|
||||
<a class="menu-link" href="https://preview.keenthemes.com/html/metronic/docs/base/utilities" target="_blank" title="Check out over 200 in-house components, plugins and ready for use solutions" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-dismiss="click" data-bs-placement="right">
|
||||
<span class="menu-icon">
|
||||
<i class="ki-duotone ki-rocket fs-2">
|
||||
<span class="path1"></span>
|
||||
<span class="path2"></span>
|
||||
</i>
|
||||
</span>
|
||||
<span class="menu-title">Components</span>
|
||||
</a>
|
||||
<!--end:Menu link-->
|
||||
</div>
|
||||
<!--end:Menu item-->
|
||||
<!--begin:Menu item-->
|
||||
<div class="menu-item">
|
||||
<!--begin:Menu link-->
|
||||
<a class="menu-link" href="https://preview.keenthemes.com/html/metronic/docs" target="_blank" title="Check out the complete documentation" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-dismiss="click" data-bs-placement="right">
|
||||
<span class="menu-icon">
|
||||
<i class="ki-duotone ki-abstract-26 fs-2">
|
||||
<span class="path1"></span>
|
||||
<span class="path2"></span>
|
||||
</i>
|
||||
</span>
|
||||
<span class="menu-title">Documentation</span>
|
||||
</a>
|
||||
<!--end:Menu link-->
|
||||
</div>
|
||||
<!--end:Menu item-->
|
||||
<!--begin:Menu item-->
|
||||
<div class="menu-item">
|
||||
<!--begin:Menu link-->
|
||||
<a class="menu-link" href="https://preview.keenthemes.com/html/metronic/docs/getting-started/changelog" target="_blank">
|
||||
<span class="menu-icon">
|
||||
<i class="ki-duotone ki-code fs-2">
|
||||
<span class="path1"></span>
|
||||
<span class="path2"></span>
|
||||
<span class="path3"></span>
|
||||
<span class="path4"></span>
|
||||
</i>
|
||||
</span>
|
||||
<span class="menu-title">Changelog v8.1.8</span>
|
||||
</a>
|
||||
<!--end:Menu link-->
|
||||
</div>
|
||||
<!--end:Menu item-->
|
||||
</div>
|
||||
<!--end:Menu sub-->
|
||||
</div>
|
||||
<!--end:Menu item-->
|
||||
|
||||
</div>
|
||||
<!--end::Menu-->
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user