diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4b900032..03237c92 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,8 +5,12 @@ + - + + + + - { - "keyToString": { - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "WebServerToolWindowFactoryState": "false", - "last_opened_file_path": "D:/Safekat/safekat/ci4/app/Views/themes/_commonPartialsBs", - "node.js.detected.package.eslint": "true", - "node.js.detected.package.tslint": "true", - "node.js.selected.package.eslint": "(autodetect)", - "node.js.selected.package.tslint": "(autodetect)", - "nodejs_package_manager_path": "npm", - "settings.editor.selected.configurable": "preferences.pluginManager", - "vue.rearranger.settings.migration": "true" + +}]]> - + + - @@ -82,6 +86,8 @@ + + 1682339938559 diff --git a/ci4/app/Config/Routes.php b/ci4/app/Config/Routes.php index 0db15006..1215e7c4 100644 --- a/ci4/app/Config/Routes.php +++ b/ci4/app/Config/Routes.php @@ -123,6 +123,19 @@ $routes->group('', [], function($routes) { $routes->post('menuitems', 'Tipologias::menuItems', ['as' => 'menuItemsOfTipologiasLibros']); }); + $routes->group('profile', ['namespace' => 'App\Controllers'], function ($routes) { + $routes->get('', 'Profile::index', ['as' => 'profileList']); + $routes->get('index', 'Profile::index', ['as' => 'profileIndex']); + $routes->get('list', 'Profile::index', ['as' => 'profileList2']); +// $routes->get('add', 'Profile::add', ['as' => 'newProfile']); +// $routes->post('add', 'Profile::add', ['as' => 'createProfile']); +// $routes->get('edit/(:num)', 'Profile::edit/$1', ['as' => 'editTipologiaLibros']); +// $routes->post('edit/(:num)', 'Profile::edit/$1', ['as' => 'updateTipologiaLibros']); +// $routes->get('delete/(:num)', 'Profile::delete/$1', ['as' => 'deleteTipologiaLibros']); +// $routes->post('allmenuitems', 'Profile::allItemsSelect', ['as' => 'select2ItemsOfTipologiasLibros']); +// $routes->post('menuitems', 'Profile::menuItems', ['as' => 'menuItemsOfTipologiasLibros']); + }); + }); diff --git a/ci4/app/Controllers/Profile.php b/ci4/app/Controllers/Profile.php index e72c0640..cb90b824 100644 --- a/ci4/app/Controllers/Profile.php +++ b/ci4/app/Controllers/Profile.php @@ -56,8 +56,9 @@ class Profile extends BaseController $session = session(); $data['obj'] = $this->user_model->where('id_user',$this->id_user)->first(); - if(!empty($data['obj']['date_birth'])){ - $data['obj']['date_birth'] = dateFormatWeb($data['obj']['date_birth']); + + if(!empty($data['obj']->date_birth)){ + $data['obj']->date_birth = dateFormatWeb($data['obj']->date_birth); } $data['country'] = $this->countries_model->select('code,name')->where('data_lang',session()->get('lang')??'en')->findAll(); diff --git a/ci4/app/Views/themes/backend/vuexy/form/profile/index.php b/ci4/app/Views/themes/backend/vuexy/form/profile/index.php index 636201d9..01a1c235 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/profile/index.php +++ b/ci4/app/Views/themes/backend/vuexy/form/profile/index.php @@ -1,255 +1,490 @@ - -" rel="stylesheet"> - +extend('themes/backend/vuexy/main/general_settings_layout') ?> +section('content'); ?> + -
-
-
-
-
-

- +
+
+ + +
+
Profile Details
+ +
+
+ user-avatar +
+ + + +
Allowed JPG, GIF or PNG. Max size of 800K
+
-
- +
+
+
"> + +
+
+ + " + value="first_name : set_value('first_name'); ?>" + autofocus + /> +
+
+ + " + value="last_name : set_value('last_name'); ?>" + /> +
+
+ + " + value="email : set_value('email'); ?>" + /> +
+
+ + +
+
+ +
+ US (+1) + " + value="mobile : set_value('mobile'); ?>" + /> +
+
+
+ + " + value="address : set_value('address'); ?>" + /> +
+
+ + +
+
+ + +
+
+ + country ?? [] : set_value('country'); ?> + +
+
+ + language ?? [] : set_value('language'); ?> + +
+
+ + +
+
+ + +
+
+
+ + +
+
+
+ +
+ +
+
Delete Account
+
+
+
+
Are you sure you want to delete your account?
+

Once you delete your account, there is no going back. Please be certain.

+
+
+
+
+ + +
+ +
-
-
-
-
-

-
-
- -
" method="post"> - -
-
-
- -
-
-
- - " value=""> -
-
-
-
- - " value=""> -
-
-
-
- - " id="date_birth" name="date_birth" value=""> -
-
-
-
- - " value="" disabled> -
-
-
-
- - " value=""> -
-
-
-
- - "> -
-
-
-
- - "> -
+ + +
+ + +
+
+
+

+ +
+
+
+ +
+
+
+
+
+
+

+
+
+ + " method="post"> + +
+
+
+ +
+
+
+ + " + value="first_name : set_value('first_name'); ?>">
-
-
- +
+
+ + " + value="last_name : set_value('last_name'); ?>">
-
-
- - " value=""> -
+
+
+
+ + " + id="date_birth" name="date_birth" + value="date_birth : set_value('date_birth'); ?>">
-
-
- - " value=""> -
+
+
+
+ + " + value="email : set_value('email'); ?>" + disabled>
-
-
- - " value=""> -
+
+
+
+ + " + value="mobile : set_value('mobile'); ?>">
-
-
- - - -
+
+
+
+ + ">
-
-
- - - -
+
+
+
+ + ">
-
- - - - +
+
+ +
+
+
+ + " + value="address : set_value('address'); ?>"> +
+
+
+
+ + " + value="city : set_value('city'); ?>"> +
+
+
+
+ + " + value="state : set_value('state'); ?>"> +
+
+
+
+ + country ?? [] : set_value('country'); ?> + +
+
+
+
+ + language ?? [] : set_value('language'); ?> + +
+
- -
+
+
+ + + + +
+
-
-
-
-

-
-
-
-
- -
-
-
- -
-
- -
- -