Exemplo n.º 1
0
 public function sendBookingError(User $user)
 {
     $subject = sprintf('%s: %s', companyName(), 'Your booking was not successfully processed.');
     $view = '';
     $data = [];
     $this->sendTo($user->email, $subject, $view, $data);
 }
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(UserRepositoryInterface $userRepo, BillingGateway $gateway, ShoppingCart $cart)
 {
     $data = ['name' => $this->name, 'email' => $this->email, 'phone' => $this->phone, 'address1' => $this->address1, 'address2' => $this->address2, 'city' => $this->city, 'state' => $this->state, 'country' => $this->country, 'cardName' => $this->cardName, 'cardBrand' => $this->cardBrand, 'cardLastFour' => $this->cardLastFour, 'cardExpiryMonth' => $this->cardExpiryMonth, 'cardExpiryYear' => $this->cardExpiryYear];
     $user = $userRepo->store($data);
     $transaction = $gateway->charge($user, $cart->total(), $this->token);
     if (!$transaction) {
         event(new UserPurchaseWasNotSuccessful($user));
         /**
          * If payment is not successful, delete the user to avoid duplicating his/her
          * record on the "users" table
          */
         $userRepo->delete($user->id);
         flash()->error(companyName(), 'Your card was declined.');
         return redirect()->back();
     }
     /**
      * Save the data to "bookings" table
      */
     $booking = $user->bookings()->create(['booking_reference' => bookingReference($transaction), 'paid' => $transaction->paid, 'status' => $transaction->status, 'comments' => '']);
     foreach ($cart->content() as $item) {
         $packageId = $item->options->selectedPackage->id;
         $adult_quantity = $item->qty;
         $child_quantity = $item->options->child_quantity;
         /**
          * Save the data to "booking_details" table
          */
         $booking->packages()->attach($packageId, ['adult_quantity' => $adult_quantity, 'child_quantity' => $child_quantity, 'date' => $item->options->date, 'date_submit' => $item->options->date_submit, 'time' => $item->options->time, 'ticket' => $item->options->ticket]);
     }
     $cart->destroy();
     event(new UserPurchasedAPackage($user, $booking->booking_reference));
 }
Exemplo n.º 3
0
 public function sendBookingNotification(User $user, $booking_reference)
 {
     $subject = sprintf('%s: %s', companyName(), 'New Online Booking Notification.');
     $view = 'emails.admin.new-booking-notification';
     $result = $this->booking->findByReference($booking_reference);
     $bookedPackages = $result->packages;
     $this->sendTo($this->adminEmail, $subject, $view, $user, $bookedPackages);
 }
Exemplo n.º 4
0
<?php
include './config.php';
$Order_Id               = '198';
$shipp_add_id           = '2';
$sql_order_id_mail      = mysql_query("SELECT id,order_id,created_date,order_number,customer_name,customer_company,deleivery_date,order_comment FROM sohorepro_order_master WHERE id = '".$Order_Id."' ORDER BY id DESC LIMIT 1");
$object                 = mysql_fetch_assoc($sql_order_id_mail);
$user_mail              = UserMail($object['customer_name']);
$user_name              = UserName($object['customer_name']);
$company_name           = companyName($object['customer_company']);
$phone                  = companyphone($object['customer_company']);
$shipp_address          = CompanyAddressMail($shipp_add_id);
$prop                   = PropTest($shipp_add_id);
$id                     = $Order_Id;
$Order_id               = $object['order_id'];
$Order_number           = $object['order_number'];
$deleivery_date         = $object['deleivery_date'];
$comp_id                = $object['customer_company'];
$order_comm             = $object['order_comment'];
//$current_time           = date("Y-m-d h:i:s");
$current_time = $object['created_date'];
$datew = new DateTime($current_time, new DateTimeZone('America/New_York'));
date_default_timezone_set('America/New_York');
$temp_times =  date("Y-m-d h:iA", $datew->format('U'));
$Date = date("m-d-Y", strtotime($object['created_date'])). ' ' .date("h:iA",strtotime("-180 minutes",strtotime($temp_times)));
//$Date                   = date('m-d-y').' '.$datetime_from;                              
$view_orders            = viewOrders($id);
$pick_up                = $view_orders[0]['shipping_add_id'];
$mail_id                = getActiveEmail();


$user_session_comp      = $_SESSION['sohorepro_companyid'];
Exemplo n.º 5
0
<?php
include './admin/config.php';
include './admin/db_connection.php';

$user_id                = $_GET['user_id'];
$user_mail              = UserMail($user_id);
$user_name              = UserName($user_id);
$company_name           = companyName($user_id);
$query = "INSERT INTO sohorepro_mail_check
			SET     user_name       = '" . $user_name . "',
                                user_mail       = '".$user_mail."',
                                company_name    = '".$company_name."' ";  
mysql_query($query);    

?>
Exemplo n.º 6
0
if(mysql_num_rows($select_company) > 0)
{
$state_comp = StateName($fth_comp['comp_state']);
$str_comp .= ($fth_comp['comp_name'] == '') ? 'NIL^^^^' : $fth_comp['comp_name']."^^^^";
$str_comp .= ($fth_comp['comp_contact_phone'] == '') ? 'NIL^^^^' : "YES-RESULT^^^^";
$str_comp .= ($fth_comp['comp_business_address1'] == '') ? '&nbsp;^^^^' :$fth_comp['comp_business_address1']."^^^^";
$str_comp .= ($fth_comp['comp_business_address2'] == '') ? '^^^^' : $fth_comp['comp_business_address2']."^^^^";
$str_comp .= ($fth_comp['comp_room'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_room']."^^^^";
$str_comp .= ($fth_comp['comp_suite'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_suite']."^^^^";
$str_comp .= ($fth_comp['comp_floor'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_floor']."^^^^";
$str_comp .= ($fth_comp['comp_city'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_city']."^^^^";
$str_comp .= ($fth_comp['comp_state'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_state'].'&nbsp;'."^^^^";
$str_comp .= ($fth_comp['comp_zipcode'] == '') ? '&nbsp;^^^^' :$fth_comp['comp_zipcode']."^^^^";
$str_comp .= ($fth_comp['comp_phone1'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone1']."^^^^";
$str_comp .= ($fth_comp['comp_phone2'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone2']."^^^^";
$str_comp .= ($fth_comp['comp_phone3'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone3']."^^^^";
$str_comp .= ($fth_comp['comp_phone4'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone4']."^^^^";
$str_comp .= ($fth_comp['tax_exe'] == '') ? '&nbsp;^^^^' : $fth_comp['tax_exe']."^^^^";
$str_comp .= ($fth_comp['comp_id'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_id']."^^^^";
$str_comp .= companyName($fth_comp['comp_id']);
//$str_comp   =substr($str_comp,0,strlen($str_comp)-4);

echo $str_comp;
}  else {
    echo 'NO-RESULT';    
}

}

?>
Exemplo n.º 7
0
<?php

include './admin/config.php';
include './admin/db_connection.php';
$id = $_GET['id'];
$state_id = $_GET['state_id'];
$_SESSION['job'] = $_REQUEST['jobref'];
$_SESSION['qty'] = $_REQUEST['quantity'];
$user_id = $_SESSION['sohorepro_userid'];
$id_user = $_SESSION['sohorepro_companyid'];
$updated_address = UpdatedAddress($id);
$user_manager = CheckManager($user_id);
$mail_ids = CompanyMember($id_user);
$comp_name = companyName($id_user);
$phone = companyphone($id_user);
$state_abbr = StateName($state_id);
$message = '<link href="mail_css.css" media="screen" rel="stylesheet" type="text/css" />';
$message .= '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">';
$message .= '<table width="750" border="0" cellspacing="0" cellpadding="0">';
$message .= '<tr bgcolor="#ff7e00">';
$message .= '<td width="10" height="10" align="left" valign="top"></td>';
$message .= '<td height="10" align="left" valign="top"></td>';
$message .= '<td width="10" height="10" align="left" valign="top"></td>';
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
$message .= '<td align="left" valign="top"><table width="730" border="0" cellspacing="0" cellpadding="0">';
$message .= '<tr>';
$message .= '<td width="20" height="20" align="left" valign="top"></td>';
$message .= '<td height="20" align="left" valign="top"></td>';
$message .= '<td width="20" height="20" align="left" valign="top"></td>';
Exemplo n.º 8
0
 public function confirm($booking_reference, $user_id)
 {
     event(new BookingWasConfirmed($user_id, $booking_reference));
     flash()->success(companyName(), 'An email was sent to the customer.');
     return redirect()->route('admin.bookings.index');
 }
Exemplo n.º 9
0
 public function bookingPayment(BookingPaymentCheckoutRequest $request)
 {
     $this->dispatchFrom(ProcessBookingPayment::class, $request);
     flash()->overlay(companyName(), 'You have successfully paid your booking. Please check your email.');
     return redirect()->route('booking.payment.success', $request->booking_reference);
 }
Exemplo n.º 10
0
 public function submitContact(SendMessageRequest $request)
 {
     $this->dispatchFrom(SendMessage::class, $request);
     flash()->overlay(companyName(), 'Your inquiry was sent successfully. One of our customer representative will get back to you soon.');
     return redirect()->route('contact');
 }
Exemplo n.º 11
0
function ExtraProductsInOrder($Order_Id, $shipp_add_id, $short_msg)
{
    $sql_order_id_mail = mysql_query("SELECT id,order_id,created_date,order_number,customer_name,customer_company,deleivery_date,order_comment FROM sohorepro_order_master WHERE id = '" . $Order_Id . "' ORDER BY id DESC LIMIT 1");
    $object = mysql_fetch_assoc($sql_order_id_mail);
    $user_mail_id_txt = UserMail($object['customer_name']);
    $user_mail = array('email_id' => UserMail($object['customer_name']));
    $user_name = UserName($object['customer_name']);
    $company_name = companyName($object['customer_company']);
    $phone = companyphone($object['customer_company']);
    $billing_address = BillingAddressShippId($object['customer_company']);
    $shipp_address = CompanyAddressMail($billing_address);
    $prop = PropTest($shipping_id);
    $id = $Order_Id;
    $Order_id = $object['order_id'];
    $Order_number = $object['order_number'];
    $deleivery_date = $object['deleivery_date'];
    $comp_id = $object['customer_company'];
    $order_comm = $object['order_comment'];
    //$current_time           = date("Y-m-d h:i:s");
    $current_time = $object['created_date'];
    $datew = new DateTime($current_time, new DateTimeZone('America/New_York'));
    date_default_timezone_set('America/New_York');
    $temp_times = date("Y-m-d h:iA", $datew->format('U'));
    //$Date = date("m-d-Y", strtotime(date('Y-m-d h:i:s', time()))). ' ' .date("h:iA",strtotime("-0 minutes",strtotime($temp_times)));
    $Date = date('Y-m-d h:i A', time());
    $view_orders = viewOrders($id);
    $pick_up = $view_orders[0]['shipping_add_id'];
    $mail_id = getActiveEmail();
    $returnValue = html_entity_decode('Your Soho Repro graphics order has been received and will be processed promptly.', ENT_COMPAT, 'ISO-8859-1');
    $customer_email = array('email_id' => CompanyMail($comp_id));
    array_push($mail_id, $user_mail, $customer_email);
    $comment = 'Comment :';
    $address_3 = $shipp_address['address_3'] != '' ? $shipp_address['address_3'] . '<br>' : '';
    $mail = new PHPMailer();
    $message = '<html>';
    $message .= '<head>';
    $message .= '<title></title>';
    $message .= '<meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">';
    $message .= '</head>';
    $message .= '<body>';
    $message .= '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">';
    $message .= '<table width="780" border="0" cellspacing="0" cellpadding="0" class="padd">';
    $message .= '<tr><td>' . $short_msg . '</td></tr>';
    $message .= '</table>';
    $message .= '<table width="780" border="0" cellspacing="0" cellpadding="0" class="padd">';
    $message .= '<tr bgcolor="#ff7e00">';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '<td height="10" align="left" valign="top"></td>';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
    $message .= '<td align="left" valign="top"><table width="760" border="0" cellspacing="0" cellpadding="0">';
    $message .= '<tr>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="20" align="left" valign="top"></td>';
    $message .= '<td align="left" valign="top"><table width="740" border="0" cellspacing="0" cellpadding="0">';
    $message .= '<tr>';
    $message .= '<td>' . $returnValue . '</br></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td>&nbsp;</td>';
    $message .= '</tr>';
    $message .= '<tr height="30px">';
    $message .= '<td><span style="font-weight:bold;">Customer Reference :</span> ' . $Order_id . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Date :</span> ' . $Date . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Name :</span> ' . $user_name . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Company :</span> ' . $company_name . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Email :</span> ' . $user_mail_id_txt . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Phone :</span> ' . $phone . '</td>';
    $message .= '</tr>';
    if ($pick_up == 'P') {
        $message .= '<tr height="30px">';
        $message .= '<td><span style="font-weight:bold;">Pickup Address: </span></td>';
        $message .= '</tr>';
        $message .= '<tr>';
        $message .= '<td style="padding-bottom:7px;">Soho Reprographics<br>381 Broome Street<br>New York, NY 10013</td>';
        $message .= '</tr>';
    } else {
        $message .= '<tr height="30px">';
        $message .= '<td><span style="font-weight:bold;">Billing Address: </span></td>';
        $message .= '</tr>';
        $message .= '<tr>';
        $message .= '<td style="padding-bottom:7px;">' . $shipp_address['company_name'] . '<br>' . $shipp_address['address_1'] . '<br>' . $shipp_address['address_2'] . '<br>' . $address_3 . $shipp_address['city'] . ',&nbsp;' . StateName($shipp_address['state']) . '&nbsp;' . $shipp_address['zip'] . '</td>';
        $message .= '</tr>';
        $message .= '<tr height="25px">';
        $message .= '<td><span style="font-weight:bold;">Multiple Shipping Addresses: </span></td>';
        $message .= '</tr>';
        $multi = MultiShippingAddress($Order_Id);
        $pick_up_multi = Pickup();
        foreach ($multi as $multi_shipp) {
            $address_multi_pre = SelectIdAddress($multi_shipp['shipping_id']);
            $address_multi_1 = $address_multi_pre[0]['address_1'] != '' ? $address_multi_pre[0]['address_1'] . '<br>' : '';
            $address_multi_2 = $address_multi_pre[0]['address_2'] != '' ? $address_multi_pre[0]['address_2'] . '<br>' : '';
            $address_multi_3 = $address_multi_pre[0]['address_3'] != '' ? $address_multi_pre[0]['address_3'] . '<br>' : '';
            $check_item_id = explode(",", $multi_shipp['item_id']);
            $items_tag = $check_item_id[1] != '' ? '<span style="font-weight:bold;">Items&nbsp;:&nbsp;' . $multi_shipp['item_id'] . '<br>' : '<span style="font-weight:bold;">Item&nbsp;:&nbsp;' . $multi_shipp['item_id'] . '<br>';
            $address_for_items_pre[] = $multi_shipp['shipping_id'] != 'P' ? $items_tag . '</span><span style="font-weight:bold;">Shipping Address: </span><br>' . $address_multi_pre[0]['company_name'] . '<br>' . $address_multi_1 . $address_multi_2 . $address_multi_pre[0]['city'] . ',&nbsp;' . StateName($address_multi_pre[0]['state']) . '&nbsp;' . $address_multi_pre[0]['zip'] . '<br><br><span style="font-weight:bold;">Delivery Date :</span>' . $deleivery_date : $items_tag . '</span><span style="font-weight:bold;">Pickup Address: </span><br>' . $pick_up_multi . '<br><br><br><span style="font-weight:bold;">Delivery Date :</span>' . $deleivery_date;
        }
        $message .= '<tr><td>';
        $message .= '<table align="left">';
        for ($m = 0; $m < count($address_for_items_pre); $m += 3) {
            $message .= '<tr>
                <td>' . $address_for_items_pre[$m] . '</td>
                <td>' . $address_for_items_pre[$m + 1] . '</td>
                <td>' . $address_for_items_pre[$m + 2] . '</td>
            </tr>';
            $message .= '<tr><td>&nbsp;</td></tr>';
        }
        $message .= '</table>';
        $message .= '</td></tr>';
    }
    $message .= '</table></td>';
    $message .= '<td height="25" width="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="20" align="left" valign="top"></td>';
    $message .= '<td align="left" valign="top">';
    $message .= '<table width="740" border="0" cellspacing="0" cellpadding="0" style="margin-right:-1px;">';
    $message .= '<tr style="color:#fff; text-transform:uppercase;">';
    $message .= '<td width="40" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Item</td>';
    $message .= '<td width="400" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Description</td>';
    $message .= '<td width="80" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Quantity</td>';
    $message .= '<td width="100" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Unit Price</td>';
    $message .= '<td width="110" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Total</td>';
    $message .= '</tr>';
    $total = 0;
    $i = 1;
    foreach ($view_orders as $ord) {
        $rowColor = $i % 2 != 0 ? '#dfdfdf' : '#eeeeee';
        $rowColor1 = $i % 2 != 0 ? '#eeeeee' : '#f6f2f2';
        $prod_id = $ord['product_id'];
        $shipping = SelectAllAddress($ord['shipping_add_id']);
        $id = $ord['id'];
        $message .= '<tr>';
        $message .= '<td width="40" align="left" valign="middle" bgcolor="' . $rowColor1 . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-left:20px;">' . $i . '</td>';
        $message .= '<td width="400" align="center" valign="middle" bgcolor="' . $rowColor . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">' . getorderProd($prod_id) . '</td>';
        $message .= '<td width="80" align="right" valign="middle" bgcolor="' . $rowColor1 . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . $ord['product_quantity'] . '</td>';
        $message .= '<td width="100" align="right" valign="middle" bgcolor="' . $rowColor . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . $ord['product_price'] . '</td>';
        $message .= '<td width="110" align="right" valign="middle" bgcolor="' . $rowColor1 . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($ord['product_quantity'] * $ord['product_price'], 2, '.', '') . '</td>';
        $message .= '</tr>';
        $sub_tot = $ord['product_quantity'] * $ord['product_price'];
        $tax_status = getTaxStatusChk($comp_id);
        $tax_value = TaxValue();
        if ($tax_status == '1') {
            $tax_line = '0';
        } else {
            $tax_line = $tax_value;
        }
        $total = $total + $sub_tot;
        $tax = $tax_line * ($total / 100);
        $i++;
    }
    $message .= '<tr>';
    $message .= '<td colspan="2" rowspan="3" bgcolor="#eeeeee" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Comment:</span><br>' . $order_comm . '</td>';
    $message .= '<td colspan="2" align="right" bgcolor="#eeeeee" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Subtotal</span></td>';
    $message .= '<td bgcolor="#eeeeee" align="right" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($total, 2, '.', '') . '</td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td colspan="2" align="right" bgcolor="#dfdfdf" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Tax</span></td>';
    $message .= '<td bgcolor="#dfdfdf" align="right" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($tax, 2, '.', '') . '</td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td colspan="2" align="right" bgcolor="#eeeeee" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Total*</span></td>';
    $message .= '<td bgcolor="#eeeeee" align="right" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($total + $tax, 2, '.', '') . '</td>';
    $message .= '</tr>';
    $message .= '</table></td>';
    $message .= '<td width="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top" style="padding-bottom:5px;font-size:12px;">*Delivery charges to be applied as necessary</td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= ' </tr>';
    $message .= '</table></td>';
    $message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
    $message .= '</tr>';
    $message .= '<tr bgcolor="#ff7e00">';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '<td height="10" align="left" valign="top"></td>';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= ' </tr>';
    $message .= '</table>';
    $message .= '</table>';
    $message .= '</body>';
    $message .= '</html>';
    $final_html = html_entity_decode($message);
    //        foreach ($mail_id as $to){
    //        $subject    = "Soho Reprographic Order Acknowledgement with Extra Products";
    //        $headers    = 'From: "SohoRepro" <*****@*****.**>' . "\r\n";
    //        $headers   .= 'MIME-Version: 1.0' . "\n";
    //        $headers   .= 'Content-Type: text/html; charset=utf-8\r\n';
    //        $headers   .= 'Content-Transfer-Encoding: 8bit\r\n\r\n';
    //        $to         = $to['email_id'];
    //        //echo $to, $subject, $message, $headers;
    //        $result = mail($to, $subject, $message, $headers);
    //        }
    foreach ($mail_id as $mails_sent) {
        $pre_filt[] = $mails_sent['email_id'];
    }
    $final_list = array_unique($pre_filt);
    //        foreach ($final_list as $to){
    //        $subject  = "Order Changed by Admin for Job:".$Order_id;
    //        $headers  = 'From: "SohoRepro" <*****@*****.**>' . "\r\n";
    //        $headers .= 'MIME-Version: 1.0' . "\n";
    //        $headers .= 'Content-Type: text/html; charset=utf-8\r\n'."X-Mailer: PHP";
    //        $headers .= 'Content-Transfer-Encoding: 8bit\r\n\r\n';
    //        //$to       = $to['email_id'];
    //        //echo $to, $subject, $message, $headers;
    //        $result = mail($to, $subject, $final_html, $headers);
    //        }
    $subject = "Order Changed by Admin for Job:" . $Order_id;
    $headers = 'From: "SohoRepro" <*****@*****.**>' . "\r\n";
    $headers .= 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-Type: text/html; charset=utf-8\\r\\n' . "X-Mailer: PHP";
    $headers .= 'Content-Transfer-Encoding: 8bit\\r\\n\\r\\n';
    $to = "*****@*****.**";
    //echo $to, $subject, $message, $headers;
    $result = mail($to, $subject, $final_html, $headers);
    if ($result) {
        return '1';
    } else {
        return '0';
    }
}
Exemplo n.º 12
0
 public function destroy($rowId)
 {
     $this->cart->removeBooking($rowId);
     flash()->success(companyName(), 'You successfully remove an item from the booking.');
     return redirect()->route('booking.index');
 }
Exemplo n.º 13
0
<?php

include './config.php';
include './auth.php';
$comp_id = $_GET['comp_id'];
$user_id = $_GET['user_id'];
$acc_id = $_GET['acc_id'];
$sele_usr = SupplyUsrContShopp($comp_id, $user_id);
$select_company = companyName($comp_id);
//echo '<pre>';
//print_r($sele_usr);
?>
<style>

   /* Supply Login */
.shipp_window{
    width: 265px;   
    padding: 0px 20px;
    float:left;     
}

.shipp_window ul{
    float: left;
    width: 100%;    
    color:#5f5f5f; font-size: 16px; 
    padding: 0px;
}
.shipp_window h1{
    font-size: 18px;
    float: left;
    width: 100%;
Exemplo n.º 14
0
    $user_id = UserMail($_POST['user_id_logged']);
    $customer_name = getCompName($comp_id);


    $query = "INSERT INTO sohorepro_feedback
			SET     comp_id         = '" . $comp_id . "',
                                user_name       = '" . $user_id . "',
                                feedback        = '" . $feedback_input . "' ";

    $sql_result = mysql_query($query);
    $feedback_id = mysql_insert_id();
    $select_feedback = SelectFeedback($feedback_id);
    $user_details = GetUserDetails($select_feedback[0]['comp_id'], $select_feedback[0]['user_name']);
    $user_name = $user_details[0]['cus_fname'] . '&nbsp;' . $user_details[0]['cus_lname'];
    $user_email = $user_details[0]['cus_email'];
    $user_company = companyName($select_feedback[0]['comp_id']);

    $message .= '<div style="border:3px solid #FF7E00;">';
    $message .= '<table border="0" style="width:100%;">';

    $message .= '<tr>';
    $message .= '<td style="padding-top: 10px;padding-left: 10px;color:#000;font-weight:bold;">Name</td>';
    $message .= '<td style="padding-top: 10px;padding-left: 10px;color:#000;font-weight:bold;">:</td>';
    $message .= '<td style="padding-top: 10px;padding-left: 10px;color:#000;">' . $user_name . '</td>';
    $message .= '</tr>';

    $message .= '<tr>';
    $message .= '<td style="padding-top: 10px;padding-left: 10px;color:#000;font-weight:bold;">Email</td>';
    $message .= '<td style="padding-top: 10px;padding-left: 10px;color:#000;font-weight:bold;">:</td>';
    $message .= '<td style="padding-top: 10px;padding-left: 10px;color:#000;">' . $user_email . '</td>';
    $message .= '</tr>';
Exemplo n.º 15
0
 public function create($title, $message, $level, $key = 'flash_message')
 {
     session()->flash($key, ['title' => companyName(), 'message' => $message, 'level' => $level]);
 }
Exemplo n.º 16
0
            $added_qty      =   $exist_product[0]['quantity'] + $items['quantity'];
            if (count($exist_product) > 0) {
            $query  =   "UPDATE sohorepro_checkout SET quantity = '".$added_qty."' WHERE product_id = '".$items['product_id']."' AND user_id = '".$user_id."' ";
            }  else {
            $query  = "INSERT INTO sohorepro_checkout SET product_id     = '" . $items['product_id'] . "', quantity = '" . $items['quantity'] . "', unit_price = '" . $items['unit_price'] . "', user_id = '" . $user_id . "', staff_id = '0', company_id = '" . $company_id . "', reference = '" . $job_reference . "', shipping_add_id = '0' ";
            }
            mysql_query($query);
            }            
$query_guest      = "DELETE FROM sohorepro_checkout_guest WHERE ip = '".$ip."' ";
mysql_query($query_guest);
}

$shipping_address   = ($company_id != '') ? ShippingAddressAll($company_id): ShipAddNewSup($user_id) ;
$shipping_size      = count($shipping_address);
$primary_shipping   = PrimaryShipping($company_id);
$comp_name          = companyName($company_id);
$address_shipp      = ($shipping_size == 1) ? $shipping_address[0]['id'] : '0' ;
$checkout_product   = checkOut($user_id);
$_SESSION['ref_val'] = $checkout_product[0]['reference'];
$reference          = ($checkout_product[0]['reference'] != '') ? $checkout_product[0]['reference'] : $_SESSION['ref_val'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <!-- Mirrored from buckart.com/srsite/SoHoRepro-WebsitePages/store/store.html by HTTrack Website Copier/3.x [XR&CO'2013], Sat, 21 Sep 2013 08:44:50 GMT -->
 <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
 <head>
 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
 <title> SohoRepro </title>

 <!-- base href="http://soho.thinkdesign.com/" -->
Exemplo n.º 17
0
              <?php 
$i = 1;
if (count($Orders) > 0) {
    foreach ($Orders as $order) {
        $rowColor = $i % 2 != 0 ? '#dfdfdf' : '#eeeeee';
        $rowColor1 = $i % 2 != 0 ? '#eeeeee' : '#f6f2f2';
        $id = $order['id'];
        $order_id = $order['order_id'];
        $order_numer = $order['order_number'];
        //$date = date("m-d-Y h:m A", strtotime($order['created_date']));
        $current_time = $order['created_date'];
        $datew = new DateTime($current_time, new DateTimeZone('America/New_York'));
        date_default_timezone_set('America/New_York');
        $temp_times = date("Y-m-d h:iA", $datew->format('U'));
        $date = date("m-d-Y", strtotime($order['created_date'])) . ' ' . date("h:iA", strtotime("-180 minutes", strtotime($temp_times)));
        $customer = companyName($order['customer_company']);
        $price = getPrice($id);
        $tax_status = getTaxStatusChk($order['customer_company']);
        if ($tax_status == '1') {
            $tax_line = '8.875';
        } else {
            $tax_line = '0';
        }
        $tax = $tax_line * ($price[0]['sub_total'] / 100);
        $grand_tot = $price[0]['sub_total'] + $tax;
        ?>
             
              <tr class="trigger"  id="<?php 
        echo $id;
        ?>
"> 
Exemplo n.º 18
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($category)
 {
     $this->category->delete($category->id);
     flash()->success(companyName(), 'You have successfully deleted the Category.');
     return redirect()->route('admin.categories.index');
 }