gate updates
This commit is contained in:
@@ -12,52 +12,20 @@ class myfitResources extends Model
|
||||
|
||||
public function getSiteResources($in)
|
||||
{
|
||||
$dm = [];
|
||||
for ($i = 1; $i <= 9; $i++) {
|
||||
$ar = [
|
||||
'id' => $i,
|
||||
'description' => "This is the $i Desc $i",
|
||||
'img1' => 'https://blog.mermsemr.com/wp-content/uploads/2021/01/COVID-19-vaccine_002.jpg',
|
||||
];
|
||||
|
||||
$dm[] = $ar;
|
||||
}
|
||||
|
||||
return [
|
||||
'pricing_text_02' => 'This will be the test header test 001',
|
||||
'pricing' => [
|
||||
[
|
||||
'icon' => '/static/media/standard.png',
|
||||
'title' => 'Standard',
|
||||
'text' => 'For the basics.',
|
||||
'price' => 'Free',
|
||||
'price_anual' => 'Free',
|
||||
'features' => [
|
||||
'Reminders',
|
||||
'Health Tracking',
|
||||
'Analytics',
|
||||
'Notifications',
|
||||
'Health Resources',
|
||||
],
|
||||
],
|
||||
[
|
||||
'icon' => '/static/media/unlimited.png',
|
||||
'title' => 'Unlimited',
|
||||
'text' => 'Professionals here.',
|
||||
'price' => '$7.99/m',
|
||||
'price_anual' => '$55/y',
|
||||
'features' => [
|
||||
'Everyting Premium',
|
||||
'Feature 22',
|
||||
'Feature 33',
|
||||
'Integrations',
|
||||
'Custom Page',
|
||||
],
|
||||
],
|
||||
[
|
||||
'icon' => '/static/media/premium.png',
|
||||
'title' => 'Premium',
|
||||
'text' => 'For small team.',
|
||||
'price' => '$5/m',
|
||||
'price_anual' => '$45/y',
|
||||
'features' => [
|
||||
'Everything Standard',
|
||||
'Group/Family Tracking',
|
||||
'Custom Dashboard',
|
||||
'Recomendations',
|
||||
'Storage',
|
||||
],
|
||||
],
|
||||
],
|
||||
'resources' => $dm,
|
||||
'raw_data' => $in,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,16 +11,64 @@ class myfitTracking extends Model
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
//$db = \Config\Database::connect('mermsemr');
|
||||
$this->db = \Config\Database::connect($this->con_name);
|
||||
}
|
||||
|
||||
public function getTrackCategory()
|
||||
{
|
||||
$cat = [];
|
||||
$i=1;
|
||||
$itArr = [
|
||||
'id' => $i,
|
||||
'uid' => '1234-5678-90777-0000' . $i,
|
||||
'title' => 'Weight',
|
||||
'widget' => 't-weight',
|
||||
'profile_img' => 'weight.jpg',
|
||||
'thumbnil' => 'weight.png',
|
||||
];
|
||||
$cat[] = $itArr;
|
||||
|
||||
$i=2;
|
||||
$itArr = [
|
||||
'id' => $i,
|
||||
'uid' => '1234-5678-90777-0000' . $i,
|
||||
'title' => 'Exercise',
|
||||
'widget' => 't-weight',
|
||||
'profile_img' => 'weight.jpg',
|
||||
'thumbnil' => 'exercise.png',
|
||||
];
|
||||
$cat[] = $itArr;
|
||||
|
||||
$i=3;
|
||||
$itArr = [
|
||||
'id' => $i,
|
||||
'uid' => '1234-5678-90777-0000' . $i,
|
||||
'title' => 'Activity',
|
||||
'widget' => 't-weight',
|
||||
'profile_img' => 'weight.jpg',
|
||||
'thumbnil' => 'activity.png',
|
||||
];
|
||||
$cat[] = $itArr;
|
||||
|
||||
|
||||
for ($i = 4; $i < 9; $i++) {
|
||||
$itArr = [
|
||||
'id' => $i,
|
||||
'uid' => '1234-5678-90777-0000' . $i,
|
||||
'title' => 'Some Title ' . $i,
|
||||
'widget' => 't-weight',
|
||||
'profile_img' => 'profile.png',
|
||||
'thumbnil' => 'tranding-2.jpg',
|
||||
];
|
||||
$cat[] = $itArr;
|
||||
}
|
||||
return $cat;
|
||||
}
|
||||
|
||||
public function readTracking($in)
|
||||
{
|
||||
$sqlQ =
|
||||
'SELECT * FROM members_reminders';
|
||||
$sqlQ = 'SELECT * FROM members_reminders';
|
||||
|
||||
|
||||
$query = $this->db->query($sqlQ);
|
||||
$data['reminders_data'] = $query->getResultArray();
|
||||
return $inx = [
|
||||
@@ -28,19 +76,15 @@ class myfitTracking extends Model
|
||||
'status' => 1,
|
||||
'raw_data' => $in,
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function getSupportedTrackingDevices(){
|
||||
|
||||
public function getSupportedTrackingDevices()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public function userConfigureDevice(){
|
||||
|
||||
public function userConfigureDevice()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -17,9 +17,10 @@ class myfitUserReminders extends Model
|
||||
public function readReminders($in)
|
||||
{
|
||||
$member_id =
|
||||
isset($in['member_id']) && $in['member_id'] > 0
|
||||
? $in['member_id']
|
||||
(isset($in['member_id']) && (int)$in['member_id'] > 0)
|
||||
? (int)$in['member_id']
|
||||
: 0;
|
||||
//$member_id=16; // for testing
|
||||
$reminder_category = $this->reminderCategory(); // [];
|
||||
$sqlQ = "SELECT * FROM members_reminders WHERE member_id = $member_id";
|
||||
$query = $this->db->query($sqlQ);
|
||||
|
||||
Reference in New Issue
Block a user