コード例 #1
0
ファイル: createI18n.php プロジェクト: kinghinds/kingtest2
		<th>
			<?php 
echo CHtml::activeLabelEx($product, 'image_path', array('for' => CHtml::activeId($product, 'i18nFormData[productFile_' . $lang . ']')));
?>
		</th>
		<td>
			<?php 
echo CHtml::fileField(CHtml::activeName($product, 'i18nFormData') . '[productFile_' . $lang . ']');
?>
			<?php 
if ($product->{'image_path_' . $lang}) {
    ?>
 
			<br />
			<?php 
    if (FileHelper::getFileExt($product->{'image_path_' . $lang}) == 'swf') {
        ?>
			<?php 
        echo CHtml::link(Helper::mediaUrl(Product::UPLOAD_ORIGINAL_IMAGE_PATH . $product->i18nFormData['image_path_' . $lang], FRONTEND), Helper::mediaUrl(Product::UPLOAD_ORIGINAL_IMAGE_PATH . $product->i18nFormData['image_path_' . $lang], FRONTEND), array('target' => '_blank'));
        ?>
			<?php 
    } else {
        ?>
 
			<?php 
        echo CHtml::image(Helper::mediaUrl(Product::UPLOAD_ORIGINAL_IMAGE_PATH . $product->i18nFormData['image_path_' . $lang], FRONTEND), '', array('style' => 'width:300px;'));
        ?>
			<?php 
    }
    ?>
 
コード例 #2
0
ファイル: createI18n.php プロジェクト: kinghinds/kingtest2
		<th>
			<?php 
echo CHtml::activeLabelEx($model, 'banner_path', array('for' => CHtml::activeId($model, 'i18nFormData[bannerFile_' . $lang . ']')));
?>
		</th>
		<td>
			<?php 
echo CHtml::fileField(CHtml::activeName($model, 'i18nFormData') . '[bannerFile_' . $lang . ']');
?>
			<?php 
if ($model->{'banner_path_' . $lang}) {
    ?>
 
			<br />
			<?php 
    if (FileHelper::getFileExt($model->{'banner_path_' . $lang}) == 'swf') {
        ?>
			<?php 
        echo CHtml::link(Helper::mediaUrl(Banner::UPLOAD_ORIGINAL_FILE_PATH . $model->i18nFormData['banner_path_' . $lang], FRONTEND), Helper::mediaUrl(Banner::UPLOAD_ORIGINAL_FILE_PATH . $model->i18nFormData['banner_path_' . $lang], FRONTEND), array('target' => '_blank'));
        ?>
			<?php 
    } else {
        ?>
 
			<?php 
        echo CHtml::image(Helper::mediaUrl(Banner::UPLOAD_LARGE_IMAGE_PATH . $model->i18nFormData['banner_path_' . $lang], FRONTEND));
        ?>
			<?php 
    }
    ?>
 
コード例 #3
0
ファイル: createI18n.php プロジェクト: kinghinds/kingtest2
		<th>
			<?php 
echo CHtml::activeLabelEx($brand, 'image_path', array('for' => CHtml::activeId($brand, 'i18nFormData[brandFile_' . $lang . ']')));
?>
		</th>
		<td>
			<?php 
echo CHtml::fileField(CHtml::activeName($brand, 'i18nFormData') . '[brandFile_' . $lang . ']');
?>
			<?php 
if ($brand->{'image_path_' . $lang}) {
    ?>
 
			<br />
			<?php 
    if (FileHelper::getFileExt($brand->{'image_path_' . $lang}) == 'swf') {
        ?>
			<?php 
        echo CHtml::link(Helper::mediaUrl(Brand::UPLOAD_THUMBNAIL_IMAGE_PATH . $brand->i18nFormData['image_path_' . $lang], FRONTEND), Helper::mediaUrl(Brand::UPLOAD_THUMBNAIL_IMAGE_PATH . $brand->i18nFormData['image_path_' . $lang], FRONTEND), array('target' => '_blank'));
        ?>
			<?php 
    } else {
        ?>
 
			<?php 
        echo CHtml::image(Helper::mediaUrl(Brand::UPLOAD_THUMBNAIL_IMAGE_PATH . $brand->i18nFormData['image_path_' . $lang], FRONTEND), '', array('style' => 'width:300px;'));
        ?>
			<?php 
    }
    ?>
 
コード例 #4
0
ファイル: createI18n.php プロジェクト: kinghinds/kingtest2
		<th>
			<?php 
echo CHtml::activeLabelEx($server, 'image_path', array('for' => CHtml::activeId($server, 'i18nFormData[serverFile_' . $lang . ']')));
?>
		</th>
		<td>
			<?php 
echo CHtml::fileField(CHtml::activeName($server, 'i18nFormData') . '[serverFile_' . $lang . ']');
?>
			<?php 
if ($server->{'image_path_' . $lang}) {
    ?>
 
			<br />
			<?php 
    if (FileHelper::getFileExt($server->{'image_path_' . $lang}) == 'swf') {
        ?>
			<?php 
        echo CHtml::link(Helper::mediaUrl(Server::UPLOAD_ORIGINAL_FILE_PATH . $server->i18nFormData['image_path_' . $lang], FRONTEND), Helper::mediaUrl(Server::UPLOAD_ORIGINAL_FILE_PATH . $server->i18nFormData['image_path_' . $lang], FRONTEND), array('target' => '_blank'));
        ?>
			<?php 
    } else {
        ?>
 
			<?php 
        echo CHtml::image(Helper::mediaUrl(Server::UPLOAD_ORIGINAL_FILE_PATH . $server->i18nFormData['image_path_' . $lang], FRONTEND), '', array('style' => 'width:300px;'));
        ?>
			<?php 
    }
    ?>