當前位置: 首頁>>代碼示例>>PHP>>正文


PHP common::getNameById方法代碼示例

本文整理匯總了PHP中common::getNameById方法的典型用法代碼示例。如果您正苦於以下問題:PHP common::getNameById方法的具體用法?PHP common::getNameById怎麽用?PHP common::getNameById使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在common的用法示例。


在下文中一共展示了common::getNameById方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

					<tr>
						<td><a href="http://www.sylc-export.com/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_01.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/presentation/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_02.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/media/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_03.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/inventaire/classic-cars/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_04.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_05.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/acheter-une-voiture/voiture-americaine-occasion-ancienne/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_06.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/importer-voiture-americaine-auto/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_07.gif" alt=" " style="display:block; border:0;" ></a></td>
						<td><a href="http://www.sylc-export.com/news/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_08.gif" alt=" " style="display:block; border:0;"></a></td>
						<td><a href="http://www.sylc-export.com/contact/"><img src="' . DEFAULT_ADMIN_URL . '/sylc/img/menu1_09.gif" alt=" " style="display:block; border:0;" ></a></td>
					</tr>
				</table>
			</td>
		</tr>';
$news_banner_image = '';
$dynamic_editor_text = $common_object->getNameById(TBL_BANNER_TEMPLATE, "id=1");
$news_banner_image = $dynamic_editor_text->banner_image;
//banner
$full_data .= '<tr>
			<td style="padding-bottom:9px;">
				<img src="' . DEFAULT_ADMIN_URL . '/images/banner_template/' . $news_banner_image . '" alt=" " style="display:block; border:0px;width:600px;" >
			</td>
		</tr>';
//banner
$full_data .= '<tr>
			<td style="padding-bottom:9px;">
				<table cellpadding="0" cellspacing="0" style="background: #555555; width:600px;" width="600">
					<tr>
						<td width="300" style="width:300px; text-align:left; color:#fff; font-size:18px; padding-top:5px; padding-bottom:5px; padding-left:5px">
						Les affaires du moment</td>
						<td width="300" style="width:300px; text-align:right; color:#fff; font-size:14px;  padding-top:5px; padding-bottom:5px; padding-right:5px;">
開發者ID:pankajsinghjarial,項目名稱:SYLC-NEWSITE,代碼行數:31,代碼來源:code.php

示例2: common

<?php

/********************************************************************************************************************

#Coder       : Manoj Pandit

#Description : This Code is used to display list of all product and remove any on them 


*********************************************************************************************************************/
extract($_GET);
extract($_POST);
$obj_block = new common();
$currentTimestamp = getCurrentTimestamp();
if ($model_id != '' && $action == 'delete') {
    $logoname = $obj_block->getNameById(TBL__HTMLTEMPLATE, 'id=' . $model_id);
    /*if($logoname->image!='') {
    		@chmod(LIST_ROOT_ADMIN."/images/new_model/",0777);
    		unlink(LIST_ROOT_ADMIN."/images/new_model/".$logoname->image);
    				
    	}*/
    $deleteProduct = $obj_block->delete(TBL__HTMLTEMPLATE, 'id =' . $model_id);
    $_SESSION['msg'] = 'Car Template Successfully Deleted';
    unset($obj_block);
    echo '<script>location.href="' . DEFAULT_ADMIN_URL . '/htmltemplate/index.php";</script>';
    exit;
}
$getBlock = $obj_block->read(TBL__HTMLTEMPLATE, '', ' creation_date DESC');
unset($obj_block);
開發者ID:pankajsinghjarial,項目名稱:SYLC-NEWSITE,代碼行數:29,代碼來源:code.php

示例3: common

<?php

/********************************************************************************************************************

#Coder       : Keshav Sharma

#Description : This Code is used to display list of all product and remove any on them 


*********************************************************************************************************************/
extract($_GET);
extract($_POST);
$obj_block = new common();
$currentTimestamp = getCurrentTimestamp();
if ($bid != '' && $action == 'delete') {
    $logoname = $obj_block->getNameById(TBL_USED_CAR, 'id=' . $bid);
    //chmod(DEFAULT_ADMIN_URL."/images/used_car/image/",0777);
    if ($logoname->image != '') {
        unlink(LIST_ROOT_ADMIN . "/images/used_car/image/" . $logoname->image);
    }
    //chmod(DEFAULT_ADMIN_URL."/images/used_car/dispo/",0777);
    if ($logoname->dispo != '') {
        unlink(LIST_ROOT_ADMIN . "/images/used_car/dispo/" . $logoname->dispo);
    }
    $deleteProduct = $obj_block->delete(TBL_USED_CAR, 'id =' . $bid);
    $_SESSION['msg'] = 'Car Successfully Deleted';
    unset($obj_block);
    echo '<script>location.href="' . DEFAULT_ADMIN_URL . '/used_car/index.php";</script>';
    exit;
}
$getBlock = $obj_block->read(TBL_USED_CAR, '', ' creation_date DESC');
開發者ID:pankajsinghjarial,項目名稱:SYLC-NEWSITE,代碼行數:31,代碼來源:code.php

示例4: common

<?php

/********************************************************************************************************************

#Coder       : Manoj Pandit

#Description : This Code is used to display list of all product and remove any on them 


*********************************************************************************************************************/
extract($_GET);
extract($_POST);
$obj_block = new common();
$currentTimestamp = getCurrentTimestamp();
if ($model_id != '' && $action == 'delete') {
    $logoname = $obj_block->getNameById(TBL_NEW_MODEL, 'id=' . $model_id);
    /*if($logoname->image!='') {
    		@chmod(LIST_ROOT_ADMIN."/images/new_model/",0777);
    		unlink(LIST_ROOT_ADMIN."/images/new_model/".$logoname->image);
    				
    	}*/
    $deleteProduct = $obj_block->delete(TBL_NEW_MODEL, 'id =' . $model_id);
    $_SESSION['msg'] = 'New Model Successfully Deleted';
    unset($obj_block);
    echo '<script>location.href="' . DEFAULT_ADMIN_URL . '/new_model/index.php";</script>';
    exit;
}
$getBlock = $obj_block->read(TBL_NEW_MODEL, '', ' creation_date DESC');
unset($obj_block);
開發者ID:pankajsinghjarial,項目名稱:SYLC-NEWSITE,代碼行數:29,代碼來源:code.php

示例5: common

<?php

/********************************************************************************************************************

#Coder       : Keshav Sharma

#Description : This Code is used to display list of all product and remove any on them 


*********************************************************************************************************************/
extract($_GET);
extract($_POST);
$obj_block = new common();
$currentTimestamp = getCurrentTimestamp();
if ($bid != '' && $action == 'delete') {
    $logoname = $obj_block->getNameById(TBL_BRANDS, 'id=' . $bid);
    //chmod(DEFAULT_ADMIN_URL."/images/brands",0777);
    if ($logoname->logo != '') {
        unlink(LIST_ROOT_ADMIN . "/images/brands/" . $logoname->logo);
    }
    $deleteProduct = $obj_block->delete(TBL_BRANDS, 'id =' . $bid);
    $_SESSION['msg'] = 'Car Successfully Deleted';
    unset($obj_block);
    echo '<script>location.href="' . DEFAULT_ADMIN_URL . '/brands/index.php";</script>';
    exit;
}
$getBlock = $obj_block->read(TBL_BRANDS, '', ' creation_date DESC');
unset($obj_block);
開發者ID:pankajsinghjarial,項目名稱:SYLC-NEWSITE,代碼行數:28,代碼來源:code.php


注:本文中的common::getNameById方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。