本文整理汇总了PHP中tsmConfig::get_company_info方法的典型用法代码示例。如果您正苦于以下问题:PHP tsmConfig::get_company_info方法的具体用法?PHP tsmConfig::get_company_info怎么用?PHP tsmConfig::get_company_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tsmConfig
的用法示例。
在下文中一共展示了tsmConfig::get_company_info方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: create_new_user_from_contact_data
public function create_new_user_from_contact_data($contact_data, $send_email = true)
{
$user = new JUser();
require_once JPATH_ROOT . '/libraries/joomla/user/helper.php';
$token = JApplicationHelper::getHash(JUserHelper::genRandomPassword());
$user->email = $contact_data->email_address;
$user->username = $contact_data->email_address;
$user->name = $contact_data->email_address;
$user->groups[] = 2;
$user->activation = $token;
$user->block = 1;
$company_info = tsmConfig::get_company_info();
$user->save();
if (!$send_email) {
return true;
}
ob_start();
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>assddddfff</title>
<style type="text/css">
.ReadMsgBody {
width: 100%;
}
.ExternalClass {
width: 100%;
}
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {
line-height: 100%;
}
body, table, td, a {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table {
border-collapse: collapse !important;
}
table, td {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
img {
border: 0;
line-height: 100%;
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
}
@media screen and (max-width: 480px) {
html {
-webkit-text-size-adjust: none;
}
*[class].mobile-width {
width: 100% !important;
padding-left: 10px;
padding-right: 10px;
}
*[class].mobile-width-nopad {
width: 100% !important;
}
*[class].stack {
display: block !important;
width: 100% !important;
}
*[class].hide {
display: none !important;
}
*[class].center, *[class].center img {
text-align: center !important;
margin: 0 auto;
}
*[class].scale img, *[class].editable_image img {
max-width: 100%;
height: auto;
margin: 0 auto;
}
*[class].addpad {
padding: 10px !important;
}
*[class].addpad-top {
padding-top: 30px !important;
//.........这里部分代码省略.........
示例2: send_bookprivategroupsumary
public function send_bookprivategroupsumary($booking_summary, $email_address, $new_member = true, $order, $user_token = '')
{
$company_info = tsmConfig::get_company_info();
$tour = $booking_summary->tour;
$list_passenger = $booking_summary->list_passenger;
$list_passenger = array_merge($list_passenger->senior_adult_teen, $list_passenger->children_infant);
$departure = $booking_summary->departure;
$list_destination = $departure->list_destination;
$list_destination = explode(';', $list_destination);
$contact_data = $booking_summary->contact_data;
$contact_data = json_decode($contact_data);
$from_date = $departure->departure_date;
$from_date = JFactory::getDate($from_date);
$to_date = clone $from_date;
$from_date = JHtml::_('date', $from_date);
$total_day = $departure->total_day;
$total_day--;
$to_date->modify("+{$total_day} days");
$to_date = JHtml::_('date', $to_date);
ob_start();
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php
echo JText::_('Your booking');
?>
</title>
<style type="text/css">
.ReadMsgBody {
width: 100%;
}
.ExternalClass {
width: 100%;
}
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {
line-height: 100%;
}
body, table, td, a {
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
table {
border-collapse: collapse !important;
}
table, td {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
img {
border: 0;
line-height: 100%;
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
}
@media screen and (max-width: 480px) {
html {
-webkit-text-size-adjust: none;
}
*[class].mobile-width {
width: 100% !important;
padding-left: 10px;
padding-right: 10px;
}
*[class].mobile-width-nopad {
width: 100% !important;
}
*[class].stack {
display: block !important;
width: 100% !important;
}
*[class].hide {
display: none !important;
}
*[class].center, *[class].center img {
text-align: center !important;
margin: 0 auto;
}
*[class].scale img, *[class].editable_image img {
max-width: 100%;
height: auto;
margin: 0 auto;
}
*[class].addpad {
padding: 10px !important;
}
*[class].addpad-top {
padding-top: 30px !important;
}
*[class].sanpad {
padding: 0px !important;
}
*[class].sanborder {
border: none !important;
}
}
//.........这里部分代码省略.........