Esempio n. 1
0
 public function assignedto1()
 {
     session_start();
     $group = new groups();
     if (isset($_POST['user_group'])) {
         $_SESSION['group_id1'] = $_POST['user_group'];
     }
     $group_members = $group->viewgroupmembers($_SESSION['group_id1']);
     return View::make('other.assignedto1', compact('group_members'));
 }
Esempio n. 2
0
 public function ticket_load()
 {
     session_start();
     $ticket_category = App\ticket_category::all();
     $group = new groups();
     // get user can add groups
     $add_groups = $group->user_can_add_groups('ticket');
     return View::make('ticket.ticket_load', compact('ticket_category', 'add_groups'));
 }
Esempio n. 3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     session_start();
     $account_details = App\account::find($id);
     $group = new groups();
     $edit_group_accounts = $group->user_can_edit_groups('accounts');
     // var_dump($account_details);
     return view::make('account.account_edit', compact('account_details', 'edit_group_accounts'));
 }
Esempio n. 4
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     session_start();
     $cart = new cart();
     $group = new groups();
     $cart->delete_user_cart();
     // remove cart data
     $cart->add_cart_edit($id);
     // add sales product to cart
     unset($_SESSION['form_cart_edit']);
     $one_sale = $this->view_one_sale($id);
     $user_can_edit_group = $group->user_can_edit_groups('sales');
     return View::make('sale.sales_edit', compact('one_sale', 'user_can_edit_group'));
     if (isset($_POST['sales'])) {
         // check if submit button click or not
         // $sales->edit_sale($_GET['lid']);  //edit sales data
         echo '<script>window.location.href="' . $_SERVER['PHP_SELF'] . '?loc=sales&action=view&alert=successful";</script> ';
     } else {
     }
 }
Esempio n. 5
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     session_start();
     $contact = new App\contact();
     $account = new App\account();
     $group = new groups();
     $_SESSION['cid'] = $id;
     $contact_detial = $contact::find($id);
     $account_detial = $account::find($contact_detial->account_id);
     if ($account_detial == NULL) {
         $account_detial = $contact_detial;
     }
     //get contact category detials
     $contact_category_data = $this->view_c_category();
     // get user can add groups
     $edit_group_contacts = $group->user_can_edit_groups('contacts');
     if (isset($_SESSION['contact_report_to'])) {
         $report_to = $this->viewonecontact($_SESSION['contact_report_to']);
     } else {
         $report_to = $this->viewonecontact($contact_detial->contact_report_to);
     }
     return View::make('contact.contact_edit', compact('contact_detial', 'account_detial', 'contact_category_data', 'edit_group_contacts', 'report_to'));
 }