当前位置: 首页>>代码示例>>PHP>>正文


PHP Company::content方法代码示例

本文整理汇总了PHP中Company::content方法的典型用法代码示例。如果您正苦于以下问题:PHP Company::content方法的具体用法?PHP Company::content怎么用?PHP Company::content使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Company的用法示例。


在下文中一共展示了Company::content方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show

<title><?php 
echo $page_title;
?>
-<?php 
echo Company::content("site_name", false);
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<?php 
echo Company::content("seo_key", false);
?>
" />
<meta name="description" content="<?php 
echo Company::content("site_desc", false);
?>
" />
<meta http-equiv="Cache-Control" content="no-transform " />
<link href="../css/base.css" rel="stylesheet" type="text/css" />
<link href="../css/frame.css" rel="stylesheet" type="text/css" />
<!--flash jq-->
<script src="../scripts/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="../scripts/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script src="../scripts/jQuery.hhShare.min.js" type="text/javascript"></script>
<!-- customized js-->
<script src="../scripts/common.js" type="text/javascript"></script>
<script src="../scripts/rollpic.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    function show(i) {
        if (i.style.display == "none") {
            i.style.display = "";
        } else {
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:page.php

示例2: trim

<script charset="utf-8" src="scripts/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="scripts/kindeditor/lang/zh_CN.js"></script>
<?php 
$siteName = trim(Company::content("site_name"));
$siteName = $siteName == "" ? "岳信.中国IP防水试验机第一品牌,给您提供最专业的IP防水检测设备系统解决方案" : $siteName;
$siteDesc = trim(Company::content("site_desc"));
if ($siteDesc == "") {
    //$siteDesc = "IP防水试验机, IPX12滴雨试验机, IPX34摆管淋雨试验机, IPX56强喷水试验机, IPX78浸水试验机, UL喷水试验装置, 日标淋雨试验箱, 手持式淋雨试验装置, IPX9K高压喷淋试验箱, IPX8压力浸水试验机防尘箱, IP56防尘试验箱";
    $siteDesc = "";
}
$seoKey = trim(Company::content("seo_key"));
if ($seoKey == "") {
    //$seoKey = "IP防水试验机, IPX12滴雨试验机, IPX34摆管淋雨试验机, IPX56强喷水试验机, IPX78浸水试验机, UL喷水试验装置, 日标淋雨试验箱, 手持式淋雨试验装置, IPX9K高压喷淋试验箱, IPX8压力浸水试验机防尘箱, IP56防尘试验箱";
    $seoKey = "";
}
$siteNotice = trim(Company::content("site_notice"));
if ($siteNotice == "") {
    //$siteNotice = "您好,欢迎来到本网站!专业生产:IP防水试验机,摆管淋雨试验机和压力浸水试验机等产品.";
    $siteNotice = "";
}
?>
<script language="javascript" type="text/javascript">
	$(function(){
		BS_Common.setMenu(".m_site");
		
		$("#txtNotice").live("change keydown", function(){
			var text = $(this).val();
			var num = 70 - text.length;

			if(num <= 0){
				$(this).val(text.substr(0, 69));
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:site.php

示例3: empty

?>

<?php 
//二维码
if (empty($barcode)) {
    $files = Company::files("company_barcode");
    $barcode = empty($files) ? DocFile::noimg() : $files[0];
}
?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!--header start-->
    <div id="header_box">
        <!--欢迎_分享连接 开始-->
        <div class="header_top">
            <div class="welcome f_left"><?php 
echo Company::content("site_notice", false);
?>
</div>
            <div class=" share_btn f_right">
                <a href="javascript:void(0);" onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));return false;"
                    title="分享到QQ空间">
                    <img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/qz_logo.png" alt="分享到QQ空间" />
                </a>
                <script type="text/javascript">
                    document.write('<iframe frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?url=%url%&appkey=&type=3" width="16" height="16"></iframe>'.replace(/%url%/, encodeURIComponent(location.href)));</script>
                <a href="javascript:void(0)" onclick="postToWb();" class="tmblog">
                    <img src="http://v.t.qq.com/share/images/s/weiboicon16.png">
                </a>
                <script type="text/javascript">
                    function postToWb() {
                        var t = encodeURI(document.title);
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:head.php

示例4:

" alt="<?php 
    echo Company::content("site_desc", false);
    ?>
" /></a>
                </p>
				<div class="ctt-sep"></div>
				<p><span>联系人:</span><?php 
    echo Company::content("contact_person");
    ?>
</p>
				<p><span>电话:</span><?php 
    echo Company::content("company_phone");
    ?>
</p>
				<p><span>手机:</span><?php 
    echo Company::content("mobile_phone");
    ?>
</p>
				<p class="center">
					<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php 
    echo $company_qq;
    ?>
&<?php 
    echo $official_site;
    ?>
&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php 
    echo $company_qq;
    ?>
:41" alt="<?php 
    echo $company_name;
    ?>
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:mleft.php

示例5:

					BS_Popup.create({message: result? "[企业风貌]保存成功" : "[企业风貌]保存失败", title: "公司信息"});
				}
				else{
					BS_Popup.create({message: result.data});
				}				
			});
		});
	});
</script>
<div id="location">管理中心<b>></b><strong>公司信息</strong><b>></b><strong>企业风貌</strong></div><!--location-->
<div class="main" style="height: auto!important; height: 550px; min-height: 550px;">
    <h3>企业风貌</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tbody>
            <tr>
                <td>
					<textarea id="txtSpirit" name="txtSpirit" class="editAreaH"><?php 
echo Company::content("company_spirit");
?>
</textarea>
                </td>
            </tr>
            <tr>
                <td>
                    <input name="submit" id="btnSave" class="button" type="button" value="保存" />
                </td>
            </tr>
        </tbody>
    </table> 
</div>
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:30,代码来源:spirit.php

示例6:

					BS_Popup.create({message: result? "[公司文化]保存成功" : "[公司文化]保存失败", title: "公司信息"});
				}
				else{
					BS_Popup.create({message: result.data});
				}				
			});
		});
	});
</script>
<div id="location">管理中心<b>></b><strong>公司信息</strong><b>></b><strong>公司文化</strong></div><!--location-->
<div class="main" style="height: auto!important; height: 550px; min-height: 550px;">
    <h3>企业文化</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tbody>
            <tr>
                <td>
					<textarea id="txtCulture" name="txtCulture" class="editAreaH"><?php 
echo Company::content("company_culture");
?>
</textarea>
                </td>
            </tr>
            <tr>
                <td>
                    <input name="submit" id="btnSave" class="button" type="button" value="保存" />
                </td>
            </tr>
        </tbody>
    </table> 
</div>
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:30,代码来源:culture.php

示例7: DocFile

    $banner = new DocFile(_NONE);
    $banner->savedPath = "images/banner.png";
    $banners = array($banner);
}
if ($showHomeBanner) {
    //首页Banner
    foreach ($banners as $i => $banner) {
        $bannerHtml .= sprintf("<li class='%s'><a href='%s'><img src='%s' alt='%s' class='home_banner_img'></a></li>", $bannerHtml == "" ? "" : "hidden", empty($banner->fileUrl) ? "index.php" : $banner->fileUrl, str_replace("../", "", $banner->savedPath), empty($banner->fileDesc) ? Company::content("site_desc", false) : $banner->fileDesc);
        $bannerBtn .= sprintf("<li %s>%u</li>", $i == 0 ? "class='selected'" : "", $i + 1);
    }
    $bannerHtml = sprintf("<ul>%s</ul>", $bannerHtml);
    $bannerBtn = sprintf("<ul>%s</ul>", $bannerBtn);
} else {
    //内页Banner
    $banner = $banners[0];
    $bannerHtml = sprintf("<a href='%s'><img src='%s' alt='%s' class='inner_banner_img'></a>", empty($banner->fileUrl) ? "index.php" : $banner->fileUrl, str_replace("../", "", $banner->savedPath), empty($banner->fileDesc) ? Company::content("site_desc", false) : $banner->fileDesc);
}
$hot_search = "";
$query = new Company(_QUERY_ALL);
$query->companyKey = "hot_search";
$hots = Company::query($query);
if (!empty($hots)) {
    foreach ($hots as $hot) {
        $hot_search .= sprintf("\n                <span class='n_menu'>\n\t\t\t\t\t<a title='%s' target='_blank' style='width: 105px;' href='%s'>%s</a>\n                </span>\n\t\t\t\t", $hot->subject, $hot->content, $hot->subject);
    }
}
?>

	<!--banner start-->
    <div id="banner_box">
<?php 
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:banner.php

示例8: foreach

	if(is_file("foot.html") && !isset($_GET["sp"])){ //存在静态页面,并且不是执行静态化处理
		//header("Location: foot.html");		
		require_once("../head.html"); 
		exit; 
	}*/
//读取友情连接
$links = DocFile::get("company_links");
$linkTemp = "<p><a href=\"%s\" title=\"%s\"><img src=\"%s\" width=\"88\" height=\"31\" alt=\"%s\" /></a></p>";
$linkStr = "";
if (!empty($links)) {
    foreach ($links as $link) {
        $linkStr .= sprintf($linkTemp, $link->fileUrl, $link->fileDesc, str_replace("../", "", $link->savedPath), $link->fileDesc);
    }
}
//联系方式
$contacts = sprintf("<p>电话:%s</p><p>传真:%s</p><p>手机:%s</p><p>联系人:%s</p><p>Q Q:%s</p><p>旺旺:%s</p><p>邮箱:%s</p><p>官网:%s</p><p>旺铺:%s</p><p>地址:%s</p><p>%s</p>", Company::content("company_phone"), Company::content("company_fax"), Company::content("mobile_phone"), Company::content("contact_person"), Company::content("company_qq"), Company::content("ali_wangwang"), Company::content("company_email"), Company::content("official_site"), Company::content("ali_store"), Company::content("company_addr"), Company::content("other_contact"));
//读取常见问题
$pro_problems = "";
$query = new Company(_QUERY_ALL);
$query->companyKey = "product_problem";
$problems = Company::query($query);
if (!empty($problems)) {
    foreach ($problems as $problem) {
        $pro_problems .= sprintf("<li><a target='_blank' href='%s' title='%s'>%s</a></li>", $problem->content, $problem->subject, $problem->subject);
    }
}
?>


<style type="text/css">
.sitemap_sec{z-index:10;  font-size:14px; color:#8f8f8f;  position:relative; background:#333; height:180px;}
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:foot.php

示例9:

					BS_Popup.create({message: result? "[资质证书]保存成功" : "[公司文化]保存失败", title: "资质证书"});
				}
				else{
					BS_Popup.create({message: result.data});
				}				
			});
		});
	});
</script>
<div id="location">管理中心<b>></b><strong>公司信息</strong><b>></b><strong>资质证书</strong></div><!--location-->
<div class="main" style="height: auto!important; height: 550px; min-height: 550px;">
    <h3>资质证书</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tbody>
            <tr>
                <td>
					<textarea id="txtHonor" name="txtHonor" class="editAreaH"><?php 
echo Company::content("company_honor");
?>
</textarea>
                </td>
            </tr>
            <tr>
                <td>
                    <input name="submit" id="btnSave" class="button" type="button" value="保存" />
                </td>
            </tr>
        </tbody>
    </table> 
</div>
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:30,代码来源:honor.php

示例10: trim

<script charset="utf-8" src="scripts/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="scripts/kindeditor/lang/zh_CN.js"></script>
<?php 
$addrMap = trim(Company::content("addr_map"));
$addrOther = trim(Company::content("addr_other"));
?>
<script>
	$(function(){
		BS_Common.loadContentEditor("#txtAddrMap");
		BS_Common.loadContentEditor("#txtAddrOther");
		BS_Common.initEditor();
		BS_Common.setMenu(".m_company");

		$("#btnSave").click(function(){
			var shade = BS_Popup.shade(true);
			var data = {type: "content", module: "company", action: "update", addr_map: $.trim(BS_Common.getEDContent("#txtAddrMap")), addr_other: $.trim(BS_Common.getEDContent("#txtAddrOther"))};
			
			var message = "";
			//if(data.addr_map == "") message += "|[地址地图]不能为空";

			if(message != ""){
				BS_Popup.close(shade);
				BS_Popup.create({message: message.substr(1).replace("|", "<br />")});
				return false;
			}

			BS_Common.update(data, function(result){
				BS_Popup.close(shade);				
				
				if(result.status == true){
					BS_Popup.create({message: result? "[公司地址]保存成功" : "[公司地址]保存失败", title: "公司信息"});
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:comaddr.php

示例11:

						</div>
						<div class="d_detail">
						<?php 
echo $companyName;
?>
<br />
                        地址:<?php 
echo Company::content("company_addr");
?>
<br />
                        联系人:<?php 
echo Company::content("contact_person");
?>
<br />
                        电话:<?php 
echo Company::content("company_phone");
?>
<br /><br />
						<?php 
include_once "map.html";
?>
<br /><br />
						<?php 
echo $addrOther;
?>
                        </div>
                    </div>
                </div>
            </div>
			<!-- content end -->
		</div>
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:contact.php

示例12: trim

<script charset="utf-8" src="scripts/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="scripts/kindeditor/lang/zh_CN.js"></script>
<?php 
$companyName = trim(Company::content("company_name"));
$companyName = $companyName == "" ? "广州岳信试验设备有限公司" : $companyName;
$companyOutline = trim(Company::content("company_outline"));
if ($companyOutline == "") {
    //$companyOutline = "广州岳信试验设备有限公司是一家集研发、生产、销售为一体的科技型企业,公司专业生产IPX防水试验设备、汽车淋雨试验房、真空水压防水试漏机等试验类机械设备。自创立以来,公司坚持“以新品拓展市场,以质量保证市场,以服务赢得市场”,凭借雄厚的技术力量,利用先进的生产设备和检测设备,使“YUEXIN”和“岳信”品牌的产品广泛应用于航空航天、汽车制造、造船、塑料、电子电工、通信技术、五金机械、仪器仪表、石油仪表、石油化工等领域。实干赢取未来,创新成就梦想。展望未来,广州岳信将坚持专业化的发展道路,求真务实,开拓创新,以“专业缔造非凡品质,成就中国民族品牌”为目标,为“中国梦”贡献更多的力量。热忱欢迎各界朋友前来参观、考察、洽谈业务。";
    $companyOutline = "";
}
$companyIntroduce = trim(Company::content("company_introduce"));
?>
<script>
	$(function(){
		BS_Common.loadContentEditor("#txtIntroduce");
		BS_Common.initEditor();
		BS_Common.setMenu(".m_company");

		$("#txtOutline").live("change keydown blur", function(){
			var text = $.trim($(this).val());
			var num = 350 - text.length;

			if(num <= 0){
				$(this).val(text.substr(0, 349));
			}

			$(this).parent().find(".comment span").text(num);
		});

		$("#btnSave").click(function(){
			var shade = BS_Popup.shade(true);
开发者ID:BassYang1,项目名称:YueXinChina,代码行数:31,代码来源:company.php


注:本文中的Company::content方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。