<link rel="stylesheet" href="../../css/jquery.mobile-1.4.4.css" /> <link rel="stylesheet" href="../../css/jquerymobile.nativedroid.css" /> <link rel="stylesheet" href="../../css/jquerymobile.nativedroid.dark.css" id='jQMnDTheme' /> <link rel="stylesheet" href="../../css/jquerymobile.nativedroid.color.green.css" id='jQMnDColor' /> <link rel="stylesheet" href="../../css/custom-layout/login.css" type="text/css"/> </head> <body onload="scrlsts()"> <?php $user = new User(); $user->checkLoggedin(array('user')); if ($user->isLoggedin()) { $get = DB::getInstance()->get('tbl_cust', array('cust_id', '=', Crytion::decryt64(Session::get('user')))); $result = $get->result(); ?> <div data-role="page" data-theme='b' id="main-page"> <div data-role="header" data-position="fixed" data-tap-toggle="false" data-theme='b'> <h1>Retail Mobile System</h1> <a href="#" target='_blank'><i class='fa fa-shopping-cart'></i></a> <a href="../"><i class='fa fa-arrow-left'></i></a> </div> <div data-role="content"> <ul data-role="listview" data-inset="false" data-icon="false" data-divider-theme="b"> <li data-role="list-divider">Welcome <?php
$em->updateEm($user_id, array('fname' => Input::get('fname'), 'lname' => Input::get('lname'), 'icnumber' => Input::get('icnumber'), 'dob' => Input::get('dob'), 'email' => Input::get('email'), 'tel' => Input::get('tel'), 'gender' => Input::get('gender'), 'pwd' => $pwd, 'notes' => Input::get('comment'), 'salary' => Input::get('salary'), 'date_update' => date('d-m-Y H:i:s'), 'job_id' => Input::get('job'))); $em->updateEmAddress($user_id, array('add_street' => Input::get('address'), 'add_city' => Input::get('city'), 'add_state' => Input::get('state'), 'add_post' => Input::get('postcode'), 'country_id' => Input::get('country'))); if ($em->passed()) { Session::put('form-success', 'Your Account successfully updated!'); } else { Session::put('form-error', 'There is a problem updating an account'); } } catch (Exception $e) { die($e->getMessage()); } } else { Session::put('form-error', $validation->errors()); } } $user = new User(); $user->checkLoggedin(array('assign', 'user_id')); if ($user->isLoggedin()) { if ($assign == "ST_C" || $assign == "ST_IN") { header("Location:../detail%20staff/"); } else { if ($assign == "AD") { $user = DB::getInstance()->get('tbl_employee', array("user_id", "=", $user_id)); if ($user->error()) { Redirect::to('../'); } else { if ($user->count() == 1) { $user = $user->result(); $fname = $user->fname; $user_id = Crytion::encryt64(Crytion::encryt64($user_id)); $jb = Crytion::encryt64(Crytion::encryt64("employee")); ?>