當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。